I am facing app freezing issue that is not getting detected in exception breakpoints. All my UI related code runs on main thread. As suggested in the question My app freezes but no error appears, I tapped on the pause button to check error, but cannot figure out anything from it. Please help me understand better. Attaching the screenshot of my xcode screen here:
Asked
Active
Viewed 285 times
1
-
1Eventually check the other threads, especially the ConnectionLoader one, or put a breakpoint on exceptions. Also, check code around the issue, isolate it. – bela.bartha Nov 22 '18 at 09:43
-
Cannot figure out just anything from it. A queue i can give is that the freeze occurs when one view controller pops out and the below view controller is loaded. – Sanchita Nov 22 '18 at 12:41
1 Answers
0
When your app freeze.. try the following and resolve it
In Xcode(8 or Higher)
- Analyze Code - Command+Shift+B
- Enable Address Sanitizier in Xcode
- Memory Graph
Thread Sanitizer and Static Analysis
Xcode makes it easier to find several new categories of bugs with improvements in Runtime Sanitization and the Clang Static Analyzer. The Thread Sanitizer will help you find data races and other concurrency bugs. The static analyzer has been extended to search for localizability issues, check nullability, and find memory leaks in MRR code.
- Edit Scheme – Diagnostics tab
- “Enable Thread Sanitizer” checkbox
- Build and Run
- View all of the generated runtime issues
- Can choose to break on every issue

PrasathBabu
- 4,716
- 4
- 19
- 35