Skip to content

Instantly share code, notes, and snippets.

@samizdatco
Created July 25, 2022 14:19
Show Gist options
  • Save samizdatco/257ff25a39a113371aa97378ce3b2eec to your computer and use it in GitHub Desktop.
Save samizdatco/257ff25a39a113371aa97378ce3b2eec to your computer and use it in GitHub Desktop.
Crash when deallocating renderer
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x10360ce0)
* frame #0: 0x00000001bb2165a0 libobjc.A.dylib`objc_msgSend + 32
frame #1: 0x0000000100999fd4 rafx-win`_$LT$$LP$$RP$$u20$as$u20$objc..message..MessageArguments$GT$::invoke::h30bf3e6d2c283a8c(imp=(libobjc.A.dylib`objc_msgSend), obj=0x000000010360d530, sel=Sel @ 0x000000016fdf7b20, (null)=<unavailable>) at mod.rs:128:17
frame #2: 0x000000010099e400 rafx-win`objc::message::platform::send_unverified::_$u7b$$u7b$closure$u7d$$u7d$::h77d0856c11fe0d0c at mod.rs:27:9
frame #3: 0x000000010099c948 rafx-win`objc_exception::try::_$u7b$$u7b$closure$u7d$$u7d$::h34866726d430948d at lib.rs:68:31
frame #4: 0x000000010099b6f8 rafx-win`objc_exception::try_no_ret::try_objc_execute_closure::h359046944fc7da9f(closure=0x000000016fdf7ce0) at lib.rs:34:9
frame #5: 0x00000001009af878 rafx-win`RustObjCExceptionTryCatch(try=(rafx-win`objc_exception::try_no_ret::try_objc_execute_closure::h359046944fc7da9f at lib.rs:30), context=0x000000016fdf7ce0, error=0x000000016fdf7d20) at exception.m:10:9
frame #6: 0x000000010099b148 rafx-win`objc_exception::try_no_ret::h8381f5ac26008412(closure={closure_env#0}<objc::message::platform::send_unverified::{closure_env#0}<objc::runtime::Object, (), ()>, ()> @ 0x000000016fdf7db0) at lib.rs:44:19
frame #7: 0x000000010099c5d8 rafx-win`objc_exception::try::h9fee87a5668f7206(closure=<unavailable>) at lib.rs:67:9
frame #8: 0x00000001009a1d44 rafx-win`objc::exception::try::h8132367cc2671953(closure=<unavailable>) at exception.rs:8:5
frame #9: 0x000000010099d53c rafx-win`objc::message::platform::send_unverified::h5bf0278820e603df(obj=0x000000010360d530, sel=Sel @ 0x000000016fdf7e80, args=<unavailable>) at mod.rs:26:5
frame #10: 0x00000001009610e8 rafx-win`metal::obj_drop::hbc6f381a3b6b9ce4 [inlined] objc::message::send_message::h39a72f808e092099(obj=0x000000010360d530, sel=Sel @ 0x000000016fdf7f78) at mod.rs:178:5
frame #11: 0x00000001009610d4 rafx-win`metal::obj_drop::hbc6f381a3b6b9ce4(p=0x000000010360d530) at lib.rs:491:5
frame #12: 0x0000000100957fa8 rafx-win`_$LT$metal..texture..Texture$u20$as$u20$core..ops..drop..Drop$GT$::drop::ha8c191e2a2ed3cfc(self=0x0000600002610aa0) at lib.rs:241:26
frame #13: 0x000000010094fb14 rafx-win`core::ptr::drop_in_place$LT$metal..texture..Texture$GT$::h1e9d75fe48163645((null)=0x0000600002610aa0) at mod.rs:448:1
frame #14: 0x00000001007cd4a4 rafx-win`core::ptr::drop_in_place$LT$rafx_api..backends..metal..texture..RafxRawImageMetal$GT$::h5e266a357b9c193b((null)=0x0000600002610a98) at mod.rs:448:1
frame #15: 0x00000001007cdd0c rafx-win`core::ptr::drop_in_place$LT$rafx_api..backends..metal..texture..RafxTextureMetalInner$GT$::h5230bc93473d1efe((null)=0x0000600002610a90) at mod.rs:448:1
frame #16: 0x0000000100776e94 rafx-win`alloc::sync::Arc$LT$T$GT$::drop_slow::hd4400a10ce64492b(self=0x000000016fdf82d8) at sync.rs:1093:18
frame #17: 0x0000000100779ff8 rafx-win`_$LT$alloc..sync..Arc$LT$T$GT$$u20$as$u20$core..ops..drop..Drop$GT$::drop::hb6729bf411029962(self=0x000000016fdf82d8) at sync.rs:1689:13
frame #18: 0x00000001007c736c rafx-win`core::ptr::drop_in_place$LT$alloc..sync..Arc$LT$rafx_api..backends..metal..texture..RafxTextureMetalInner$GT$$GT$::ha5bd6fff129461c6((null)=0x000000016fdf82d8) at mod.rs:448:1
frame #19: 0x00000001007cd204 rafx-win`core::ptr::drop_in_place$LT$rafx_api..backends..metal..texture..RafxTextureMetal$GT$::h4f07c547e1032a26((null)=0x000000016fdf82d8) at mod.rs:448:1
frame #20: 0x00000001007cb1f8 rafx-win`core::ptr::drop_in_place$LT$rafx_api..texture..RafxTexture$GT$::hd451be5a712d4653((null)=0x000000016fdf82d0) at mod.rs:448:1
frame #21: 0x0000000100622b6c rafx-win`core::ptr::drop_in_place$LT$rafx_framework..resources..resource_lookup..ImageResource$GT$::h122e2f468dab8034((null)=0x000000016fdf82d0) at mod.rs:448:1
frame #22: 0x000000010060c190 rafx-win`core::ptr::drop_in_place$LT$rafx_framework..resources..cleanup..DropSinkResourceInFlight$LT$rafx_framework..resources..resource_lookup..ImageResource$GT$$GT$::h3ddd3ee37bcee5ac((null)=0x000000016fdf82d0) at mod.rs:448:1
frame #23: 0x00000001005d9280 rafx-win`core::mem::drop::hccf4e3e049d4404a(_x=<unavailable>) at mod.rs:968:24
frame #24: 0x00000001006022d0 rafx-win`rafx_framework::resources::cleanup::ResourceDropSink$LT$T$GT$::destroy::h68963a4080c6fb2b(self=0x000000010700c158) at cleanup.rs:85:13
frame #25: 0x0000000100705d8c rafx-win`rafx_framework::resources::resource_lookup::ResourceLookup$LT$KeyT$C$ResourceT$GT$::destroy::h20ff4e4fc0cc28ce(self=0x000000010700c128) at resource_lookup.rs:284:9
frame #26: 0x0000000100708fbc rafx-win`rafx_framework::resources::resource_lookup::ResourceLookupSet::destroy::h11c5c8d797fc8725(self=0x000000016fdf93c8) at resource_lookup.rs:709:9
frame #27: 0x00000001006e4b50 rafx-win`_$LT$rafx_framework..resources..resource_manager..ResourceManager$u20$as$u20$core..ops..drop..Drop$GT$::drop::h2d8c1764818b81fc(self=0x000000016fdf9318) at resource_manager.rs:199:9
frame #28: 0x00000001001c9578 rafx-win`core::ptr::drop_in_place$LT$rafx_framework..resources..resource_manager..ResourceManager$GT$::h85086e341a982d87((null)=0x000000016fdf9318) at mod.rs:448:1
frame #29: 0x0000000100009360 rafx-win`core::ptr::drop_in_place$LT$skulpin_renderer..renderer..Renderer$GT$::h9381ac36dc32086c((null)=0x000000016fdf9260) at mod.rs:448:1
frame #30: 0x00000001000090d0 rafx-win`core::ptr::drop_in_place$LT$rafx_win..RafxWindow$GT$::ha9c3a5ae00b1a029((null)=0x000000016fdf9260) at mod.rs:448:1
frame #31: 0x00000001000094a0 rafx-win`core::ptr::drop_in_place$LT$core..option..Option$LT$rafx_win..RafxWindow$GT$$GT$::hf12bdab00af653c9((null)=0x000000016fdf9260) at mod.rs:448:1
frame #32: 0x0000000100011d60 rafx-win`rafx_win::main::_$u7b$$u7b$closure$u7d$$u7d$::h9a0276200736e36a(event=Event<()> @ 0x000000016fdf9aa0, _window_target=0x0000600000c144f0, control_flow=0x00000001014fdbb0) at main.rs:147:51
frame #33: 0x000000010001089c rafx-win`_$LT$winit..platform_impl..platform..app_state..EventLoopHandler$LT$T$GT$$u20$as$u20$winit..platform_impl..platform..app_state..EventHandler$GT$::handle_nonuser_event::_$u7b$$u7b$closure$u7d$$u7d$::h8a78c3e282606e00(this=0x000060000022b440, callback=borrow_mut=1) at app_state.rs:101:13
frame #34: 0x0000000100010b50 rafx-win`winit::platform_impl::platform::app_state::EventLoopHandler$LT$T$GT$::with_callback::ha586e6ec462a4ed8(self=0x000060000022b440, f={closure_env#0}<()> @ 0x000000016fdf9de0) at app_state.rs:79:13
frame #35: 0x0000000100010750 rafx-win`_$LT$winit..platform_impl..platform..app_state..EventLoopHandler$LT$T$GT$$u20$as$u20$winit..platform_impl..platform..app_state..EventHandler$GT$::handle_nonuser_event::h6bdab8ece5b4be2c(self=0x000060000022b440, event=<unavailable>, control_flow=0x00000001014fdbb0) at app_state.rs:100:9
frame #36: 0x000000010016b5a8 rafx-win`winit::platform_impl::platform::app_state::Handler::handle_nonuser_event::hf917290e12419945(self=0x00000001014fdba0, wrapper=EventWrapper @ 0x000000016fdfa4f8) at app_state.rs:206:21
frame #37: 0x000000010016cfec rafx-win`winit::platform_impl::platform::app_state::AppState::cleared::h78a2a84890f1a225(panic_info=Weak<winit::platform_impl::platform::event_loop::PanicInfo> @ 0x000000016fdfa3a8) at app_state.rs:385:13
frame #38: 0x00000001001a8478 rafx-win`winit::platform_impl::platform::observer::control_flow_end_handler::_$u7b$$u7b$closure$u7d$$u7d$::h58ddadd3bf50fd2b(panic_info=Weak<winit::platform_impl::platform::event_loop::PanicInfo> @ 0x000000016fdfaef8) at observer.rs:180:21
frame #39: 0x00000001001a825c rafx-win`winit::platform_impl::platform::observer::control_flow_handler::_$u7b$$u7b$closure$u7d$$u7d$::h5cecfe763aa8c1c5 at observer.rs:142:57
frame #40: 0x0000000100198698 rafx-win`std::panicking::try::do_call::h98505a6f16268301(data="\xe0\xb4\xdfo\U00000001") at panicking.rs:492:40
frame #41: 0x00000001001a3bc0 rafx-win`__rust_try + 32
frame #42: 0x0000000100198494 rafx-win`std::panicking::try::h55550503ac7f2375(f={closure_env#0}<winit::platform_impl::platform::observer::control_flow_end_handler::{closure_env#0}> @ 0x000000016fdfb020) at panicking.rs:456:19
frame #43: 0x00000001001771f4 rafx-win`std::panic::catch_unwind::h3803c20f1316d3c0(f={closure_env#0}<winit::platform_impl::platform::observer::control_flow_end_handler::{closure_env#0}> @ 0x000000016fdfb090) at panic.rs:137:14
frame #44: 0x00000001001958c0 rafx-win`winit::platform_impl::platform::event_loop::stop_app_on_panic::h36b165dabb11dec4(panic_info=Weak<winit::platform_impl::platform::event_loop::PanicInfo> @ 0x000000016fdfb1a0, f={closure_env#0}<winit::platform_impl::platform::observer::control_flow_end_handler::{closure_env#0}> @ 0x000000016fdfb2c8) at event_loop.rs:229:11
frame #45: 0x00000001001a809c rafx-win`winit::platform_impl::platform::observer::control_flow_handler::hd9e861a28faaa8bb(panic_info=0x000060000020d490, f={closure_env#0} @ 0x000000016fdfb4b8) at observer.rs:142:5
frame #46: 0x00000001001a83f4 rafx-win`winit::platform_impl::platform::observer::control_flow_end_handler::h949a9dbd53149f20((null)=0x0000600003308280, activity=32, panic_info=0x000060000020d490) at observer.rs:175:9
frame #47: 0x00000001bb45c244 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36
frame #48: 0x00000001bb45c094 CoreFoundation`__CFRunLoopDoObservers + 592
frame #49: 0x00000001bb45b6e0 CoreFoundation`__CFRunLoopRun + 1052
frame #50: 0x00000001bb45ab24 CoreFoundation`CFRunLoopRunSpecific + 600
frame #51: 0x00000001c4093338 HIToolbox`RunCurrentEventLoopInMode + 292
frame #52: 0x00000001c40930b4 HIToolbox`ReceiveNextEventCommon + 564
frame #53: 0x00000001c4092e68 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 72
frame #54: 0x00000001bdfc178c AppKit`_DPSNextEvent + 860
frame #55: 0x00000001bdfc0084 AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1328
frame #56: 0x00000001bdfb2250 AppKit`-[NSApplication run] + 596
frame #57: 0x0000000100999fd4 rafx-win`_$LT$$LP$$RP$$u20$as$u20$objc..message..MessageArguments$GT$::invoke::h30bf3e6d2c283a8c(imp=(libobjc.A.dylib`objc_msgSend), obj=0x00000001032053b0, sel=Sel @ 0x000000016fdfcc30, (null)=<unavailable>) at mod.rs:128:17
frame #58: 0x000000010099e400 rafx-win`objc::message::platform::send_unverified::_$u7b$$u7b$closure$u7d$$u7d$::h77d0856c11fe0d0c at mod.rs:27:9
frame #59: 0x000000010099c948 rafx-win`objc_exception::try::_$u7b$$u7b$closure$u7d$$u7d$::h34866726d430948d at lib.rs:68:31
frame #60: 0x000000010099b6f8 rafx-win`objc_exception::try_no_ret::try_objc_execute_closure::h359046944fc7da9f(closure=0x000000016fdfcdf0) at lib.rs:34:9
frame #61: 0x00000001009af878 rafx-win`RustObjCExceptionTryCatch(try=(rafx-win`objc_exception::try_no_ret::try_objc_execute_closure::h359046944fc7da9f at lib.rs:30), context=0x000000016fdfcdf0, error=0x000000016fdfce30) at exception.m:10:9
frame #62: 0x000000010099b148 rafx-win`objc_exception::try_no_ret::h8381f5ac26008412(closure={closure_env#0}<objc::message::platform::send_unverified::{closure_env#0}<objc::runtime::Object, (), ()>, ()> @ 0x000000016fdfcec0) at lib.rs:44:19
frame #63: 0x000000010099c5d8 rafx-win`objc_exception::try::h9fee87a5668f7206(closure=<unavailable>) at lib.rs:67:9
frame #64: 0x00000001009a1d44 rafx-win`objc::exception::try::h8132367cc2671953(closure=<unavailable>) at exception.rs:8:5
frame #65: 0x000000010099d53c rafx-win`objc::message::platform::send_unverified::h5bf0278820e603df(obj=0x00000001032053b0, sel=Sel @ 0x000000016fdfcf90, args=<unavailable>) at mod.rs:26:5
frame #66: 0x00000001000122a0 rafx-win`winit::platform_impl::platform::event_loop::EventLoop$LT$T$GT$::run_return::_$u7b$$u7b$closure$u7d$$u7d$::hbfad6ce51aff30a1 [inlined] objc::message::send_message::h42a53f441fbe5d76(obj=0x00000001032053b0, sel=Sel @ 0x000000016fdfd1a8) at mod.rs:178:5
frame #67: 0x000000010001228c rafx-win`winit::platform_impl::platform::event_loop::EventLoop$LT$T$GT$::run_return::_$u7b$$u7b$closure$u7d$$u7d$::hbfad6ce51aff30a1 at event_loop.rs:188:22
frame #68: 0x0000000100001e84 rafx-win`objc::rc::autorelease::autoreleasepool::h8fea74f3f380f601(f={closure_env#0}<(), rafx_win::main::{closure_env#0}> @ 0x000000016fdfd3a0) at autorelease.rs:29:5
frame #69: 0x0000000100011f40 rafx-win`winit::platform_impl::platform::event_loop::EventLoop$LT$T$GT$::run_return::ha85f0412f6c8989a(self=0x000000016fdfd4a0, callback=<unavailable>) at event_loop.rs:178:9
frame #70: 0x00000001000124c0 rafx-win`winit::platform_impl::platform::event_loop::EventLoop$LT$T$GT$::run::h47bf7dd9bcfe93c3(self=EventLoop<()> @ 0x000000016fdfd4a0, callback=<unavailable>) at event_loop.rs:157:9
frame #71: 0x0000000100004d18 rafx-win`winit::event_loop::EventLoop$LT$T$GT$::run::he510ee5a77b1c441(self=<unavailable>, event_handler={closure_env#0} @ 0x000000016fdfe7b8) at event_loop.rs:154:9
frame #72: 0x0000000100004c80 rafx-win`rafx_win::main::ha5387039125d7b79 at main.rs:136:5
frame #73: 0x0000000100008a78 rafx-win`core::ops::function::FnOnce::call_once::h59d0b833a5ae01f5((null)=(rafx-win`rafx_win::main::ha5387039125d7b79 at main.rs:95), (null)=<unavailable>) at function.rs:227:5
frame #74: 0x000000010000248c rafx-win`std::sys_common::backtrace::__rust_begin_short_backtrace::hc01021b664f936d1(f=(rafx-win`rafx_win::main::ha5387039125d7b79 at main.rs:95)) at backtrace.rs:122:18
frame #75: 0x00000001000022cc rafx-win`std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h2ee7500d08c35960 at rt.rs:145:18
frame #76: 0x00000001009f1a18 rafx-win`std::rt::lang_start_internal::hc453db0ee48af82e [inlined] core::ops::function::impls::_$LT$impl$u20$core..ops..function..FnOnce$LT$A$GT$$u20$for$u20$$RF$F$GT$::call_once::h485d4c2966ec30a8 at function.rs:259:13 [opt]
frame #77: 0x00000001009f1a0c rafx-win`std::rt::lang_start_internal::hc453db0ee48af82e [inlined] std::panicking::try::do_call::h375a887be0bea938 at panicking.rs:492:40 [opt]
frame #78: 0x00000001009f1a0c rafx-win`std::rt::lang_start_internal::hc453db0ee48af82e [inlined] std::panicking::try::hecad40482ef3be15 at panicking.rs:456:19 [opt]
frame #79: 0x00000001009f1a0c rafx-win`std::rt::lang_start_internal::hc453db0ee48af82e [inlined] std::panic::catch_unwind::haf1f664eb41a88eb at panic.rs:137:14 [opt]
frame #80: 0x00000001009f1a0c rafx-win`std::rt::lang_start_internal::hc453db0ee48af82e [inlined] std::rt::lang_start_internal::_$u7b$$u7b$closure$u7d$$u7d$::h976eba434e9ff4cf at rt.rs:128:48 [opt]
frame #81: 0x00000001009f1a0c rafx-win`std::rt::lang_start_internal::hc453db0ee48af82e [inlined] std::panicking::try::do_call::h8f2501ab92e340b0 at panicking.rs:492:40 [opt]
frame #82: 0x00000001009f1a0c rafx-win`std::rt::lang_start_internal::hc453db0ee48af82e [inlined] std::panicking::try::hbeb9f8df83454d42 at panicking.rs:456:19 [opt]
frame #83: 0x00000001009f1a0c rafx-win`std::rt::lang_start_internal::hc453db0ee48af82e [inlined] std::panic::catch_unwind::h0a9390b2202af6e9 at panic.rs:137:14 [opt]
frame #84: 0x00000001009f1a0c rafx-win`std::rt::lang_start_internal::hc453db0ee48af82e at rt.rs:128:20 [opt]
frame #85: 0x0000000100002294 rafx-win`std::rt::lang_start::h81f882c8b5ed42d9(main=(rafx-win`rafx_win::main::ha5387039125d7b79 at main.rs:95), argc=1, argv=0x000000016fdfebd8) at rt.rs:144:17
frame #86: 0x0000000100004cbc rafx-win`main + 32
frame #87: 0x000000010251108c dyld`start + 520
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment