aw中的快照错误 [英] aw snap error in chrome

查看:111
本文介绍了aw中的快照错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人对Chrome中的 aw snap 错误有任何建议?

我已经尝试了所有常用的解决方案(检查病毒程序,删除chrome配置文件,间谍软件搜索, ...)



它只发生在我的网站(jsp)上并且在一段时间不活动之后(我有一种直觉感觉它可能是会话结束,但是因为它永远不会重新发布,这不应该是这样吗?)

其他浏览器没有问题。



我是使用Windows 7 64bit,Chrome 26.0.1410.43 m。



我的下一个想法是查看javascript内容...



谢谢。



[更新]

根本原因是镀铬出现有一个内存泄漏(IE没有这个问题)

奇怪的是,内存保持不变,直到它在15分钟后开始上升,并且每分钟内存几乎翻倍。当它高于1 500 0000 K时,出现Aw snap错误。



在有人提到内存泄漏后找到它。



我的猜测是这与以下两者有关:

1. JQuery

2. JQPlot



(我在我自己的javascript中唯一的定时事件已被禁用此测试)



我现在可以搜索更详细的根本原因并查看修复或解决方法。任何提示或已知问题随时欢迎:-)

[/更新]

Does anyone have any suggestions on the aw snap error in chrome?
I have tried all the usual solutions (Virus program checked, chrome profile removed, spyware search, ...)

It only happens on my website (jsp) and after a certain amount of time of inactivity (I have a gut feeling it might be session end, but since it never reposts, this shouldn''t be the case?)
No issues on other browsers.

I''m using Windows 7 64bit, Chrome 26.0.1410.43 m.

my next idea is to check up on the javascript stuff...

thanks.

[UPDATE]
The root cause is that chrome appears to have a memory leak (IE does not have this problem)
The weird thing is that memory remains constant until it starts rising after exactly 15 minutes and almost doubles in memory each minute. when it is higher than 1 500 0000 K the "Aw snap" error appears.

Found it after someone mentioned memory leak.

My guess is this is related to either:
1. JQuery
2. JQPlot

(My only timed event in my own javascript was disabled for this test)

I can now search for a more detailed root cause and see for a fix or workaround. Any tips or known issues are always welcome :-)
[/UPDATE]

推荐答案

我解决了它像这样:

I solved it like this:
var isChrome = (window.chrome != null ? true : false);
if(isChrome){
    var current = new Date();
    var timedifference = current.getTime() - autorefreshtimeoutcounter.getTime();
    if(timedifference >= (15*60000)){
       autorefreshtimeoutcounter = new Date();
       //refresh here by doing a postback
    }									//end if
}									//end if





我总是愿意接受更好的建议,因为我看到这个作为一种解决方法,而不是一个真正的解决方案。

叫我懒惰,但我不想开始调试并搜索JQuery和JQPlot库以查找内存泄漏。



I''m always open for better suggestions as I see this as a workaround, rather than a real solution.
Call me lazy, but I didn''t want to start debugging and searching both JQuery and JQPlot libraries for a memory leak.


这篇关于aw中的快照错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆