Forums

OverviewV-Play 2 Support (Qt 5) › Fatal error running game on Android

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14929

    Caeser

    Hi,

    I recently updated my Qt to 5.7 and V-Play to 2.9.1

    Building my game using the Android_for_armeabi_v7a_GCC_4_8_Qt_5_7_0-Debug

    A dialog pops out  “Fatal Error, your application can’t be started.

    I tried creating a fresh new V-Play project but when I build, it produces the same fatal error.

    Fatal Error Image

     

    Here is the Application Output with the error logs

    Starting remote process.I art     : Late-enabling -Xcheck:jni
    W System  : ClassLoader referenced unknown path:
    W System.err: java.lang.reflect.InvocationTargetException
    W System.err: 	at java.lang.reflect.Method.invoke(Native Method)
    W System.err: 	at org.qtproject.qt5.android.bindings.QtLoader.loadApplication(QtLoader.java:237)
    W System.err: 	at org.qtproject.qt5.android.bindings.QtLoader.startApp(QtLoader.java:647)
    W System.err: 	at org.qtproject.qt5.android.bindings.QtActivityLoader.onCreate(QtActivityLoader.java:181)
    W System.err: 	at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:269)
    W System.err: 	at net.vplay.helper.VPlayActivity.onCreate(VPlayActivity.java:19)
    W System.err: 	at android.app.Activity.performCreate(Activity.java:6251)
    W System.err: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
    W System.err: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
    W System.err: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
    W System.err: 	at android.app.ActivityThread.-wrap11(ActivityThread.java)
    W System.err: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
    W System.err: 	at android.os.Handler.dispatchMessage(Handler.java:102)
    W System.err: 	at android.os.Looper.loop(Looper.java:148)
    W System.err: 	at android.app.ActivityThread.main(ActivityThread.java:5417)
    W System.err: 	at java.lang.reflect.Method.invoke(Native Method)
    W System.err: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    W System.err: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
    W System.err: Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZSt24__throw_out_of_range_fmtPKcz" referenced by "/data/app/com.yourcompany.wizardEVP.SampleProject-1/lib/arm/libQt5Qml.so"...
    W System.err: 	at java.lang.Runtime.load(Runtime.java:332)
    W System.err: 	at java.lang.System.load(System.java:1069)
    W System.err: 	at org.qtproject.qt5.android.QtNative.loadQtLibraries(QtNative.java:171)
    W System.err: 	at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:502)
    W System.err: 	... 18 more
    I art     : Background sticky concurrent mark sweep GC freed 33852(3MB) AllocSpace objects, 0(0B) LOS objects, 38% free, 14MB/23MB, paused 8.170ms total 79.543ms
    D OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
    I Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 10/21/15, 369a2ea, I96aee987eb
    I OpenGLRenderer: Initialized EGL, version 1.4

     

    I tried to debug using Android Studio logcat and this what it produces

    09-26 21:18:33.069 778-11247/? D/NetlinkSocketObserver: NeighborEvent{elapsedMs=855152015, fe80::3608:4ff:fe01:d944, [34080401D944], RTM_NEWNEIGH, NUD_REACHABLE}
    09-26 21:18:34.768 778-1231/? I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.yourcompany.wizardEVP.SampleProject/net.vplay.helper.VPlayActivity (has extras)} from uid 10022 on display 0
    09-26 21:18:34.781 15839-15881/? D/audio_hw_primary: out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2
    09-26 21:18:34.802 15839-15881/? D/audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: none)
    09-26 21:18:34.802 15839-15881/? D/msm8974_platform: platform_send_audio_calibration: sending audio calibration for snd_device(2) acdb_id(15)
    09-26 21:18:34.802 15839-15881/? D/audio_hw_primary: enable_snd_device: snd_device(2: speaker)
    09-26 21:18:34.803 15839-15881/? D/audio_hw_primary: enable_audio_route: apply and update mixer path: low-latency-playback
    09-26 21:18:34.839 778-1930/? I/ActivityManager: Start proc 18417:com.yourcompany.wizardEVP.SampleProject/u0a866 for activity com.yourcompany.wizardEVP.SampleProject/net.vplay.helper.VPlayActivity
    09-26 21:18:34.863 18417-18417/? I/art: Late-enabling -Xcheck:jni
    09-26 21:18:35.061 18417-18417/com.yourcompany.wizardEVP.SampleProject W/System: ClassLoader referenced unknown path: 
    09-26 21:18:35.217 18417-18417/com.yourcompany.wizardEVP.SampleProject W/System.err: java.lang.reflect.InvocationTargetException
    09-26 21:18:35.223 18417-18417/com.yourcompany.wizardEVP.SampleProject W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
    09-26 21:18:35.223 18417-18417/com.yourcompany.wizardEVP.SampleProject W/System.err:     at org.qtproject.qt5.android.bindings.QtLoader.loadApplication(QtLoader.java:237)
    09-26 21:18:35.223 18417-18417/com.yourcompany.wizardEVP.SampleProject W/System.err:     at org.qtproject.qt5.android.bindings.QtLoader.startApp(QtLoader.java:647)
    09-26 21:18:35.223 18417-18417/com.yourcompany.wizardEVP.SampleProject W/System.err:     at org.qtproject.qt5.android.bindings.QtActivityLoader.onCreate(QtActivityLoader.java:181)
    09-26 21:18:35.223 18417-18417/com.yourcompany.wizardEVP.SampleProject W/System.err:     at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:269)
    09-26 21:18:35.223 18417-18417/com.yourcompany.wizardEVP.SampleProject W/System.err:     at net.vplay.helper.VPlayActivity.onCreate(VPlayActivity.java:19)
    09-26 21:18:35.224 18417-18417/com.yourcompany.wizardEVP.SampleProject W/System.err:     at android.app.Activity.performCreate(Activity.java:6251)
    09-26 21:18:35.224 18417-18417/com.yourcompany.wizardEVP.SampleProject W/System.err:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
    09-26 21:18:35.224 18417-18417/com.yourcompany.wizardEVP.SampleProject W/System.err:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
    09-26 21:18:35.224 18417-18417/com.yourcompany.wizardEVP.SampleProject W/System.err:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
    09-26 21:18:35.224 18417-18417/com.yourcompany.wizardEVP.SampleProject W/System.err:     at android.app.ActivityThread.-wrap11(ActivityThread.java)
    09-26 21:18:35.224 18417-18417/com.yourcompany.wizardEVP.SampleProject W/System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
    09-26 21:18:35.224 18417-18417/com.yourcompany.wizardEVP.SampleProject W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:102)
    09-26 21:18:35.224 18417-18417/com.yourcompany.wizardEVP.SampleProject W/System.err:     at android.os.Looper.loop(Looper.java:148)
    09-26 21:18:35.224 18417-18417/com.yourcompany.wizardEVP.SampleProject W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:5417)
    09-26 21:18:35.224 18417-18417/com.yourcompany.wizardEVP.SampleProject W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
    09-26 21:18:35.224 18417-18417/com.yourcompany.wizardEVP.SampleProject W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    09-26 21:18:35.224 18417-18417/com.yourcompany.wizardEVP.SampleProject W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
    09-26 21:18:35.224 18417-18417/com.yourcompany.wizardEVP.SampleProject W/System.err: Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZSt24__throw_out_of_range_fmtPKcz" referenced by "/data/app/com.yourcompany.wizardEVP.SampleProject-1/lib/arm/libQt5Qml.so"...
    09-26 21:18:35.228 18417-18417/com.yourcompany.wizardEVP.SampleProject W/System.err:     at java.lang.Runtime.load(Runtime.java:332)
    09-26 21:18:35.228 18417-18417/com.yourcompany.wizardEVP.SampleProject W/System.err:     at java.lang.System.load(System.java:1069)
    09-26 21:18:35.228 18417-18417/com.yourcompany.wizardEVP.SampleProject W/System.err:     at org.qtproject.qt5.android.QtNative.loadQtLibraries(QtNative.java:171)
    09-26 21:18:35.228 18417-18417/com.yourcompany.wizardEVP.SampleProject W/System.err:     at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:502)
    09-26 21:18:35.228 18417-18417/com.yourcompany.wizardEVP.SampleProject W/System.err: 	... 18 more
    09-26 21:18:35.288 18417-18462/com.yourcompany.wizardEVP.SampleProject D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
    09-26 21:18:35.368 18417-18462/com.yourcompany.wizardEVP.SampleProject I/Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 10/21/15, 369a2ea, I96aee987eb
    09-26 21:18:35.378 18417-18462/com.yourcompany.wizardEVP.SampleProject I/OpenGLRenderer: Initialized EGL, version 1.4
    09-26 21:18:35.458 778-799/? I/ActivityManager: Displayed com.yourcompany.wizardEVP.SampleProject/net.vplay.helper.VPlayActivity: +633ms (total +3m15s127ms)

     

    Here is my Android Manifest

     

    <?xml version="1.0"?>
    <manifest package="com.yourcompany.wizardEVP.SampleProject" xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.0" android:versionCode="1" android:installLocation="auto">
        <application android:hardwareAccelerated="true" android:name="net.vplay.helper.VPlayApplication" android:label="@string/app_name" android:icon="@drawable/ic_launcher" android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
            <activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation" android:name="net.vplay.helper.VPlayActivity" android:label="@string/app_name" android:screenOrientation="portrait" android:launchMode="singleTop">
                <intent-filter>
                    <action android:name="android.intent.action.MAIN"/>
                    <category android:name="android.intent.category.LAUNCHER"/>
                </intent-filter>
                <meta-data android:name="android.app.lib_name" android:value="-- %%INSERT_APP_LIB_NAME%% --"/>
                <meta-data android:name="android.app.qt_sources_resource_id" android:resource="@array/qt_sources"/>
                <meta-data android:name="android.app.repository" android:value="default"/>
                <meta-data android:name="android.app.qt_libs_resource_id" android:resource="@array/qt_libs"/>
                <meta-data android:name="android.app.bundled_libs_resource_id" android:resource="@array/bundled_libs"/>
                <!-- Deploy Qt libs as part of package -->
                <meta-data android:name="android.app.bundle_local_qt_libs" android:value="-- %%BUNDLE_LOCAL_QT_LIBS%% --"/>
                <meta-data android:name="android.app.bundled_in_lib_resource_id" android:resource="@array/bundled_in_lib"/>
                <meta-data android:name="android.app.bundled_in_assets_resource_id" android:resource="@array/bundled_in_assets"/>
                <!-- Run with local libs -->
                <meta-data android:name="android.app.use_local_qt_libs" android:value="-- %%USE_LOCAL_QT_LIBS%% --"/>
                <meta-data android:name="android.app.libs_prefix" android:value="/data/local/tmp/qt/"/>
                <meta-data android:name="android.app.load_local_libs" android:value="-- %%INSERT_LOCAL_LIBS%% --"/>
                <meta-data android:name="android.app.load_local_jars" android:value="-- %%INSERT_LOCAL_JARS%% --"/>
                <meta-data android:name="android.app.static_init_classes" android:value="-- %%INSERT_INIT_CLASSES%% --"/>
                <!--  Messages maps -->
                <meta-data android:value="@string/ministro_not_found_msg" android:name="android.app.ministro_not_found_msg"/>
                <meta-data android:value="@string/ministro_needed_msg" android:name="android.app.ministro_needed_msg"/>
                <meta-data android:value="@string/fatal_error_msg" android:name="android.app.fatal_error_msg"/>
                <!--  Messages maps -->
    
                <!-- Splash screen -->
                <!--
                <meta-data android:name="android.app.splash_screen_drawable" android:resource="@drawable/logo"/>
                -->
                <!-- Splash screen -->
    
                <!-- Background running -->
                <!-- Warning: changing this value to true may cause unexpected crashes if the
                              application still try to draw after
                              "applicationStateChanged(Qt::ApplicationSuspended)"
                              signal is sent! -->
                <meta-data android:name="android.app.background_running" android:value="false"/>
                <!-- Background running -->
    
                <!-- auto screen scale factor -->
                <meta-data android:name="android.app.auto_screen_scale_factor" android:value="false"/>
                <!-- auto screen scale factor -->
            </activity>
        </application>
        <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="16"/>
        <supports-screens android:largeScreens="true" android:normalScreens="true" android:anyDensity="true" android:smallScreens="true"/>
    
        <!-- The following comment will be replaced upon deployment with default permissions based on the dependencies of the application.
             Remove the comment if you do not require these default permissions. -->
        <!-- %%INSERT_PERMISSIONS -->
    
        <!-- The following comment will be replaced upon deployment with default features based on the dependencies of the application.
             Remove the comment if you do not require these default features. -->
        <!-- %%INSERT_FEATURES -->
    
    </manifest>
    

     

    Here is my Gradle File

     

    buildscript {
        repositories {
            jcenter()
        }
    
        dependencies {
            classpath 'com.android.tools.build:gradle:2.1.0'
        }
    }
    
    allprojects {
        repositories {
            jcenter()
            maven { url 'https://sdk.v-play.net/maven/' }
        }
    }
    
    apply plugin: 'com.android.application'
    
    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
    }
    
    android {
        /*******************************************************
         * The following variables:
         * - androidBuildToolsVersion,
         * - androidCompileSdkVersion
         * - qt5AndroidDir - holds the path to qt android files
         *                   needed to build any Qt application
         *                   on Android.
         *
         * are defined in gradle.properties file. This file is
         * updated by QtCreator and androiddeployqt tools.
         * Changing them manually might break the compilation!
         *******************************************************/
    
        compileSdkVersion androidCompileSdkVersion.toInteger()
    
        buildToolsVersion androidBuildToolsVersion
    
        sourceSets {
            main {
                manifest.srcFile 'AndroidManifest.xml'
                java.srcDirs = [qt5AndroidDir + '/src', 'src', 'java']
                aidl.srcDirs = [qt5AndroidDir + '/src', 'src', 'aidl']
                res.srcDirs = [qt5AndroidDir + '/res', 'res']
                resources.srcDirs = ['src']
                renderscript.srcDirs = ['src']
                assets.srcDirs = ['assets']
                jniLibs.srcDirs = ['libs']
           }
        }
    
        lintOptions {
            abortOnError false
        }
    }
    

     

     

     

     

     

    #14931

    Günther
    V-Play Team

    Hi Caesar,

    can you try also updating your Android tools (SDK, NDK, …) to latest version?

    Does it help?

    Best,
    Günther

    #14932

    Caeser
Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support