-
-
Notifications
You must be signed in to change notification settings - Fork 478
Segmentation fault during release of shared request context. Temporary fix applied. #333
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
Comments
Commit 7f1e84b temporarily fixes issue by not releasing shared request context at all. Seems to work fine. See the commented out code in Shutdown:
Other calls that released context that were in CloseBrowser and in RemovePyBrowser were removed. Keeping this issue still open as waiting for comment from Marshall. |
After having a second look at this issue, it looks like segmentation fault might have had something to do the with the |
Did not see any crashes with v66 when temporarily enabled shared request context release. Keeping it still disabled just to be safe. |
Related upstream issue: https://bitbucket.org/chromiumembedded/cef/issues/2505/cefrequestcontext-inherited-from-global |
This should no longer be a problem with upstream issue 2622 (Network Service). |
Uh oh!
There was an error while loading. Please reload this page.
This was reproduced in hello_world.py example when running js alert example from w3schools during closing of popup and main windows. Logs and backtrace with gdb:
cef_ref_counted.h line 348 is an assignment operator:
There are three being made three NULL assignments to shared request context in CloseBrowser, RemovePyBrowser (called from OnBeforeClose) and in Shutdown:
However as you can see there is always check to .get() before .Assign(), so if the value is NULL a Release() will never be called.
From the logs you can see that there are OnContextReleased callbacks still being called after OnBeforeClose. This is probably some issue with CEF, these calls should happen before OnBeforeClose. Reported on CEF Forum:
https://magpcss.org/ceforum/viewtopic.php?f=6&t=14989
The text was updated successfully, but these errors were encountered: