Closed dcoles closed 1 year ago
That is expected behavior: notification_message is asynchronous function and if app exited and sequence
is freed it will crash.
I'll update documentation and check what we can do to make it easier to use.
I was wondering if that was the case (particularly since notification_message_block
exists).
Unfortunately, this makes notification_message
tricky to use safely in external apps. A user would need to ensure their application waits if a notification message was still in progress. Not that it can't be done, but it's an easy mistake to make.
Out of curiosity, do notification sequences queue up? If so, could notification_sequence_block
be used as a way to ensure all prior notification sequences are finished?
Main use case for notification_sequence_block is to wait till execution completed in a places where you may need it. And yes it can be used for that.
Fixed in #2335. Now you do not need a blocking notification when you exit the application.
Describe the bug.
When a user-defined
NotificationSequence
is run at the end of an external app using the non-blockingnotification_sequence
API, the Flipper Zero will crash ~50% due to a Bus fault or NULL pointer dereference.Reproduction
External application used for reproduction (firmware: 0.74.2)
Target
f7
Logs