App hangs - warning in XCode Thread running at QOS_CLASS_USER_INTERACTIVE waiting on a lower QoS thread running at QOS_CLASS_DEFAULT

Hi,

Recently I started getting this warning message in my XCode build - I haven’t done any XCode or any other significant updates to my environment so I suspect it is something I added to the code.

Thread running at QOS_CLASS_USER_INTERACTIVE waiting on a lower QoS thread running at QOS_CLASS_DEFAULT. Investigate ways to avoid priority inversions

Clicking on this warning, it points to this line in code

dispatch_group_wait(_sourceGroup, DISPATCH_TIME_FOREVER); // Wait until the cancellation handlers have been called which guarantees the listening sockets are closed

I am looking around trying to figure out how to debug/resolve this because, per the warning, in testing, I find that my App does actually just hang randomly and does nothing.

I found this link on Stackoverflow but I am not directly coding to the iOS/Apple library code and not quite sure how to track/resolve this.

My Ionic info output is as below.


   Ionic CLI                     : 7.2.0 (/Users/<username>/.nvm/versions/node/v21.7.1/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 6.7.5
   @angular-devkit/build-angular : 16.2.12
   @angular-devkit/schematics    : 16.2.12
   @angular/cli                  : 16.2.12
   @ionic/angular-toolkit        : 6.1.0

Capacitor:

   Capacitor CLI      : 5.7.0
   @capacitor/android : 5.7.0
   @capacitor/core    : 5.7.0
   @capacitor/ios     : 5.7.0

Cordova:

   Cordova CLI       : not installed
   Cordova Platforms : not available
   Cordova Plugins   : not available

Utility:

   cordova-res : not installed globally
   native-run  : 2.0.1

System:

   ios-sim : 8.0.2
   NodeJS  : v21.7.1 (/Users/<username>/.nvm/versions/node/v21.7.1/bin/node)
   npm     : 10.5.0
   OS      : macOS Unknown
   Xcode   : Xcode 15.2 Build version 15C500b

Appreciate any pointers on how best to approach to debug/resolve this problem.

Thanks,
Sanjay.

I realized I chose the wrong “capacitor” tag for this post instead of the “ionic framework” tag. I don’t see a way to correct that. Is there a way to fix the tag or is the best way to repost this request/question with the correct tags?

You can edit it by clicking the Pencil edit button.