LLDB RPC server has crashed

XCode 8.0 beta (8S128d) debugger passes crashes most of the time. Anyone else seen this?

Can you elaborate? What do you mean by "passes crashes" exactly? What are the symptoms, and under what circumstances do you see it happening?

Yeah I'm experiencing the same crash. It gives me the same message. To temporarily avoid it, I just quit Xcode and reopened my Playground. But it ends up crashing a little later everytime. If someone could guide me on how to submit a Bug Report, that'd be great. Just started learning to code today!

Bugreport: 27017065


Presumably this bug keeps Playground from displaying the results via Debug Area.


UPDATE: I cannot be 100% sure that missing any output from Playground is stricktly related with LLDB RPC server failure. The server seems to restart automatically when terminated, however, this restart does not affect the Playground to produce the output again...


UPDATE 2: I have submitted another bugreport 27018553 specifically related to Playground not producing the QuickLook and Debug outputs. I believe this is because some REPL failure (is it the same as LLDB RPC server or backed by it?). I also cannot confirm that LLDB RPC server failure is direcly related to Playground not producing any output, because even though the LLDB RPC server is restarted, Playground still does not produce outputs.

Same issue i am facing The LLDB RPC server has crashed.

The playground issue described by the bug report you cited is understood, and it's an interaction with the compiler that we're actively investigating. Thank you for confirming the nature of the issue!

Is this a crash when using a playground as with the other reports in this thread, or does this occur while debugging? In the former case it's likely a duplicate of the issue reported above – but it never hurts to file a bug if you have a reproducible example.

How could I solved this issue? I can not run any swift code snippets in palyground.😟

Hi, thank you. I saw, 26883783 is duplicated now, which is good. There is also 27018553 where I put some more specific issue I had been facing with. Maybe that might be helpfull too.


There is a question, though. I would like to understand the connection (from architecture point of view) between REPL and LLDB RPC server. I know, that REPL backed by LLDB. I also understand that LLDB RPC is now a separated process, so when it is crashed that does not lead to Xcode crash. But, this is all I know. Could you please point out some docs, I could gain more understanding of this?


Thank you in advance.

I have been getting this since I started using Version 8.0 (8A218a), on an app with no Swift. 28212160 filed.

Is there some solution for this issue? Everytime I try to run my application the debugger disconnects. I tried to restart Xcode, Mac, reinstall Xcode and I still cannot debug my application. I use Xcode Version 8.1 beta (8T29o). What can I do to start LLDB RPC server again?

Ok, after 2 days, clean install of Sierra and Xcode, it keeps crashing. Now I believe it has something to do with the project itself because new empty project works fine.


Edit:


I found, it crashes immediately when I place breakpoint in one certain class of my project.

Same behaviour with XCode 8.2.1 and Mac OSx 10.12.3. It depends upon where the breakpoint is set. Crashes always in int main(..)

Same bug still happening even on running app on simulator on the latest xCode SDK

Please flle a bug report with the crash reports and a project that reproduces the crash. Thanks!

I have the same error, it happened after I :


1, Select your TARGET --> Build Phases

2, Click Run Script to show the list

3, Select Run script only when installing


4, Clean your project and run the project again


5, Have a breakpoint at any place in one of your classes


When the program run to the breakpoint , The error will produce, at the same time, Xcode will lose connection with your device !

fyi just got this failure (debugger crashing) on xcode 8.3.3 running against a device at 10.3.2 (first try of xcode 8.3.3) running on sierra.


i had "all exceptions" breakpoints set. when i got rid of that, the debugger stopped at the crashing location in the code as it should

(didn't crash the debugger). the actual crash in my code was an exception by the way... EXC_BAD_ACCESS (code=1, address=0x0)


assembly listing showed:

; symbol stub for: NSLog

right before the crash if that's any help


also FYI, this code worked ok built from xcode7.3 on ElCapitan but that's another story...

xCode 8.3.3 . LLDB RPC server has crashed. This happened when I tried to extend the String in playground.

extension String {

mutating func truncate(index: Int) -> String {

if self.characters.count <= index {

return self

} else {

let start = self.index(self.startIndex, offsetBy: index)

let end = self.index(start, offsetBy: self.endIndex)

return self.replaceSubrange(start...end, with: "...")

}

}

}



and



extension String {

subscript(range: CountableRange<Int>) -> String {

get {

let begin = self.index(self.startIndex, offsetBy: range.lowerBound)

let end = self.index(selg.indexStart, offsetBy: range.upperBound)

return self[begin..<end]

}

set {

let begin = self.index(self.startIndex, offsetBy: range.lowerBound)

let end = self.index(self.indexStart, offsetBy: range.upperBound)

self.replaceSubrange(begin..<end, with: newValue)

}

}

}

If you can reproduce this on the latest GM Xcode, you should definitely file a bug about it. Please post your bug number, just for the record.

ps I tried putting your first code snippet into an Xcode 9.0 playground and it wouldn’t compile. I then looked at the code and it doesn’t seem to make much sense. Specifically, this line:

let end = self.index(start, offsetBy: self.endIndex)

is mixing apples (

self.endIndex
is an index) with oranges (the
offsetBy
parameter expects a distance). I’m not sure how that’d work even in Swift 3.

Still, that’s no excuse for the debug server to crash.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

pps Swift 4 has significant ease of use improvements for strings. If you’d like some advice on that front, pop over Xcode > Swift and ask a question there.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Hi everyone

Yesterday I updated latest version of my IPhone (16.0.3) - unluckily my Xcode 14.0.1 can not launch the apps anymore relate to launch app.

same problem with Xcode Version 14.2 (14C18).

Keeps crashing for me whenever I use a proxy app to capture network traffic.

Annoying AF.

LLDB RPC server has crashed
 
 
Q