-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] Adding a Menu with items to tauri::Builder in Linux crashes with stack overflow #5940
Comments
Can't reproduce, the repro worked fine, need more info like a stack trace if possible. |
How would I produce a stack trace? |
Not much of a stack trace, but here is what I'm getting from gdb:
|
so the issue might be coming from libgtk-3 but not sure. also what is the output of |
Ah,
|
I have some more info available after enabling Ubuntu's debuginfod symbols:
(Note for anyone else who wants to enable the same: see https://ubuntu.com/server/docs/service-debuginfod) UPDATE: Looks similar to this report from an app called Transmission built on GTK: https://bugs.launchpad.net/ubuntu/+source/transmission/+bug/1792811 |
FWIW this is the specific libgtk-3 package installed on my system:
UPDATE: The line 987 appears to be just a reference to the |
this is really weird, and I can't find anything useful related to the issue nor can I reproduce it, can you try the same app on another Linux machine? |
Thank you for looking in to it. Agreed it is weird. I will try to run on a docker container or within a virtual machine at some point (I'm having trouble getting it set up at the moment). I tried
This is repeated over and over again (we're in the 7000s here). What could |
Describe the bug
When running a demo app with a menu that has at least one item, Tauri crashes with the following error:
Here is how I bumped in to this issue. Note that removing
.add_native_item(...)
will compile and run OK.Here is a demo app with a commit that demonstrates the issue:
https://github.com/canadaduane/tsgame/tree/57768202f0ae9dcd559b930d6f62663a7e95ab98
Reproduction
pnpm tauri dev
in LinuxExpected behavior
The app should not crash with stack overflow. A more useful error would be nice, but ideally the Quit option in the menu should be displayed in a running app.
Platform and versions
I'm not sure how to get the platform and versions from the suggested commands:
Here is manually collected info:
Stack trace
No response
Additional context
I'm just beginning to use Tauri. I started with the tauri + sveltekit page (https://tauri.app/v1/guides/getting-started/setup/sveltekit).
The text was updated successfully, but these errors were encountered: