hlwhl / webview_cef

WebView for Flutter Desktop Apps using CEF(Chromium Embedded Framework) [Work in Progress]
Apache License 2.0
158 stars 44 forks source link

App Crashes on Debug Restart #98

Closed bahricanyesil closed 5 months ago

bahricanyesil commented 6 months ago

It throws "[1229/150823.836608:FATAL:webview_handler.cc(35)] Check failed: !g_instance." error when you restarted the app and tried to show webview again.

SinyimZhi commented 6 months ago

This line is called when you try to get the singleton webview_handler ,but it has not yet been instantiated or has already been destroyed. I will try to reproduce it and see if there are any issues.

bahricanyesil commented 6 months ago

This line is called when you try to get the singleton webview_handler ,but it has not yet been instantiated or has already been destroyed. I will try to reproduce it and see if there are any issues.

It may be related to the call of the "dispose" method. You can close the issue if you can not reproduce it.

SinyimZhi commented 5 months ago

@bahricanyesil I can not reproduce it, and i think the problem is caused we have not support multi instance. I'm already work on multi instance support. There is a branch on my fork named multi_window, but the solutions is not good. It can't support multi flutter engine(most multi window solutions are based on multi flutter engine). It might need to adjust the code structure a few more times