You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by "codefurture (JIRA)" <ji...@apache.org> on 2018/06/26 01:54:00 UTC

[jira] [Commented] (WEEX-409) weex页面白屏检测和分析

    [ https://issues.apache.org/jira/browse/WEEX-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16523061#comment-16523061 ] 

codefurture commented on WEEX-409:
----------------------------------

question one's method is not right, you should check onRenderSuccess method in 

IWXRenderListener class. which have all the lifecycle about render.

 we also have an IWXJSExceptionAdapter and IWXUserTrackAdapter all excetion will commit to them, you can use them to track error.

> weex页面白屏检测和分析
> -------------
>
>                 Key: WEEX-409
>                 URL: https://issues.apache.org/jira/browse/WEEX-409
>             Project: Weex
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 0.17
>            Reporter: ou
>            Assignee: codefurture
>            Priority: Major
>
> 我们针对weex的渲染做了白屏上报,集成的是sdk 0.17.0,发现异常回调还是蛮多的,主要错误是以下五个:
> 第一种:错误占比60.8%,检测方式是我们在onViewCreated中延时一秒检测渲染的view是否存在元素,如果不存在则上报异常;这样的检测是否存在问题和误报?
> 第二种:错误占比10.2%,wx_network_error,这种的存在也蛮多的,这种是js文件访问不到,还是js的内部请求(如图片等请求不到)导致的异常呢?
> 第三种:错误占比8.8%,调用js异常:返回的错误信息是:ReferenceError: Can't find variable: event\n(global function):13:25438\n(weex framework):3:30993\nforEach@[native code]\np@(weex framework):3:30892\n(weex framework):8:26566\n template md5 null  这种要怎么解决呢?
> 第四种:错误占比8.4%,wx_create_instance_error,这种的日志只有createInstance fail,这种情况需要怎么定位分析呢?
> 第五种:错误占比5.6%,wx_network_error ,Unable to resolve host \"XXX域名": No address associated with hostname ,这种情况是什么原因导致的呢?这个域名应该是可以访问到的。



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)