-
Notifications
You must be signed in to change notification settings - Fork 160
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
Page constantly reloads by itself after a websocket connection fails #14797
Comments
Would it be possible to strip away everything from the app so that it still fails with the issue? |
The 404 for the image is not from the app itself since it's a direct URL to the resource embedded in the war file : /img/areas/logo_21.png for example. How could this affect the behavior of the app ? I was assuming this type of query is handled directly by the browser and the app server, without any vaadin interaction. Am I wrong ? |
Mainly because I heard of another project where a resync happens and there I heard it also seems to happen after a failing image download. Though that seems to do a But without a project to test this is a guessing game with not good guesses. |
I'm assuming there are other conditions since depending on the user profile, I have a lot of accounts which will have the missing image and they do not experience the issue (or on a random manner). I have seen it occasionally with no evident pattern so it's quite hard to figure out a way to trigger the issue. |
@caalador I cannot reproduce upon request but one of my user reported that the issue occurred today during a presentation.
At the same time, in catalina.out :
The user told me he was on Wifi and that everything else seemed to work fine ... |
The request and response payloads might help to see if there's some component/add-on that causes it. |
@caalador if you load the .xhr file I've provided in the zip referenced in the bug report (see logs.zip link just below the console logs screen capture) you'll have the payload details for every request. Unfortunately I do not have it for the last report that I got from a customer but the one I managed to capture might help you. You have the Chrome network panel logs (full requests history + payloads), the Chrome console output and the Tomcat logs. I hope these info will be enough because I do not see how I can get more if the issue occurs again ... |
The har starts with the first resynchronize request. |
yes Push is set to automatic. |
Synchronize pwa handler on the requestHandlerMap instead of locking the session. Locking and unlocking session may fire a push event that might make the server client sync faulty. touches #14797
Synchronize pwa handler on the requestHandlerMap instead of locking the session. Locking and unlocking session may fire a push event that might make the server client sync faulty. touches #14797
Synchronize pwa handler on the requestHandlerMap instead of locking the session. Locking and unlocking session may fire a push event that might make the server client sync faulty. touches #14797
Synchronize pwa handler on the requestHandlerMap instead of locking the session. Locking and unlocking session may fire a push event that might make the server client sync faulty. touches #14797
Synchronize pwa handler on the requestHandlerMap instead of locking the session. Locking and unlocking session may fire a push event that might make the server client sync faulty. touches #14797
Synchronize pwa handler on the requestHandlerMap instead of locking the session. Locking and unlocking session may fire a push event that might make the server client sync faulty. touches #14797
Synchronize pwa handler on the requestHandlerMap instead of locking the session. Locking and unlocking session may fire a push event that might make the server client sync faulty. touches #14797 Co-authored-by: caalador <mikael.grankvist@vaadin.com>
Synchronize pwa handler on the requestHandlerMap instead of locking the session. Locking and unlocking session may fire a push event that might make the server client sync faulty. touches #14797 Co-authored-by: caalador <mikael.grankvist@vaadin.com>
Synchronize pwa handler on the requestHandlerMap instead of locking the session. Locking and unlocking session may fire a push event that might make the server client sync faulty. touches #14797 Co-authored-by: caalador <mikael.grankvist@vaadin.com>
Flow 23.2.5 (out with Vaadin 23.2.6) got the pwa change. Does that help with the issue or is it still happening? |
Thanks for the update. I'll check that next week and get back to you |
I have pretty much the same issue with resync and Vaadin 23.2.5 https://stackoverflow.com/questions/74147029/vaadin-23-unable-to-fully-reload-application-after-redeploy |
Same in Vaadin 14. After redeploying, resync happens a lot. |
@caalador unfortunately, the latest flow version (Vaadin 23.2.6 with Flow 23.2.5) does not fix the issue. One of my customers just experienced it again. reload.mp4Any other hints on your side on what could be causing this ? |
Based on previous investigation we noted that (in this instance) the sync id jumps 3 at a time for some reason. |
I may also collect any logs in order to help to get this issue solved. In what logs are you interested in? I very often see the resync issue when using my app on my iPhone. I use Nginx, Undertow or Tomcat embedded via Spring Boot. Please tell me which logs to activate, for example, for which java packages. I'm sure I can reproduce this issue with resync quickly |
Not completely sure, but the additional increment may be caused by a PUSH message produced when |
@mcollovati that would be great news ... Anyone working on issue #14887 ? |
@mcollovati taking into account the mentioned issue with a dirty UI, does this make any sense to use Manual PUSH model instead of Automatic in order to try to avoid such an issue? |
It may be worth it to try. At least it can provide some additional information to find out the issue |
Sure! Already reconfigured the system for the manual push. Now, monitoring the logs. |
Add debug logging for incrementing server id to be able to see what is calling it during runtime. Targets #14797
Add debug logging for incrementing server id to be able to see what is calling it during runtime. Targets #14797
Add debug logging for incrementing server id to be able to see what is calling it during runtime. Targets #14797
Add debug logging for incrementing server id to be able to see what is calling it during runtime. Targets #14797
Add debug logging for incrementing server id to be able to see what is calling it during runtime. Targets #14797
Waits for release with debug improvements. Then this new release can be put into monitoring to collect more stack traces for us, and with that information we can move forward with fixing the issue. |
Add debug logging for incrementing server id to be able to see what is calling it during runtime. Targets #14797
Issue reported by me last July and still having it: #14232 (in promise) Error: Client is resynchronizing at FlowClient.42a5821f.js:1:42438 We need an urgent solution for this, the situation is becoming unsustainable, many customers are complaining. |
For me it was resolved with version 23.2.13. |
@echarlus @alexanoid did you tried the latest Vaadin version with the fix for #14887? Did it solve the issues? |
Since I've upgrade to the 23.3 version that includes the fix I did not have any issue. I'm now testing on 23.3.6 in which I see there are more changes related to push and events management on the server side that are supposed to prevent some UI resync events. I hope it will not create new issues ... I'll keep you posted. |
@echarlus Do you have any updates? Did the changes fix the issue for you? |
So far everything seems to be ok, I've not had the problem since 23.2.5 |
Thank you for the feedback. I close the issue as the problem seems to be resolved. |
Description of the bug
On some occasions, the browser will start reloading the current page forever.
Looking at Chrome console one can see js exceptions.
Looking at the network activity, one can also see that there is a recurrent POST being made to the server and it results in an exception on the client.
The only way to get out of this behavior is to force reload the whole page.
Expected behavior
Page would not be reloaded forever ....
Minimal reproducible example
Unfortunately as this is fairly random I do not have a sample to provide.
Here's a screenshot of the console (the image load which results in a 404 is "normal", it's probably when the page is being reloaded that it tries to refetch this resource that does not exist for this particular case).
logs.zip
Here are logs from the client (chrome console + chrome network activity) and the corresponding tomcat logs on the server side taken when the issue occurred.
Versions
The text was updated successfully, but these errors were encountered: