Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 1 Support › Crash on Android

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #4570

    Peter

    Hey guys.

    We’ve updated our game Snowball Mania to version 1.2 for Android and iOS and encounter now a problem on some Android devices.
    We debugged everything detailed with iPhone and a Nexus 7 Tablet and had no issues.

    Today we experienced major problems trying the game on other Android devices (LG Optimus L5 and Samsung Galaxy S i9000).

    The game crashes directly at startup. It still works without any problems on e.g. the tablet.

     

    It fails on initializing the Main Activity, I’ll attach the logcat output collected on the Samsung Galaxy S with Android 4.0.4

    java.lang.ExceptionInInitializerError
    at java.lang.Class.newInstanceImpl(Native Method)
    at java.lang.Class.newInstance(Class.java:1319)
    at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1984)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2104)
    at android.app.ActivityThread.access$600(ActivityThread.java:132)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1157)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:4575)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
    at dalvik.system.NativeStart.main(Native Method)
    Caused by: java.lang.UnsatisfiedLinkError: Couldn't load QtXmlPatterns: findLibrary returned null
    at java.lang.Runtime.loadLibrary(Runtime.java:365)
    at java.lang.System.loadLibrary(System.java:535)
    at com.xxmassdeveloper.SnowballMania.MainActivity.<clinit>(MainActivity.java:73)
    ... 15 more

     

    Do you have an idea what the problem could be and why it is only appearing on some devices?
    Any help appreciated, this is a major problem as this version is online in the Play Store.

     

    Thanks in advance.

    Greetz,

    Peter

    #4571

    Alex
    Felgo Team

    Hi Peter,

    I could not reconstruct a similar crash, could you please send us the complete log output and a download link to the apk in question to info@felgo.com ?

    Thanks,

    Alex

    #4576

    Peter

    It seems as it doesn’t happen every time, the game is starting now on Android, hopefully it doesn’t happen to often to our downloaders.

    Maybe you can find out something about it.
    Nevertheless thanks for your help.

     

    Cheers.

    #4578

    Peter

    Various other collegues reported the same behaviour till now.

    It’s always the same exception.

    java.lang.UnsatisfiedLinkError: Couldn't load QtXmlPatterns: findLibrary returned null

     

    I hope we can recreate this issue to get more Logcat output.

     

    The only change in sources in this update was the integration of the Facebook plugin, I don’t think that QML/Javascript changes brought up this issue.

     

    Cheers.

    #4579

    Alex
    Felgo Team

    Hi,

    we are sorry for that, as already stated the complete log output would be of interest. In the meantime we’ll also try to reconstruct the problem here with our devices. I’ll come back to you later…

    Cheers,

    Alex

    #4603

    Philipp

    the complete log output provided via the google developer console is the following:

     

    java.lang.ExceptionInInitializerError
    at java.lang.Class.newInstanceImpl(Native Method)
    at java.lang.Class.newInstance(Class.java:1319)
    at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1984)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2104)
    at android.app.ActivityThread.access$600(ActivityThread.java:132)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1157)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:4575)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
    at dalvik.system.NativeStart.main(Native Method)
    Caused by: java.lang.UnsatisfiedLinkError: Couldn't load QtXmlPatterns: findLibrary returned null
    at java.lang.Runtime.loadLibrary(Runtime.java:365)
    at java.lang.System.loadLibrary(System.java:535)
    at com.xxmassdeveloper.SnowballMania.MainActivity.<clinit>(MainActivity.java:73)
    ... 15 more

     

    #4604

    Alex
    Felgo Team

    Thanks, are you sure there is no filter set for console output? What’s the output before the exception even occurs?

    Cheers,

    Alex

    #4615

    Philipp

    Hi!

    You have to keep in mind that this is the internal crash report you can send to the developer as user if your app crashes.

     

    We interpret the log output as the following. When initializing the MainActivity the system is not able to find a certain Library:

    Caused by: java.lang.UnsatisfiedLinkError: Couldn't load QtXmlPatterns: findLibrary returned null

     

    We were however able to create the bug one more time and with root access on the device export the log:

    04-03 09:00:45.218 I/ActivityManager(197): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.xxmassdeveloper.SnowballMania/.MainActivity} from pid 28133
    04-03 09:00:45.398 D/dalvikvm(2154): Late-enabling CheckJNI
    04-03 09:00:45.406 I/ActivityManager(197): Start proc com.xxmassdeveloper.SnowballMania for activity com.xxmassdeveloper.SnowballMania/.MainActivity: pid=2154 uid=10071 gids={1015, 3003}
    04-03 09:00:45.480 I/ActivityThread(2138): Pub com.google.android.finsky.QSBSuggestionsProvider2: com.google.android.finsky.providers.QSBSuggestionsProvider
    04-03 09:00:45.484 I/ActivityThread(2138): Pub com.google.android.finsky.AppIconProvider: com.google.android.finsky.providers.AppIconProvider
    04-03 09:00:45.500 I/dalvikvm(2154): Turning on JNI app bug workarounds for target SDK version 9...
    04-03 09:00:45.503 I/ActivityThread(2138): Pub com.google.android.finsky.RecentSuggestionsProvider: com.google.android.finsky.providers.RecentSuggestionsProvider
    04-03 09:00:45.566 I/InputReader(197): Reconfiguring input devices.  changes=0x00000004
    04-03 09:00:45.566 I/InputReader(197): Device reconfigured: id=9, name='mxt224_ts_input', surface size is now 480x800, mode is 1
    04-03 09:00:45.570 I/ActivityManager(197): Config changed: {1.0 232mcc11mnc de_AT layoutdir=0 sw320dp w533dp h294dp nrml long land finger -keyb/v/h -nav/h s.37 themeResource=null}
    04-03 09:00:45.660 D/OpenGLRenderer(28133): Flushing caches (mode 0)
    04-03 09:00:45.695 D/OpenGLRenderer(28133): Flushing caches (mode 0)
    04-03 09:00:45.886 I/ActivityManager(197): Process com.android.calendar (pid 1915) has died.
    04-03 09:00:46.398 D/dalvikvm(2154): Trying to load lib /data/data/com.xxmassdeveloper.SnowballMania/lib/libCocos2dx.so 0x40d6fb70
    04-03 09:00:46.613 D/Finsky  (2138): [1] FinskyApp.onCreate: Initializing network with DFE https://android.clients.google.com/fdfe/
    04-03 09:00:46.742 D/OpenGLRenderer(28133): Flushing caches (mode 1)
    04-03 09:00:46.847 D/dalvikvm(2154): Added shared lib /data/data/com.xxmassdeveloper.SnowballMania/lib/libCocos2dx.so 0x40d6fb70
    04-03 09:00:46.847 D/dalvikvm(2154): No JNI_OnLoad found in /data/data/com.xxmassdeveloper.SnowballMania/lib/libCocos2dx.so 0x40d6fb70, skipping init
    04-03 09:00:46.890 D/Finsky  (2138): [1] DailyHygiene.goMakeHygieneIfDirty: No need to run daily hygiene.
    04-03 09:00:47.152 W/dalvikvm(2154): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/xxmassdeveloper/SnowballMania/MainActivity;
    04-03 09:00:47.152 W/dalvikvm(2154): Class init failed in newInstance call (Lcom/xxmassdeveloper/SnowballMania/MainActivity;)
    04-03 09:00:47.164 D/AndroidRuntime(2154): Shutting down VM
    04-03 09:00:47.164 W/dalvikvm(2154): threadid=1: thread exiting with uncaught exception (group=0x40a4f1f8)
    04-03 09:00:47.175 E/AndroidRuntime(2154): FATAL EXCEPTION: main
    04-03 09:00:47.175 E/AndroidRuntime(2154): java.lang.ExceptionInInitializerError
    04-03 09:00:47.175 E/AndroidRuntime(2154): 	at java.lang.Class.newInstanceImpl(Native Method)
    04-03 09:00:47.175 E/AndroidRuntime(2154): 	at java.lang.Class.newInstance(Class.java:1319)
    04-03 09:00:47.175 E/AndroidRuntime(2154): 	at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
    04-03 09:00:47.175 E/AndroidRuntime(2154): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1984)
    04-03 09:00:47.175 E/AndroidRuntime(2154): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2104)
    04-03 09:00:47.175 E/AndroidRuntime(2154): 	at android.app.ActivityThread.access$600(ActivityThread.java:132)
    04-03 09:00:47.175 E/AndroidRuntime(2154): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1157)
    04-03 09:00:47.175 E/AndroidRuntime(2154): 	at android.os.Handler.dispatchMessage(Handler.java:99)
    04-03 09:00:47.175 E/AndroidRuntime(2154): 	at android.os.Looper.loop(Looper.java:137)
    04-03 09:00:47.175 E/AndroidRuntime(2154): 	at android.app.ActivityThread.main(ActivityThread.java:4575)
    04-03 09:00:47.175 E/AndroidRuntime(2154): 	at java.lang.reflect.Method.invokeNative(Native Method)
    04-03 09:00:47.175 E/AndroidRuntime(2154): 	at java.lang.reflect.Method.invoke(Method.java:511)
    04-03 09:00:47.175 E/AndroidRuntime(2154): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
    04-03 09:00:47.175 E/AndroidRuntime(2154): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
    04-03 09:00:47.175 E/AndroidRuntime(2154): 	at dalvik.system.NativeStart.main(Native Method)
    04-03 09:00:47.175 E/AndroidRuntime(2154): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load QtCore: findLibrary returned null
    04-03 09:00:47.175 E/AndroidRuntime(2154): 	at java.lang.Runtime.loadLibrary(Runtime.java:365)
    04-03 09:00:47.175 E/AndroidRuntime(2154): 	at java.lang.System.loadLibrary(System.java:535)
    04-03 09:00:47.175 E/AndroidRuntime(2154): 	at com.xxmassdeveloper.SnowballMania.MainActivity.<clinit>(MainActivity.java:68)
    04-03 09:00:47.175 E/AndroidRuntime(2154): 	... 15 more
    04-03 09:00:47.214 W/ActivityManager(197):   Force finishing activity com.xxmassdeveloper.SnowballMania/.MainActivity
    04-03 09:00:47.902 I/InputReader(197): Reconfiguring input devices.  changes=0x00000004
    04-03 09:00:47.902 I/InputReader(197): Device reconfigured: id=9, name='mxt224_ts_input', surface size is now 480x800, mode is 1
    04-03 09:00:47.929 I/ActivityManager(197): Config changed: {1.0 232mcc11mnc de_AT layoutdir=0 sw320dp w320dp h508dp nrml long port finger -keyb/v/h -nav/h s.38 themeResource=null}
    04-03 09:00:48.152 D/AudioHardware(138): AudioHardware pcm playback is going to standby.
    04-03 09:00:48.152 V/AudioHardware(138): closeMixer_l() mMixerOpenCnt: 1
    04-03 09:00:48.152 D/AudioHardware(138): closePcmOut_l() mPcmOpenCnt: 1
    04-03 09:00:48.179 W/ActivityManager(197): Activity pause timeout for ActivityRecord{40d934f8 com.xxmassdeveloper.SnowballMania/.MainActivity}
    04-03 09:00:48.582 I/ActivityManager(197): Process com.android.email (pid 2059) has died.
    04-03 09:00:48.781 D/dalvikvm(1510): GC_CONCURRENT freed 1670K, 28% free 7083K/9799K, paused 361ms+23ms
    04-03 09:00:49.183 I/ActivityManager(197): Start proc com.android.email for content provider com.android.email/.provider.EmailProvider: pid=2190 uid=10031 gids={3003, 1015}
    04-03 09:00:49.621 I/ActivityManager(197): Process android.process.media (pid 2041) has died.
    04-03 09:00:49.691 I/ActivityThread(2190): Pub com.android.email.provider;com.android.email.notifier: com.android.email.provider.EmailProvider
    04-03 09:00:49.792 I/ActivityThread(2190): Pub com.android.email.attachmentprovider: com.android.email.provider.AttachmentProvider
    04-03 09:00:49.890 W/WindowManager(197): Window freeze timeout expired.
    04-03 09:00:49.890 W/WindowManager(197): Force clearing orientation change: Window{41661468 com.cyanogenmod.trebuchet/com.cyanogenmod.trebuchet.Launcher paused=false}
    04-03 09:00:50.570 D/dalvikvm(28133): GC_CONCURRENT freed 2884K, 59% free 8094K/19655K, paused 17ms+6ms
    04-03 09:00:50.605 I/ActivityManager(197): Process com.facebook.katana (pid 1510) has died.
    04-03 09:00:50.757 W/ActivityManager(197): Scheduling restart of crashed service com.facebook.katana/.service.MediaUploadService in 5000ms
    04-03 09:00:51.210 D/Eas Debug(989): Logging: 
    04-03 09:00:51.566 D/Finsky  (2138): [1] 2.run: Loaded library for account: [ulRdhBjshxlMwJoXAvq19RXOfQ0]
    04-03 09:00:51.566 D/Finsky  (2138): [1] 2.run: Finished loading 1 libraries.
    04-03 09:00:51.726 D/Finsky  (2138): [17474] InAppBillingService.getPreferredAccount: com.whatsapp: Account determined from library ownership - [ulRdhBjshxlMwJoXAvq19RXOfQ0]
    04-03 09:00:51.980 D/Finsky  (2138): [17473] InAppBillingService.getPreferredAccount: com.whatsapp: Account determined from library ownership - [ulRdhBjshxlMwJoXAvq19RXOfQ0]
    04-03 09:00:52.031 D/Finsky  (2138): [17473] InAppBillingService.getPreferredAccount: com.whatsapp: Account determined from library ownership - [ulRdhBjshxlMwJoXAvq19RXOfQ0]
    04-03 09:00:52.414 D/dalvikvm(28133): GC_CONCURRENT freed 1252K, 56% free 8719K/19655K, paused 16ms+13ms
    04-03 09:00:52.671 D/dalvikvm(197): GC_EXPLICIT freed 762K, 38% free 15910K/25607K, paused 27ms+12ms
    04-03 09:00:53.109 D/dalvikvm(197): GC_EXPLICIT freed 109K, 39% free 15812K/25607K, paused 3ms+36ms
    04-03 09:00:53.347 D/dalvikvm(28133): GC_FOR_ALLOC freed 785K, 51% free 9785K/19655K, paused 74ms
    04-03 09:00:53.367 I/dalvikvm-heap(28133): Grow heap (frag case) to 21.015MB for 3405796-byte allocation
    04-03 09:00:53.496 D/dalvikvm(28133): GC_CONCURRENT freed 191K, 33% free 13334K/19655K, paused 15ms+10ms
    04-03 09:00:54.328 I/Email   (2190): ReconcilePopImapAccountsSync: start
    04-03 09:00:54.359 D/AttachmentService(2190): Count: 0
    04-03 09:00:54.441 I/Email   (2190): ReconcilePopImapAccountsSync: done
    04-03 09:00:54.484 D/AttachmentService(2190): *** All done; shutting down service
    04-03 09:00:54.953 I/ActivityManager(197): Process com.android.email (pid 2190) has died.
    04-03 09:00:55.859 I/ActivityManager(197): Start proc com.facebook.katana for service com.facebook.katana/.service.MediaUploadService: pid=2220 uid=10091 gids={3003, 1006, 1015}
    04-03 09:00:55.878 I/ActivityManager(197): Process com.xxmassdeveloper.SnowballMania (pid 2154) has died.
    04-03 09:00:55.902 I/dalvikvm(2220): Turning on JNI app bug workarounds for target SDK version 10...

     

    #4616

    Alex
    Felgo Team

    In normal, you should be able to retrieve a full log even without rooting a device. Your assumption is correct, we do however still not get the cause of the crash. Could you please give the following a try.

    1. Connect the device for which your game crashes

    2. Open a new shell session with the following command (entered in terminal):

    adb shell

    (If adb is not in your path environment you can find it in Android’s SDK installation dir under Android-SDK/platform-tools/)

    3. Perform the following command in the shell session and post us the output:

    ls -l /data/data/com.xxmassdeveloper.SnowballMania/lib/

    Thanks,

    Alex

     

    #4617

    Peter

    I know – but why would I want to have an unrooted Android device? 😉

    Btw, here’s the ls output for SnowballMania/lib/

     

    Peters-MacBook-Pro:platform-tools 9teufel$ ./adb shell
    * daemon not running. starting it now on port 5037 *
    * daemon started successfully *
    shell@android:/ $ ls -l /data/data/com.xxmassdeveloper.SnowballMania/lib/
    -r-xr-xr-x system   root      1394656 2013-04-26 16:51 libCocos2dx.so
    -r-xr-xr-x system   root       111972 2013-04-26 16:51 libFacebookPlugin.so
    -r-xr-xr-x system   root       107876 2013-04-26 16:51 libFlurryPlugin.so
    -r-xr-xr-x system   root        99684 2013-04-26 16:51 libGamecenterPlugin.so
    -r-xr-xr-x system   root      3030024 2013-04-26 16:51 libQtCore.so
    -r-xr-xr-x system   root      1959440 2013-04-26 16:51 libQtDeclarative.so
    -r-xr-xr-x system   root      5773380 2013-04-26 16:51 libQtGui.so
    -r-xr-xr-x system   root      1598700 2013-04-26 16:51 libQtNetwork.so
    -r-xr-xr-x system   root       353564 2013-04-26 16:51 libQtOpenGL.so
    -r-xr-xr-x system   root      1476088 2013-04-26 16:51 libQtScript.so
    -r-xr-xr-x system   root       454908 2013-04-26 16:51 libQtSql.so
    -r-xr-xr-x system   root       165072 2013-04-26 16:51 libQtXml.so
    -r-xr-xr-x system   root      2012480 2013-04-26 16:51 libQtXmlPatterns.so
    -r-xr-xr-x system   root      1593544 2013-04-26 16:51 libVPlay.so
    -r-xr-xr-x system   root       427472 2013-04-26 16:51 libandroid-9.so
    -r-xr-xr-x system   root       631916 2013-04-26 16:51 libgame.so
    shell@android:/ $ 

     

    This output is AFTER the game crashed. After it has crashed further attempts to start the game succeeded.

    I’ll try to get the same output before the crash. I’ll be back soon 🙂

    BR,

    Peter

    #4618

    Peter

    I tried several reinstalls now, uninstalled first, reinstalled and so on…

    But the crash did not occur again, seems to be only randomly that sometimes some libraries are not correctly present after installation?

    #4620

    Alex
    Felgo Team

    pedaone said:

    I know – but why would I want to have an unrooted Android device? 😉

    Sounds reasonable. 😉

    pedaone said:

    This output is AFTER the game crashed. After it has crashed further attempts to start the game succeeded.

    I’ll try to get the same output before the crash. I’ll be back soon 🙂

    The output should be the same, as the libraries get copied to this directory after installing the APK. Looks like all libraries are present, the bundled (concerned) library is also fine what I can say from the shasum. We’ll have a look at Google’s mailing lists and try to get a device on which the crash occurs as next steps…

    Cheers,

    Alex

    #4656

    Philipp

    Hi!

    Any progress with this bug?

    #4660

    Alex
    Felgo Team

    Sorry, not yet, we are still trying to find a device on which the crash is actually happening here. Did you get any further crash reports (phone models, Android versions)?

    Cheers,

    Alex

    #5072

    loma_lis

    Hi!

     

    I tried the first time to build my app on android.

     

    On Desktop everthing works fine. On Android Phone, it crashes at start.

     

    What did i make wrong?

     

    Log:

     

     

     

    06-16 20:40:38.379: W/Qt(13269): WARNING: QApplication was not created in the main() thread.
    06-16 20:40:38.379: D/Qt(13269): QAndroidPlatformIntegrationPlugin::create “android”
    06-16 20:40:38.379: D/Qt(13269): QAndroidPlatformIntegration::QAndroidPlatformIntegration(): creating QAndroidPlatformScreen => Using Raster (Software) for painting
    06-16 20:40:38.379: D/Qt(13269): QAndroidPlatformScreen::QAndroidPlatformScreen():QFbScreen()
    06-16 20:40:38.449: D/Qt(13269): Set main qml file to “main.qml”
    06-16 20:40:38.779: W/Qt(13269): file::/qml/main.qml:30:5: Type HuntingScene unavailable
    06-16 20:40:38.779: W/Qt(13269): HuntingScene
    06-16 20:40:38.779: W/Qt(13269): ^
    06-16 20:40:38.779: W/Qt(13269): file::/qml/scenes/HuntingScene.qml:173:5: Type Hunter unavailable
    06-16 20:40:38.779: W/Qt(13269): Hunter
    06-16 20:40:38.779: W/Qt(13269): ^
    06-16 20:40:38.779: W/Qt(13269): file::/qml/entities/Hunter.qml:19:5: SpriteSequenceFromFile is not a type
    06-16 20:40:38.779: W/Qt(13269): SpriteSequenceFromFile
    06-16 20:40:38.779: W/Qt(13269): ^
    06-16 20:40:38.779: W/Qt(13269): WARNING: VPlayApplication: no GameWindow item found, so could not set the rootGameWindow contextProperty as well!
    06-16 20:40:38.779: W/Qt(13269): WARNING: VPlayApplication: the root object was not found, thus the size of it can not be set to the display size retrieved from cocos!
    06-16 20:40:38.789: A/libc(13269): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 13298 (Thread-2132)

     

     

Viewing 15 posts - 1 through 15 (of 18 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded