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

[windows] opens multiple windows and crashes on loading multiple youtube iframes #114

Open joshiGaming opened 3 months ago

joshiGaming commented 3 months ago

Hi, I've faced an issue where the app either crashes or freezes when I attempt to load multiple YouTube iframes, and this occurs even with the official example application. Additionally, upon closing the app, a new window of the application unexpectedly launches.

Here are the logs:

logs [0405/043351.898:WARNING:browser_info.cc(298)] Returning a speculative frame for 21474836485 [5,5] [0405/043352.047:WARNING:browser_info.cc(298)] Returning a speculative frame for 21474836485 [5,5] [0405/043352.048:WARNING:browser_info.cc(298)] Returning a speculative frame for 21474836485 [5,5] [0405/043352.048:WARNING:browser_info.cc(298)] Returning a speculative frame for 21474836485 [5,5] [0405/043352.048:WARNING:browser_info.cc(298)] Returning a speculative frame for 21474836485 [5,5] [0405/043352.054:INFO:CONSOLE(0)] "Error with Permissions-Policy header: Unrecognized feature: 'ch-ua-form-factor'.", source: (0) [0405/043352.084:WARNING:browser_info.cc(298)] Returning a speculative frame for 21474836488 [5,8] [0405/043352.085:WARNING:browser_info.cc(298)] Returning a speculative frame for 21474836488 [5,8] [0405/043352.085:WARNING:browser_info.cc(298)] Returning a speculative frame for 21474836488 [5,8] [0405/043352.085:WARNING:browser_info.cc(298)] Returning a speculative frame for 21474836488 [5,8] [0405/043352.104:INFO:CONSOLE(0)] "Error with Permissions-Policy header: Unrecognized feature: 'ch-ua-form-factor'.", source: (0) [0405/043352.130:WARNING:browser_info.cc(298)] Returning a speculative frame for 21474836491 [5,11] [0405/043352.131:WARNING:browser_info.cc(298)] Returning a speculative frame for 21474836491 [5,11] [0405/043352.131:WARNING:browser_info.cc(298)] Returning a speculative frame for 21474836491 [5,11] [0405/043352.132:WARNING:browser_info.cc(298)] Returning a speculative frame for 21474836491 [5,11] [0405/043352.156:INFO:CONSOLE(0)] "Error with Permissions-Policy header: Unrecognized feature: 'ch-ua-form-factor'.", source: (0) [0405/043352.228:WARNING:browser_info.cc(298)] Returning a speculative frame for 21474836494 [5,14] [0405/043352.228:WARNING:browser_info.cc(298)] Returning a speculative frame for 21474836494 [5,14] [0405/043352.228:WARNING:browser_info.cc(298)] Returning a speculative frame for 21474836494 [5,14] [0405/043352.228:WARNING:browser_info.cc(298)] Returning a speculative frame for 21474836494 [5,14] [0405/043352.235:WARNING:browser_info.cc(298)] Returning a speculative frame for 21474836497 [5,17] [0405/043352.236:WARNING:browser_info.cc(298)] Returning a speculative frame for 21474836497 [5,17] [0405/043352.236:WARNING:browser_info.cc(298)] Returning a speculative frame for 21474836497 [5,17] [0405/043352.236:WARNING:browser_info.cc(298)] Returning a speculative frame for 21474836497 [5,17] [0405/043352.316:WARNING:browser_info.cc(298)] Returning a speculative frame for 21474836500 [5,20] [0405/043352.316:WARNING:browser_info.cc(298)] Returning a speculative frame for 21474836500 [5,20] [0405/043352.316:WARNING:browser_info.cc(298)] Returning a speculative frame for 21474836500 [5,20] [0405/043352.316:WARNING:browser_info.cc(298)] Returning a speculative frame for 21474836500 [5,20] [0405/043352.321:INFO:CONSOLE(0)] "Error with Permissions-Policy header: Unrecognized feature: 'ch-ua-form-factor'.", source: (0) [0405/043352.329:INFO:CONSOLE(0)] "Error with Permissions-Policy header: Unrecognized feature: 'ch-ua-form-factor'.", source: (0) [0405/043352.370:INFO:CONSOLE(0)] "Error with Permissions-Policy header: Unrecognized feature: 'ch-ua-form-factor'.", source: (0) Lost connection to device. [0405/045806.728:FATAL:context.cc(37)] Check failed: !g_context. CefShutdown was not called

For reproducing the issue here is the link: https://mc-pixie.com/iframestest.html

I tried it on a few devices and had the same issue on all of them.

Thanks in advance

SinyimZhi commented 2 months ago

The multiple window support is on the way. But i think the problem is about the YouTube video support. #105

SinyimZhi commented 1 month ago

Hi, every one. I've merged multi instance and multi window support branch to main. There is a lot of problems might have been resloved. Could you guys help us to verify what we did success and what new problem brought in? @joshiGaming