iOS crash report “unexpected start state” exception?

The above crash happens when you try initializing a NSAttibutedString with html content from any other thread than the main thread. So the solution here is to make sure the above NSAttributedString initialization is always called from the main thread. DispatchQueue.main.async { let options: [NSAttributedString.DocumentReadingOptionKey: Any] = [.documentType: NSAttributedString.DocumentType.html] let htmlString = try? NSAttributedString(data: htmlData, … Read more

Consistent Dispatch queue: com.apple.root.default-qos.overcommit crash

Reason: in iOS / tvOS there are queues / threads, each thread has its own type or priority also known as a “quality of service” or for short “QOS”, which means the level of urgency that the cpu should handle this thread, the possibilities are: QOS_CLASS_DEFAULT QOS_CLASS_USER_INITIATED QOS_CLASS_UTILITY QOS_CLASS_BACKGROUND QOS_CLASS_UNSPECIFIED QOS_CLASS_USER_INTERACTIVE once you run too … Read more

Solving random crashes

Try Valgrind (it’s free, open-source): The Valgrind distribution currently includes six production-quality tools: a memory error detector, two thread error detectors, a cache and branch-prediction profiler, a call-graph generating cache profiler, and a heap profiler. It also includes two experimental tools: a heap/stack/global array overrun detector, and a SimPoint basic block vector generator. It runs … Read more

Atos cannot get symbols from dSYM of archived application

To properly get symbols from your archived app’s dSYM file and get useful information from your BugSense crash reports (or any other crash reports for that matter): Copy the stack trace from BugSense into TextEdit or any other text editor. Make sure to use the “clipboard” icon, rather than simply copying the text. Otherwise you … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)