hlwhl / webview_cef

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

关闭应用, 应用无响应一段时间后闪退。 #135

Open JemmyWang94 opened 1 month ago

JemmyWang94 commented 1 month ago

[0812/155320.365:INFO:CONSOLE(464)] "[vite] hot updated: /src/views/markets/subscription/components/subscription-apply.tsx", source: http://192.1.2.97:3000/@vite/client (464) [0812/155320.366:INFO:CONSOLE(464)] "[vite] hot updated: /src/assets/tailwind.css", source: http://192.1.2.97:3000/@vite/client (464) [0812/155332.437:FATAL:shutdown_checker.cc(30)] Check failed: !IsCefShutdown(). Object reference incorrectly held at CefShutdown Lost connection to device.

SinyimZhi commented 1 month ago

This is caused by not calling CefShutdown when closing the application. Under normal circumstances, the application should ensure that CefShutdown is called before exiting itself to prevent any residual processes related to Cef. We have provided an interface for notifying the C++ side to call CefShutdown, but the user of the plugin needs to ensure that the interface can be called properly (considering that the interface passes messages through the method channel, and if the method channel is closed in advance, it may cause the call to fail).