fdm-monster / fdm-monster-client

FDM Monster's client bundle
GNU Affero General Public License v3.0
3 stars 6 forks source link

[Prevented, Edge case] UI freezes after some manipulations in the side bar (exceptions due to server gateway issues cause UI halting) #314

Closed WindArrow3d closed 1 year ago

WindArrow3d commented 1 year ago

Describe the bug A clear and concise description of what the bug is. Sometimes, when using the right-side bar the UI will freeze and stop accepting new mouse clicks. Sometimes it will recover 30 seconds to a minute later.

To Reproduce Steps to reproduce the behavior:

It doesn't always work, but after I open the right-side bar, the UI will freeze. It doesn't always work, but after I stop a printer from the right-side bar, the UI will freeze. It doesn't always work, but after I use the right-side bar > Settings > Save, the UI will freeze. The UI does sometimes recover on it's own (30 - 60 sec).

Expected behavior

No freezing

Screenshots If applicable, add screenshots to help explain your problem. image

No helpful screen shots of the problem. Side bar is open and mouse curser stops interacting with the page.

Browser (please complete the following information):

Additional context

There are other bugs that are possibly related that I will be submitting shortly.

WindArrow3d commented 1 year ago

Additional context

In my case, I have 2 printers connected and these are where I'm seeing the issues, and 54 printers manually disconnected (no power to printer or pi).

davidzwa commented 1 year ago

I have a big hunch what is going on here, as I've seen this issue before. When there are API errors the UI seems to freeze as its not properly able to capture and handle the errors/exceptions. This is unacceptable behavior and I will dig deep to fix this asap.

Moving to frontend repo.

davidzwa commented 1 year ago

I've found out why this happens and Im working on a simple fix. Thanks for the patience!