Skip to content
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

GUI keeps disconnecting and/or crashing #47

Open
kimbou opened this issue May 26, 2021 · 8 comments
Open

GUI keeps disconnecting and/or crashing #47

kimbou opened this issue May 26, 2021 · 8 comments
Labels
bug Something isn't working gui Everything related to the gui help wanted Extra attention is needed

Comments

@kimbou
Copy link

kimbou commented May 26, 2021

Describe the bug
When running the gui for multiple days straight it sometimes freezes, randomly disconnects or closes (crashes) completely.
The daemon seems not to be affectet and i can reconnect if it happens.
This problem mostly occured when i left it running for more that 24h

@kimbou kimbou added bug Something isn't working gui Everything related to the gui labels May 26, 2021
@marvin5300
Copy link
Member

Which system is the GUI running on? Raspberry Pi or other? Does the system go to energy saving mode?

@kimbou
Copy link
Author

kimbou commented May 27, 2021

Which system is the GUI running on? Raspberry Pi or other? Does the system go to energy saving mode?

I am using a Raspberry Pi, no it does not

@dtreffenstaedt
Copy link
Member

I have just started a long term test to see if I can reproduce the error.

In the meantime, could you please provide us extra details about your setup?

  • Raspberry Pi model
  • operating system name and version
  • Does the GUI run on the same raspberry pi as the daemon?
  • Is the Raspberry Pi connected via WiFi or cable?

Any additional information you have that you think might be helpful is welcome.

@dtreffenstaedt dtreffenstaedt added the help wanted Extra attention is needed label May 30, 2021
@dtreffenstaedt
Copy link
Member

After a test over two days I can not reproduce the issue on my setup. If anyone else could confirm and provide more information, we could get closer to the issue.

@kimbou
Copy link
Author

kimbou commented May 31, 2021

I have just started a long term test to see if I can reproduce the error.

In the meantime, could you please provide us extra details about your setup?

* Raspberry Pi model

* operating system name and version

* Does the GUI run on the same raspberry pi as the daemon?

* Is the Raspberry Pi connected via WiFi or cable?

Any additional information you have that you think might be helpful is welcome.

I am using a Raspberry Pi3 Model B, the operating system is Raspbian GNU/Linux 10 and both the daemon and the gui run on the same rasbpi.
It was connected to WiFi via cable when it happened the first time, now its not anymore

@CodingBobby
Copy link
Contributor

I have experienced a similar behaviour of the GUI where it disconnects without indication, or rather, doesn't reconnect automatically. For me, it doesn't happen randomly and not on the same RPi where the daemon is running, so I don't know if this issue is related in any way.

I have installed the GUI on a Mac (Mojave 10.14.6) and when awaking after going into sleep mode, the GUI doesn't receive any further updates. The "Time Pulse" label is red and no more event pulses are shown. The connection status still says "connected" and the statuses of the i2c devices say "online". The GUI is basically halted at the moment of going into sleep mode. Buttons are still clickable, but don't show any effect when the actual Pi would be involved.

The bug can be solved easily by disconnecting and then connecting again.

Testing a few things, I found that the same behaviour occurs when loosing WiFi signal (or disabling WLAN temporarily) for several minutes. When the signal outage lasts for a few seconds only, the GUI simply continues to work. Maybe a similar thing happened to @kimbou ? This would mean that even though the GUI could still communicate with the daemon, a loss of connection to the internet (or MQTT server) breaks it.

@kimbou
Copy link
Author

kimbou commented Mar 11, 2022

@CodingBobby the RasPi in question is connected via ethernet and there have been no outages reported by the university but it could be possible that i have lost connection to the internet. It always occured when i wasn't around to watch

@hangeza
Copy link
Contributor

hangeza commented Apr 3, 2022

An automatic timeout/disconnect functionality was implemented for the GUI with commit dece6d3. Now, at least the GUI is not in a floating or stale state, when the traffic from the daemon interrupts, but rather cleanly put into disconnected state. The timeout was chosen to be 20 seconds which still has to be tested thoroughly and replaced by a better value. However, this would solve the problem obeserved by @CodingBobby. Therefore this issue can be closed, i guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working gui Everything related to the gui help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants