SDK crashes when disk space is too low and we're trying to list offline recordings
When trying to set offline trigger:
Failed to set offline trigger due to controlPointRequestFailed(errorCode: 14, description: "Disk full"), continuing the setup execution Error: The operation couldn’t be completed. (PolarBleSdk.BlePmdError error 0.)
When checking the disk space:
Free space is PolarDiskSpaceData(totalSpace: 14416896, freeSpace: 1991680)
When trying to stop currently running offline recording:
Stopping offline recording failed for device xxx. Polar Error: controlPointRequestFailed, desc: Already in state, code: 6 Already in state Error: The operation couldn’t be completed. (PolarBleSdk.BlePmdError error 0.)
When trying to start offline recording:
Starting offline recording failed for device xxx. Polar Error: controlPointRequestFailed, desc: Disk full, code: 14 Disk full Error: The operation couldn’t be completed. (PolarBleSdk.BlePmdError error 0.)
And when listing offline recordings crashes the app which means we cannot delete existing recordings:
Platform on which you observed the bug:
Device on which you observed the bug:
Describe the bug
SDK crashes when disk space is too low and we're trying to list offline recordings
When trying to set offline trigger:
When checking the disk space:
When trying to stop currently running offline recording:
When trying to start offline recording:
And when listing offline recordings crashes the app which means we cannot delete existing recordings:
How to Reproduce
Trying to list offline recordings when low on disk space.
Expected behavior
Not crashing when parsing the date from file path
SDK details
SDK version 5.5.0 Device firmware 2.1.1