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 app crashing at startup
Forum Updated to NodeBB v4.3 + New Features

Android app crashing at startup

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 4 Posters 899 Views 1 Watching
  • 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.
  • C Offline
    C Offline
    Creaperdown
    wrote on last edited by Creaperdown
    #1

    I am trying to bring my desktop application to Android. I managed to get it to build and run, but it crashes on startup. I get the following Application Output:

    E Zygote  : isWhitelistProcess - Process is Whitelisted
    E Zygote  : accessInfo : 1
    I .example.libru: Late-enabling -Xcheck:jni
    E .example.libru: Unknown bits set in runtime_flags: 0x8000
    D ActivityThread: setConscryptValidator
    D ActivityThread: setConscryptValidator - put
    W System  : ClassLoader referenced unknown path:
    W .example.libru: Accessing hidden method Landroid/view/Window;->getInsetsController()Landroid/view/WindowInsetsController; (blacklist, linking, denied)
    W .example.libru: Accessing hidden method Landroid/content/ContextWrapper;->getDisplay()Landroid/view/Display; (greylist, linking, allowed)
    D PhoneWindow: forceLight changed to true [] from com.android.internal.policy.PhoneWindow.updateForceLightNavigationBar:4274 com.android.internal.policy.DecorView.updateColorViews:1547 com.android.internal.policy.PhoneWindow.dispatchWindowAttributesChanged:3252 android.view.Window.setFlags:1153 com.android.internal.policy.PhoneWindow.generateLayout:2474
    D libEGL  : loaded /vendor/lib64/egl/libGLES_mali.so
    I MultiWindowDecorSupport: [INFO] isPopOver = false
    I MultiWindowDecorSupport: updateCaptionType >> DecorView@e454cbc[], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true
    D MultiWindowDecorSupport: setCaptionType = 0, DecorView = DecorView@e454cbc[]
    W linker  : Warning: "/data/app/org.qtproject.example.librum-SAptZzZVIg56T03BNiBvVA==/lib/arm64/libc++_shared.so" unused DT entry: unknown processor-specific (type 0x70000001 arg 0x0) (ignoring)
    I QtCore  : Start
    W linker  : Warning: "/data/app/org.qtproject.example.librum-SAptZzZVIg56T03BNiBvVA==/lib/arm64/libmupdfcpp.so" has unsupported flags DT_FLAGS_1=0x81 (ignoring unsupported flags)
    I Qt      : qt started
    I ViewRootImpl@30f5bd8[QtActivity]: setView = com.android.internal.policy.DecorView@e454cbc TM=true MM=false
    I ViewRootImpl@30f5bd8[QtActivity]: Relayout returned: old=(0,0,1080,2220) new=(0,0,1080,2220) req=(1080,2220)0 dur=6 res=0x7 s={true 543332982784} ch=true
    I mali_winsys: new_window_surface() [1080x2220] return: 0x3000
    W Gralloc3: mapper 3.x is not supported
    I gralloc : Arm Module v1.0
    I ViewRootImpl@30f5bd8[QtActivity]: MSG_WINDOW_FOCUS_CHANGED 1 1
    D InputMethodManager: prepareNavigationBarInfo() DecorView@e454cbc[QtActivity]
    D InputMethodManager: getNavigationBarColor() -855310
    D InputMethodManager: prepareNavigationBarInfo() DecorView@e454cbc[QtActivity]
    D InputMethodManager: getNavigationBarColor() -855310
    V InputMethodManager: Starting input: tba=org.qtproject.example.librum ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
    D InputMethodManager: startInputInner - Id : 0
    I InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
    I ViewRootImpl@30f5bd8[QtActivity]: MSG_RESIZED: frame=(0,0,1080,2220) ci=(0,72,0,144) vi=(0,72,0,144) or=1
    D InputMethodManager: prepareNavigationBarInfo() DecorView@e454cbc[QtActivity]
    D InputMethodManager: getNavigationBarColor() -855310
    V InputMethodManager: Starting input: tba=org.qtproject.example.librum ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
    D InputMethodManager: startInputInner - Id : 0
    D NetworkSecurityConfig: No Network Security Config specified, using platform default
    W .example.libru: Accessing hidden method Landroid/net/NetworkRequest$Builder;->clearCapabilities()Landroid/net/NetworkRequest$Builder; (greylist, linking, allowed)
    D ConnectivityManager: requestNetwork; CallingUid : 10444, CallingPid : 17304
    I ViewRootImpl@30f5bd8[QtActivity]: MSG_WINDOW_FOCUS_CHANGED 0 1
    D InputMethodManager: prepareNavigationBarInfo() DecorView@e454cbc[QtActivity]
    D InputMethodManager: getNavigationBarColor() -855310
    D InputTransport: Input channel destroyed: 'ClientS', fd=68
    I mali_egl: eglDestroySurface() in
    I mali_winsys: delete_surface() [1080x2220] return
    I mali_egl: eglDestroySurface() out
    W libEGL  : EGLNativeWindowType 0x7f0fea0c10 disconnect failed
    I ViewRootImpl@30f5bd8[QtActivity]: Relayout returned: old=(0,0,1080,2220) new=(0,0,1080,2220) req=(1080,2220)8 dur=6 res=0x5 s={false 0} ch=true
    I ViewRootImpl@30f5bd8[QtActivity]: stopped(true) old=false
    D ConnectivityManager: unregisterNetworkCallback; CallingUid : 10444, CallingPid : 17304
    11:04:14: 
    
    "org.qtproject.example.librum" died.
    

    I am not able to see what causes the crash here, does someone have an idea?

    jsulmJ TomZT 2 Replies Last reply
    0
    • C Creaperdown

      I am trying to bring my desktop application to Android. I managed to get it to build and run, but it crashes on startup. I get the following Application Output:

      E Zygote  : isWhitelistProcess - Process is Whitelisted
      E Zygote  : accessInfo : 1
      I .example.libru: Late-enabling -Xcheck:jni
      E .example.libru: Unknown bits set in runtime_flags: 0x8000
      D ActivityThread: setConscryptValidator
      D ActivityThread: setConscryptValidator - put
      W System  : ClassLoader referenced unknown path:
      W .example.libru: Accessing hidden method Landroid/view/Window;->getInsetsController()Landroid/view/WindowInsetsController; (blacklist, linking, denied)
      W .example.libru: Accessing hidden method Landroid/content/ContextWrapper;->getDisplay()Landroid/view/Display; (greylist, linking, allowed)
      D PhoneWindow: forceLight changed to true [] from com.android.internal.policy.PhoneWindow.updateForceLightNavigationBar:4274 com.android.internal.policy.DecorView.updateColorViews:1547 com.android.internal.policy.PhoneWindow.dispatchWindowAttributesChanged:3252 android.view.Window.setFlags:1153 com.android.internal.policy.PhoneWindow.generateLayout:2474
      D libEGL  : loaded /vendor/lib64/egl/libGLES_mali.so
      I MultiWindowDecorSupport: [INFO] isPopOver = false
      I MultiWindowDecorSupport: updateCaptionType >> DecorView@e454cbc[], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true
      D MultiWindowDecorSupport: setCaptionType = 0, DecorView = DecorView@e454cbc[]
      W linker  : Warning: "/data/app/org.qtproject.example.librum-SAptZzZVIg56T03BNiBvVA==/lib/arm64/libc++_shared.so" unused DT entry: unknown processor-specific (type 0x70000001 arg 0x0) (ignoring)
      I QtCore  : Start
      W linker  : Warning: "/data/app/org.qtproject.example.librum-SAptZzZVIg56T03BNiBvVA==/lib/arm64/libmupdfcpp.so" has unsupported flags DT_FLAGS_1=0x81 (ignoring unsupported flags)
      I Qt      : qt started
      I ViewRootImpl@30f5bd8[QtActivity]: setView = com.android.internal.policy.DecorView@e454cbc TM=true MM=false
      I ViewRootImpl@30f5bd8[QtActivity]: Relayout returned: old=(0,0,1080,2220) new=(0,0,1080,2220) req=(1080,2220)0 dur=6 res=0x7 s={true 543332982784} ch=true
      I mali_winsys: new_window_surface() [1080x2220] return: 0x3000
      W Gralloc3: mapper 3.x is not supported
      I gralloc : Arm Module v1.0
      I ViewRootImpl@30f5bd8[QtActivity]: MSG_WINDOW_FOCUS_CHANGED 1 1
      D InputMethodManager: prepareNavigationBarInfo() DecorView@e454cbc[QtActivity]
      D InputMethodManager: getNavigationBarColor() -855310
      D InputMethodManager: prepareNavigationBarInfo() DecorView@e454cbc[QtActivity]
      D InputMethodManager: getNavigationBarColor() -855310
      V InputMethodManager: Starting input: tba=org.qtproject.example.librum ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
      D InputMethodManager: startInputInner - Id : 0
      I InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
      I ViewRootImpl@30f5bd8[QtActivity]: MSG_RESIZED: frame=(0,0,1080,2220) ci=(0,72,0,144) vi=(0,72,0,144) or=1
      D InputMethodManager: prepareNavigationBarInfo() DecorView@e454cbc[QtActivity]
      D InputMethodManager: getNavigationBarColor() -855310
      V InputMethodManager: Starting input: tba=org.qtproject.example.librum ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
      D InputMethodManager: startInputInner - Id : 0
      D NetworkSecurityConfig: No Network Security Config specified, using platform default
      W .example.libru: Accessing hidden method Landroid/net/NetworkRequest$Builder;->clearCapabilities()Landroid/net/NetworkRequest$Builder; (greylist, linking, allowed)
      D ConnectivityManager: requestNetwork; CallingUid : 10444, CallingPid : 17304
      I ViewRootImpl@30f5bd8[QtActivity]: MSG_WINDOW_FOCUS_CHANGED 0 1
      D InputMethodManager: prepareNavigationBarInfo() DecorView@e454cbc[QtActivity]
      D InputMethodManager: getNavigationBarColor() -855310
      D InputTransport: Input channel destroyed: 'ClientS', fd=68
      I mali_egl: eglDestroySurface() in
      I mali_winsys: delete_surface() [1080x2220] return
      I mali_egl: eglDestroySurface() out
      W libEGL  : EGLNativeWindowType 0x7f0fea0c10 disconnect failed
      I ViewRootImpl@30f5bd8[QtActivity]: Relayout returned: old=(0,0,1080,2220) new=(0,0,1080,2220) req=(1080,2220)8 dur=6 res=0x5 s={false 0} ch=true
      I ViewRootImpl@30f5bd8[QtActivity]: stopped(true) old=false
      D ConnectivityManager: unregisterNetworkCallback; CallingUid : 10444, CallingPid : 17304
      11:04:14: 
      
      "org.qtproject.example.librum" died.
      

      I am not able to see what causes the crash here, does someone have an idea?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Creaperdown Debugger could provide more hints

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      C 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Creaperdown Debugger could provide more hints

        C Offline
        C Offline
        Creaperdown
        wrote on last edited by Creaperdown
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • C Creaperdown

          I am trying to bring my desktop application to Android. I managed to get it to build and run, but it crashes on startup. I get the following Application Output:

          E Zygote  : isWhitelistProcess - Process is Whitelisted
          E Zygote  : accessInfo : 1
          I .example.libru: Late-enabling -Xcheck:jni
          E .example.libru: Unknown bits set in runtime_flags: 0x8000
          D ActivityThread: setConscryptValidator
          D ActivityThread: setConscryptValidator - put
          W System  : ClassLoader referenced unknown path:
          W .example.libru: Accessing hidden method Landroid/view/Window;->getInsetsController()Landroid/view/WindowInsetsController; (blacklist, linking, denied)
          W .example.libru: Accessing hidden method Landroid/content/ContextWrapper;->getDisplay()Landroid/view/Display; (greylist, linking, allowed)
          D PhoneWindow: forceLight changed to true [] from com.android.internal.policy.PhoneWindow.updateForceLightNavigationBar:4274 com.android.internal.policy.DecorView.updateColorViews:1547 com.android.internal.policy.PhoneWindow.dispatchWindowAttributesChanged:3252 android.view.Window.setFlags:1153 com.android.internal.policy.PhoneWindow.generateLayout:2474
          D libEGL  : loaded /vendor/lib64/egl/libGLES_mali.so
          I MultiWindowDecorSupport: [INFO] isPopOver = false
          I MultiWindowDecorSupport: updateCaptionType >> DecorView@e454cbc[], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true
          D MultiWindowDecorSupport: setCaptionType = 0, DecorView = DecorView@e454cbc[]
          W linker  : Warning: "/data/app/org.qtproject.example.librum-SAptZzZVIg56T03BNiBvVA==/lib/arm64/libc++_shared.so" unused DT entry: unknown processor-specific (type 0x70000001 arg 0x0) (ignoring)
          I QtCore  : Start
          W linker  : Warning: "/data/app/org.qtproject.example.librum-SAptZzZVIg56T03BNiBvVA==/lib/arm64/libmupdfcpp.so" has unsupported flags DT_FLAGS_1=0x81 (ignoring unsupported flags)
          I Qt      : qt started
          I ViewRootImpl@30f5bd8[QtActivity]: setView = com.android.internal.policy.DecorView@e454cbc TM=true MM=false
          I ViewRootImpl@30f5bd8[QtActivity]: Relayout returned: old=(0,0,1080,2220) new=(0,0,1080,2220) req=(1080,2220)0 dur=6 res=0x7 s={true 543332982784} ch=true
          I mali_winsys: new_window_surface() [1080x2220] return: 0x3000
          W Gralloc3: mapper 3.x is not supported
          I gralloc : Arm Module v1.0
          I ViewRootImpl@30f5bd8[QtActivity]: MSG_WINDOW_FOCUS_CHANGED 1 1
          D InputMethodManager: prepareNavigationBarInfo() DecorView@e454cbc[QtActivity]
          D InputMethodManager: getNavigationBarColor() -855310
          D InputMethodManager: prepareNavigationBarInfo() DecorView@e454cbc[QtActivity]
          D InputMethodManager: getNavigationBarColor() -855310
          V InputMethodManager: Starting input: tba=org.qtproject.example.librum ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
          D InputMethodManager: startInputInner - Id : 0
          I InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
          I ViewRootImpl@30f5bd8[QtActivity]: MSG_RESIZED: frame=(0,0,1080,2220) ci=(0,72,0,144) vi=(0,72,0,144) or=1
          D InputMethodManager: prepareNavigationBarInfo() DecorView@e454cbc[QtActivity]
          D InputMethodManager: getNavigationBarColor() -855310
          V InputMethodManager: Starting input: tba=org.qtproject.example.librum ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
          D InputMethodManager: startInputInner - Id : 0
          D NetworkSecurityConfig: No Network Security Config specified, using platform default
          W .example.libru: Accessing hidden method Landroid/net/NetworkRequest$Builder;->clearCapabilities()Landroid/net/NetworkRequest$Builder; (greylist, linking, allowed)
          D ConnectivityManager: requestNetwork; CallingUid : 10444, CallingPid : 17304
          I ViewRootImpl@30f5bd8[QtActivity]: MSG_WINDOW_FOCUS_CHANGED 0 1
          D InputMethodManager: prepareNavigationBarInfo() DecorView@e454cbc[QtActivity]
          D InputMethodManager: getNavigationBarColor() -855310
          D InputTransport: Input channel destroyed: 'ClientS', fd=68
          I mali_egl: eglDestroySurface() in
          I mali_winsys: delete_surface() [1080x2220] return
          I mali_egl: eglDestroySurface() out
          W libEGL  : EGLNativeWindowType 0x7f0fea0c10 disconnect failed
          I ViewRootImpl@30f5bd8[QtActivity]: Relayout returned: old=(0,0,1080,2220) new=(0,0,1080,2220) req=(1080,2220)8 dur=6 res=0x5 s={false 0} ch=true
          I ViewRootImpl@30f5bd8[QtActivity]: stopped(true) old=false
          D ConnectivityManager: unregisterNetworkCallback; CallingUid : 10444, CallingPid : 17304
          11:04:14: 
          
          "org.qtproject.example.librum" died.
          

          I am not able to see what causes the crash here, does someone have an idea?

          TomZT Offline
          TomZT Offline
          TomZ
          wrote on last edited by
          #4

          @Creaperdown we can't help you with that remotely.

          I once had an issue where moving from gcc to clang exposed a bug (in printf usage!) which clang aborted on.
          As such it crashed on android and not on desktop.

          So, keep an open mind and figure out what is going on the hard way :)

          C 1 Reply Last reply
          0
          • TomZT TomZ

            @Creaperdown we can't help you with that remotely.

            I once had an issue where moving from gcc to clang exposed a bug (in printf usage!) which clang aborted on.
            As such it crashed on android and not on desktop.

            So, keep an open mind and figure out what is going on the hard way :)

            C Offline
            C Offline
            Creaperdown
            wrote on last edited by
            #5

            @TomZ I think this might be more precise: https://forum.qt.io/topic/152468/1-warning-warning-qml-import-could-not-be-resolved-in-any-of-the-import-paths-x

            J.HilkJ 1 Reply Last reply
            0
            • C Creaperdown

              @TomZ I think this might be more precise: https://forum.qt.io/topic/152468/1-warning-warning-qml-import-could-not-be-resolved-in-any-of-the-import-paths-x

              J.HilkJ Online
              J.HilkJ Online
              J.Hilk
              Moderators
              wrote on last edited by
              #6

              @Creaperdown you're trying to do network stuff, is your manifest file correctly setup and do you do runtime permission requests before accessing any related functionality ?


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              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