Thread 1: EXC_BAD_ACCESS (code=1, address=0x40)

MacDeveloper picture MacDeveloper · Jun 15, 2018 · Viewed 8.5k times · Source

I am running a code with webRTC. I am not posting code because I really don't know the point where it is getting crashed. It is almost thousands of lines of code. I want to know where exactly the code is crashing. Is there any tool or any way to exactly get the line of code where it crashed

Answer

Pradeep picture Pradeep · Jul 8, 2018

When your app crashed, Xcode should've shown the line which caused the crash. That should give you some clues.

Essentially a EXC_BAD_ACCESS is when your trying to access an object that's already been deallocated. So this means your problem might also be earlier in the code and not exactly at the line where it crashed.

This website shows a couple of ways that might help you figure out what's the problem.

Hope this helps!