dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.9k stars 502 forks source link

deCONZ disconnecting from device when the GUI window is dragged around screen (Windows) #6452

Closed DRichards995 closed 1 year ago

DRichards995 commented 2 years ago

[ This is a report of a bug in deCONZ GUI rather than in the REST API (but the deCONZ page https://forum.phoscon.de/c/deconz/6 directed me here, so hope that's ok ]

Describe the bug

Using Windows 10 with the deCONZ GUI open and connected to my Combee II network, I find that dragging the GUI window around the screen frequently causes the GUI to disconnect from the device. This is the only circumstance that unexpected disconnects are occurring.

When the issue occurs, the GUI doesn't actually crash it just disconnects from the device, and the user is able to directly connect to the device again without issue. Working with the GUI without moving the GUI window (ie normal work open/closing of panels, moving the nodes around within the network chart) is perfectly fine - there are no disconnects under normal & extended operations). There are no issues moving windows from other applications around on the same Windows computer

Occurrence was fairly frequent to begin with, but I've gradually 'trained' myself to avoid the window manipulation which seemingly leads to the issue, but I'm still hit by the issue from time to time.

Steps to reproduce the behavior

  1. Open deCONZ on Windows 10 computer
  2. Connect to Device (in my case the device is a Conbee II and it autojoins when I first start)
  3. With the chart of the discovered network showing, grab the top bar of the window and begin dragging the window around the screen.

    [ The issue doesn't normally present itself with a just short single-action drag. Drags of just 1s duration don't cause the issue Sometimes it requires dragging the screen first one direction and then another (it may take 3-5s for the issue to occur sometimes up to 10s. Eventually it does. Sometimes it appeared that moving the window so its top or left edge of the window went beyond screen extent caused the problem but I don't think this is a clear critical factor. I think it's just time moving/jiggling the window around which results in the disconnect, maybe some form of Paint/refresh window issue ?)

    1. At some point the GUI disconnects from the device, and the GUI returns to the initial window requesting the Device to Connect

Expected behavior

The GUI window should never disconnect from the device because the window is being dragged around the screen.

Screenshots

Not applicable. Above description is sufficient.

Environment

deCONZ Logs

Not applicable

Additional context

Nothing to add

github-actions[bot] commented 1 year ago

As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs.

DRichards995 commented 1 year ago

Moving the DDF editor form around the screen also causes deCONZ to disconnect from the ConBee II stick

github-actions[bot] commented 1 year ago

As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs.

github-actions[bot] commented 1 year ago

As there has not been any response in 28 days, this issue will be closed. @ OP: If this issue is solved post what fixed it for you. If it is not solved, request to get this opened again.