-
Notifications
You must be signed in to change notification settings - Fork 1
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
panic: runtime error: index out of range [0] with length 0 #3
Comments
i think it didnt found any lights, thats why it panicd, i added a skip for this kind of failure, but i think you may not find any lights. Is keylight-systray working for you too? Maybe should first setup your keylights in the same network (maybe with the mobile phone app first..) You can compile and try the new version |
do you have libnss-mdns installed? |
Hey thanks for the quick reply. When I start keylight-systray, it shows my keylight listed, and its the correct one that is setup in the mobile app. But when I try "power toggle all" nothing happens, and when I click on "settings" it crashes. As mentioned I have had it setup through the mobile app, and its on the same network as my pc.
libnss-mdns is not available for arch, but I did install nss-mdns as noted on the readme |
Does it work with the new version? |
We've made some progress. I have a window open up now, but it doesn't show anything. It is the same window that opens up when I hit "settings" in keylight-systray. After I close the window I get the following message in the console:
But I'm not sure whether that's relevant or not. |
i still think it doesnt detect the lights in the mobile app the lights work? |
Hey there, just wanted to follow up on this. I have been tinkering in my free time with setting up mDns. In the end I believe it was a mis-configured nssswitch.conf file. I tinkered with it and it is now working. For others that may stumble across this post here is what my full nsswitch.conf file looks like:
|
Hey there,
Just installed this on my arch linux system via the following package:
https://aur.archlinux.org/packages/keylight-control
When I try to run 'keylight-control' from the terminal, I get the following error:
Any insight into what might be going on?
The text was updated successfully, but these errors were encountered: