Skip to content
This repository has been archived by the owner on Jul 18, 2020. It is now read-only.

Adding lights to a group throws error #42

Closed
LordUsagi opened this issue Dec 2, 2016 · 37 comments
Closed

Adding lights to a group throws error #42

LordUsagi opened this issue Dec 2, 2016 · 37 comments
Assignees
Labels
bug Crash or glitch or unexpected behavior that causes a problem within the app.
Milestone

Comments

@LordUsagi
Copy link

LordUsagi commented Dec 2, 2016

Sorry but an unexpected occurred. Please report the exception on the support website so the developer can fix the issues. Please include the most recent log located in the logs folder.

Here is the most recent log:

@Hyrules
Copy link
Owner

Hyrules commented Dec 2, 2016

Cannot reproduce the problem what are the steps you took to make this bug happen ?

@LordUsagi
Copy link
Author

Fresh install of WinHue Beta 23.
Launch WinHue.
Create a group.
Select any bulb.
Add a name, or don't. Doesn't matter.
Click "Create" and boom an error and the app crashes.

@Hyrules
Copy link
Owner

Hyrules commented Dec 3, 2016

I still cannot reproduce the error. Can you give me your bridge API version it's located in the Bridge Settings button under the General Settings. You should be at 1.15.0 or more if it's not the case you need to upgrade your bridge firmware. That might be the cause of the exception. I'll have to dig more.

@LordUsagi
Copy link
Author

I can confirm I'm at 1.15.0. I'm also running Windows 7. It looks like I have .NET 4.6.1. I've tried running as administrator, running in compatibility. Reinstalling. Nothing seems to be working.

I can generate logs every time, so if you needed anymore, just lemme know!

@Hyrules
Copy link
Owner

Hyrules commented Dec 3, 2016

No problem. I'm looking into this right now. I have added some kind of failsafe but i don't understand why you get an null object.

@Hyrules
Copy link
Owner

Hyrules commented Dec 3, 2016

Can you try this version and send me the log file after you create a group. I want to see what happens. I have added some logging. It will not fix the problem. Might give you another error instead of an exception.

@LordUsagi
Copy link
Author

LordUsagi commented Dec 3, 2016

Thanks for the assistance.

@Hyrules
Copy link
Owner

Hyrules commented Dec 3, 2016

ok this gives me more clues on what is null... now why... Try this version :

@LordUsagi
Copy link
Author

LordUsagi commented Dec 3, 2016

removed for safety (Hyrules)

@Hyrules
Copy link
Owner

Hyrules commented Dec 3, 2016

I know why you have the error. As for why this variable is null god know... and this one ?

@Hyrules
Copy link
Owner

Hyrules commented Dec 3, 2016

Can you also send me a screenshot of your WinHue window ? I want to check if I see anything suspicious.

@LordUsagi
Copy link
Author

image
I have no error after the latest install.

@LordUsagi
Copy link
Author

HueLib2 unknown error seems to pop up a lot, at the bottom or in the log files.

@Hyrules
Copy link
Owner

Hyrules commented Dec 3, 2016

Gees know I know why. This is not normal. You shouldn't have a blank Window at all. There should be at least some Lights and default groups and sensors. Did you pair your bridge with WinHue ?

@Hyrules
Copy link
Owner

Hyrules commented Dec 3, 2016

definitely something odd... I'm looking at the last log.

@LordUsagi
Copy link
Author

Yes I did. Is there a settings window you'd like to see of the two paired?

@Hyrules
Copy link
Owner

Hyrules commented Dec 3, 2016

Well there is the pairing windows but all I need is in the log. There seems to be a problem deserializing the Data store for the bridge. That is why the window is blank.

@Hyrules
Copy link
Owner

Hyrules commented Dec 3, 2016

try this in your browser and send me the result :

It will send me a full dump of your bridge. I suggest you put it in a text file.

@LordUsagi
Copy link
Author

LordUsagi commented Dec 3, 2016

removed by hyrules ( thanks)

@Hyrules
Copy link
Owner

Hyrules commented Dec 3, 2016

Thanks I will try to debug with it. I'll see why it does not work.

@LordUsagi
Copy link
Author

Merci! Good luck!

@Hyrules
Copy link
Owner

Hyrules commented Dec 3, 2016

Speak french ? I'm from Quebec so oui merci :)

@LordUsagi
Copy link
Author

I am an Australian immigrant living in New Brunswick so I am forced to learn a little bit of french. Practice makes perfect

@Hyrules
Copy link
Owner

Hyrules commented Dec 3, 2016

Then Welcome to Canada / Bienvenue au Canada ! I hope I can find this bug for you soon so you can enjoy WinHue.

@Hyrules
Copy link
Owner

Hyrules commented Dec 3, 2016

I think I have it fixed :
WinHue 3 BETA 24 Setup.zip

@LordUsagi
Copy link
Author

WOAH. Look at all those new things that weren't there before. I'll keep this thread alive for a couple of days.

@Hyrules
Copy link
Owner

Hyrules commented Dec 3, 2016

Great ! Sure keep it there for a few. Nice to know it's now fixed.

@crypticedge
Copy link

Popping in to say the beta 24 fixed the exact same issue for me

@LordUsagi
Copy link
Author

Couldn't find a way to contact you directly, but you don't have a couple of libraries included by default in the repo. Things like the UPnP handler etc. Any plans on adding those?

@Hyrules
Copy link
Owner

Hyrules commented Dec 5, 2016

You're right the package folder is not synched with the repo. I will add it later tonight.

@Hyrules Hyrules added the bug Crash or glitch or unexpected behavior that causes a problem within the app. label Dec 5, 2016
@Hyrules Hyrules added this to the beta_24 milestone Dec 5, 2016
@Hyrules Hyrules self-assigned this Dec 5, 2016
@Hyrules
Copy link
Owner

Hyrules commented Dec 5, 2016

If you look at the dev branch there is now a package folder. Libraries should be in it.

@LordUsagi
Copy link
Author

Having some trouble specifically with AvalonEdit. How'd you get the project to recognize it?

@Hyrules
Copy link
Owner

Hyrules commented Dec 5, 2016

you have to add a reference to ICSharpCode.AvalonEdit.dll in WinHue.

@Hyrules
Copy link
Owner

Hyrules commented Dec 5, 2016

try nuget : https://www.nuget.org/packages/AvalonEdit

@LordUsagi
Copy link
Author

No such luck.

@Hyrules
Copy link
Owner

Hyrules commented Dec 6, 2016

What is the error message you get ?

@frank-leitner
Copy link

frank-leitner commented Dec 7, 2016

I pitch myself in as having the same issue.

Blank main screen of the program, HueLib2.UnknownError at the bottom, and crash on creating any group (the 'create a group' has all my lights available).

I just saw the Beta24 linked above and tried it out. Looks like it fixed the issue for me as well, a lot of things on the main screen now and just playing with a light or two worked.

Thank you for your work with this tool - it is looking very good.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Crash or glitch or unexpected behavior that causes a problem within the app.
Projects
None yet
Development

No branches or pull requests

4 participants