[TIMOB-26299] iOS: Ti.Media.AudioPlayer test-suite crashes in some situations
GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-08-24T17:21:08.000+0000 |
Affected Version/s | Release 7.4.0, Release 7.3.0 |
Fix Version/s | Release 7.5.0 |
Components | iOS |
Labels | n/a |
Reporter | Hans Knöchel |
Assignee | Vijay Singh |
Created | 2018-08-14T11:17:49.000+0000 |
Updated | 2018-10-05T13:08:46.000+0000 |
Description
It seems like our Ti.Media.AudioPlayer test-suite crashes in some situations. The crash report is attached and looks like being an issue with the KVO-observer we use to handle the AVPlayer API. I remember we had some issue with closing the audio-player and still listening to the KVO, so this may be similar.
Attachments
While running the test case some times I am finding following crash -
which shows the problem is with Ti.Media.AudioPlayer not with Ti.Media.VideoPlayer.
Thanks [~vijaysingh], I updated the ticket to reflect that! TIMOB-26302 may also be related then. I was curious anyway, why the video-player changes would begin to crash again months after running successfully. *EDIT*: I think we may have two different kind of crashes: - One for stopping the audio player (see above) - One for not properly cleaned up observers (see crash-logs moved over from TIMOB-26302) *EDIT 2*: It looks like we are using
stopAudioSession
too many times.PR - https://github.com/appcelerator/titanium_mobile/pull/10260
*Closing ticket* Ti.Media.AudioPlayer test-suite no longer showing any crashes.