Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugger:The LLDB RPC server has crashed [duplicate]

Tags:

xcode

crash

lldb

I am getting a message in my debugger:

The LLDB RPC server has crashed. The crash log is located in ~/Library/Logs/DiagnosticReports and has a prefix 'lldb-rpc-server'. Please file a bug and attach the most recent crash log.

enter image description here

like image 344
Kumar Utsav Avatar asked Apr 26 '17 13:04

Kumar Utsav


5 Answers

In my case the LLDB RPC server consistently crashed every time I ran my app, even after cleaning the build folder and removing and reinstalling Xcode (Version 8.3.3 (8E3004b)) completely.

It turned out that apparently LLDB took objection to a breakpoint I had set, just moving this breakpoint by a line resolved the issue.

like image 94
Stefan Avatar answered Nov 18 '22 01:11

Stefan


In my case: I update to Xcode Version 9.3 (9E145) recently and Xcode execute to the line with breakpoint then I type "po XXX" commend it will show the same message. I try to delete following files

~/Library/Preferences/com.apple.dt.Xcode.plist
~/Library/Caches/com.apple.dt.Xcode

and it solved. not knowing exactly why but worth to try.

remember to backup those files in order to recovered in case any unexpected situation occur.

like image 44
andrew54068 Avatar answered Nov 18 '22 01:11

andrew54068


Make sure you are not running the app in release mode, if it is in release mode then change it to debug.

like image 27
iHulk Avatar answered Nov 18 '22 02:11

iHulk


I had the same problem and fixed it after I deleted some of the breakpoints. Not sure why this happen at all, but at least you can remove breakpoints and use some NSLog() or print() if you are in Swift and debug with the help of those. Good luck!

like image 7
Boris Nikolic Avatar answered Nov 18 '22 01:11

Boris Nikolic


Clearly a lot of different causes for this, but for me I was using a DispatchGroup to keep track of multiple async tasks.

I had forgotten to call dispatchGroup.enter() before one of the async tasks (but still calling dispatchGroup.leave() when it finished).

Adding this in fixed the crash for me.

like image 4
James Avatar answered Nov 18 '22 03:11

James