thewh1teagle/vibe

Bug: crash on 2.6.3

Closed this issue · 5 comments

What happened?

After updating on 2.6.3 app crashes. Everything worked great on 2.6.2

Steps to reproduce

Start vibe

What OS are you seeing the problem on?

MacOS

Relevant log output

RUST_LOG=vibe=debug,whisper_rs=debug RUST_BACKTRACE=1 /Applications/vibe.app/Contents/MacOS/vibe
2024-10-12T20:12:38.395211Z DEBUG vibe::setup: Vibe App Running
2024-10-12T20:12:38.396463Z DEBUG vibe::setup: webview version: 18615.3.12.11.2
2024-10-12T20:12:38.396641Z DEBUG vibe::setup: Cargo features:
2024-10-12T20:12:38.396645Z DEBUG vibe::setup: CPU feature detection is not supported on this architecture.
2024-10-12T20:12:38.396648Z DEBUG vibe::setup: Executable Architecture: aarch64
2024-10-12T20:12:38.396653Z DEBUG vibe::setup: APP VERSION: 2.6.3
2024-10-12T20:12:38.396654Z DEBUG vibe::setup: COMMIT HASH: e7a54d7fb472e6e384a33c50a767a2dfce9b1298
2024-10-12T20:12:38.396663Z DEBUG vibe::setup: Non CLI mode
2024-10-12 23:12:38.438 vibe[94220:9974421] -[TaoApp activate]: unrecognized selector sent to instance 0x121706aa0
2024-10-12 23:12:38.442 vibe[94220:9974421] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[TaoApp activate]: unrecognized selector sent to instance 0x121706aa0'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000019a7db154 __exceptionPreprocess + 176
	1   libobjc.A.dylib                     0x000000019a2fa4d4 objc_exception_throw + 60
	2   CoreFoundation                      0x000000019a882110 -[NSObject(NSObject) __retain_OA] + 0
	3   CoreFoundation                      0x000000019a7430a0 ___forwarding___ + 1600
	4   CoreFoundation                      0x000000019a7429a0 _CF_forwarding_prep_0 + 96
	5   vibe                                0x00000001038dee4c _ZN5objc29exception10try_no_ret24try_objc_execute_closure17h99fc669a3328d5cfE + 40
	6   vibe                                0x00000001038efaf4 rust_objc_sys_0_3_try_catch_exception + 28
	7   vibe                                0x00000001038e1ac8 _ZN13objc2_app_kit9generated15__NSApplication13NSApplication8activate17h8d061a7cc8e06e8eE + 80
	8   vibe                                0x000000010385c3cc _ZN3wry9wkwebview12InnerWebView11new_ns_view17he0c7286439247f49E + 5704
	9   vibe                                0x0000000102692604 _ZN17tauri_runtime_wry14create_webview17h357ecaafdde1aaa2E + 8236
	10  vibe                                0x00000001026901c0 _ZN17tauri_runtime_wry13create_window17h336ef93019e2786cE + 1120
	11  vibe                                0x00000001026a6d10 _ZN4core3ops8function6FnOnce40call_once$u7b$$u7b$vtable.shim$u7d$$u7d$17h063def344ed79e8aE + 92
	12  vibe                                0x00000001026970c8 _ZN17tauri_runtime_wry19handle_user_message17h6d506476412ef6b4E + 992
	13  vibe                                0x0000000102696314 _ZN17tauri_runtime_wry17send_user_message17hfecd9b5ababee479E + 152
	14  vibe                                0x000000010269464c _ZN17tauri_runtime_wry16Context$LT$T$GT$13create_window17h0875900253a4b85bE + 304
	15  vibe                                0x000000010278db74 _ZN5tauri6window26WindowBuilder$LT$R$C$M$GT$12with_webview17hfc36add8e3af6544E + 1716
	16  vibe                                0x00000001025f5cc0 _ZN4vibe5setup5setup17hc7d1e0f67043a00bE + 7484
	17  vibe                                0x00000001026c4efc _ZN5tauri3app5setup17hc1183a31ab93c21fE + 776
	18  vibe                                0x00000001028134ec _ZN5tauri3app12App$LT$R$GT$3run28_$u7b$$u7b$closure$u7d$$u7d$17h9c7cf99c0cc1e67cE + 60
	19  vibe                                0x0000000102694ac4 _ZN17tauri_runtime_wry17handle_event_loop17hd208c0dc3370d834E + 472
	20  vibe                                0x0000000102818b10 _ZN83_$LT$tauri_runtime_wry..Wry$LT$T$GT$$u20$as$u20$tauri_runtime..Runtime$LT$T$GT$$GT$3run28_$u7b$$u7b$closure$u7d$$u7d$17h5cab959dccec81b8E + 640
	21  vibe                                0x00000001027f6714 _ZN140_$LT$tao..platform_impl..platform..app_state..EventLoopHandler$LT$T$GT$$u20$as$u20$tao..platform_impl..platform..app_state..EventHandler$GT$20handle_nonuser_event17hb595fc348ebe3640E + 912
	22  vibe                                0x000000010389a108 _ZN3tao13platform_impl8platform9app_state7Handler20handle_nonuser_event17h4a9365e84ee4bae7E + 296
	23  vibe                                0x000000010389ac98 _ZN3tao13platform_impl8platform9app_state8AppState8launched17h09e7a9ba040eb461E + 788
	24  vibe                                0x000000010388d9ec _ZN3tao13platform_impl8platform12app_delegate20did_finish_launching17h02d2eaf6240454b9E + 132
	25  CoreFoundation                      0x000000019a757180 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 148
	26  CoreFoundation                      0x000000019a7f2eec ___CFXRegistrationPost_block_invoke + 88
	27  CoreFoundation                      0x000000019a7f2e34 _CFXRegistrationPost + 440
	28  CoreFoundation                      0x000000019a7284cc _CFXNotificationPost + 704
	29  Foundation                          0x000000019b6868e4 -[NSNotificationCenter postNotificationName:object:userInfo:] + 88
	30  AppKit                              0x000000019d98ed90 -[NSApplication _postDidFinishNotification] + 284
	31  AppKit                              0x000000019d98eb40 -[NSApplication _sendFinishLaunchingNotification] + 172
	32  AppKit                              0x000000019d98cbdc -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 504
	33  AppKit                              0x000000019d98c7d8 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 492
	34  Foundation                          0x000000019b6b0b54 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 316
	35  Foundation                          0x000000019b6b09b4 _NSAppleEventManagerGenericHandler + 80
	36  AE                                  0x00000001a0a8e518 _AppleEventsCheckInAppWithBlock + 14724
	37  AE                                  0x00000001a0a8de44 _AppleEventsCheckInAppWithBlock + 12976
	38  AE                                  0x00000001a0a86f18 aeProcessAppleEvent + 488
	39  HIToolbox                           0x00000001a3fc2cf4 AEProcessAppleEvent + 68
	40  AppKit                              0x000000019d987c80 _DPSNextEvent + 1408
	41  AppKit                              0x000000019d986b18 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 716
	42  AppKit                              0x000000019d97af7c -[NSApplication run] + 464
	43  vibe                                0x000000010266a9e0 _ZN14objc_exception10try_no_ret24try_objc_execute_closure17h762d8053311581eaE + 44
	44  vibe                                0x00000001038ad814 RustObjCExceptionTryCatch + 28
	45  vibe                                0x0000000102610a04 _ZN4objc7message8platform15send_unverified17h255f694f6af67528E + 92
	46  vibe                                0x0000000102809284 _ZN3tao13platform_impl8platform10event_loop18EventLoop$LT$T$GT$3run17hff8a1b582776204dE + 756
	47  vibe                                0x00000001026c12f0 _ZN5tauri3app16Builder$LT$R$GT$3run17h017d6a5e265f08acE + 8180
	48  vibe                                0x00000001026e4d3c _ZN4vibe4main17heddd8ca127a2ffbaE + 2456
	49  vibe                                0x00000001024a1768 _ZN3std3sys9backtrace28__rust_begin_short_backtrace17hfff338af53a69101E + 12
	50  vibe                                0x000000010266e600 _ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17hc518e640ccde0ee8E + 24
	51  vibe                                0x0000000103a808cc _ZN3std2rt19lang_start_internal17hdd117cb81a316264E + 808
	52  vibe                                0x00000001026ea78c main + 52
	53  dyld                                0x000000019a32bf28 start + 2236
)
libc++abi: terminating due to uncaught exception of type NSException
2024-10-12T20:12:38.444377Z ERROR vibe::setup: Crash exception code: Some(ExceptionInfo { kind: 5, code: 65539, subcode: Some(6) })
zsh: abort      RUST_LOG=vibe=debug,whisper_rs=debug RUST_BACKTRACE=1

Hey @beautyfree,
Thanks for letting me know!
It seems the error is caused by the tauri library. I’ve just updated the tauri crates, refreshed the Cargo.lock file, and enabled LTO. I believe something in that process is triggering the crash. though, I can't reproduce it on my macOS with m1 chip. In the meantime, I’ve disabled the OTA update to prevent others from encountering the issue, and I’ve reported it to the tauri team.

Thank you! I'm on Apple M1 Pro 2021 if it make sense

@beautyfree

Any chance you can try run these and see if one of them works?

no_lto

wget https://github.com/thewh1teagle/vibe/releases/download/v2.6.3/vibe_aarch64_no_lto
chmod +x ./vibe_aarch64_no_lto
./vibe

older_crates

wget https://github.com/thewh1teagle/vibe/releases/download/v2.6.3/vibe_aarch64_older_crates
chmod +x ./vibe_aarch64_older_crates
./vibe

@thewh1teagle

./vibe_aarch64_no_lto:

2024-10-13 18:59:13.397 vibe_aarch64_no_lto[53212:10849566] -[TaoApp activate]: unrecognized selector sent to instance 0x122f05700
thread 'main' panicked at /Users/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-app-kit-0.2.2/src/generated/NSApplication.rs:325:1:
uncaught exception <NSException: 0x600000f65ef0> 'NSInvalidArgumentException' reason:-[TaoApp activate]: unrecognized selector sent to instance 0x122f05700
libc++abi: terminating due to uncaught foreign exception
zsh: abort      ./vibe_aarch64_no_lto

and ./vibe_aarch64_older_crates works great

So it seems like it's simply because I updated the crates and tauri, for now on I'll be more careful when updating these crates
I re-uploaded the binaries to version 2.6.3 and set it as the latest release again.

Hopefully the LTO doesn't really cause that issue cause I kept it.
If the problem persists feel free to reopen the issue
Thanks!