Android app crashing at startup
-
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?
-
@Creaperdown Debugger could provide more hints
-
This post is deleted!
-
@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 :)
-
@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
-
@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 ?