exyte / Macaw

Powerful and easy-to-use vector graphics Swift library with SVG support
MIT License
6k stars 552 forks source link

SVGParser.parse(text:) crash #798

Open ChinaKeep opened 10 months ago

ChinaKeep commented 10 months ago

Translated Report (Full Report Below)

Incident Identifier: 89DECB84-1F69-4F5E-B045-F291FBBEDAB2 CrashReporter Key: e1c5dd911eea81bdb543d66082adb41d60c9708b Hardware Model: iPad6,7 Process: 火苗会议 [5002] Path: /private/var/containers/Bundle/Application/C5A153D9-8D49-437F-9D90-8DEEAD895D9D/火苗会议.app/火苗会议 Identifier: com.huomiao.imeeting Version: 2.5.3 (2) AppStoreTools: 14E221 AppVariant: 1:iPad6,7:15 Code Type: ARM-64 (Native) Role: Foreground Parent Process: launchd [1] Coalition: com.huomiao.imeeting [420]

Date/Time: 2023-08-24 15:51:54.8570 +0800 Launch Time: 2023-08-24 15:51:13.0800 +0800 OS Version: iPhone OS 15.5 (19F77) Release Type: User Report Version: 104

Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000001, 0x00000001da6eded8 Exception Note: EXC_CORPSE_NOTIFY Termination Reason: SIGNAL 5 Trace/BPT trap: 5 Terminating Process: exc handler [5002]

Triggered by Thread: 16

Application Specific Information: BUG IN CLIENT OF LIBPLATFORM: os_unfair_lock is corrupt Abort Cause 1419208590

Kernel Triage: VM - Fault hit memory shortage VM - Fault hit memory shortage

Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0: 0 libsystem_platform.dylib 0x1da6ec010 os_unfair_lock_lock$VARIANT$mp + 24 1 libsystem_c.dylib 0x18ab23918 localeconv_l + 63 2 libsystem_c.dylib 0x18ab253dc strtod_l + 127 3 libswiftCore.dylib 0x184ef5174 _swift_stdlib_strtodclocale + 151 4 Macaw 0x10461b8e0 closure #1 in closure #1 in Double.init(:) + 7 (:0) [inlined] 5 Macaw 0x10461b8e0 specialized String.withCString(:) + 127 (:0) 6 Macaw 0x104618b14 specialized closure #1 in Double.init(:) + 15 (:0) [inlined] 7 Macaw 0x104618b14 specialized Double.init(:) + 15 (:0) [inlined] 8 Macaw 0x104618b14 PathDataReader.readNum() + 27 (SVGParser.swift:2037) [inlined] 9 Macaw 0x104618b14 PathDataReader.readData() + 935 (SVGParser.swift:1968) 10 Macaw 0x1046183fc PathDataReader.readSegments() + 151 (SVGParser.swift:1937) 11 Macaw 0x104618108 PathDataReader.read() + 95 (SVGParser.swift:1920) 12 Macaw 0x10461fa1c specialized SVGParser.parsePath(:) + 283 (SVGParser.swift:1644) 13 Macaw 0x104610160 SVGParser.parsePath(:) + 7 (:0) [inlined] 14 Macaw 0x104610160 SVGParser.parseElement(:style:) + 427 (SVGParser.swift:302) 15 Macaw 0x10460fdc4 SVGParser.parseNode(:groupStyle:) + 531 (SVGParser.swift:272) 16 Macaw 0x10461252c closure #1 in SVGParser.parseGroup(:style:) + 19 (SVGParser.swift:504) [inlined] 17 Macaw 0x10461252c specialized Sequence.forEach(:) + 19 (:0) [inlined] 18 Macaw 0x10461252c SVGParser.parseGroup(:style:) + 307 (SVGParser.swift:503) 19 Macaw 0x10460fcec SVGParser.parseNode(:groupStyle:) + 315 (SVGParser.swift:267) 20 Macaw 0x10461252c closure #1 in SVGParser.parseGroup(:style:) + 19 (SVGParser.swift:504) [inlined] 21 Macaw 0x10461252c specialized Sequence.forEach(:) + 19 (:0) [inlined] 22 Macaw 0x10461252c SVGParser.parseGroup(:style:) + 307 (SVGParser.swift:503) 23 Macaw 0x10460fcec SVGParser.parseNode(:groupStyle:) + 315 (SVGParser.swift:267) 24 Macaw 0x10461252c closure #1 in SVGParser.parseGroup(:style:) + 19 (SVGParser.swift:504) [inlined] 25 Macaw 0x10461252c specialized Sequence.forEach(:) + 19 (:0) [inlined] 26 Macaw 0x10461252c SVGParser.parseGroup(:style:) + 307 (SVGParser.swift:503) 27 Macaw 0x10460fcec SVGParser.parseNode(:groupStyle:) + 315 (SVGParser.swift:267) 28 Macaw 0x10461252c closure #1 in SVGParser.parseGroup(:style:) + 19 (SVGParser.swift:504) [inlined] 29 Macaw 0x10461252c specialized Sequence.forEach(:) + 19 (:0) [inlined] 30 Macaw 0x10461252c SVGParser.parseGroup(:style:) + 307 (SVGParser.swift:503) 31 Macaw 0x10460fcec SVGParser.parseNode(:groupStyle:) + 315 (SVGParser.swift:267) 32 Macaw 0x10461252c closure #1 in SVGParser.parseGroup(:style:) + 19 (SVGParser.swift:504) [inlined] 33 Macaw 0x10461252c specialized Sequence.forEach(:) + 19 (:0) [inlined] 34 Macaw 0x10461252c SVGParser.parseGroup(:style:) + 307 (SVGParser.swift:503) 35 Macaw 0x10460fcec SVGParser.parseNode(:groupStyle:) + 315 (SVGParser.swift:267) 36 Macaw 0x10460fa58 closure #1 in SVGParser.parseSvg(:) + 19 (SVGParser.swift:199) [inlined] 37 Macaw 0x10460fa58 specialized Sequence.forEach(:) + 19 (:0) [inlined] 38 Macaw 0x10460fa58 SVGParser.parseSvg(:) + 279 (SVGParser.swift:195) 39 Macaw 0x10460f9a4 closure #1 in SVGParser.parseSvg(:) + 23 (SVGParser.swift:198) [inlined] 40 Macaw 0x10460f9a4 specialized Sequence.forEach(:) + 31 (:0) [inlined] 41 Macaw 0x10460f9a4 SVGParser.parseSvg(_:) + 99 (SVGParser.swift:195) 42 Macaw 0x10460eeb0 SVGParser.parse() + 751 (SVGParser.swift:152) 43 Macaw 0x10460eaa4 static SVGParser.parse(text:) + 127 (SVGParser.swift:77) 44 火苗会议 0x101711f00 closure #1 in static SVGManager.getSVGNode(with:success:) + 99 (SVGManager.swift:172) 45 火苗会议 0x101711ae8 specialized closure #1 in closure #1 in SVGManager.getXMLString(with:resultHandler:) + 139 (SVGManager.swift:157) 46 火苗会议 0x1016caa6c closure #1 in OS_dispatchqueue.pxxSafeAsync(:) + 63 (BCCommonExtension.swift:37) 47 火苗会议 0x1010ea36c thunk for @escaping @callee_guaranteed () -> () + 47 (:0) 48 libdispatch.dylib 0x180119094 _dispatch_call_block_and_release + 23 49 libdispatch.dylib 0x18011a094 _dispatch_client_callout + 15 50 libdispatch.dylib 0x1800c6d44 _dispatch_main_queue_drain + 927 51 libdispatch.dylib 0x1800c6994 _dispatch_main_queue_callback_4CF$VARIANT$mp + 35 52 CoreFoundation 0x1804150c4 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 11 53 CoreFoundation 0x1803d25e8 __CFRunLoopRun + 2543 54 CoreFoundation 0x1803e5240 CFRunLoopRunSpecific + 571 55 GraphicsServices 0x1a0cdf988 GSEventRunModal + 159 56 UIKitCore 0x182be541c -[UIApplication _run] + 1079 57 UIKitCore 0x18297eb88 UIApplicationMain + 335 58 火苗会议 0x101033d30 main + 63 (AppDelegate.swift:15) 59 dyld 0x1035ac3d0 start + 443

Thread 1 name: Dispatch queue: com.apple.root.default-qos Thread 1: 0 libsystem_kernel.dylib 0x1b9f9b6b0 __select + 8 1 火苗会议 0x100ff2e88 sleep(unsigned long long, unsigned long long) + 43 (ReliableWrapper.mm:234) [inlined] 2 火苗会议 0x100ff2e88 set_token_heartbeat_req(unsigned int, char const, unsigned int, unsigned char const) + 111 (ReliableWrapper.mm:241) 3 火苗会议 0x100fed680 -[ReliableManager loginWebSocketBaseUrl:Port:userUid:UserToken:] + 331 (ReliableManager.mm:50) 4 火苗会议 0x101150f7c closure #1 in static LoginVM.requestConnectWebServise() + 503 (LoginVM.swift:152) 5 火苗会议 0x1010ea36c thunk for @escaping @callee_guaranteed () -> () + 47 (:0) 6 libdispatch.dylib 0x180119094 _dispatch_call_block_and_release + 23 7 libdispatch.dylib 0x18011a094 _dispatch_client_callout + 15 8 libdispatch.dylib 0x1800bc858 _dispatch_queue_override_invoke + 719 9 libdispatch.dylib 0x1800c9b94 _dispatch_root_queue_drain + 339 10 libdispatch.dylib 0x1800ca39c _dispatch_worker_thread2 + 171 11 libsystem_pthread.dylib 0x1da6f3dd4 _pthread_wqthread + 223 12 libsystem_pthread.dylib 0x1da6f393c start_wqthread + 7

Thread 2 name: com.apple.uikit.eventfetch-thread Thread 2: 0 libsystem_kernel.dylib 0x1b9f9aaac mach_msg_trap + 8 1 libsystem_kernel.dylib 0x1b9f9b07c mach_msg + 71 2 CoreFoundation 0x1803cdd78 CFRunLoopServiceMachPort + 367 3 CoreFoundation 0x1803d2080 CFRunLoopRun + 1159 4 CoreFoundation 0x1803e5240 CFRunLoopRunSpecific + 571 5 Foundation 0x181af2efc -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 231 6 Foundation 0x181b32010 -[NSRunLoop(NSRunLoop) runUntilDate:] + 87 7 UIKitCore 0x182b6486c -[UIEventFetcher threadMain] + 511 8 Foundation 0x181b3fc0c NSThreadstart__ + 791 9 libsystem_pthread.dylib 0x1da6f5348 _pthread_start + 115 10 libsystem_pthread.dylib 0x1da6f3948 thread_start + 7

Thread 3: 0 libsystem_pthread.dylib 0x1da6f3934 start_wqthread + 0

Thread 4 name: Dispatch queue: com.google.fira.worker Thread 4: 0 libdispatch.dylib 0x180126c10 DYLD-STUB$$dispatch_get_context + 0 1 libxpc.dylib 0x1da71f978 _xpc_connection_handle_sent_event + 63 2 libxpc.dylib 0x1da71db54 xpc_connection_send_message_with_reply_sync + 303 3 Foundation 0x181b181b4 NSXPCCONNECTION_IS_WAITING_FOR_A_SYNCHRONOUS_REPLY + 11 4 Foundation 0x181b1dc00 -[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:] + 2403 5 Foundation 0x181b307b0 -[NSXPCConnection _sendSelector:withProxy:arg1:] + 127 6 Foundation 0x181b03c50 _NSXPCDistantObjectSimpleMessageSend1 + 63 7 CoreServices 0x180816130 +[LSBundleProxy bundleProxyForCurrentProcess] + 435 8 Foundation 0x181be3fb0 -[NSBundle appStoreReceiptURL] + 103 9 火苗会议 0x10181a0b0 +[APMAEU appStoreRURL] + 223 10 火苗会议 0x10181a394 +[APMAEU isASRS] + 35 11 火苗会议 0x10181a13c +[APMAEU isFAS] + 75 12 火苗会议 0x10186f8b8 -[APMMeasurement(Event) createRawEventMetadataWithUserAttributes:] + 263 13 火苗会议 0x101872014 -[APMMeasurement(Event) writeEvent:isPublicEvent:isRealtime:] + 783 14 火苗会议 0x10186f76c 57-[APMMeasurement(Event) writeFilteredEventOnWorkerQueue:]_block_invoke + 603 15 火苗会议 0x1018bfd70 -[APMSqliteStore performTransactionWithError:block:] + 175 16 火苗会议 0x10182edc4 -[APMDatabase performTransaction:] + 47 17 火苗会议 0x10186f4e4 -[APMMeasurement(Event) writeFilteredEventOnWorkerQueue:] + 263 18 火苗会议 0x10186f12c -[APMMeasurement(Event) writeEventOnWorkerQueue:] + 1443 19 火苗会议 0x10186ea18 -[APMMeasurement(Event) handleEventOnWorkerQueue:] + 539 20 火苗会议 0x101862ad8 -[APMMeasurement logEventOnWorkerQueue:notifyEventListeners:] + 75 21 火苗会议 0x101862a88 -[APMMeasurement logEventOnWorkerQueueWithOrigin:isPublicEvent:name:parameters:timestamp:enabled:ignoreEnabled:ignoreInterceptor:interceptor:addedScreenParameters:] + 707 22 火苗会议 0x10186271c 151-[APMMeasurement logEventWithOrigin:isPublicEvent:name:parameters:timestamp:enabled:ignoreEnabled:ignoreInterceptor:interceptor:addedScreenParameters:]_block_invoke + 67 23 火苗会议 0x1018b5478 __51-[APMScheduler scheduleOnWorkerQueueBlockID:block:]_block_invoke + 43 24 libdispatch.dylib 0x180119094 _dispatch_call_block_and_release + 23 25 libdispatch.dylib 0x18011a094 _dispatch_client_callout + 15 26 libdispatch.dylib 0x1800c073c _dispatch_lane_serial_drain$VARIANT$mp + 643 27 libdispatch.dylib 0x1800c11f4 _dispatch_lane_invoke$VARIANT$mp + 407 28 libdispatch.dylib 0x1800caec8 _dispatch_workloop_worker_thread + 631 29 libsystem_pthread.dylib 0x1da6f3e10 _pthread_wqthread + 283 30 libsystem_pthread.dylib 0x1da6f393c start_wqthread + 7

Thread 5 name: AVAudioSession Notify Thread Thread 5: 0 libsystem_kernel.dylib 0x1b9f9aaac mach_msg_trap + 8 1 libsystem_kernel.dylib 0x1b9f9b07c mach_msg + 71 2 CoreFoundation 0x1803cdd78 CFRunLoopServiceMachPort + 367 3 CoreFoundation 0x1803d2080 CFRunLoopRun + 1159 4 CoreFoundation 0x1803e5240 CFRunLoopRunSpecific + 571 5 AudioSession 0x189187478 CADeprecated::GenericRunLoopThread::Entry(void) + 155 6 AudioSession 0x1891907c8 CADeprecated::CAPThread::Entry(CADeprecated::CAPThread) + 87 7 libsystem_pthread.dylib 0x1da6f5348 _pthread_start + 115 8 libsystem_pthread.dylib 0x1da6f3948 thread_start + 7

Thread 6 name: com.google.firebase.crashlytics.MachExceptionServer Thread 6: 0 libsystem_kernel.dylib 0x1b9f9aaac mach_msg_trap + 8 1 libsystem_kernel.dylib 0x1b9f9b07c mach_msg + 71 2 FirebaseCrashlytics 0x103ac4de0 FIRCLSMachExceptionReadMessage + 51 (FIRCLSMachException.c:192) [inlined] 3 FirebaseCrashlytics 0x103ac4de0 FIRCLSMachExceptionServer + 1019 (FIRCLSMachException.c:168) 4 libsystem_pthread.dylib 0x1da6f5348 _pthread_start + 115 5 libsystem_pthread.dylib 0x1da6f3948 thread_start + 7