-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
SEGFAULT crash #1835
Comments
This doesn't segfault here. Can you run in a debugger and get a full backtrace, and also provide anything that might be printed on stdout/stderr before that? |
I think I can, I just don't know how with Rust. Is there any page with a guide or any orientation on how I should do it? |
|
The things printed are only my own debug The backtrack:
Is this enough? |
Using
|
Does this also happen if you select adwaita as theme? I remember seeing a similar crash before, which was caused by Ubuntu's theme. |
I'm not sure. I don't do anything related to theming in the app. I don't even have this theme installed I think. I tried running after |
This looks like either a distro issue or a gtk issue, I would try to reproduce it using some simple python example and report it there. Nothing to do with the bindings. |
The crashing example is a port of a Python app to Rust. In Python, it works fine and I never have any crashes. The issue happened when I ported it to Rust using gtk4-rs. I'm using Debian / Ubuntu. If it's a distro problem, could you point out how the appropriate bug report can be opened? What were the results of trying to reproduce the example given in the OP? |
This looks like a CSS issue to me. As mentioned above by @sdroege, have you tried to run it with the default css theme? |
Bug description
My code is crashing with a segfault.
Maybe related to #1807.
Backtrace
The project is in this repository on the
gtk-crash
branch where I removed a little of the noise (like the old Python implementation).https://github.com/AllanDaemon/uchoose/tree/gtk-crash
To reproduce, just run
cargo run
The crash happens in the file
src/ui/ui_gtk4.rs
in the methodbuild_uchoose()
called bychoose()
.I'm not using the
app.connect_activate()
method but calling thebuild_uchoose()
directly;In the start of the function, it create a
gtk::Box::builder()
. It crashes with a SEGFAULT when call the.build()
method.IDK if I'm doing something wrong, but a SEGFAULT is not the way to go. That's why I think it's related with the #1807 issue.
The text was updated successfully, but these errors were encountered: