This repository has been archived by the owner on Jun 3, 2021. It is now read-only.
[WEEX-373][iOS] try to fix the issue about _remove_assocations #1182
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As the the crash stack shows app crash during the deallocating of remove_assocation in JSContext object,
so we try to remove the association manually.
0 libobjc.A.dylib 0x00000001916318d8 _object_remove_assocations :260 (in libobjc.A.dylib)
1 libobjc.A.dylib 0x000000019162c340 _objc_destructInstance :104 (in libobjc.A.dylib)
2 libobjc.A.dylib 0x000000019162c398 _object_dispose :28 (in libobjc.A.dylib)
3 0x00000001018d5894 NSObjectLifeCycleDealloc NSObjectLifeCycle.m:104 (in)
4 JavaScriptCore 0x00000001971876ec -[JSContext dealloc] :196 (in JavaScriptCore)
5 libobjc.A.dylib 0x000000019163e134 (anonymous namespace)::AutoreleasePoolPage::pop(void*) :836 (in libobjc.A.dylib)
6 CoreFoundation 0x0000000192a9ab28 _CFAutoreleasePoolPop :28 (in CoreFoundation)
7 Foundation 0x00000001936b35c0 __NSThreadPerformPerform :520 (in Foundation)
Bug:373