Tencent / VasSonic

VasSonic is a lightweight and high-performance Hybrid framework developed by tencent VAS team, which is intended to speed up the first screen of websites working on Android and iOS platform.
Other
11.81k stars 1.61k forks source link

webview多次打开关闭会白屏 #227

Closed mAndroidNovice closed 6 years ago

mAndroidNovice commented 6 years ago

What steps will reproduce the problem? 该问题的重现步骤是什么?

  1. 打开webview,关闭webview 多次
  2. 会出现 只回调onReceiveTitle,内容显示不出来
  3. 再次打开,连onReceiveTitle都不显示了

What is the expected output? What do you see instead? 你期待的结果是什么?实际看到的又是什么? 正常显示,白屏

What version of the product are you using? On what operating system? 你正在使用产品的哪个版本?在什么操作系统上? 3.0, 安卓操作系统4.4华为荣耀4X

Please provide any additional information below. 如果有的话,请在下面提供更多信息。 651203654 我在群里 群搜索我就可以啦

mAndroidNovice commented 6 years ago

附上白屏时候的log日志: 04-10 22:14:23.786 2103-2103/com.yanhui.qktx D/SonicSdk_SonicSession: session(192706) handleMessage: msg what = 1. 04-10 22:14:23.786 2103-2103/com.yanhui.qktx I/SonicSdk_SonicSession: session(192706) setResult: srcCode=304, finalCode=304. 04-10 22:14:23.786 2103-2103/com.yanhui.qktx E/SonicSdk_SonicSession: session(192706) setResult: notify fail as webCallback is not set, please wait! 04-10 22:14:58.446 2103-2103/com.yanhui.qktx E/SonicSdk_SonicSessionConnection: getResponseStream error:null. 04-10 22:14:58.446 2103-2103/com.yanhui.qktx I/SonicSdk_SonicSession: session(192706) final destroy, force=false. 04-10 22:15:01.146 2103-2103/com.yanhui.qktx I/SonicSdk_SonicSession: session(192707) create:id=sonic-demo-master_e0282b717f22fcd6505ec260e560a765, url = http://statics.qukantianxia.com/html/h5/qktx_html/index.html?r=0.5941154390015924#/ycode?token=962e8c611b4436243e914df473a3451a&os=1&r=0.3973243388216491&onvoice=0&versionCode=19&versionName=1.1.8. 04-10 22:15:01.146 2103-2103/com.yanhui.qktx I/SonicSdk_SonicSession: session(192707) now post sonic flow task. 04-10 22:15:01.146 2103-2103/com.yanhui.qktx I/SonicSdk_SonicSession: session(192707) bind client. 04-10 22:15:01.236 2103-2316/com.yanhui.qktx I/SonicSdk_SonicSession: session(192707) runSonicFlow verify cache cost 82 ms 04-10 22:15:01.246 2103-2316/com.yanhui.qktx I/SonicSdk_SonicSession: Session (sonic-demo-master_e0282b717f22fcd6505ec260e560a765) send sonic request, etag=("FjfublL4MVKkTPHjCQsVQFtWzkZr.gz"), templateTag=("FjfublL4MVKkTPHjCQsVQFtWzkZr.gz") 04-10 22:15:02.416 2103-2103/com.yanhui.qktx D/SonicSdk_SonicSession: session(192707) handleMessage: msg what = 5. 04-10 22:15:16.626 2103-2316/com.yanhui.qktx D/SonicSdk_SonicSession: session(192707) connection get header fields cost = 33 ms. 04-10 22:15:16.626 2103-2316/com.yanhui.qktx D/SonicSdk_SonicSession: session(192707) connection set cookies cost = 0 ms. 04-10 22:15:16.626 2103-2316/com.yanhui.qktx I/SonicSdk_SonicSession: session(192707) handleFlow_Connection: respCode = 304, cost 15394 ms. 04-10 22:15:16.636 2103-2316/com.yanhui.qktx I/SonicSdk_SonicSession: session(192707) handleFlow_Connection: Server response is not modified. 04-10 22:15:34.506 2103-2103/com.yanhui.qktx D/SonicSdk_SonicSession: session(192707) handleMessage: msg what = 1. 04-10 22:15:34.506 2103-2103/com.yanhui.qktx I/SonicSdk_SonicSession: session(192707) setResult: srcCode=304, finalCode=304. 04-10 22:15:34.506 2103-2103/com.yanhui.qktx E/SonicSdk_SonicSession: session(192707) setResult: notify fail as webCallback is not set, please wait!

mAndroidNovice commented 6 years ago

附加 只有title回调,不显示内容的日志: 04-10 22:18:11.756 6239-6239/com.yanhui.qktx I/SonicSdk_SonicSession: session(193644) create:id=sonic-demo-master_e0282b717f22fcd6505ec260e560a765, url = http://statics.qukantianxia.com/html/h5/qktx_html/index.html?r=0.36449079612790825#/sign?token=962e8c611b4436243e914df473a3451a&os=1&r=0.43538088933631147&onvoice=0&versionCode=19&versionName=1.1.8. 04-10 22:18:11.756 6239-6239/com.yanhui.qktx I/SonicSdk_SonicSession: session(193644) now post sonic flow task. 04-10 22:18:11.766 6239-6239/com.yanhui.qktx I/SonicSdk_SonicSession: session(193644) bind client. 04-10 22:18:11.786 6239-6385/com.yanhui.qktx I/SonicSdk_SonicSession: session(193644) runSonicFlow verify cache cost 27 ms 04-10 22:18:11.786 6239-6385/com.yanhui.qktx I/SonicSdk_SonicSession: Session (sonic-demo-master_e0282b717f22fcd6505ec260e560a765) send sonic request, etag=("FjfublL4MVKkTPHjCQsVQFtWzkZr.gz"), templateTag=("FjfublL4MVKkTPHjCQsVQFtWzkZr.gz") 04-10 22:18:12.016 6239-6385/com.yanhui.qktx D/SonicSdk_SonicSession: session(193644) connection get header fields cost = 10 ms. 04-10 22:18:12.016 6239-6385/com.yanhui.qktx D/SonicSdk_SonicSession: session(193644) connection set cookies cost = 0 ms. 04-10 22:18:12.016 6239-6385/com.yanhui.qktx I/SonicSdk_SonicSession: session(193644) handleFlow_Connection: respCode = 304, cost 226 ms. 04-10 22:18:12.016 6239-6385/com.yanhui.qktx I/SonicSdk_SonicSession: session(193644) handleFlow_Connection: Server response is not modified. 04-10 22:18:12.066 6239-6239/com.yanhui.qktx D/SonicSdk_SonicSession: session(193644) handleMessage: msg what = 5. 04-10 22:18:12.086 6239-6239/com.yanhui.qktx D/SonicSdk_SonicSession: session(193644) handleMessage: msg what = 1. 04-10 22:18:12.086 6239-6239/com.yanhui.qktx I/SonicSdk_SonicSession: session(193644) setResult: srcCode=304, finalCode=304. 04-10 22:18:12.086 6239-6239/com.yanhui.qktx E/SonicSdk_SonicSession: session(193644) setResult: notify fail as webCallback is not set, please wait! 04-10 22:18:12.186 6239-6328/com.yanhui.qktx D/SonicSdk_SonicSession: onClientRequestResource called in Thread-1749. 04-10 22:18:12.186 6239-6328/com.yanhui.qktx D/SonicSdk_SonicSession: onClientRequestResource called in Thread-1749. 04-10 22:18:12.196 6239-6328/com.yanhui.qktx D/SonicSdk_SonicSession: onClientRequestResource called in Thread-1749. 04-10 22:18:12.196 6239-6328/com.yanhui.qktx D/SonicSdk_SonicSession: onClientRequestResource called in Thread-1749. 04-10 22:18:12.206 6239-6328/com.yanhui.qktx D/SonicSdk_SonicSession: onClientRequestResource called in Thread-1749. 04-10 22:18:12.636 6239-6328/com.yanhui.qktx D/SonicSdk_SonicSession: onClientRequestResource called in Thread-1749. 04-10 22:18:12.736 6239-6328/com.yanhui.qktx D/SonicSdk_SonicSession: onClientRequestResource called in Thread-1749. 04-10 22:18:12.766 6239-6239/com.yanhui.qktx I/SonicSdk_SonicSession: session(193644) onClientPageFinished:url=http://statics.qukantianxia.com/html/h5/qktx_html/index.html?r=0.36449079612790825#/sign?token=962e8c611b4436243e914df473a3451a&os=1&r=0.43538088933631147&onvoice=0&versionCode=19&versionName=1.1.8. 04-10 22:18:12.786 6239-6328/com.yanhui.qktx D/SonicSdk_SonicSession: onClientRequestResource called in Thread-1749. 04-10 22:18:12.926 6239-6328/com.yanhui.qktx D/SonicSdk_SonicSession: onClientRequestResource called in Thread-1749. 04-10 22:18:12.936 6239-6328/com.yanhui.qktx D/SonicSdk_SonicSession: onClientRequestResource called in Thread-1749. 04-10 22:18:12.956 6239-6328/com.yanhui.qktx D/SonicSdk_SonicSession: onClientRequestResource called in Thread-1749. 04-10 22:18:13.016 6239-6328/com.yanhui.qktx D/SonicSdk_SonicSession: onClientRequestResource called in Thread-1749. 04-10 22:18:13.066 6239-6328/com.yanhui.qktx D/SonicSdk_SonicSession: onClientRequestResource called in Thread-1749. 04-10 22:18:13.106 6239-6328/com.yanhui.qktx D/SonicSdk_SonicSession: onClientRequestResource called in Thread-1749. 04-10 22:18:14.726 6239-6239/com.yanhui.qktx E/SonicSdk_SonicSessionConnection: getResponseStream error:null. 04-10 22:18:14.726 6239-6239/com.yanhui.qktx I/SonicSdk_SonicSession: session(193644) final destroy, force=false. 04-10 22:18:15.036 6239-6239/com.yanhui.qktx I/SonicSdk_SonicSession: session(193645) create:id=sonic-demo-master_e0282b717f22fcd6505ec260e560a765, url = http://statics.qukantianxia.com/html/h5/qktx_html/index.html?r=0.6385402262841806#/sign?token=962e8c611b4436243e914df473a3451a&os=1&r=0.19407568244992346&onvoice=0&versionCode=19&versionName=1.1.8. 04-10 22:18:15.036 6239-6239/com.yanhui.qktx I/SonicSdk_SonicSession: session(193645) now post sonic flow task. 04-10 22:18:15.046 6239-6239/com.yanhui.qktx I/SonicSdk_SonicSession: session(193645) bind client. 04-10 22:18:15.056 6239-6385/com.yanhui.qktx I/SonicSdk_SonicSession: session(193645) runSonicFlow verify cache cost 21 ms 04-10 22:18:15.056 6239-6385/com.yanhui.qktx I/SonicSdk_SonicSession: Session (sonic-demo-master_e0282b717f22fcd6505ec260e560a765) send sonic request, etag=("FjfublL4MVKkTPHjCQsVQFtWzkZr.gz"), templateTag=("FjfublL4MVKkTPHjCQsVQFtWzkZr.gz") 04-10 22:18:15.216 6239-6385/com.yanhui.qktx D/SonicSdk_SonicSession: session(193645) connection get header fields cost = 3 ms. 04-10 22:18:15.216 6239-6385/com.yanhui.qktx D/SonicSdk_SonicSession: session(193645) connection set cookies cost = 0 ms. 04-10 22:18:15.216 6239-6385/com.yanhui.qktx I/SonicSdk_SonicSession: session(193645) handleFlow_Connection: respCode = 304, cost 153 ms. 04-10 22:18:15.216 6239-6385/com.yanhui.qktx I/SonicSdk_SonicSession: session(193645) handleFlow_Connection: Server response is not modified. 04-10 22:18:15.236 6239-6239/com.yanhui.qktx D/SonicSdk_SonicSession: session(193645) handleMessage: msg what = 5. 04-10 22:18:15.256 6239-6239/com.yanhui.qktx D/SonicSdk_SonicSession: session(193645) handleMessage: msg what = 1. 04-10 22:18:15.256 6239-6239/com.yanhui.qktx I/SonicSdk_SonicSession: session(193645) setResult: srcCode=304, finalCode=304. 04-10 22:18:15.256 6239-6239/com.yanhui.qktx E/SonicSdk_SonicSession: session(193645) setResult: notify fail as webCallback is not set, please wait! 04-10 22:18:15.346 6239-6328/com.yanhui.qktx D/SonicSdk_SonicSession: onClientRequestResource called in Thread-1749. 04-10 22:18:15.356 6239-6328/com.yanhui.qktx D/SonicSdk_SonicSession: onClientRequestResource called in Thread-1749. 04-10 22:18:15.366 6239-6328/com.yanhui.qktx D/SonicSdk_SonicSession: onClientRequestResource called in Thread-1749. 04-10 22:18:15.376 6239-6328/com.yanhui.qktx D/SonicSdk_SonicSession: onClientRequestResource called in Thread-1749. 04-10 22:18:15.376 6239-6328/com.yanhui.qktx D/SonicSdk_SonicSession: onClientRequestResource called in Thread-1749. 04-10 22:18:15.716 6239-6328/com.yanhui.qktx D/SonicSdk_SonicSession: onClientRequestResource called in Thread-1749. 04-10 22:18:15.806 6239-6328/com.yanhui.qktx D/SonicSdk_SonicSession: onClientRequestResource called in Thread-1749. 04-10 22:18:15.906 6239-6239/com.yanhui.qktx I/SonicSdk_SonicSession: session(193645) onClientPageFinished:url=http://statics.qukantianxia.com/html/h5/qktx_html/index.html?r=0.6385402262841806#/sign?token=962e8c611b4436243e914df473a3451a&os=1&r=0.19407568244992346&onvoice=0&versionCode=19&versionName=1.1.8. 04-10 22:18:16.006 6239-6328/com.yanhui.qktx D/SonicSdk_SonicSession: onClientRequestResource called in Thread-1749. 04-10 22:18:16.006 6239-6328/com.yanhui.qktx D/SonicSdk_SonicSession: onClientRequestResource called in Thread-1749. 04-10 22:18:16.016 6239-6328/com.yanhui.qktx D/SonicSdk_SonicSession: onClientRequestResource called in Thread-1749. 04-10 22:18:16.076 6239-6328/com.yanhui.qktx D/SonicSdk_SonicSession: onClientRequestResource called in Thread-1749. 04-10 22:18:16.116 6239-6328/com.yanhui.qktx D/SonicSdk_SonicSession: onClientRequestResource called in Thread-1749. 04-10 22:18:16.146 6239-6328/com.yanhui.qktx D/SonicSdk_SonicSession: onClientRequestResource called in Thread-1749.

mAndroidNovice commented 6 years ago

解决了,h5的问题,很抱歉,给您造成麻烦