如何禁用 Chrome 超时/终止选项卡?

发布于 2024-10-19 19:55:23 字数 521 浏览 3 评论 0原文

一位用户报告称,我们的 Flex 应用程序的某个屏幕在 Google Chrome 和 IE 中超时。我可以重现这个问题,但我不知道是什么原因造成的。我无法用 Firefox 重现它。

我想知道是否有办法在 Chrome 中暂时禁用此功能,因为我知道在 Firefox 中(至少在 v3.6 中),当 Flex/Flash 应用程序执行时间过长时,我会从 Flash 运行时获得指向我的堆栈跟踪问题。示例:

Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.
    at TimeoutTest/___TimeoutTest_Button1_click()[/TimeoutTest/src/TimeoutTest.mxml:5]

我认为 Chrome 正在劫持此进程并拒绝向我提供该信息,因此我宁愿暂时阻止此行为,以查看运行时是否会检测到超时并提供类似的跟踪。

有什么想法吗?

A user is reporting that a certain screen of our Flex app times out in Google Chrome and IE. I can reproduce this problem, but I don't know what is causing it. I cannot reproduce it with Firefox.

I was wondering if there is a way to temporarily disable this feature in Chrome because I know that in Firefox(at least in v3.6) when a Flex/Flash app executes for too long I get a stack trace from the Flash runtime pointing me to the problem. example:

Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.
    at TimeoutTest/___TimeoutTest_Button1_click()[/TimeoutTest/src/TimeoutTest.mxml:5]

I think that Chrome is hijacking this process and denying me that information, so I would prefer to prevent this behavior for now to see if the runtime will detect the timeout and provide a similar trace.

Any thoughts?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

蓝海 2024-10-26 19:55:23

我知道我迟到了,但答案就在 Chrome 菜单(三条纹)中:转到设置 ->显示高级设置->隐私:取消选中“预测网络操作以提高页面加载性能”选项。希望有帮助。

I know I'm coming late but the answer is in Chrome menu (the three stripes): Go to settings -> Show Advanced settings -> Privacy: uncheck the option that says 'Predict network actions to improve page load performance'. Hope that helps.

世态炎凉 2024-10-26 19:55:23

进入发布设置-> Flash 在您的主 Fla 中并更改脚本时间限制参数。希望它有效

Go to the publish settings -> Flash in your main Fla and change the Script time limt parameter. Hope it works

独享拥抱 2024-10-26 19:55:23

你想做什么?我认为正常的脚本限制是 15 秒。如果您的一位用户收到这些错误,则意味着您的应用程序挂起超过 15 秒!

如果是这样的话,那么你看待这个问题的方式就是错误的。不要只是删除脚本限制,而是尝试找出导致如此多延迟的原因并尝试对其进行优化。 Flex Profiler 将提供巨大帮助。

What are you trying to do? The normal script limit is 15 seconds I believe. If one of your users is getting those errors that means your application is hanging for more than 15 seconds!

If that's the case, you're looking about this the wrong way. Instead of just removing the script limit, try to find out what's causing so much delay and try to optimize it. The Flex Profiler will help tremendously.

じее 2024-10-26 19:55:23

在桌面上创建 Chrome 浏览器快捷方式。右键单击快捷方式,选择属性,在目标下,将 --disable-hang-monitor 添加到末尾,如下所示:"C:\Program Files (x86)\Google\Chrome\应用程序\chrome.exe”--disable-hang-monitor。应用更改。如果要删除脚本超时,请打开快捷方式,否则使用普通链接。在重新打开快捷方式之前必须关闭所有浏览器。

Create a Chrome Browser Shortcut on the Desktop. Right Click the shortcut, Select Properties, Under Target, Add --disable-hang-monitor to the end, like so: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-hang-monitor. Apply Changes. Open the shortcut if you want to remove the script time-out, otherwise use normal link. All browsers have to be closed before reopening the shortcut.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文