You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by GitBox <gi...@apache.org> on 2018/11/09 09:56:50 UTC
[GitHub] zhouxuemeng1988 opened a new issue #1732: 加载本地js文件导致OOM
zhouxuemeng1988 opened a new issue #1732: 加载本地js文件导致OOM
URL: https://github.com/apache/incubator-weex/issues/1732
java.lang.OutOfMemoryError
at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:82)
at java.lang.StringBuilder.<init>(StringBuilder.java:67)
at com.taobao.weex.utils.WXFileUtils.readStreamToString(WXFileUtils.java:86)
at com.taobao.weex.utils.WXFileUtils.loadFileOrAsset(WXFileUtils.java:52)
at com.gochinatv.ad.WXPageBaseActivity$1.run(WXPageBaseActivity.java:270)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5039)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:843)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:659)
at dalvik.system.NativeStart.main(Native Method)
## Environment
FINGERPRINT=HiSTBAndroidV5/Hi3798MV100/Hi3798MV100:4.4.2/Sbox8G40C/817120000087:eng/test-keys
weex sdk version : 'com.taobao.android:weex_sdk:0.18.0'
加载本地js文件,偶现bug,本地js文件最多的为332KB
<img width="796" alt="2018-11-09 17 54 36" src="https://user-images.githubusercontent.com/26111953/48255843-d1985600-e448-11e8-97aa-586eebaa79e3.png">
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services