Everything freezes
When I run my app with HeapInspector, I start it in AppDelegate in didFinishLaunching, a couple of seconds in running it, the simulator freezes. Both the record and heap buttons, and everything in my app stops responding to inputs. Issue reproduces both on simulator and on device.
Debug navigator shows like 10-20% CPU activity and about 10mbps of ram, which is regular app usage.
do you have backtrace recording enabled?
try to disable backtrace record
HINSPDebug.recordBacktraces(false)
@tapwork tried with both, on and off, there's no difference.
did you try pausing the program execution in Xcode (a couple times) to see where it hangs?
@tapwork
OSSpinLockLock(&backtraceDictLock);
from
static inline void registerBacktraceForObject(void *obj, char *type)
thanks... I will investigate it in the next two days. looks like the backtrace recording . You're probably using a large app, right?
Ran it now with recordBacktrace(false) and in froze in the same place.
Edit: also many thanks @tapwork
alright...I can see the problem...the check for backtracerecord should be much earlier in the flow.
There are lots of OSSpinLockLock that might cause the freezings.
I will check in detail tonight or tomorrow
You're a gentleman, thanks!
I just released https://github.com/tapwork/HeapInspector-for-iOS/releases/tag/1.0.1 could you try this version (backtrace recording = disabled)
Hello @tapwork
So I've manually added it and the good news are:
- app ui is not frozen at launch
- I can move the inspector by the black vertical bar now
And the bad news:
- Everything freezes again when I tap on record in the same place as above
- If I tap on "Heap" (after I restart the app) it crashes in HINSPHeapStackInspector.m at line 157 ([objects addObject:string];)
@trusk89 thanks for helping, I will need some time to check this in detail. (next week or so) I'll keep you updated
I have exactly the same issue, but no idea. swift 3.2 project.
Same issue here.
Currently I don't have the time to go into detail. I need to rethink the whole record feature
I see the same issue when trying to add the SDK. Is this resolved?