iOS app crashes with no error, just (lldb)

爱⌒轻易说出口 提交于 2019-12-14 00:33:45

问题


My application lately seems to randomly crash with no error or exceptions. The console just shows (lldb) in light blue. I have uncaught exception handling and still nothing. It happens at random times. I can do the same task over and over and sometimes it will happen and sometimes it won't. Also sometimes it will happen in random places within the application.

So far what I have read is it is possibly just the lldb debugger crashing and not my app however I haven't noticed it before.

Any ideas how to figure out what the cause of the crash is?

It seems to have started when I added MBProgressHUD to my application.


回答1:


I also just encountered a similar error - where I was just getting a blue lldb in the console with no additional info. However I was getting an exc_bad_access in the debug navigator so I knew it had to be a memory problem. I ended up tracing it to a release command I should not have been making . . .

Are you getting any details of the error in the debug navigator?

If yes please provide.

An over released object might explain why the app would be crashing at random times since (from what I understand) the system won't always immediately dealloc your object just because you sent it a release command however it will do it sooner or later.




回答2:


I ended up using crittercism and testflight crash reporting to help find the area where it was occurring. It looks like it was because I was running core data on a background thread.




回答3:


I have been trying to fix this issue for the last 2 hours or so and I turned out I simply had a break point in Xcode. This might not be the case for you but if anyone stumbles upon this thread, check your breakpoints. In Xcode click this arrow then right click your breakpoints and delete them.

Not sure if this will be helpful to anyone or if I was just being stupid, but save yourself 2 hours and check your breakpoints :)



来源:https://stackoverflow.com/questions/9951545/ios-app-crashes-with-no-error-just-lldb

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!