Simple Map Demo Crash

1700
3
11-11-2016 07:28 AM
AntonioFiume
New Contributor III

Dear All,

i opened the default example to show a simple map in ArcGIS for QT Quartz. The code is very simple:

import QtQuick 2.3
import QtQuick.Controls 1.2
import Esri.ArcGISRuntime 100.0
ApplicationWindow {
    id: appWindow
    width: 800
    height: 600
    title: "TESTMAPANDRO"
    // add a mapView component
    MapView {
        anchors.fill: parent

        Map {

    BasemapStreets {}
        }
    }
}

This import seem have a error: 

import Esri.ArcGISRuntime 100.0

if i runs the App with iOS works fine, if i run with Android the application is open and close and show this error:

Starting remote process.I/art ( 68): Explicit concurrent mark sweep GC freed 284(120KB) AllocSpace objects, 0(0B) LOS objects, 66% free, 1623KB/4MB, paused 455us total 41.516ms

I/ActivityManager( 336): Start proc 1623:com.mycompany.TESTMAPANDRO/u0a56 for activity com.mycompany.TESTMAPANDRO/org.qtproject.qt5.android.bindings.QtActivity

I/art ( 1623): Not late-enabling -Xcheck:jni (already on)

W/linker ( 1623): libQt5Gui.so: unused DT entry: type 0x1d arg 0x507ec

W/linker ( 1623): Unsupported flags DT_FLAGS_1=0x81

W/linker ( 1623): libQt5Widgets.so: unused DT entry: type 0x1d arg 0x6c222

W/linker ( 1623): Unsupported flags DT_FLAGS_1=0x81

W/linker ( 1623): libQt5OpenGL.so: unused DT entry: type 0x1d arg 0xbb9f

W/linker ( 1623): Unsupported flags DT_FLAGS_1=0x81

W/linker ( 1623): libQt5Network.so: unused DT entry: type 0x1d arg 0x11d02

W/linker ( 1623): Unsupported flags DT_FLAGS_1=0x81

W/linker ( 1623): libQt5Qml.so: unused DT entry: type 0x1d arg 0x32b73

W/linker ( 1623): Unsupported flags DT_FLAGS_1=0x81

W/linker ( 1623): libQt5Quick.so: unused DT entry: type 0x1d arg 0x3d9a1

W/linker ( 1623): Unsupported flags DT_FLAGS_1=0x81

W/linker ( 1623): libQt5Xml.so: unused DT entry: type 0x1d arg 0x557c

W/linker ( 1623): Unsupported flags DT_FLAGS_1=0x81

W/linker ( 1623): libQt5Positioning.so: unused DT entry: type 0x1d arg 0x5b27

W/linker ( 1623): Unsupported flags DT_FLAGS_1=0x81

W/linker ( 1623): libQt5Sensors.so: unused DT entry: type 0x1d arg 0x7be1

W/linker ( 1623): Unsupported flags DT_FLAGS_1=0x81

W/linker ( 1623): libQt5QuickParticles.so: unused DT entry: type 0x1d arg 0x4b71

W/linker ( 1623): Unsupported flags DT_FLAGS_1=0x81

W/linker ( 1623): libqtforandroid.so: unused DT entry: type 0x1d arg 0x920e

W/linker ( 1623): Unsupported flags DT_FLAGS_1=0x81

I/Qt ( 1623): qt start

W/linker ( 1623): libqandroidbearer.so: unused DT entry: type 0x1d arg 0x1738

W/linker ( 1623): Unsupported flags DT_FLAGS_1=0x81

W/linker ( 1623): libqtposition_android.so: unused DT entry: type 0x1d arg 0x1366

W/linker ( 1623): Unsupported flags DT_FLAGS_1=0x81

I/QtPositioning( 1623): Positioning start

W/linker ( 1623): libqtsensors_android.so: unused DT entry: type 0x1d arg 0x107d

W/linker ( 1623): Unsupported flags DT_FLAGS_1=0x81

I/Qt ( 1623): Sensors start

I/art ( 1623): Background partial concurrent mark sweep GC freed 2613(180KB) AllocSpace objects, 8(169KB) LOS objects, 40% free, 2MB/4MB, paused 11.398ms total 56.338ms

W/linker ( 1623): libTESTMAPANDRO.so: unused DT entry: type 0xf arg 0x1580

W/linker ( 1623): libTESTMAPANDRO.so: unused DT entry: type 0x6ffffffe arg 0x2650

W/linker ( 1623): libTESTMAPANDRO.so: unused DT entry: type 0x6fffffff arg 0x1

D/ ( 1623): (null):0 ((null)): Initializing application

D/ ( 1623): HostConnection::get() New Host Connection established 0xb4b173b0, tid 1623

D/ ( 1623): HostConnection::get() New Host Connection established 0xb4b174c0, tid 1645

W/linker ( 1623): libqtquick2plugin.so: unused DT entry: type 0x1d arg 0x4bd

W/linker ( 1623): Unsupported flags DT_FLAGS_1=0x81

W/linker ( 1623): libqtquickcontrolsplugin.so: unused DT entry: type 0x1d arg 0x424b

W/linker ( 1623): Unsupported flags DT_FLAGS_1=0x81

W/TESTMAPANDRO( 1623): (null):0 ((null)): QQmlApplicationEngine failed to load component

W/TESTMAPANDRO( 1623): (null):0 ((null)): qrc:/qml/main.qml:16 module "Esri.ArcGISRuntime" is not installed

W/TESTMAPANDRO( 1623):

D/TESTMAPANDRO( 1623): (null):0 ((null)): int main(int, char**) QObject(0x0)

E/TESTMAPANDRO( 1623): (null):0 ((null)): Error: Your root item has to be a Window.

I/Zygote ( 68): Process 1623 exited cleanly (255)

I/ActivityManager( 336): Process com.mycompany.TESTMAPANDRO (pid 1623) has died

"com.mycompany.TESTMAPANDRO" died.

Could you please take a look?

3 Replies
AntonioFiume
New Contributor III

Dear All,

this problem is only when i selects the Android Deploy. In fact when i selects the Andorid deploy from QT Creator, the Map link in the editor appear in red underline. If i select Desktop deploy the underline disappear.

This is the massage:

0 Kudos
AntonioFiume
New Contributor III

Resolved installing again the SDK

0 Kudos
LucasDanzinger
Esri Frequent Contributor

Glad you got it going. For future reference, try simply re-running the Post Installer instead of reinstalling the whole SDK. This utility copies the binaries and other files from the SDK installation into your Qt installation. The red squiggly lines indicate that the QML plugin wasn't present in the Qt installation, and so Qt Creator is complaining that it could not find it.

0 Kudos