You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by "谷宝剑(剑白)" <ji...@alibaba-inc.com> on 2017/11/09 02:38:25 UTC

回复:[HELP] Randomly crash on Android 5.0.2

            this log exception will not lead to crash,  it just an warning that number is not illegal,  then return Float.NaN.  can you prodive more detail log, and more weex info .
------------------------------------------------------------------发件人:Adam Feng <cx...@gmail.com>发送时间:2017年11月9日(星期四) 10:31收件人:dev <de...@weex.incubator.apache.org>主 题:Re: [HELP] Randomly crash on Android 5.0.2
Hi,

Thanks for the detailed issue,  can you provide the WeexSDK version you used,  and is the issue still  happening when you upgrade to the newest version ?

Thanks.
Adam Feng

On 9 Nov 2017, 9:57 AM +0800, xiaowei.chai <xi...@zhaopin.com.cn>, wrote:
> Hi,
>
> We found our app randomly crashing on Android 5.0.2.
>
> This issue cannot be reproduced manually, but can be reproduced using monkey test.
>
> We found there is only one weex related exception in the logs:
>
>
>
> E/weex ( 8226): Argument format error! value is java.lang.NumberFormatException: Invalid float: ""
>
> E/weex ( 8226): at java.lang.StringToReal.invalidReal(StringToReal.java:63)
>
> E/weex ( 8226): at java.lang.StringToReal.parseFloat(StringToReal.java:308)
>
> E/weex ( 8226): at java.lang.Float.parseFloat(Float.java:306)
>
> E/weex ( 8226): at com.taobao.weex.utils.WXUtils.getFloat(WXUtils.java:263)
>
> E/weex ( 8226): at com.taobao.weex.ui.component.WXComponent.setProperty(WXComponent.java:706)
>
> E/weex ( 8226): at com.taobao.weex.ui.component.WXA.setProperty(WXA.java:255)
>
> E/weex ( 8226): at com.taobao.weex.ui.component.WXComponent.updateProperties(WXComponent.java:646)
>
> E/weex ( 8226): at com.taobao.weex.ui.WXRenderStatement.updateStyle(WXRenderStatement.java:464)
>
> E/weex ( 8226): at com.taobao.weex.ui.WXRenderManager.updateStyle(WXRenderManager.java:393)
>
> E/weex ( 8226): at com.taobao.weex.dom.WXDomStatement$8.execute(WXDomStatement.java:871)
>
> E/weex ( 8226): at com.taobao.weex.ui.WXRenderManager$1.run(WXRenderManager.java:288)
>
> E/weex ( 8226): at com.taobao.weex.common.WXThread$SafeRunnable.run(WXThread.java:235)
>
> E/weex ( 8226): at android.os.Handler.handleCallback(Handler.java:739)
>
> E/weex ( 8226): at android.os.Handler.dispatchMessage(Handler.java:95)
>
> E/weex ( 8226): at android.os.Looper.loop(Looper.java:135)
>
> E/weex ( 8226): at android.app.ActivityThread.main(ActivityThread.java:5539)
>
> E/weex ( 8226): at java.lang.reflect.Method.invoke(Native Method)
>
> E/weex ( 8226): at java.lang.reflect.Method.invoke(Method.java:372)
>
> E/weex ( 8226): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
>
> E/weex ( 8226): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
>
>
>
> We’ve checked all weex pages and there is no chance to provide an empty string to a number-typed target.
>
>
>
> If you want to reproduce, please follow below instructions:
>
> 1. Install our app via http://sj.qq.com/myapp/detail.htm?apkName=com.zhaopin.social
>
> 2. Launch the app, select ‘我是学生党’(the young man, not the old one) if it asks
>
> 3. Connect your phone to computer via USB
>
> 4. Start monkey test via ADB
>
> 5. Monkey will make the app navigating across weex pages, native pages and html pages. But the app always crashed on weex pages.
>
>
>
> Any suggestion will be appreciated.
>
>
>
> Thanks
>
>
>
> Xiao-Wei Chai
>
> www.zhaopin.com
>
>
>