muda icon indicating copy to clipboard operation
muda copied to clipboard

[bug] Tauri crashes when clicking on menu item that belongs to replaced system tray menu

Open jorge-menjivar opened this issue 1 year ago • 1 comments

To Reproduce

Tested on macOS 14.3.1. Open the system tray menu and keep it open while the system menu gets updated in the background just as shown in #129. Click on the menu item of the still open menu. App will crash.

Trace

thread main panicked at.txt

Repo to Reproduce

https://github.com/jorge-menjivar/tauri-tray-bug

jorge-menjivar avatar Mar 26 '24 15:03 jorge-menjivar

cc @pewsheen

amrbashir avatar Mar 28 '24 04:03 amrbashir

I'll tend to close the menu when we drop it, but it will look a little weird.

pewsheen avatar May 22 '24 11:05 pewsheen

I guess we should close it to avoid crashes, it will look weird because it is not recommended to recreate the whole menu and instead update its items.

amrbashir avatar May 22 '24 16:05 amrbashir