Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QT background app crashes after 1 minute



  • Hi,

    I'm trying to use a QtHttpServer as Android background application, but it crashes from 60 to 63 seconds after it's start. The crash is not related to running in the background nor build type though. None error is shown in Qt Creator's Application Output window when it crashes, but the Android bug report shows as follows:

    * * * * * * * * * * * * * * * *
    Build fingerprint: 'Xiaomi/sagit/sagit:8.0.0/OPR1.170623.027/V10.3.4.0.OCAMIXM:user/release-keys'
    Revision: '0'
    ABI: 'arm'
    pid: 11666, tid: 11685, name: qtMainLoopThrea >>> com.aditum.payment:qt <<<
    signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
    Cause: null pointer dereference
    r0 cd7eb928 r1 ec188b66 r2 00000002 r3 00000000
    r4 cd7eb9bc r5 00000000 r6 eba3c1c8 r7 cd7eb940
    r8 00000002 r9 eba3c1c8 sl cd7eb964 fp e082bef8
    ip cd5edf04 sp cd7eb928 lr cd28c749 pc cc90e7fa cpsr 600f0030
    
    backtrace:
    #00 pc 000457fa /data/app/com.aditum.payment-OhhFddvrVBIk5QaKdyCJCQ==/lib/arm/libAditumPayment.so (_ZN13AditumPaymentD1Ev+33)
    #01 pc 00025559 /data/app/com.aditum.payment-OhhFddvrVBIk5QaKdyCJCQ==/lib/arm/libAditumPaymentServer.so (_ZN18PaymentSdkServerV1D1Ev+32)
    

    Machine info:

    • Qt version: 12.4.0
    • NDK: r19c
    • JDK: jdk1.8.0_211
    • uname -a: Linux rohanaceres 4.19.49-1-MANJARO #1 SMP PREEMPT Sun Jun 9 20:24:20 UTC 2019 x86_64 GNU/Linux
    • QT env vars: https://imge.to/i/4HYUw

    Smartphone info (about): https://imge.to/i/4HxDR


    Just in case, my Application Output:

    I zygote  : Late-enabling -Xcheck:jni
    W zygote  : Using default instruction set features for ARM CPU variant (cortex-a9) using conservative defaults
    W ResourceType: No package identifier when getting name for resource number 0x00000000
    W ResourceType: No package identifier when getting name for resource number 0x00000000
    W System.err: org.xml.sax.SAXParseException: expected: '>' actual: '"' (position:END_TAG </colar_tab_settings_text_color_normal_light>@29:112 in java.io.InputStreamReader@1dd3fa9)
    W System.err: 	at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:147)
    W System.err: 	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:107)
    W System.err: 	at miui.content.res.ThemeValues.parseThemeValues(ThemeValues.java:124)
    W System.err: 	at miui.content.res.ThemeResources$LoadThemeConfigHelper.load(ThemeResources.java:432)
    W System.err: 	at miui.content.res.ThemeZipFile.loadThemeConfigInner(ThemeZipFile.java:272)
    W System.err: 	at miui.content.res.ThemeZipFile.loadThemeConfig(ThemeZipFile.java:254)
    W System.err: 	at miui.content.res.ThemeResources$LoadThemeConfigHelper.newTarget(ThemeResources.java:425)
    W System.err: 	at miui.content.res.ThemeResources.loadThemeValues(ThemeResources.java:444)
    W System.err: 	at miui.content.res.ThemeResources.checkUpdate(ThemeResources.java:223)
    W System.err: 	at miui.content.res.ThemeResourcesSystem.checkUpdate(ThemeResourcesSystem.java:92)
    W System.err: 	at miui.content.res.ThemeResources.getSystem(ThemeResources.java:123)
    W System.err: 	at miui.content.res.ThemeResourcesPackage.mergeThemeValues(ThemeResourcesPackage.java:170)
    W System.err: 	at android.content.res.MiuiResourcesImpl.loadValues(MiuiResourcesImpl.java:395)
    W System.err: 	at android.content.res.MiuiResourcesImpl.resolveOverlayValue(MiuiResourcesImpl.java:113)
    W System.err: 	at android.content.res.MiuiResourcesImpl.getValue(MiuiResourcesImpl.java:95)
    W System.err: 	at android.content.res.Resources.getBoolean(Resources.java:1070)
    W System.err: 	at android.view.Window.getDefaultFeatures(Window.java:1673)
    W System.err: 	at android.view.Window.<init>(Window.java:674)
    W System.err: 	at com.android.internal.policy.PhoneWindow.<init>(PhoneWindow.java:302)
    W System.err: 	at com.android.internal.policy.PhoneWindow.<init>(PhoneWindow.java:311)
    W System.err: 	at android.app.Activity.attach(Activity.java:6988)
    W System.err: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2789)
    W System.err: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2931)
    W System.err: 	at android.app.ActivityThread.-wrap11(Unknown Source:0)
    W System.err: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1620)
    W System.err: 	at android.os.Handler.dispatchMessage(Handler.java:105)
    W System.err: 	at android.os.Looper.loop(Looper.java:176)
    W System.err: 	at android.app.ActivityThread.main(ActivityThread.java:6701)
    W System.err: 	at java.lang.reflect.Method.invoke(Native Method)
    W System.err: 	at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:249)
    W System.err: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:783)
    I zygote  : Do partial code cache collection, code=30KB, data=22KB
    I zygote  : After code cache collection, code=30KB, data=22KB
    I zygote  : Increasing code cache capacity to 128KB
    D AccessibilityManager: AccessibilityManager status: mPackageName = com.aditum.payment, mOptimizeEnabled = false, mIsEnabled = true, mIsUiAutomationEnabled = false, mIsInterestedPackage =true
    D OpenGLRenderer: HWUI GL Pipeline
    I Toast   : Show toast from OpPackageName:com.aditum.payment, PackageName:com.aditum.payment
    I Adreno  : QUALCOMM build                   : 9c9b012, I92eb381bc9
    I Adreno  : Build Date                       : 12/31/17
    I Adreno  : OpenGL ES Shader Compiler Version: EV031.22.00.01
    I Adreno  : Local Branch                     :
    I Adreno  : Remote Branch                    : refs/tags/AU_LINUX_ANDROID_LA.UM.6.4.R1.08.00.00.309.049
    I Adreno  : Remote Branch                    : NONE
    I Adreno  : Reconstruct Branch               : NOTHING
    I vndksupport: sphal namespace is not configured for this process. Loading /vendor/lib/hw/gralloc.msm8998.so from the current namespace instead.
    I Adreno  : PFP: 0x005ff087, ME: 0x005ff063
    I OpenGLRenderer: Initialized EGL, version 1.4
    D OpenGLRenderer: Swap behavior 2
    I vndksupport: sphal namespace is not configured for this process. Loading /vendor/lib/hw/gralloc.msm8998.so from the current namespace instead.
    

    Regards.


Log in to reply