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

asyncUpload上传会卡死js线程一会 #22

Open
shiwenwen opened this issue Sep 20, 2018 · 2 comments
Open

asyncUpload上传会卡死js线程一会 #22

shiwenwen opened this issue Sep 20, 2018 · 2 comments

Comments

@shiwenwen
Copy link

asyncUpload上传会卡死js线程一会,请问是什么情况,目前测的是android

@stechrayo
Copy link

试试 关闭enableDevMode和所有的addEventListener,

@zephyrpersonal
Copy link
Contributor

zephyrpersonal commented Oct 16, 2018

同样的问题,打断点后发现这里
https://github.com/aliyun/aliyun-oss-react-native/blob/7ccafa24fb1e1af60892657ddb3a4e3e7730e19e/android/src/main/java/com/reactlibrary/AliyunUploadManager.java#L73:99
如果cursor为null,那么会进入catch block,但catch block里的方法同步执行了很久,并且使得JS进程也阻塞了
本人不是android开发不能继续深挖了....

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

No branches or pull requests

3 participants