graphhopper/graphhopper-maps

App crashes when changing windows size

Opened this issue · 4 comments

When the app is opened in a mobile layout and the window is resized to a larger window the app crashes and the entire browser window becomes unresponsive.

This does not happen everytime, unfortunately.
This happens in Fireforx and not in Chrome.

Strange, never experienced this with Firefox on Linux. Is this on MacOS or Windows? And what was the exact Firefox version when this happened?

This is in Firefox on MacOS

I was able to crash the mobile Firefox (117.0.0) on my smartphone using the "normal" autocomplete i.e. either via landscape orientation or desktop mode. I typed some text into the input (keyboard showed up) and then hide the keyboard. I.e. basically making the window larger. After hiding the keyboard firefox froze (not 100% reproducable but 1 out of 5 or something like this) and after this e.g. the keyboard input did not show up in the input and I wasn't able to move the map etc.

But I wasn't able to trigger this in Chrome.

Update: I was able to reproduce it a few times for Desktop Firefox 117.0.0 on the initial screen (no route, no address, no other changes) when opening the developer panel and changing the height of it frequently. At some point the map won't adapt to the new size and the entire tab crashed. But sometimes it kind of never happens and sometimes it crashes fast. Maybe some timing issue for the map synchronization.

This is really strange, but I (accidentally crashed Firefox when resizing the width for the map UI from duckduckgo: https://duckduckgo.com/?iaxm=maps&q=hoyerswerda ... they have a similar mobile view for smaller widths. They use a completely different map JS framework (mapkit.js)

Have created a bug report at mozilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1854914

ffbug.webm