You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use the method EventControllerKey.set_static_name with a string literal param, then I add this controller to the window of the app, and then I open the GTK Inspector and visit the Controllers tab, I see one controller (I pressume it's the one I setted) with garbage characters (non-UTF-8), after navigating for a while, the application crashes with the Segmentation Fault (core dump) message.
I think it's because of the lifetime of the param not being 'static and the compiler optimizing it somehow.
fnset_static_name(name:Option<&str>){ ...}
Please provide a code sample as small as possible which reproduces the bug.
The bindings for that function are wrong. They would have to use a &'static glib::GStr as parameter. Should also check if there are other such static string functions that need the same treatment.
You want to send a PR to manually implement bindings for that function?
Bug description
When I use the method
EventControllerKey.set_static_name
with a string literal param, then I add this controller to the window of the app, and then I open the GTK Inspector and visit theControllers
tab, I see one controller (I pressume it's the one I setted) with garbage characters (non-UTF-8), after navigating for a while, the application crashes with the Segmentation Fault (core dump) message.I think it's because of the lifetime of the param not being
'static
and the compiler optimizing it somehow.Please provide a code sample as small as possible which reproduces the bug.
Backtrace
N/A because it doesn't panic, the process just get killed by the OS.So the error is non-deterministic, I tried another run and the app didn't crash at any moment, but the garbage characters were still there
The text was updated successfully, but these errors were encountered: