Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
None
-
5.6.0, 5.9.1
Description
This bug seems to be quite nasty as I've been able to reproduce it ONLY on a specific device, among the 15 at my hand. On ALL the other devices tested the code works perfectly fine.
It is sufficient to create a new project and run it on the device. If the user puts the application in background (HOME button) and brings it back, the application crashes with an heap corruption.
Execution trace:
Starting remote process.E/Zygote ( 2291): v2 I/libpersona( 2291): KNOX_SDCARD checking this for 10113 I/libpersona( 2291): KNOX_SDCARD not a persona I/SELinux ( 2291): Function: selinux_compare_spd_ram , priority [2] , priority version is VE=SEPF_SM-G388F_5.1.1_0045 I/ActivityManager( 3145): Start proc 2291:org.qtproject.example.TEST/u0a113 for activity org.qtproject.example.TEST/org.qtproject.qt5.android.bindings.QtActivity E/SELinux ( 2291): [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL I/art ( 2291): Late-enabling -Xcheck:jni D/TimaKeyStoreProvider( 2291): in addTimaSignatureService D/TimaKeyStoreProvider( 2291): TimaSignature is unavailable D/ActivityThread( 2291): Added TimaKesytore provider W/ResourcesManager( 2291): getTopLevelResources: null for user 0 W/ResourcesManager( 2291): getTopLevelResources: null for user 0 D/DisplayManager( 2291): DisplayManager() D/PhoneWindow( 2291): *FMB* installDecor mIsFloating : false D/PhoneWindow( 2291): *FMB* installDecor flags : 8454400 I/Qt ( 2291): qt start D/ ( 2291): (null):0 ((null)): QML debugging is enabled. Only use this in a safe environment. D/ViewRootImpl( 2291): Buffer Count from app info with ::-1 && -1 for :: org.qtproject.example.TEST from View :: -1 DBQ Enabled ::false false D/OpenGLRenderer( 2291): Use EGL_SWAP_BEHAVIOR_PRESERVED: true D/PhoneWindow( 2291): *FMB* isFloatingMenuEnabled mFloatingMenuBtn : null D/PhoneWindow( 2291): *FMB* isFloatingMenuEnabled return false D/InputDispatcher( 3145): Focus entered window: 2291 I/OpenGLRenderer( 2291): Initialized EGL, version 1.4 D/GC ( 2291): <tid=2433> OES20 ===> GC Version : GC version rls_5011p6_GC5.5.14 D/GC ( 2291): D/OpenGLRenderer( 2291): Enabling debug mode 0 I/Timeline( 2291): Timeline: Activity_idle id: android.os.BinderProxy@2da9576b time:24791008 D/GC ( 2291): <tid=2434> OES20 ===> GC Version : GC version rls_5011p6_GC5.5.14 D/GC ( 2291): D/SRIB_DBQ( 2291): SurfaceView:updateWindow: viewRoot.sSVBufferCount=-1 mSVBufferCount=-1 D/InputDispatcher( 3145): Focus left window: 2291 D/SRIB_DBQ( 2291): SurfaceView:updateWindow: viewRoot.sSVBufferCount=-1 mSVBufferCount=-1 W/libTEST.so( 2291): (null):0 ((null)): Can't find surface 1 D/InputDispatcher( 3145): Focus entered window: 2291 W/libTEST.so( 2291): (null):0 ((null)): Can't find surface 1 D/SRIB_DBQ( 2291): SurfaceView:updateWindow: viewRoot.sSVBufferCount=-1 mSVBufferCount=-1 E/Surface ( 2291): IGraphicBufferProducer::setBufferCount(0) returned No such device I/Timeline( 2291): Timeline: Activity_idle id: android.os.BinderProxy@2da9576b time:24810533 I/InputDispatcher( 3145): Delivering touch to (2291): action: 0x0, toolType: 1 D/ViewRootImpl( 2291): ViewPostImeInputStage ACTION_DOWN I/InputDispatcher( 3145): Delivering touch to (2291): action: 0x1, toolType: 1 D/InputDispatcher( 3145): Focus left window: 2291 D/SRIB_DBQ( 2291): SurfaceView:updateWindow: viewRoot.sSVBufferCount=-1 mSVBufferCount=-1 W/libTEST.so( 2291): (null):0 ((null)): Can't find surface 2 D/InputDispatcher( 3145): Focus entered window: 2291 W/libTEST.so( 2291): (null):0 ((null)): Can't find surface 2 D/SRIB_DBQ( 2291): SurfaceView:updateWindow: viewRoot.sSVBufferCount=-1 mSVBufferCount=-1 E/Surface ( 2291): IGraphicBufferProducer::setBufferCount(0) returned No such device F/libc ( 2291): heap corruption detected by dlmalloc_real F/libc ( 2291): Fatal signal 6 (SIGABRT), code -6 in tid 2291 (example.TEST) I/DEBUG ( 2517): pid: 2291, tid: 2291, name: example.TEST >>> org.qtproject.example.TEST <<< D/InputDispatcher( 3145): Focus left window: 2291 E/lowmemorykiller( 2507): Error writing /proc/2291/oom_score_adj; errno=22 W/InputMethodManagerService( 3145): Got RemoteException sending setActive(false) notification to pid 2291 uid 10113 I/Zygote ( 2533): Process 2291 exited due to signal (6) I/ActivityManager( 3145): Process org.qtproject.example.TEST (pid 2291)(adj 1) has died(392,441) "org.qtproject.example.TEST" died.
5.5.1 is UNEFFECTED: the code works fine and no crash occurs. I've also noted that context switch between app and OS seems to work smoother on 5.5.1, don't know if that's a symptom or a cause, though.
Attachments
Issue Links
- relates to
-
QTBUG-55392 Android: [Reg 5.5 -> 5.6] Crash when getting back to Qt app on Samsung XCover 3 (SM-G388F, Android 5.1.1)
- Closed