Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

[WEEX-524][iOS] Try to fix a crash operating mutable array in multi-thread #1357

Merged
merged 2 commits into from Jul 23, 2018

Conversation

xuyouyang
Copy link
Contributor

Try to fix a crash:

Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndexedSubscript:]: index 0 beyond bounds for empty array'

Last Exception Backtrace:
0 CoreFoundation __exceptionPreprocess :228 (in CoreFoundation)
1 _objc_exception_throw :56
2 CoreFoundation _CFThrowFormattedException :112 (in CoreFoundation)
3 -[__NSArrayM objectAtIndexedSubscript:] :192 (in CoreFoundation)
4 -[WXThreadSafeMutableArray objectAtIndex:] WXThreadSafeMutableArray.m:0
5 -[WXBridgeContext topInstance] WXBridgeContext.m:0
6 +[WXSDKEngine topInstance] WXSDKEngine.m:277

@weex-bot
Copy link

weex-bot commented Jul 23, 2018

Messages
📖 No android file has been changed.
📖 android build verification finished.

Generated by 🚫 dangerJS

Copy link
Member

@wqyfavor wqyfavor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve

@asfgit asfgit merged commit 9073154 into apache:master Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants