<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Why am I  getting &amp;quot;QQmlApplicationEngine failed to load component&amp;quot; during ArcGIS initialization whenever I have a mistake in my QML? in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/why-am-i-getting-quot-qqmlapplicationengine-failed/m-p/6116#M32</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting... when I run your code in a standard QT Quick application, I get the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 600; color: #0000aa;"&gt;Starting C:\projects\Qt\build-untitled-Desktop_Qt_5_5_1_MSVC2013_64bit-Debug\debug\untitled.exe...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #aa00aa;"&gt;QML debugging is enabled. Only use this in a safe environment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #aa00aa;"&gt;QQmlApplicationEngine failed to load component&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A&gt;&lt;SPAN style="text-decoration: underline; color: #0057ae;"&gt;qrc:/main.qml:17&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="color: #aa00aa;"&gt; Invalid property assignment: color expected&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;However, when I run it exactly the same way, but in an ArcGIS QT Quick application I get:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 600; color: #0000aa;"&gt;Starting C:\projects\Qt\build-untitled_arcgis-Desktop_Qt_5_5_1_MSVC2013_64bit-Debug\debug\untitled_arcgis.exe...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #aa00aa;"&gt;QML debugging is enabled. Only use this in a safe environment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #aa00aa;"&gt;Initializing application&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #aa00aa;"&gt;ArcGIS.Runtime.Plugin: void __cdecl ArcGISRuntimePlugin::registerTypes(const char *) ArcGIS.Runtime&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 600; color: #0000aa;"&gt;C:\projects\Qt\build-untitled_arcgis-Desktop_Qt_5_5_1_MSVC2013_64bit-Debug\debug\untitled_arcgis.exe exited with code -1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 600; color: #303030;"&gt;[Edit:&amp;nbsp; Here are the two main.qmls: ]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 600; color: #0000aa;"&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/190457_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Mar 2016 17:04:57 GMT</pubDate>
    <dc:creator>JonathonGrivas</dc:creator>
    <dc:date>2016-03-09T17:04:57Z</dc:date>
    <item>
      <title>Why am I  getting "QQmlApplicationEngine failed to load component" during ArcGIS initialization whenever I have a mistake in my QML?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/why-am-i-getting-quot-qqmlapplicationengine-failed/m-p/6114#M30</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;&lt;A href="https://community.esri.com/migrated-users/25477"&gt;Lucas Danzinger&lt;/A&gt;&lt;SPAN style="color: #303030;"&gt;​&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;Hello again, I'm in the process of learning QT and building a simple ArcGIS driven app. The entire time I've been working on it, I periodically attempt to run my app and it gives me back something like the below in application output:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P dir="ltr" style="padding-left: 30px;"&gt;&lt;SPAN style="color: #aa00aa; font-size: 10pt;"&gt;ArcGIS.Runtime.Core: void __cdecl QmlUtils::registerTypes(const char *) ArcGIS.Runtime&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="padding-left: 30px;"&gt;&lt;SPAN style="color: #aa00aa; font-size: 10pt;"&gt;ArcGIS.Runtime.Plugin: void __cdecl ArcGISRuntimePlugin::initializeEngine(class QQmlEngine *,const char *) ArcGIS.Runtime&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="padding-left: 30px;"&gt;&lt;SPAN style="color: #aa00aa; font-size: 10pt;"&gt;ArcGIS.Runtime.Core: void __cdecl QmlUtils::initializeRuntimeLicense(void) Invalid clientId QVariant(QString, "39DN") status 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="padding-left: 30px;"&gt;&lt;SPAN style="color: #aa00aa; font-size: 10pt;"&gt;ArcGIS.Runtime.Core: void __cdecl QmlUtils::initializeImageProvider(class QQmlEngine *)&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="padding-left: 30px;"&gt;&lt;SPAN style="color: #aa00aa; font-size: 10pt;"&gt;ArcGIS.Runtime.Core: void __cdecl QmlUtils::initializeImageProvider(class QQmlEngine *) Setting global image provider QVariant(void*, 0x29ce2d516f0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="padding-left: 30px;"&gt;&lt;SPAN style="color: #aa00aa; font-size: 10pt;"&gt;ArcGIS.Extras.Plugin: void __cdecl ArcGISExtrasPlugin::registerTypes(const char *) ArcGIS.Extras&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="padding-left: 30px;"&gt;&lt;SPAN style="color: #aa00aa; font-size: 10pt;"&gt;ArcGIS.Extras.Plugin: void __cdecl ArcGISExtrasPlugin::registerTypes(const char *) Registering Singleton Types&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="padding-left: 30px;"&gt;&lt;SPAN style="color: #aa00aa; font-size: 10pt;"&gt;ArcGIS.Extras.Core: void __cdecl TkTypes::registerTypes(const char *) ArcGIS.Extras&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="padding-left: 30px;"&gt;&lt;SPAN style="color: #aa00aa; font-size: 10pt;"&gt;ArcGIS.Extras.Plugin: void __cdecl ArcGISExtrasPlugin::initializeEngine(class QQmlEngine *,const char *) ArcGIS.Extras&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="padding-left: 30px;"&gt;&lt;SPAN style="color: #aa00aa; font-size: 10pt;"&gt;QQmlApplicationEngine failed to load component&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="padding-left: 30px;"&gt;&lt;SPAN style="font-weight: 600; color: #0000aa; font-size: 10pt;"&gt;C:\projects\Qt\build-Test-Desktop_Qt_5_5_1_MSVC2013_64bit-Debug\debug\Test.exe exited with code -1&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;It never gives an actual error of any useful variety, it always just says "exited with code 1", and usually that line is preceded by "QqmlApplicationEngine failed to load component". This always seems to happen in the middle of the ArcGIS initializers.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;Until today, I just assumed that QT creator was terrible at detecting errors in my code, because the solution was always some mistake I'd made in regards to general QT Quick types. However, I am wondering now if it might be possible that it normally gives a real error message, and somehow ArcGIS SDK is hiding that from me? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;This does not happen with any one specific error, it happens at least whenever I make a mistake with QML Types, like putting a Rectangle inside of a ListModel's ListElement.&amp;nbsp;&amp;nbsp; Because it happens and gives the exact same error for almost every mistake I ever make, I have spent countless hours manually tracking down my mistakes over the course of this project. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;It's possible I'm using the wrong kit for my system or something, but unless I make a mistake like the one mentioned above, the application compiles and runs flawlessly on my desktop as well as my phone, so I don't really know, maybe you can help me figure it out. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;The ArcGIS portion of my app runs fine when I finally figure out what QML mistake I made and fix it. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;I'm running QTQuick 2.4 and ArcGIS Runtime SDK 10.2.6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;I'm building for Desktop Qt 5.5.1 MSVC2013 64bit, I'm on Windows 10, 64bit. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 03:09:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/why-am-i-getting-quot-qqmlapplicationengine-failed/m-p/6114#M30</guid>
      <dc:creator>JonathonGrivas</dc:creator>
      <dc:date>2016-03-08T03:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I  getting "QQmlApplicationEngine failed to load component" during ArcGIS initialization whenever I have a mistake in my QML?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/why-am-i-getting-quot-qqmlapplicationengine-failed/m-p/6115#M31</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qt Framework QML types act the same way. Here is an example that results in the same error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import QtQuick 2.3&lt;/P&gt;&lt;P&gt;import QtQuick.Window 2.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Window {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; visible: true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MouseArea {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; anchors.fill: parent&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; onClicked: {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Qt.quit();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; text: qsTr("Hello World")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; anchors.centerIn: parent&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; color: "GEORGE"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 16:46:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/why-am-i-getting-quot-qqmlapplicationengine-failed/m-p/6115#M31</guid>
      <dc:creator>ThomasDunn</dc:creator>
      <dc:date>2016-03-09T16:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I  getting "QQmlApplicationEngine failed to load component" during ArcGIS initialization whenever I have a mistake in my QML?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/why-am-i-getting-quot-qqmlapplicationengine-failed/m-p/6116#M32</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting... when I run your code in a standard QT Quick application, I get the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 600; color: #0000aa;"&gt;Starting C:\projects\Qt\build-untitled-Desktop_Qt_5_5_1_MSVC2013_64bit-Debug\debug\untitled.exe...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #aa00aa;"&gt;QML debugging is enabled. Only use this in a safe environment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #aa00aa;"&gt;QQmlApplicationEngine failed to load component&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A&gt;&lt;SPAN style="text-decoration: underline; color: #0057ae;"&gt;qrc:/main.qml:17&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="color: #aa00aa;"&gt; Invalid property assignment: color expected&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;However, when I run it exactly the same way, but in an ArcGIS QT Quick application I get:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 600; color: #0000aa;"&gt;Starting C:\projects\Qt\build-untitled_arcgis-Desktop_Qt_5_5_1_MSVC2013_64bit-Debug\debug\untitled_arcgis.exe...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #aa00aa;"&gt;QML debugging is enabled. Only use this in a safe environment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #aa00aa;"&gt;Initializing application&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #aa00aa;"&gt;ArcGIS.Runtime.Plugin: void __cdecl ArcGISRuntimePlugin::registerTypes(const char *) ArcGIS.Runtime&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 600; color: #0000aa;"&gt;C:\projects\Qt\build-untitled_arcgis-Desktop_Qt_5_5_1_MSVC2013_64bit-Debug\debug\untitled_arcgis.exe exited with code -1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 600; color: #303030;"&gt;[Edit:&amp;nbsp; Here are the two main.qmls: ]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 600; color: #0000aa;"&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/190457_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 17:04:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/why-am-i-getting-quot-qqmlapplicationengine-failed/m-p/6116#M32</guid>
      <dc:creator>JonathonGrivas</dc:creator>
      <dc:date>2016-03-09T17:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I  getting "QQmlApplicationEngine failed to load component" during ArcGIS initialization whenever I have a mistake in my QML?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/why-am-i-getting-quot-qqmlapplicationengine-failed/m-p/6117#M33</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see what you mean. In my tests on Mac OS X, I see the QML load error "Invalid property assignment: color expected" before the program terminates. I'm not sure why you are not seeing that on Windows. That message is generated by Qt's QQmlApplication::load method using qWarning. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked at this in the debugger. (You have the template source and if you like you can do this, too.) The program terminates when the C++ code ignores the failed QML load and tries to access the root component in the QML, which is not there because of the QML load error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We will look into this more closely to see what can be done to address it in a future release.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 22:32:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/why-am-i-getting-quot-qqmlapplicationengine-failed/m-p/6117#M33</guid>
      <dc:creator>ThomasDunn</dc:creator>
      <dc:date>2016-03-11T22:32:11Z</dc:date>
    </item>
  </channel>
</rss>

