Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Everything freezes #24

Open
alexbartisro opened this issue Mar 7, 2017 · 15 comments
Open

Everything freezes #24

alexbartisro opened this issue Mar 7, 2017 · 15 comments

Comments

@alexbartisro
Copy link

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.

@tapwork
Copy link
Owner

tapwork commented Mar 8, 2017

do you have backtrace recording enabled?
try to disable backtrace record
HINSPDebug.recordBacktraces(false)

@alexbartisro
Copy link
Author

@tapwork tried with both, on and off, there's no difference.

@tapwork
Copy link
Owner

tapwork commented Mar 8, 2017

did you try pausing the program execution in Xcode (a couple times) to see where it hangs?

@alexbartisro
Copy link
Author

@tapwork

OSSpinLockLock(&backtraceDictLock);

from

static inline void registerBacktraceForObject(void *obj, char *type)

@tapwork
Copy link
Owner

tapwork commented Mar 8, 2017

thanks...
I will investigate it in the next two days.
looks like the backtrace recording . You're probably using a large app, right?

@alexbartisro
Copy link
Author

alexbartisro commented Mar 8, 2017

Ran it now with recordBacktrace(false) and in froze in the same place.

Edit: also many thanks @tapwork

@tapwork
Copy link
Owner

tapwork commented Mar 8, 2017

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

@alexbartisro
Copy link
Author

You're a gentleman, thanks!

@tapwork
Copy link
Owner

tapwork commented Mar 8, 2017

I just released https://github.com/tapwork/HeapInspector-for-iOS/releases/tag/1.0.1
could you try this version (backtrace recording = disabled)

@alexbartisro
Copy link
Author

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];)

@tapwork
Copy link
Owner

tapwork commented Mar 10, 2017

@trusk89 thanks for helping, I will need some time to check this in detail. (next week or so) I'll keep you updated

@yunzixun
Copy link

yunzixun commented Jan 18, 2018

I have exactly the same issue, but no idea. swift 3.2 project.

@bkrijgsman
Copy link

Same issue here.

@tapwork
Copy link
Owner

tapwork commented Aug 21, 2018

Currently I don't have the time to go into detail. I need to rethink the whole record feature

@Swagat-Mishra-Bose
Copy link

I see the same issue when trying to add the SDK. Is this resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants