Closed majsboll closed 6 years ago
I will take a look at this asap.
Great. Just let me know if I can help in any way troubleshooting this.
Can you send me your hotkey file ? I would like to see what you have set as hotkey. This will help me find the problem. The file is located in you appdata folder in the WinHue folder.
Sure, attached... WinHueHotkeys.zip
(had to zip since github dont allow .set)
this one gives the same error: "Error while loading the hotkeys."
the hotkeys loads fine as long as I dont have anything defined in "properties": { },
If I for example just have:
{ "listHotKeys": [ { "Modifier": 6, "Key": 36, "objecType": "WinHue3.Philips_Hue.HueObjects.LightObject.Light, WinHue3, Version=3.0.311.0, Culture=neutral, PublicKeyToken=null", "id": "11", "Name": "test", "Description": "test" } ] }
It loads fine (but ofcourse is pretty useless)
I can see the error. I can replicate it. but i'm still trying to figure out why it happens. I have some hotkeys as well but they don't cause a crash.
This version should fix this. The rule creator does not work by the way.
Thanx for the update. It loads the hotkeys as it should and i can use them. Unfortunally, this version wont let me do any new hotkeys, as soon as I choose a light it crashes. I could do them manually editing in WinHueHotkeys.set with notepad and it loads up fint, but as soon as i edit och create a new hotkey action it crashes.
I have attached crashlog.
I see... I'll fix that. Be right back.
This should do it.
Just tried it and it still crashes... Really appreciate you taking time to try and solve this...
the error here is not useful. I need to know what you try to do when it crash. Here I can edit, create hotkeys without any crashes.
I try to create hotkeys, just like before. As soon as I choose a light or a scene, it crashes. Loading hotkeys seems to work fine.
I have tried with a fresh install but still same error.
look like for some reason your version does not seems to be able to create the control for the xy value. You should see this. Notice the xy control in the xy_inc property.
Thats strange...
I can try on another computer tomorrow running windows 10 (Iam running win7 on this one) and see if the problem is present on that system aswell...
I'll still try to fix this because If you have this chances are other are. I'll post another version here in a few. You can test it when you can.
Here is another one.
Okey, so it seems it still crashes on my main computer runnign windows 7. It crashes in the same way, so as soon as i choose a light, it crashes. I still dont see the dual lines for XY.
I just tried the same version on my windows 10 laptop, and there it works fine, with no crashes!
Let me know if and how I can gather more information for you.
First thing would be to check the version of .net framework you are running on your windows 7 pc. WinHue requires .net framework 4.5.1.
Im running .NET Framework 4.7
Indeed that's 4.7. if you select a light in the main view do you see the control ? it should show there as well.
You mean if I see the X Y in main? If so, yes i do..
No in the property grid. If you expand state you should see XY_INC and XY in the controls that crashes the hotkey editor.
Hmm, if I try to expand the state it crashes
I think I know what happens. Try this one and let me know what happens.
YES! This version fixes it. Hotkeys works, and I can ecpand states.
Great work!
Thanks. After re-reading the error log you sent me that I was thinking not useful I finally understood what it meant. There was an error converting a value from a string to a decimal which could happen when you are in different language locale. For example with the number 105,7 which in some language can be also 105.7. Here in canada we use the dot symbol as separator the american for example uses the coma. That translated in an error on your side. I changed the string to a float value. more universal.
Ah I see.
Well good work finding the error. I dont know how this works, but I guess you can close this ticket :)
I am having problem with hotkeys. I can add them, and they work perfectly, but as soon as i restart the program, there is an error trying to load them at startup.
Added debug-log as attachment winhue-debug-error.txt