-
-
Notifications
You must be signed in to change notification settings - Fork 407
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
CEF browser crashes when zooming in with leaflet.js #3327
Comments
I can't reproduce crash on Win 10.0.19045.2364. Latest MTA Client. |
Henlo, Ive been one of the testers and I havent had a single crash for past few days. Multi Theft Auto v1.6-release-22388 Looking at dxGetStatus, theres nothing suspicious going on. Edit: |
Adding Can you try to add <script>L_DISABLE_3D = true;</script>
<script src="leaflet.js"></script> Edit: nevermind, I'm still able to replicate it after some tries. I've probably replicated the issue 3 times out of 50 attempts. Never received the crash dialog though, only the browser 'freezing'. OS Name: Microsoft Windows 10 Pro |
Good news I guess, we traced down to what causes the freeze/crash. Reference: Leaflet/Leaflet#4821 The painting "thread" causes the CEF process to freeze/crash due to overload/timeout. As an example: 6000x6000 JPG image: This would explain the incosistency across multiple runs, depending on how long the painting takes, the CEF process may freeze/crash. Question remains if we can fix/optimize that in a certain way? For now the solution is to take a smaller image texture. |
Describe the bug
I'm having an issue where my CEF browser crashes due to a sort of unknown reason. I'm using leaflet.js to display a map, and when I zoom in on the map, the browser crashes.
Test Resource
leaflet.zip
Steps to reproduce
optional
Press K to open BrowserDevToolsIf (for whatever reason) it triggered the crash, you should notice that the browser is frozen on the last rendered frame.
If you have DevTools open, you should see 'Render process gone'.
Version
v1.6-release-22388
Windows 11 (10.0.22631)
Additional context
Things I found to be irrelevant (i.e. the crash happens regardless of it)
I tried all sorts of debugging methods I can and there's no doubt it's caused by a function or some calculations within leaflet.js, but specifically within MTA's CEF. Particularly calling
map.fitBounds()
ormap.zoomIn()
.MTA/CEF/cefdebug.txt
shows nothing at the time of the crash as far as I know.I made a test resource which has the code necessary to enable you to trigger the crash. However, since I don't know the requirements/pattern for the crash, you may have to try the reproduction steps multiple times, restart the resource, reconnect, etc.
Relevant log output
No response
Security Policy
The text was updated successfully, but these errors were encountered: