Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

红米3S闪退,激活中介者时不在主线程执行,Weex抛出了一个异常 #81

Closed
poerlang opened this issue Mar 1, 2018 · 3 comments
Assignees
Labels

Comments

@poerlang
Copy link

poerlang commented Mar 1, 2018

在小米app商城提交的时候被拒,原因是在如下机型中启动后进行 Monkey 点击测试时崩溃。
安卓,红米3S,MIUI9(V9.2.1.0.MALCNEK)稳定版。

f86f52b6-7f7e-4ddb-a272-97f25758d5d6

报错流,从上至下:
java.lang.Thread.run(Thread.java:818)
SplashActivity.java:38
VersionManager.prepareJsBundle(VersionManager.java:54)
VersionManager.initMediator(VersionManager.java:70)
MediatorDocker.active(MediatorDocker.java:64)
MediatorDocker.destoryInstance(MediatorDocker.java:73)
MediatorInstance.destory(MediatorInstance.java:24)
com.taobao.weex.WXSDKInstance.destroy(WXSDKInstance.java:1229)
com.taobao.weex.WXSDKManager.destroyInstance(WXSDKManager.java:293)
com.taobao.weex.common.WXRuntimeException: [WXSDKManager] destroyInstance error

@myliuyx
Copy link
Collaborator

myliuyx commented Mar 2, 2018

原因:在非主线程调用了 WXSDKInstance.destroy 方法导致。 由于monkey 的操作的,和实际操作可能有所区别。
解决:将 destroy 方法挪到 主线程,同时 try cache。 destory

@poerlang
Copy link
Author

poerlang commented Mar 8, 2018

试过了,可行,审核通过了

@poerlang poerlang closed this as completed Mar 8, 2018
@heiren0926
Copy link

能说一下具体咋解决的吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants