LLDB RPC server has crashed

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

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