Skip to content

Unhandled runtime exception: ConnectionResetError #146

@Quinten0508

Description

@Quinten0508

Describe the bug
The application does not launch successfully, instead showing the following error message:

Unhandled runtime exception: Traceback (most recent call last):
File "lifx_control_panel\__main__.pyw", line 335, in main
File "lifx_control_panel\__main__.pyw", line 101, in __init__
File "lifx_control_panel\__main__.pyw", line 167, in scan_for_lights
File "lifxlan\lifxlan.py", line 38, in get_devices
File "lifxlan\lifxlan.py", line 50, in discover_devices
File "lifxlan\lifxlan.py", line 259, in broadcast_with_resp
ConnectionResetError: [WinError 100541] An existing connection was forcibly closed by the remote host

Please report this at:
https://github.com/samclane/lifx_control_panel/issues

To Reproduce
Steps to reproduce the behavior:

  1. Download v2.3.1 (latest) lifx_control_panel.exe from release
  2. Open executable
  3. See error

Expected behavior
I'd expect the application to simply launch/open, but it errors out. When ok is pressed, both the error window and the purple splashscreen close. Running the executable with administrator rights does not do anything.

Screenshots
error window:
image
error window and purple splashscreen(?) side-by-side. The error dialog can be dragged, the splashscreen cannot be moved.
image

Desktop (please complete the following information):

  • Lifx-Control-Panel Version: v2.3.1
  • OS: Windows 11 Pro 22H2 OS Build 22621.1928

Please attach your logfile (lifx-control-panel.log)
No logfile is generated, nor is there any console output when ran through a terminal (powershell/command prompt). Running the debug build outputs the following (behaviour stays exactly the same):

2023-07-09 14:03:46,117 - root - INFO - Logger initialized.
2023-07-09 14:03:46,221 - root.LifxFrame - INFO - Root logger initialized: root.LifxFrame
2023-07-09 14:03:46,222 - root.LifxFrame - INFO - Binary Version: 2.3.0
2023-07-09 14:03:46,222 - root.LifxFrame - INFO - Build time: 2022-12-12T06:22:59.747968
2023-07-09 14:03:46,259 - root - ERROR - [WinError 10054] An existing connection was forcibly closed by the remote host
Traceback (most recent call last):
  File "lifx_control_panel\__main__.pyw", line 335, in main
  File "lifx_control_panel\__main__.pyw", line 101, in __init__
  File "lifx_control_panel\__main__.pyw", line 167, in scan_for_lights
  File "lifxlan\lifxlan.py", line 38, in get_devices
  File "lifxlan\lifxlan.py", line 50, in discover_devices
  File "lifxlan\lifxlan.py", line 259, in broadcast_with_resp
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

Additional context
Running the same executable in Windows Sandbox (essentially a virtual machine) does not give this error. The application seems to work fine, albeit that it can't find any lights, but that is most likely related to how the VM is set up (no local network discovery).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions