-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
Freeze on main UI when openning multiple Tabs in web browser, #2914
Comments
You don't (as far as I can see) state how many tabs you have open. I normally have 3 or 4 tabs open and have observed no problems on my 2019 MacBook Pro. |
Not a lot, it can start after 2 or 3 open tabs. Laurent. |
I will try to narrow down where it can come from. |
I certainly have no problem with this number of tabs in chrome. I currently have 3 tabs in chrome, and I just remembered I also have Safari open with another instance of OH (opened while I was doing some development last night and then forgot to close it - it's still updating ok). [edit] note that by instance in the above text - I just mean another web page opened and pointing to my main OH server - not another instance of the OH server. |
Don't forget that browsers have a pretty severe limitation on the number of concurrent SSE connections. https://issues.chromium.org/issues/40329530 https://stackoverflow.com/questions/18584525/server-sent-events-and-browser-limits HTTP/2, or WebSockets are possible solutions but neither are likely to materialise soon. |
Hello, It seems that I'm not the only one to experience the issue. Laurent. |
This is caused by openhab/openhab-core#4466, but I have created that issue in core because we need to fix it there. |
I will close this issue here to prevent having duplicates. |
Hello, Ok, thanks for the update. Laurent. |
The problem
When you open multiple tabs on the main UI in your browser, at some point, there can be a freeze in the UI that will not refresh until you close the other opentabs.
This happens mainly when you right click on a link, and click on the "open new tab" link.
At the start, I was thinking it was comming from my reverse proxy configuration.
But I was able to reproduce it using direct local ip connections.
When this happens, the broswer seems to freeze requesting new network ressource in the new tab.
As soon as your close the primary tabs where you come from, the new tab unfreeze and finish to load.
Does anyone experience similar behaviour ?
Expected behavior
Load of main UI ressource without freeze.
Steps to reproduce
Start a new session to openhab in your web broswer.
Right click on some link to openhab new tabs, for example a settings / items page.
The new tab is freeze on loading.
Your environment
Openhab 4.3 M4 build (but was already presents in previous release I think, possibly 4.2.x and 4.1.x.
Executing on Linux environment, fedora, Java 17.
Client mainly on Windows, Google chrome browser, but also see the issue in Firefox.
Browser console
Browser network traffic
Network is stuck on loading the ressource, waiting for ever from the network.
If you open the same ressource in another independant browser session, the ressource is loading correctly.
Additional information
Seems like there is some deadlock on the network ressource loading, but don't undestand why so far.
The text was updated successfully, but these errors were encountered: