Closed jepefe closed 3 weeks ago
Chris will do some testing tomorrow.
If it becomes all complicated, ie emscriptem/Qt upgrading etc etc doesn't fix it, then we won't fix this for v1.0.0
Can you provide information about which version of firefox you see this, and precise repro instructions?
I cannot reproduce with Firefox on my Android phone. Version information: 128.0 (Build #2016030615) hg-14b32d530926+ GV: 128.0-20240704121409 AS: 128.0.1 2024-07-04T18:19:30.039769603
I tested connection to local cerbogx nginx via wifi, and also to VRM. For local cerbogx connection, it always reloaded the page properly. For VRM connection, after reactivating the tab, the gui-v2 overlay thing was gone, I had to click click the menu hamburger then click gui-v2 to reactivate it. That worked. With a shorter interval of inactivity for that tab, I was able to switch back to it and see that the gui-v2 overlay remained (but had transitioned to transport error state), but in this case after a few seconds it reconnected properly. Even activating a different tab in firefox, then switching from wifi to mobile data, then reactivating the vrm tab with gui-v2 open, worked. (It showed a transport error, then after a few seconds reconnected and reloaded the UI properly.)
I can't reproduce this either (firefox & android). I tried wasm builds in a variety of scenarios (local cerbo via wifi, remote cerbo via URL, and launching gui-v2 from the vrm website).
Cerbo FW v3.50~8 browsing to: 10.0.0.2/gui-beta
I'm using a Samsung Galaxy A55, Android v14, firefox v128.0.3.
Also @andres84ve tried to reproduce this; and can't.
This is on hold until @jepefe can reproduce it.
This seems to be quite device specific.
Jesús was able to reproduce with the following:
Android 11: Motorola Moto G5 Plus & Samsung Galaxy M30s Android 13: Galaxy Tab A9 & Lenovo Tab M10 Plus 3rd Gen Android 14: Samsung Galaxy S23
To reproduce:
However, I was unable to reproduce with my Oppo A52 running Android 11.
Daniel was eventually able to reproduce on his device, after setting the device's battery setting to power saving mode and setting screen-turn-off-timeout to 15 seconds.
We will investigate further.
new log file: console-export-2024-8-6_16-31-26.txt
new log file: console-export-2024-8-6_17-57-55.txt
success: console-export-2024-8-6_18-27-38.txt
@jepefe are you able to test that my fix https://github.com/victronenergy/gui-v2/pull/1392 fixes the issue for you? I've attached a patched-and-packed wasm build of that branch for you to test. gui-beta.tar.gz
@chriadam I'll do it later today and let you know.
@chriadam The fix seems to work, or at least I haven't been able to reproduce the issue.
Thanks! PR has been merged to main. Closing as fixed.
This can be easily reproducible on Android:
I suspect that the app is paused and then when resumed the websocket connection is broken. If this can't be solved somehow, would be nice to detect that the app is in this state and reload the webpage.
The Android dedicated display uses Firefox GeckoView so would be nice to have this fixed for v1.