-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fix crash #6
Fix crash #6
Conversation
At some point in time, the lv_label's ext_attr's text is NULL and since no test are done on this value, it's crashing when it's dereferencing. The only way in the code this text can be NULL is if it's created and never assigned with lv_label_set_text (possible in the current code).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should have this in a branch based off master that way it can be merged in independently.
Also curious, (haven't had time to read through all of the code) what A the side effects or not calling the draw label, and how we got into this state, is there something that should be done earlier in the code?
Honestly, the build system is a real PITA. Don't know why you've made it so complex. As a result, debugging is very hard and you have a lot of memory corruption happening everywhere.
There, the pointer to In the end it would be so much easier if the card manager could be compiled on a computer so we could run with valgrind in order to spot all of those pesky bugs (valgrind on the target does not work, it's failing immediately with out-of-memory errors or allocation errors depending on the run options). |
BTW, the other commits are from the other PRs, so if you merge them, this one will collapse to a single commit. |
I know the other commits are from a different pull request. The problem is that if one of them is rejected it holds up other pull requests. That's why you should do them as separate requests. |
100% agree. Please isolate the card manager change |
Manually rolled in the card manager fix in 86b7294 |
Fix a crash in card manager when being run for hours. At some point in time, the lv_label's ext_attr's text is NULL and since no test are done on this value, it's crashing when it's dereferencing. The only way in the code this text can be NULL is if it's created and never assigned with lv_label_set_text (possible in the current code?).
Fix #2