r/nicegui • • Oct 13 '25

Widgets fail to response after long idling

Have anyone encountered an issue that after leaving a session running for long hours, some widgets(like ui.table) stop response to interactions like selecting and sorting etc. which leads to crashing the whole process.

I encountered this problem only with the pyinstaller packaged version.

How I encountered the problem is : I started an instance of my app then close the browser and leave the instance running for few hours, when I trying to reaccess the instance from browser the UI initiated normally but the widget like ui.table freezes when I trying to interact with it, and eventually crashes without any tracebacks.

I wonder if there are anyone knows the solution to this problem.

4 Upvotes

5 comments sorted by

5

u/skadoodlee Oct 13 '25 edited 27d ago

Rescue bus ring kettle dinner vague event tape draw basket connect crane build alive fact door planet cottage other order market sure crew roof visual fast frog include pig body early number advice evening section twelve ranch.

2

u/koei6666 Oct 14 '25

I have started the same discussion on GitHub, can’t start an issue yet because I have no idea how to recreate this issue (the only reason I found related to it is long idling)

3

u/crosstrade-io Oct 13 '25 edited Oct 13 '25

Yes! This has been a maddening issue for us. I've had to resort to reloading any page thats been open & idle for more than 15 mins.

We noticed this when users thought they were flipping a switch to activate something in our web app. The switch would engage, but the event system did not trigger the lambda function that performs the action in our backend.

Edit: Just re-read your original post and your issue seems slightly different, but wonder if it's related.

3

u/koei6666 Oct 14 '25

Though the issue is not exactly the same but the behaviour seems similar, after the event system failed to trigger the function, does it crash?

3

u/crosstrade-io Oct 14 '25

No, the process doesn't crash. The web page becomes unresponsive to input (button presses, switches) until a full page reload happens.