-
Notifications
You must be signed in to change notification settings - Fork 12
Description
This is my top crash with the highest number of crashes reported from firebase crashlytics.
I am using swift version 4.2
Crashes increase drastically in iOS 13.
It is crashing on this line:
if let m = headers[s]
public var headers = OrderedDictionary<String, String>()
var sb = ""
if headers.count > 0 {
for s in headers.keys {
sb += s
sb += ":"
if let m = headers[s]{
sb += m
}
else{
sb += ""
}
}
}
Crashed: outputThread_0.0
0 libswiftCore.dylib 0x101c9a548 swift_retain + 56
1 libswiftCore.dylib 0x101cd3674 swift_bridgeObjectRetain + 40
2 MyApp 0x10105a120 specialized OrderedDictionary.subscript.getter + 41 (:41)
3 MyApp 0x10107ff70 ChannelMessage.toTransmissibleString() + 127 (ChannelMessage.swift:127)
4 MyApp 0x101080090 ChannelMessage.getCopyOfPayload() + 149 (ChannelMessage.swift:149)
5 MyApp 0x10108049c protocol witness for WebSocketFrame.getCopyOfPayload() in conformance ChannelMessage ()
6 MyApp 0x1010e0560 closure #1 in WebSocketClient.initalize() + 450 (WebSocketClient.swift:450)
7 MyApp 0x100f0e800 thunk for @escaping @callee_guaranteed () -> () ()
8 libdispatch.dylib 0x1a0f23bb0 _dispatch_call_block_and_release + 32
9 ??? 0x0 (Missing)
10 ??? 0x0 (Missing)
11 ??? 0x611a5001a0f2c000 (Missing)
12 ??? 0x5646e481a0f35000 (Missing)
13 ??? 0x0 (Missing)
14 ??? 0x297c1301a0f90c00 (Missing)