Closed bilelmoussaoui closed 4 years ago
The assertion about initialization has to be removed from the gtk::Application
constructor, at least. gtk::Application::run()
is initializing GTK by itself already when needed.
The assertion about initialization has to be removed from the
gtk::Application
constructor, at least.gtk::Application::run()
is initializing GTK by itself already when needed.
I looked a bit at the code and it seems the assert is skipped https://github.com/gtk-rs/gtk4/blob/master/src/application.rs#L11
https://github.com/gtk-rs/gtk4/blob/master/src/auto/functions.rs#L333 is where the panic comes from according to your backtrace. That obviously makes no sense and it should not assert that here.
I have just start to play with gtk4, the first run wasn't a success sadly as I'm getting this when running any examples from gtk-rs/examples4.
Here's the backtrace with
RUST_BACKTRACE=full
Expect some other issues and hopefully pull requests to fix them :)