samclane / LIFX-Control-Panel

As LIFX no longer supports their Windows 10 app, I created an open-source alternative for controlling LIFX-brand smart lights.
https://github.com/samclane/LIFX-Control-Panel
MIT License
162 stars 19 forks source link

Crash on Startup #124

Open Blakey069 opened 3 years ago

Blakey069 commented 3 years ago

@samclane Hi, I'm getting this error when trying to launch the program: Annotation 2021-07-03 232735

lifx-control-panel.log

I've tried running this on my laptop as well and no luck.

littlelerroyy commented 3 years ago

Just got a new light today, having same issue as this

aryn-0xide commented 3 years ago

Screenshot 2021-08-15 135047

having same issue - crashing on startup but slightly different exception is thrown.

DarynGit commented 3 years ago

Same issue, only started happening when I got the newer "Lifx Color" bulbs. Worked fine on the old A19. 2021-08-24_21h17_17

samclane commented 3 years ago

I'm looking at making the app startup more resilient, so the user can at least open the app and manually re-scan (and eventually just tie that into a regular heartbeat operation).

Nothing is wrong with your setup, I get this error too. In the meantime, try re-opening the app right away. You may need to do this 3-4 times; this simulates a manual re-scanning of the network. I'm aware this is the upmost-jank, and will be working on getting the resiliency-patch out soon.

Mister-Curious commented 2 years ago

While attempting to open lifx_control_panel.exe I get this error: Capture I tried running the application consecutavely crash after crash, but its endless. Will this application be getting an update any time soon to fix this? I cant even get these lights to connect to the native app on my phone.

Thanks!

RoboKun commented 2 years ago

Having the same issue as others on this thread. also tried re-opening the app multiple times and getting the same error screen. Not sure if it's the issue, but I'm using the Color bulbs as well.

samclane commented 2 years ago

I'm sorry all, I've been terribly busy with work and life stuff. I haven't had much time to devote to this project. At a certain point, I think I want to just refactor the whole thing completely. Using threads in Python is awful, and leads to lots of issues like this. There are also problems with the networking library being used, where certain other software can interfere with startup (like WSL/Docker). I've had a few more years of professional Python experience since I first made this project, and I think that a refactor could lead to a lot of stability fixes, as well as make the code more maintainable by the community.

I'm probably going to make a Discord server for the project in the coming days, so I can begin to have a more casual correspondence with the community, and development can be done with a more Pythonic, and developer-friendly, mentality.

I realize those last 2 paragraphs probably aren't the most satisfying response, but I don't have an easy answer for this, unfortunately.

ozgent commented 2 years ago

I downloaded v2.2.0 yesterday and it worked fine but today I have the following issue. v2 2 0 crash

soundinsect commented 2 years ago

I would advise everyone having this issue to guarantee that they aren't doing anything that is modifying their machine's visibility on the network. I was having the same error and suddenly remembered I was running a VPN at the time. Since the error seemed to be dealing with a network problem, I decided to disconnect from the VPN and relaunched the program. It immediately started without issue.

I closed the program, reconnected to the VPN and was able to reproduce the error when I tried launching again. Disconnected from the VPN again and it was fine once again.

djcorvus commented 2 years ago

Still getting this issue, and it's now July 2022. I'm not connected to a VPN, nor do I have any firewalls on my machine.

Is there a fix yet?

samuellogan commented 1 year ago

Had this same issue when opening the app with a VPN in the background (proton VPN), after disconnecting from the VPN it worked - this was the error before image unless it was just that it magically worked the 4th time after failing the first 3 times