Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28689

Debug not working on OnePlus 10T

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 9.0.1
    • Debugger
    • None
    • Android

    Description

      Cannot do any debugging since I changed my phone from OnePlus 6T (Android 11) to OnePlus 10T (Android 12). The rest of the setup remained the same. QtCreator 9.0.1 with Qt 5.15.6 (built from source), Android NDK 21.3.6528147 and building for SDK 31.

      I'm using the same code and app that was working before..

      I think it might be related to this:

      E ANR_LOG : >>> msg's executing time is too long
      E ANR_LOG : Blocked msg = { when=-3s830ms what=110 target=android.app.ActivityThread$H obj=AppBindData{appInfo=ApplicationInfo{e19f332 [...]}} } , cost  = 3827 ms
      E ANR_LOG : >>>Current msg List is:
      E ANR_LOG : Current msg <1> = { when=-3s828ms what=159 target=android.app.ActivityThread$H obj=android.app.servertransaction.ClientTransaction@68837886 }
      E ANR_LOG : Current msg <2> = { when=-3s828ms what=159 target=android.app.ActivityThread$H obj=android.app.servertransaction.ClientTransaction@a7913b22 }
      E ANR_LOG : Current msg <3> = { when=-3s582ms what=149 target=android.app.ActivityThread$H obj=android.os.BinderProxy@7091b39 }
      E ANR_LOG : Current msg <4> = { when=-2s828ms what=0 target=android.app.ActivityThread$H callback=android.app.ActivityThread$$ExternalSyntheticLambda1 }
      E ANR_LOG : Current msg <5> =

      { when=-771ms what=164 target=android.app.ActivityThread$H obj=[...] }

      E ANR_LOG : Current msg <6> = { when=-449ms what=0 target=android.os.Handler callback=io.reactivex.android.schedulers.HandlerScheduler$ScheduledRunnable obj=io.reactivex.android.schedulers.HandlerScheduler$HandlerWorker@4f0107e }
      E ANR_LOG : Current msg <7> = { when=-58ms what=0 target=com.google.android.gms.internal.tasks.zzb callback=com.google.android.gms.tasks.zzn }
      E ANR_LOG : Current msg <8> = { when=-31ms what=0 target=com.google.android.gms.internal.tasks.zzb callback=com.google.android.gms.tasks.zze }
      E ANR_LOG : Current msg <9> = { when=-5ms what=0 target=android.app.ActivityThread$H callback=android.app.LoadedApk$ReceiverDispatcher$Args$$ExternalSyntheticLambda0 }
      E ANR_LOG : Current msg <10> = { when=+955ms what=131 target=android.app.ActivityThread$H obj=android.app.ActivityThread$ProviderRefCount@eb199df }
      E ANR_LOG : >>>CURRENT MSG DUMP OVER<<<

      After this point some other log lines appear and the it stops. I also keep receiving SIG33 and SIG35 

      This also is strange:

      I [...]: Thread[5,tid=16928,WaitingInMainSignalCatcherLoop,Thread*=0x7d183b9c00,peer=0x13380000,"Signal Catcher"]: reacting to signal 3
      01-16 12:25:35.331 12412 16928 I [...]:
      I [...]: Waiting for a blocking GC ObjectsAllocated
      I libc    : Requested dump for tid 17043 (qtMainLoopThrea)
      F libc    : crash_dump helper failed to exec, or was killed
      F libc    : failed to wait for crash_dump helper: No child processes
      I Qt      : qt started

      This appears to happen only on wireless ADB debugging, on USB the ANR and signals still appear but not the libc fatal and seems to be working. Didn't manage to make Wireless Debugging (Android 10+) working. Might be related to how fast libs get loaded when debug starts. Is there a way to skip the loading of other libs besides my app's own?

      LE: I tried using 

      set auto-solib-add off

      sharedLibrary {mylib}

      but it seems these are ignored.. all the libs are still loaded when starting debugging. I tried adding them in Additional Startup Commands and Additional Attach Commands sections in GDB preferences in QtCreator with no effect

       

      Attachments

        Activity

          People

            portale Alessandro Portale
            victor.corchez Victor Corchez
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: