Skip to content
This repository was archived by the owner on Oct 5, 2020. It is now read-only.
This repository was archived by the owner on Oct 5, 2020. It is now read-only.

iOS crashes if invalid payload received  #22

@shankar-dandapat

Description

@shankar-dandapat

Affecting both my code and the Chirp Flutter example.

If an audio payload is only partially played or somehow the payload becomes fragmented during playback, an iOS device using the Flutter Chirp SDK will crash resulting in the following error:

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Data cannot be nil'

The same scenario with the same Chirp Flutter SDK does not happen when running the Flutter code on Android.

Recently, the ability to catch errors (ChirpSDK.onError()) has been deprecated and I believed the onError() Flutter function was able to catch such "Data cannot be nil" exceptions.

What are possible resolutions to ensure an iOS app won't completely crash when an invalid payload is received?

Flutter version: Flutter (Channel stable, v1.9.1+hotfix.6
ChirpSDK: Latest version from 10/23/19 commit

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions