Open aosic opened 3 years ago
hello. We need some steps to reproduce the crash
Hi, I got the crash maybe relating to this issue, this log I got
`Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x8000000000000010 -> 0x0000000000000010 (possible pointer authentication failure)
VM Region Info: 0x10 is not in any region. Bytes before following region: 4366483440
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 104434000-104440000 [ 48K] r-x/r-x SM=COW ...rchantSandbox
Termination Signal: Segmentation fault: 11 Termination Reason: Namespace SIGNAL, Code 0xb Terminating Process: exc handler [647] Triggered by Thread: 9
Thread 9 name:
Thread 9 Crashed:
0 CocoaMQTT 0x0000000104567ed4 $sSh5countSivg9CocoaMQTT0B13MQTTWebSocketC9WriteItem33_E7331A8B74B4106D4653FB1F426555ECLLV_Tg5 + 0 (
It happens randomly in version 2.0.5, I can't replicate it. Does anyone have any solutions?
_swift_runtime_on_report frame #1: 0x0000000189521100 libswiftCore.dylib
_swift_stdlib_reportFatalErrorInFile + 192 frame #2: 0x0000000189160668 libswiftCore.dylibclosure #1 (Swift.UnsafeBufferPointer<Swift.UInt8>) -> () in closure #1 (Swift.UnsafeBufferPointer<Swift.UInt8>) -> () in closure #1 (Swift.UnsafeBufferPointer<Swift.UInt8>) -> () in Swift._assertionFailure(_: Swift.StaticString, _: Swift.StaticString, file: Swift.StaticString, line: Swift.UInt, flags: Swift.UInt32) -> Swift.Never + 384 frame #3: 0x000000018915fce0 libswiftCore.dylib
Swift.assertionFailure(: Swift.StaticString, _: Swift.StaticString, file: Swift.StaticString, line: Swift.UInt, flags: Swift.UInt32) -> Swift.Never + 380 frame #4: 0x00000001891499c4 libswiftCore.dylibSwift._copyCollectionToContiguousArray<τ_0_0 where τ_0_0: Swift.Collection>(τ_0_0) -> Swift.ContiguousArray<τ_0_0.Element> + 1084 frame #5: 0x00000001892d7168 libswiftCore.dylib
merged protocol witness for Swift.Sequence._copyToContiguousArray() -> Swift.ContiguousArray<τ_0_0.Element> in conformance Swift._ArrayBuffer<τ_0_0> : Swift.Sequence in Swift + 48 frame #6: 0x00000001892f9314 libswiftCore.dylib`Swift.Sequence.sorted(by: (τ_0_0.Element, τ_0_0.Element) throws -> Swift.Bool) throws -> Swift.Array<τ_0_0.Element> + 180CocoaMQTTWebSocket.checkScheduledWrites(self=0x0000000281079080) at CocoaMQTTWebSocket.swift:237:52 frame #8: 0x00000001029e1d58 SmartElectricityApp
closure #1 in CocoaMQTTWebSocket.write(tag=0, timeout=5, self=0x0000000281079080, data=4 bytes) at CocoaMQTTWebSocket.swift:128:18 frame #9: 0x000000010260c5e4 SmartElectricityAppthunk for @escaping @callee_guaranteed () -> () at <compiler-generated>:0 frame #10: 0x000000010444c064 libdispatch.dylib
_dispatch_call_block_and_release + 32 frame #11: 0x000000010444dd90 libdispatch.dylib_dispatch_client_callout + 20 frame #12: 0x0000000104455ea0 libdispatch.dylib
_dispatch_lane_serial_drain + 788 frame #13: 0x0000000104456cc4 libdispatch.dylib_dispatch_lane_invoke + 444 frame #14: 0x0000000104463a00 libdispatch.dylib
_dispatch_workloop_worker_thread + 1600 frame #15: 0x00000001d0ff67a4 libsystem_pthread.dylib`_pthread_wqthread + 276