a problem occurred with this webpage so it was reloaded

1 问题描述:

   Safari浏览器进入网站, 网站会(不断)重载。提示a problem occurred with this webpage so it was reloaded

2 问题演示视频、截图(右图我需要重现并解决的)

    视频地址:https://www.youtube.com/watch?v=ZWf9vCWvE4k


  


3 问题:

http://stackoverflow.com/questions/28440676/web-page-triggering-exc-bad-access-kern-invalid-address-crash-in-safari

http://stackoverflow.com/questions/29552139/website-repeatedly-reloads-then-crashes-on-iphone-4-ios-8-0-2-ios-8-1-2

https://discussions.apple.com/thread/6556800

https://discussions.apple.com/thread/670762

http://www.fixerrs.com/2015/02/a-problem-occurred-with-this-webpage.html

(可能的)问题设备:

iPad 2, iOS 8.1.1    

any version of iPad, Old or New     

iPhone 4S devices (iOS 8.0.2 & iOS 8.1.2&iOS 8.3)

iOS 8.1 on iPhone 6 Plus (macrumors.com)

4 查找原因(根据stackoverflow 和 github已有的排查):

a.参考网站:http://stackoverflow.com/questions/26668950/safari-crash-while-taking-photo-in-iphone-4s-ios-8-1

可能原因:拍照代码引起的?

猜想:可能,但是 5c ios8.3和 4 ios7没出错

b.参考网站:http://stackoverflow.com/questions/28700652/iphone-ipad-crashes-when-zooming

可能原因:Zoom变换大小引起的?

猜想:不太像,已经使用了 <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">,切换横竖屏的时候没出错过。

c.参考网站:http://stackoverflow.com/questions/28004398/mobile-safari-forced-refresh-because-of-issue-with-javascript

https://github.com/jquery/jquery-mobile/issues/7685

可能原因:下拉框引起的?(或者说JQM引起的?)

猜想: 不是

d.参考网站:http://stackoverflow.com/questions/29552139/website-repeatedly-reloads-then-crashes-on-iphone-4-ios-8-0-2-ios-8-1-2

可能原因:某些CSS样式引起的?

猜想    :不是 要是css原因引起会一直出现这个问题。

 

5 重现:

重现别人的问题:

参考网站:https://github.com/jquery/jquery-mobile/issues/7685

        1 测试页面:http://demos.jquerymobile.com/1.4.4/selectmenu/     

            Steps to reproduce

    1. Click on the select

    2. Select an option (other than the one already selected)

    3. Press the angle right icon to "tap" to the next select.

    4. Page crashes

        结论:(5c ios 8.2 能)(模拟器 5s 8.2 能)

        2 测试页面:http://greenti.cl/test.html

           测试步骤同上

           结论:(5c ios 8.2 能)(模拟器 5s 8.2 能)

重现自己的问题:

    网址:http://192.168.1.99/vsdemo/iacr/

    (暂时没有固定步骤重现)

    a. 在Safari中打开 -> 添加到主屏幕 -> 从桌面打开->出现问题

    b. 在Safari中打开-> 一些操作 -> 添加到主屏幕 -> 从桌面打开 -> 一些正常操作 ->过了一会儿出现问题

    c. 在safari中打开 ->切换页面->切换回来 ->添加到主屏幕 -> 从桌面打开 ->正在刷新时点击Query->出错

    结论:更像是随机出现的。。


6 猜测原因

    b.服务器端传来的数据使JS出错

    c.拍照按钮后的js function引起的

    d.一直在运行的js出错

   

            







原文地址:https://www.cnblogs.com/sunyanyan/p/4477681.html