Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Android QtService crashes just calling startService();
Forum Updated to NodeBB v4.3 + New Features

Android QtService crashes just calling startService();

Scheduled Pinned Locked Moved Solved Mobile and Embedded
androidservice
3 Posts 2 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    delamor
    wrote on 24 Sept 2018, 15:55 last edited by delamor
    #1

    I've a class that extends from QtService, it's set on AndroidManifest and all necesities covered (apparently) but while calling it for startService(); not matter if from C++ side or Java side, it crashes. with traces that for mee are looking more from Qt internally than my code :(

    09-24 15:43:45.867 16618-16618/com.prueberia.prueba:qt A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 16618 (eria.prueba:qt)
    09-24 15:43:45.968 253-253/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
        Build fingerprint: 'Android/rk3399_box/rk3399_box:6.0.1/MXC89L/hotack03091500:userdebug/test-keys'
        Revision: '0'
        ABI: 'arm'
        pid: 16618, tid: 16618, name: eria.prueba:qt  >>> com.prueberia.prueba:qt <<<
        signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
    09-24 15:43:45.991 253-253/? A/DEBUG: Abort message: 'art/runtime/java_vm_ext.cc:410] JNI DETECTED ERROR IN APPLICATION: GetMethodID received NULL jclass'
            r0 00000000  r1 000040ea  r2 00000006  r3 f775fb7c
            r4 f775fb84  r5 f775fb34  r6 00000000  r7 0000010c
            r8 f5454378  r9 ab35ed58  sl 00000001  fp 00000001
            ip 00000006  sp ffd0f5c0  lr f74e8ec9  pc f74eb2b8  cpsr 40070010
    09-24 15:43:46.000 253-253/? A/DEBUG: backtrace:
            #00 pc 000442b8  /system/lib/libc.so (tgkill+12)
            #01 pc 00041ec5  /system/lib/libc.so (pthread_kill+32)
            #02 pc 0001badf  /system/lib/libc.so (raise+10)
            #03 pc 00018c91  /system/lib/libc.so (__libc_android_abort+34)
            #04 pc 00016784  /system/lib/libc.so (abort+4)
            #05 pc 00333e49  /system/lib/libart.so (_ZN3art7Runtime5AbortEv+228)
            #06 pc 000f4f3b  /system/lib/libart.so (_ZN3art10LogMessageD2Ev+2226)
            #07 pc 0025af1f  /system/lib/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+1550)
            #08 pc 0025b2cd  /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9__va_list+64)
    09-24 15:43:46.001 253-253/? A/DEBUG:     #09 pc 000fdb11  /system/lib/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+32)
            #10 pc 001022d7  /system/lib/libart.so (_ZN3art11ScopedCheck5CheckERNS_18ScopedObjectAccessEbPKcPNS_12JniValueTypeE.constprop.95+2690)
            #11 pc 0011386d  /system/lib/libart.so (_ZN3art8CheckJNI11GetMethodIDEP7_JNIEnvP7_jclassPKcS6_+396)
            #12 pc 00156ca1  /data/app/com.displaynote.montage-2/lib/arm/libQt5Core.so
            #13 pc 001589c9  /data/app/com.displaynote.montage-2/lib/arm/libQt5Core.so
            #14 pc 00159243  /data/app/com.displaynote.montage-2/lib/arm/libQt5Core.so (_ZNK17QJNIObjectPrivate17callObjectMethodVEPKcS1_St9__va_list+58)
            #15 pc 0000c0db  /data/app/com.displaynote.montage-2/lib/arm/libQt5AndroidExtras.so (_ZNK17QAndroidJniObject16callObjectMethodEPKcS1_z+34)
    

    If someone can bring a bit of light here it would be great as I'm a bit desperate with that :(

    [0_1537804333529_crash opening service](Uploading 100%)

    1 Reply Last reply
    0
    • A Offline
      A Offline
      ad1170
      wrote on 16 Oct 2018, 08:02 last edited by
      #2

      Hi, it seems that your JRE (ART) cant find a jclass and in the subsequent code you try to access this NULL class.
      See 'art/runtime/java_vm_ext.cc:410] JNI DETECTED ERROR IN APPLICATION: GetMethodID...

      1 Reply Last reply
      0
      • D Offline
        D Offline
        delamor
        wrote on 4 Dec 2018, 10:36 last edited by
        #3

        It was me doing stupid things on JNI_Onload for application, and being called also for service; then crash.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved