WebKit crashes when fast zooming in/out in Google Maps (Qt 5.2, Windows 7)
-
Try RELEASE mode, DEBUG mode causes crashs
-
I narrowed it down to the use of Ground Overlays (https://developers.google.com/maps/documentation/javascript/groundoverlays). I am rendering a custom image, writing it to local storage, and passing a file URL to the map. It works just fine, but when zooming in or out quickly, the issue occurs. Generally, the app runs out of memory, which seems to suggest a memory leak in the Ground Overlay implementation.
As far as I have seen, removing the ground overlay during zooming (upon "zoom_changed" event) has eliminated the issue, but it's awkward for the overlay to disappear, then reappear once the map is idle again ("idle" event). So I'm looking for another workaround.
-
[quote author="krekeltronics" date="1413569611"]Hi there, we've got the same issue with Qt 5.x up to 5.3.2 now. Were you able to resolve? Otherwise perhaps we can help one another.
Cheers![/quote]
Sorry, I didn't made much more with this. This was only a hobby project to write my own GPX-Viewer, so I was not able (and also willing :-) ) to do a lot of investigation there. Maybe I will port it to Linux and see what will happen there, but I work on this only from time to time, so this could mean that it will be a long time until I work on it again.
From my work side (the one I get paid for), I do nothing with Windows -
I am looking into porting our implementation to use the new QtWebEngine, but haven't yet figured out how to get the JavaScript to talk to the C++. It used to use addToJavaScriptWindowObject on the frame, but I think it would use QtWebChannel now.
-
I am still finding this consistently with Windows 7/8 and Mac OS X 10.9/10.10.x and Qt 5.4rc, both release and debug. I'm not sure I have any choice any more short of migrating away from Qt (that would be bad) or trying Qt WebEngine (and finding a way for the JS and C++ functions to talk to each other).
-
I am still finding this consistently with Windows 7/8 and Mac OS X 10.9/10.10.x and Qt 5.4rc, both release and debug. I'm not sure I have any choice any more short of migrating away from Qt (that would be bad) or trying Qt WebEngine (and finding a way for the JS and C++ functions to talk to each other).
-
Hi,
Did you already saw the "porting guide":http://qt-project.org/wiki/QtWebEnginePortingFromQtWebKit ?
Hope it helps
-
Hi,
Did you already saw the "porting guide":http://qt-project.org/wiki/QtWebEnginePortingFromQtWebKit ?
Hope it helps
-
Thanks, that guide was useful in my initial port, but without addToJavaScriptWindowObject I need to find a different way to be able to call C++ from the JS side (sockets, I am guessing).
-
Thanks, that guide was useful in my initial port, but without addToJavaScriptWindowObject I need to find a different way to be able to call C++ from the JS side (sockets, I am guessing).