shakebugs / shake-ios

Bug and crash reporting SDK for iOS apps.
https://shakebugs.com
Other
30 stars 4 forks source link

Long startup time and main thread block #7

Closed xezero closed 3 years ago

xezero commented 3 years ago

Calling Shake.start() takes a while to complete and blocks the main thread (calling it on a background thread triggers the Main Thread Checker for accessing various UIKit calls).

Is there any way we can delay the initialization of any UIKit classes on starting Shake?

david-halapir commented 3 years ago

Hi xezero,

Thanks for the report.

The fix for the issue where Shake blocks the main thread is already implemented and passed QA. So expect this one fixed in the next release which should be anytime soon.

As for the one with the Main Thread checker warnings, the issue is moved to the top of the backlog so we will be fixing this one soon enough. This fix won't be included in the upcoming release due to internal priority reasons, but I expect it to be included in one of the subsequent releases.

Again, thanks for pointing this stuff out.

Cheers,

David Shake Team

canny[bot] commented 3 years ago

This issue has been linked to a Canny post: Shake iOS SDK hangs the app (blocks the UI thread) on cold boot :tada:

canny[bot] commented 3 years ago

This issue has been linked to a Canny post: Calling Shake.start() from background causes MainThread warnings :tada: