Macaw icon indicating copy to clipboard operation
Macaw copied to clipboard

Node.toNativeImage crash

Open MikeLim96 opened this issue 6 years ago • 3 comments

hello, i just getting a crash from Node.toNativeImage in CGMappings.swift line 143, i'm using version 0.9.4, i'm trying to parse url to svg in user initiated thread and then extract it to image in main thread, is this the possible cause of the crash ? thank you

MikeLim96 avatar Oct 03 '19 16:10 MikeLim96

Hello, @MikeLim96, can you attach crash log here?

amarunko avatar Oct 03 '19 17:10 amarunko

Crashed: com.apple.main-thread 0 Macaw 0x101c9277c Node.toNativeImage(size:layout:) + 143 (CGMappings.swift:143) 1 Skywalker 0x100710f44 closure #1 in closure #1 in SVGImageNode.configureFor(svgString:) + 101 (SVGImageNode.swift:101) 2 Skywalker 0x1004805a4 thunk for @escaping @callee_guaranteed () -> () () 3 libdispatch.dylib 0x1c6798a38 _dispatch_call_block_and_release + 24 4 libdispatch.dylib 0x1c67997d4 _dispatch_client_callout + 16 5 libdispatch.dylib 0x1c6747008 _dispatch_main_queue_callback_4CF$VARIANT$mp + 1068 6 CoreFoundation 0x1c6cec32c CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 12 7 CoreFoundation 0x1c6ce7264 __CFRunLoopRun + 1924 8 CoreFoundation 0x1c6ce67c0 CFRunLoopRunSpecific + 436 9 GraphicsServices 0x1c8ee779c GSEventRunModal + 104 10 UIKitCore 0x1f366bc38 UIApplicationMain + 212 11 Skywalker 0x100476860 main + 22 (ServicesSectionAdapter.swift:22) 12 libdyld.dylib 0x1c67aa8e0 start + 4

MikeLim96 avatar Oct 04 '19 01:10 MikeLim96

Hi Mike,

Could you please try the latest release (0.9.5) or master branch? We fixed some issues related to crash in toNativeImage.

ystrot avatar Nov 29 '19 09:11 ystrot