webview_cef icon indicating copy to clipboard operation
webview_cef copied to clipboard

Check failed: !g_instance error on access again to page

Open MobileD3v3l opened this issue 10 months ago • 4 comments

Hello,

Following the example proposed in the plugin, if I navigate to that page from a home page it is displayed correctly.

However, when you navigate back to the source page and access in again, the application closes and displays the following message on the terminal:

[0419/092055.443214:FATAL:webview_handler.cc(36)] Verification failed: !g_instance.

What could be the problem?

I have consulted some of the previous issues related to !g_instance, but I have not been able to find the solution.

Greetings

MobileD3v3l avatar Apr 19 '24 07:04 MobileD3v3l

Same question as #96

SinyimZhi avatar Apr 19 '24 15:04 SinyimZhi

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? @MobileD3v3l

SinyimZhi avatar May 10 '24 05:05 SinyimZhi

After some tests it seems working correctly. Only one thing, but I need to investigate it deeper as maybe is something on my implementation, JSchannels seem to be lost the second time the app access the webview.

MobileD3v3l avatar May 21 '24 10:05 MobileD3v3l

After some tests it seems working correctly. Only one thing, but I need to investigate it deeper as maybe is something on my implementation, JSchannels seem to be lost the second time the app access the webview.

Jschannel needs to be injected every time a page is loaded, and it‘s lifecycle is affected by the lifecycle of the page.

SinyimZhi avatar May 22 '24 01:05 SinyimZhi