-
-
Notifications
You must be signed in to change notification settings - Fork 910
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
Fixed crash when data_length equals 0 #1210
Conversation
There is something seriously wrong here. Can you send logs of the messages that cause the crash.... |
Yes, but only in a few weeks |
Or we should make sure it can accept a zero length but then it should not crash in the following code |
The problem here is that the message its crashing on is the deviceID and Product ID. If we don't get that we can never load config files or whatnot. I'd like to see the actual message to see if we can work around a 0 length message and still extract that info. |
ping.... any Logs you can share that show this issue? |
I'm just back... will do so very soon |
Experiencing the same crash, same location, and it seems related to the greenwave powernode 6, but i am attaching the log Some visual studio screenshots during the crash: As you see, an empty deviceID is parsed to default_value->OnValueRefreshed The timeout on Node-1 (the Aeotec controller (old one)) worries me a bit as well |
Here another log file (with the config from the dev branch) same crash, but this one seems to have an additional log line |
The error wasn't anything todo with the lenght - hence why I was skeptical... That will teach me to not use ENUM's for indexes.... thanks for the report.. |
Glad you got it solved! |
I experienced a crash on both Windows and Linux systems when the data_length was 0.
This causes 'OnValueRefreshed' to be called with an empty string, resulting in a crash.
Tested the 'Dev' branch with the 'config' folder from the master.
In the setup i disabled downloading/checking for the manufacturer file update
I suspect this has something to do with 'GreenWave PowerNode 6' node, or right after this node is queried
With this patch the library was able to query all nodes and continue