Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-133270

[Not always reproducible] QDialog crashes app on Android

    XMLWordPrintable

Details

    • Android

    Description

      First thing first, it is not something reliably reproducible. The original reporter said that it can be reproduced on a "Lenovo Tab P11 (2nd Gen) Android 14" but not on a "Samsung S23 Ultra Android 14". I don't have either of the devices, so I tried on "Lenovo Tab P11 Pro" (not able to upgrade to Android 14 so it stays at Android 11 though) and an Android 14 emulator (Pixel 8 Pro). But I couldn't reproduce the problem whatsoever.

      Anyway, it is said that once launch our "standard dialog example":
      https://doc.qt.io/qt-6/qtwidgets-dialogs-standarddialogs-example.html
      and open a QFileDialog, it's going to crash the app with such trace:

      D/RefBase : #00 pc 0000b1af /system/lib/libutils.so (android::RefBase::~RefBase()+106) (BuildId: 4a895f85a6042ebad69428c5396d131c)
      D/RefBase : #01 pc 00088449 /apex/com.android.runtime/lib/bionic/libc.so (__cxa_finalize+96) (BuildId: 21a057e6e3d1936b304f50c697b2e26e)
      D/RefBase : #02 pc 0007e46d /apex/com.android.runtime/lib/bionic/libc.so (exit+10) (BuildId: 21a057e6e3d1936b304f50c697b2e26e)
      D/RefBase : #03 pc 00036713 /data/app/~~i4rQP_LnqFgrbAIZASldqA==/org.qtproject.example.standarddialogs-MBZad2rfQrMsGx3NOtCVmw==/lib/arm/libplugins_platforms_qtforandroid_armeabi-v7a.so (BuildId: deb944bf763876ce521a1ab68a8dfb39a63d07d7)
      D/RefBase : #04 pc 000aebad /apex/com.android.art/lib/libart.so (art_quick_generic_jni_trampoline+44) (BuildId: b0d6fd8a64ab6a491e624f9aa3cf4684)
      D/RefBase : #05 pc 000a7775 /apex/com.android.art/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: b0d6fd8a64ab6a491e624f9aa3cf4684)
      D/RefBase : #06 pc 005f8325 /apex/com.android.art/lib/libart.so (art_quick_invoke_static_stub+246) (BuildId: b0d6fd8a64ab6a491e624f9aa3cf4684)
      D/RefBase : #07 pc 0025b703 /apex/com.android.art/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+162) (BuildId: b0d6fd8a64ab6a491e624f9aa3cf4684)
      D/RefBase : #08 pc 00364d9f /apex/com.android.art/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+270) (BuildId: b0d6fd8a64ab6a491e624f9aa3cf4684)
      D/RefBase : #09 pc 00362c57 /apex/com.android.art/lib/libart.so (bool art::interpreter::DoCall<false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, bool, art::JValue*)+1534) (BuildId: b0d6fd8a64ab6a491e624f9aa3cf4684)
      D/RefBase : #10 pc 000b4efd /apex/com.android.art/lib/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false>(art::interpreter::SwitchImplContext*)+14372) (BuildId: b0d6fd8a64ab6a491e624f9aa3cf4684)
      D/RefBase : #11 pc 000af675 /apex/com.android.art/lib/libart.so (ExecuteSwitchImplAsm+4) (BuildId: b0d6fd8a64ab6a491e624f9aa3cf4684)
      D/RefBase : #12 pc 001ff6bc /data/app/~~i4rQP_LnqFgrbAIZASldqA==/org.qtproject.example.standarddialogs-MBZad2rfQrMsGx3NOtCVmw==/base.apk (org.qtproject.qt.android.QtNative$$ExternalSyntheticLambda4.run)
      D/RefBase : #13 pc 0035c9df /apex/com.android.art/lib/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.__uniq.112435418011751916792819755956732575238)+302) (BuildId: b0d6fd8a64ab6a491e624f9aa3cf4684)
      D/RefBase : #14 pc 003623e9 /apex/com.android.art/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+76) (BuildId: b0d6fd8a64ab6a491e624f9aa3cf4684)
      D/RefBase : #15 pc 00362c3f /apex/com.android.art/lib/libart.so (bool art::interpreter::DoCall<false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, bool, art::JValue*)+1510) (BuildId: b0d6fd8a64ab6a491e624f9aa3cf4684)
      D/RefBase : #16 pc 000b4c4b /apex/com.android.art/lib/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false>(art::interpreter::SwitchImplContext*)+13682) (BuildId: b0d6fd8a64ab6a491e624f9aa3cf4684)
      D/RefBase : #17 pc 000af675 /apex/com.android.art/lib/libart.so (ExecuteSwitchImplAsm+4) (BuildId: b0d6fd8a64ab6a491e624f9aa3cf4684)
      D/RefBase : #18 pc 00201344 /data/app/~~i4rQP_LnqFgrbAIZASldqA==/org.qtproject.example.standarddialogs-MBZad2rfQrMsGx3NOtCVmw==/base.apk (org.qtproject.qt.android.QtThread$1.run)
      D/RefBase : #19 pc 0035c9df /apex/com.android.art/lib/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.__uniq.112435418011751916792819755956732575238)+302) (BuildId: b0d6fd8a64ab6a491e624f9aa3cf4684)
      D/RefBase : #20 pc 00362379 /apex/com.android.art/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+184) (BuildId: b0d6fd8a64ab6a491e624f9aa3cf4684)
      D/RefBase : #21 pc 005e9a6b /apex/com.android.art/lib/libart.so (artQuickToInterpreterBridge+538) (BuildId: b0d6fd8a64ab6a491e624f9aa3cf4684)
      D/RefBase : #22 pc 000aec53 /apex/com.android.art/lib/libart.so (art_quick_to_interpreter_bridge+34) (BuildId: b0d6fd8a64ab6a491e624f9aa3cf4684)
      D/RefBase : #23 pc 02029d65 /memfd:jit-cache (deleted) (offset 0x2000000) (java.lang.Thread.run+116)
      D/RefBase : #24 pc 000a7775 /apex/com.android.art/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: b0d6fd8a64ab6a491e624f9aa3cf4684)
      D/RefBase : #25 pc 005f8225 /apex/com.android.art/lib/libart.so (art_quick_invoke_stub+248) (BuildId: b0d6fd8a64ab6a491e624f9aa3cf4684)
      D/RefBase : #26 pc 0025b6d9 /apex/com.android.art/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+120) (BuildId: b0d6fd8a64ab6a491e624f9aa3cf4684)
      D/RefBase : #27 pc 00563ec1 /apex/com.android.art/lib/libart.so (art::Thread::CreateCallback(void*)+1108) (BuildId: b0d6fd8a64ab6a491e624f9aa3cf4684)
      D/RefBase : #28 pc 00563a63 /apex/com.android.art/lib/libart.so (art::Thread::CreateCallbackWithUffdGc(void*)+2) (BuildId: b0d6fd8a64ab6a491e624f9aa3cf4684)
      D/RefBase : #29 pc 00085b43 /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+40) (BuildId: 21a057e6e3d1936b304f50c697b2e26e)
      D/RefBase : #30 pc 0003c5f3 /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30) (BuildId: 21a057e6e3d1936b304f50c697b2e26e)
      08:44:41: Android target "org.qtproject.example.standarddialogs" died.
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            luqiaochen Luqiao Chen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes