[TIMOB-86] Race condition in sound: prepareAsync called in state 128
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:51:56.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 0.6.2 |
Components | Android |
Labels | android |
Reporter | Don Thorp |
Assignee | Don Thorp |
Created | 2011-04-15T02:23:31.000+0000 |
Updated | 2011-04-17T01:51:56.000+0000 |
Description
If release was called just as sound finished it could cause the MediaPlayer to throw an IllegalState exception 'prepareAsync called in state 128'. Being an unchecked exception, it would cause the application to terminate.
(from [73c36134d78e207ef2075d27f7452f363d76c23e]) [#86 state:resolved] Removed call to stop in release. It was causing an IllegalStateException to be thrown in some cases. Also put throwable catches around all audio calls to prevent it from taking the app down. http://github.com/appcelerator/titanium_mobile/commit/73c36134d78e207ef2075d27f7452f363d76c23e"> http://github.com/appcelerator/titanium_mobile/commit/73c36134d78e2...