Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-27759

Android: SOFT ASSERT: "d->m_activeRunConfiguration" in Target::activeBuildKey()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 8.0.0
    • Fix Version/s: None
    • Component/s: Android Support
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      When configuring a "clean" CMake based project for an Android Kit, I get 13 times the following assert:

      SOFT ASSERT: "d->m_activeRunConfiguration" in file C:\Users\alportal\dev\qt-creator-qt6\src\plugins\projectexplorer\target.cpp, line 303

      The initializer function for CMakeBuildConfiguration tries to indirectly access the current run configuration, which in that moment still is nullptr.

      Stack trace:

      ProjectExplorer!ProjectExplorer::Target::activeBuildKey(void)+0x2f [|src\plugins\projectexplorer\target.cpp @ 302]
      Android!Android::AndroidManager::buildDirectory(class ProjectExplorer::Target * target = 0x000001db`03e81ce0)+0x288 [|src\plugins\android\androidmanager.cpp @ 280]
      Android!Android::AndroidManager::androidBuildDirectory(class ProjectExplorer::Target * target = 0x000001db`03e81ce0)+0x2f [|src\plugins\android\androidmanager.cpp @ 251]
      Android!Android::AndroidManager::manifestPath(class ProjectExplorer::Target * target = 0x000001db`03e81ce0)+0xdd [|src\plugins\android\androidmanager.cpp @ 385]
      Android!Android::AndroidManager::manifestSourcePath(class ProjectExplorer::Target * target = 0x000001db`03e81ce0)+0x20e [|src\plugins\android\androidmanager.cpp @ 377]
      Android!Android::AndroidManager::minimumSDK(class ProjectExplorer::Target * target = 0x000001db`03e81ce0)+0x44 [|src\plugins\android\androidmanager.cpp @ 148]
      Android!Android::Internal::AndroidBuildApkStep::data(class Utils::Id id = class Utils::Id)+0x8d [|src\plugins\android\androidbuildapkstep.cpp @ 963]
      CMakeProjectManager!<lambda_44d925a260ae63f67d909fb16a0868e6>::operator()(class ProjectExplorer::BuildInfo * info = 0x000001db`0c8882e0)+0x6c7 [|src\plugins\cmakeprojectmanager\cmakebuildconfiguration.cpp @ 1242]
      CMakeProjectManager!std::invoke<<lambda_44d925a260ae63f67d909fb16a0868e6> &,ProjectExplorer::BuildInfo const &>(class CMakeProjectManager::CMakeBuildConfiguration::{ctor}::__l2::<lambda_44d925a260ae63f67d909fb16a0868e6> * _Obj = 0x000001db`080e9b40, class ProjectExplorer::BuildInfo * _Arg1 = 0x000001db`0c8882e0)+0x1e [C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\type_traits @ 1610]
      CMakeProjectManager!std::_Invoker_ret<void,1>::_Call<<lambda_44d925a260ae63f67d909fb16a0868e6> &,ProjectExplorer::BuildInfo const &>(class CMakeProjectManager::CMakeBuildConfiguration::{ctor}::__l2::<lambda_44d925a260ae63f67d909fb16a0868e6> * _Func = 0x000001db`080e9b40, class ProjectExplorer::BuildInfo * <_Vals_0> = 0x000001db`0c8882e0)+0x1e [C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\functional @ 745]
      CMakeProjectManager!std::_Func_impl_no_alloc<<lambda_44d925a260ae63f67d909fb16a0868e6>,void,ProjectExplorer::BuildInfo const &>::_Do_call(class ProjectExplorer::BuildInfo * <_Args_0> = 0x000001db`0c8882e0)+0x2a [C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\functional @ 921]
      ProjectExplorer!std::_Func_class<void,ProjectExplorer::BuildInfo const &>::operator()(class ProjectExplorer::BuildInfo * <_Args_0> = 0x000001db`0c8882e0)+0x62 [C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\functional @ 969]
      ProjectExplorer!ProjectExplorer::BuildConfiguration::doInitialize(class ProjectExplorer::BuildInfo * info = 0x000001db`0c8882e0)+0x257 [|src\plugins\projectexplorer\buildconfiguration.cpp @ 307]
      ProjectExplorer!ProjectExplorer::BuildConfigurationFactory::create(class ProjectExplorer::Target * parent = 0x000001db`03e81ce0, class ProjectExplorer::BuildInfo * info = 0x000001db`0c8882e0)+0x98 [|src\plugins\projectexplorer\buildconfiguration.cpp @ 782]
      ProjectExplorer!ProjectExplorer::Project::setup(class QList<ProjectExplorer::BuildInfo> * infoList = 0x000000a2`8e6f64d8)+0x1f7 [|src\plugins\projectexplorer\project.cpp @ 993]
      ProjectExplorer!ProjectExplorer::TargetSetupPage::setupProject(class ProjectExplorer::Project * project = 0x000001db`06214800)+0x188 [|src\plugins\projectexplorer\targetsetuppage.cpp @ 678]
      ProjectExplorer!ProjectExplorer::Internal::TargetSetupPageWrapper::done(void)+0x72 [|src\plugins\projectexplorer\targetsettingspanel.cpp @ 115]
      

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            portale Alessandro Portale
            Reporter:
            portale Alessandro Portale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes