What is LLDB RPC Server ? When does it crash in Xcode? Why it crashes?

52,171

Solution 1

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

Solution 2

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.

Solution 3

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.

Solution 4

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!

Solution 5

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.

Share:
52,171
Kumar Utsav
Author by

Kumar Utsav

I am a rookie, learning objective c and ios. It would be fun to explore the playgrounds of code.

Updated on January 27, 2021

Comments

  • Kumar Utsav
    Kumar Utsav over 3 years

    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

  • klmitchell2
    klmitchell2 almost 6 years
    I had the exact same issue. I was receiving The LLDB RPC server has crashed. Not sure which breakpoint was causing this error, but I just turned every break point off.
  • Mohammed Hasan
    Mohammed Hasan over 5 years
    Actually, moving the breakpoint affect nothing on the crash. It still crashing.
  • Brian Sachetta
    Brian Sachetta about 5 years
    Though removing the breakpoint removed the crash for me, I'd still like to know why. I needed that breakpoint; removing it really just got me back to square one. Moving it a line didn't seem to work either.
  • Mukesh Lokare
    Mukesh Lokare almost 5 years
    I don't have any breakpoint. Still I'm facing the issue. Can anybody help me to fix this problem?
  • Rodrigo Fava
    Rodrigo Fava over 4 years
    I recently updated to xcode 11.0 and started getting the same behaviour of crashes on breakpoints...
  • Shivam Pokhriyal
    Shivam Pokhriyal over 4 years
    Yeah me too. I was getting the same issue in XCode 11.0. I did clean build removed derived data but nothing worked. Then I just removed few of the breakpoints and it worked. It's really strange
  • Kakashi
    Kakashi over 4 years
    This it not worked for me, I use Xcode 11.3 and set debug mode is still crash.
  • Hemang
    Hemang over 4 years
    but then what if you need to debug through your break points?
  • Stefan
    Stefan over 4 years
    Obviously it's not ideal, but if you put them a line or two earlier and step through the code from there, it shouldn't be much of a problem...
  • AlexeyIS
    AlexeyIS about 4 years
    Keep in mind that ~/Library/Preferences/com.apple.dt.Xcode.plist will remove your preference from Xcode, e.g. editor color scheme
  • Jon_the_developer
    Jon_the_developer almost 4 years
    This worked for me, and I think it is really unfair that you got downvoted.
  • Lance Samaria
    Lance Samaria almost 4 years
    can you please add an explanation on how your answer fixed the issue
  • Vyachaslav Gerchicov
    Vyachaslav Gerchicov over 2 years
    why is it accepted as an answer?
  • Vyachaslav Gerchicov
    Vyachaslav Gerchicov over 2 years
    doesn't work for me
  • Vyachaslav Gerchicov
    Vyachaslav Gerchicov over 2 years
    deleted these files but it didn't help. These files are recreated on xcode launch