Skip to content
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

The example crashes on linux with flutter 3.22 #460

Open
madadam opened this issue May 14, 2024 · 3 comments
Open

The example crashes on linux with flutter 3.22 #460

madadam opened this issue May 14, 2024 · 3 comments

Comments

@madadam
Copy link

madadam commented May 14, 2024

In the latest version of flutter (3.22) the example crashes on linux. It seems that calling gtk_window_realize instead of gtk_window_show causes the subsequent plugin registration to fail, for some reason. This means that the documentation about making the app hidden at launch is also not correct anymore.

@madadam
Copy link
Author

madadam commented May 14, 2024

An ugly workaround it to show the window before registering the plugins and then hide it afterwards:

gtk_widget_show(GTK_WIDGET(window));
fl_register_plugins(FL_PLUGIN_REGISTRY(view));
gtk_widget_hide(GTK_WIDGET(window));

@CodeDoctorDE
Copy link
Contributor

I have the same problem, the workaround works on my side but you see that this page will be reopened on kde plasma

@GZGavinZhao
Copy link

Likely caused by flutter/engine#50754.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants