Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 363
MacDeveloper Avatar asked Dec 14 '22 16:12

MacDeveloper


1 Answers

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!

like image 138
Pradeep Avatar answered Jan 28 '23 18:01

Pradeep