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

在断网状态下,加载缓存网页有时加载不出来 #213

Closed SunMengLong closed 6 years ago

SunMengLong commented 6 years ago

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

  1. 手机联网,正常加载网页。
  2. 手机断网,加载缓存的本地网页。
  3. 加载本地缓存网页有时加载不出来,具体Bug截图和log已经上传。

What is the expected output? What do you see instead? 你期待的结果是什么?实际看到的又是什么? 期待结果:断网情况下每次都正常加载本地缓存的网页。 实际看到的:断网时加载本地网页有时加载不出来。

What version of the product are you using? On what operating system? 你正在使用产品的哪个版本?在什么操作系统上? 产品版本:3.0.0 操作系统:5.1.1

screenshot_2018-03-06-16-47-58-727_com example us screenshot_2018-03-06-16-48-15-745_com example us

logpng

Please provide any additional information below. 如果有的话,请在下面提供更多信息。

vasdeveloper commented 6 years ago

log里有提升: The context is not activity,请确认context是否使用正确

SunMengLong commented 6 years ago

已经确认过context,没有问题。

vasdeveloper commented 6 years ago

这里log没有提供更多信息,麻烦QQ群联系下Android管理员看看

vasdeveloper commented 6 years ago

该情况低概率出现在 当用户打开页面,然后退出后快速进入同一个url。 当用户退出后再次快速打开同一个url时,这时候sonicSession还在做清理工作,这时候再次进入没法创建session,为了不影响打开速度,我们选择了直接走直连,不用sonic框架。