我们开发排查了两天了,扛不住了,原生和前端都排查不出问题,问题很诡异啊
集成方式
原生APP中集成uni-sdk
小程序调用方式
wgt包调用
问题出现手机
小米k40,华为mata20
现象描述
原生应用加载wgt正常情况下,在没有动原生代码及wgt代码的情况下,小程序白屏,只有底部tab栏(路由中的),一旦白屏后,这个原生应用加载这个wgt就一直白屏,卸载重装应用都没有用。
但是如果重新建一个原生项目,再去启动同样的wgt,又可以了
报错代码
2021-07-02 10:37:51.596 23026-23026/com.xxxx.xxxx E/WeexInstanceMgr: resAppVersionName--= +fcAppVersionName= true
2021-07-02 10:37:51.598 23026-23026/com.xxxx.xxxx E/Html5Plus-onCreate: 1625193471598
2021-07-02 10:37:51.605 23026-23026/com.xxxx.xxxx E/DCloud_LOG: channel:;ver:1.9.9.80859;max:3;trim:0;dg:true
2021-07-02 10:37:51.648 23026-23026/com.xxxx.xxxx E/Html5Plus-onResume: 1625193471648
2021-07-02 10:37:51.675 23026-23026/com.xxxx.xxxx E/DCloud_LOG: fmgr no dp
2021-07-02 10:37:51.683 23026-23026/com.xxxx.xxxx E/Main_Path: FeatureMgr.loadBootOptions io.dcloud.js.map.MapInitImpl
2021-07-02 10:37:51.683 23026-23026/com.xxxx.xxxx E/Main_Path: FeatureMgr.loadBootOptions io.dcloud.feature.aps.APSFeatureImpl
2021-07-02 10:37:51.711 23026-23026/com.xxxx.xxxx E/DCloud_LOG: channel:;ver:1.9.9.80859;max:3;trim:0;dg:true
2021-07-02 10:37:51.717 23026-23026/com.xxxx.xxxx E/DCloud_LOG: PlatformUtil.getResInputStream FileNotFoundException pFilePath=data/dcloud_url.json
2021-07-02 10:37:51.718 23026-23026/com.xxxx.xxxx E/DCloud_LOG: PlatformUtil.getResInputStream FileNotFoundException pFilePath=data/api.json
2021-07-02 10:37:51.718 23026-23333/com.xxxx.xxxx E/DCloud_LOG: PlatformUtil.getResInputStream FileNotFoundException pFilePath=data/dcloud3.dat
2021-07-02 10:37:51.785 23026-23349/com.xxxx.xxxx E/DCloud_LOG: PlatformUtil.getResInputStream FileNotFoundException pFilePath=apps/__UNI__8700D97/www/manifest.json
2021-07-02 10:37:51.875 23026-23026/com.xxxx.xxxx E/appMgr: START_APP__UNI__8700D97
2021-07-02 10:37:51.890 23026-23026/com.xxxx.xxxx E/streamsdk: come into createAppRootView pAppid===__UNI__8700D97
2021-07-02 10:37:51.890 23026-23026/com.xxxx.xxxx E/streamsdk: come into createAppRootView and new le rootview pAppid===__UNI__8700D97
2021-07-02 10:37:51.912 23026-23026/com.xxxx.xxxx E/useTime: name :start_app_set_rootview; <<-- startio.dcloud.common.core.ui.a$l{1bcac65 V.E...... ......ID 0,0-0,0} -->> useTime = 36
2021-07-02 10:37:51.912 23026-23026/com.xxxx.xxxx E/DCloud_LOG: Webapp start __UNI__8700D97
2021-07-02 10:37:51.919 23026-23026/com.xxxx.xxxx E/webapp: start0 mAppid===__UNI__8700D97
2021-07-02 10:37:51.919 23026-23026/com.xxxx.xxxx E/StreamSDK: come into activeAppRootView
2021-07-02 10:37:52.059 23026-23026/com.xxxx.xxxx E/WXViewWrapper: WXViewWrapper----------isPre=false wxid=__uniapp__service
2021-07-02 10:37:52.065 23026-23026/com.xxxx.xxxx E/IAN: new AppWidgetMgr 1625193472065appid==__UNI__8700D97
2021-07-02 10:37:52.158 23026-23026/com.xxxx.xxxx E/DCloud_LOG: createWindow before _url=file:///data/user/0/com.xxxx.xxxx/files/apps/__UNI__8700D97/www/__uniappview.html
2021-07-02 10:37:52.158 23026-23026/com.xxxx.xxxx E/DCloud_LOG: createWindow after _url=file:///data/user/0/com.xxxx.xxxx/files/apps/__UNI__8700D97/www/__uniappview.html
2021-07-02 10:37:52.186 23026-23026/com.xxxx.xxxx E/TelephonyUtil: getIMEI exception==getUniqueDeviceId: The user 10344 does not meet the requirements to access device identifiers.
2021-07-02 10:37:52.205 23026-23026/com.xxxx.xxxx E/useTime: name :createFrameView; <<-- createFrameView耗时: -->> useTime = 60
2021-07-02 10:37:52.318 23026-23026/com.xxxx.xxxx E/weex: idle from create instance cache size is 0
2021-07-02 10:37:52.333 23026-23092/com.xxxx.xxxx E/weex: end getBundleType type:Vue time:1
2021-07-02 10:37:52.337 23026-23092/com.xxxx.xxxx E/timeline: createInstance :1625193472337
2021-07-02 10:37:52.341 23026-23092/com.xxxx.xxxx E/jsEngine: script_bridge_in_multi_process.cpp:473,ScriptBridgeInMultiProcess::CreateInstance and Id is : 1
2021-07-02 10:37:52.361 23026-23092/com.xxxx.xxxx E/weex: reportJSException >>>> instanceId:1, exception function:createInstanceContext, exception:Uncaught ReferenceError: uni is not defined
2021-07-02 10:37:52.362 23026-23092/com.xxxx.xxxx E/weex: onJSException -9700,Uncaught ReferenceError: uni is not defined
2021-07-02 10:37:52.362 23026-23026/com.xxxx.xxxx E/WXViewWrapper: onException--errCode=-9700 msg=createInstanceContextUncaught ReferenceError: uni is not defined
2021-07-02 10:37:52.363 23026-23092/com.xxxx.xxxx E/weex: commitCriticalExceptionRT :WX_RENDER_ERR_JS_CREATE_INSTANCE_CONTEXTexceptionwhite screen cause create instanceContext failed,check js stack ->Uncaught ReferenceError: uni is not defined
2021-07-02 10:37:52.457 23026-23441/com.xxxx.xxxx E/WebViewData: syncUpdateWebViewData url=null
2021-07-02 10:38:02.366 23026-23026/com.xxxx.xxxx E/Html5Plus-SplashClosed: 1625193482366
2021-07-02 10:38:02.366 23026-23026/com.xxxx.xxxx E/Main_Path: closeSplashScreen0 appid=__UNI__8700D97;true;closeSplashDid=false
1***@163.com (作者)
大佬,你不是已经帮我解决了么,感谢大佬
2021-07-02 17:21
DCloud_Android_ST
回复 1***@163.com: 嗯 小程序初始化之前不要调用getAppBasePath 会造成路径异常问题。后续会优化该问题
2021-07-02 18:23
yrj
回复 DCloud_Android_ST: 23年也遇到同样问题,请问如何修复?
2023-02-13 15:09