-
-
Notifications
You must be signed in to change notification settings - Fork 938
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
Crash when exiting alarm app with button after setting it #770
Comments
Happened to me as well running #718, but that doesn't change the alarm, so the issue should be in develop. |
This not always happening as I observed and also it doesn't require any changes. Just start app, press button, crash. |
I'm seeing this as well. I wonder if this was introduced with #701, which overrides the OnButtonPushed event. Will try removing that code and see whether that resolves the issue. It's not clear to me why the code that was introduced in that PR would cause a crash, but this is my best guess. |
Oh, I think the issue is that the OnButtonPushed code checks a couple of pointers that have not necessarily been initialized. They should be initialized to nullptr. That would explain why this doesn't predictably cause the crash because it depends on whatever random values are picked up in those variables. I'm going to submit a PR with this and a couple of other patches for Alarm. |
I can reproduce this issue every time I use the Alarm app, either to set the alarm time, or when it has rung and i want to exit it - the PT reboots. |
What happened?
Exiting alarm app with button after seting it crashes InfiniTime sometimes.
What should happen instead?
InfiniTime shouldn't crash.
Reproduction steps
Open alarm app, set it, exit it with the button, watch will lock up and InfiniTime will reboot.
I haven't been able to reproduce this reliably though. Sometimes it happens and sometimes it doesn't.
More details?
No response
Version
Develop 1d76d91 (with pr's #746, #740, #720, #698, #679, #747, #648, #652, #586, buy none of them change the alarm other than 698)
Companion app
No response
The text was updated successfully, but these errors were encountered: