如何调试的swf浏览器崩溃 [英] how to debug swf browser crashes

查看:532
本文介绍了如何调试的swf浏览器崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的SWF偶尔崩溃的浏览器(或只是崩溃的插件铬告诉我的)。

My swf is occasionally crashing the browser (or just crashing the plugin as chrome tells me).

我如何诊断错误?我开发的Flash Player 9使用Flex。

How do I diagnose the bug? I am developing for flash player 9 using flex.

东西:

  • 在开机状态下的日志文件,这样我就可以看到痕迹(...)输出。然而,我的日志文件,和我的SWF,即将结束在不一致的终结点。
  • 安装Flash播放器的调试版本
  • 在尝试不同的浏览器(我今天在Vista上,并能重现四个浏览器的bug)。

我希望有从插件中的[清晰]堆栈跟踪。有什么建议?

I am hoping there is a [legible] stack trace from the plugin. Any suggestions?

推荐答案

这可能是因为Flash插件导致崩溃日志文件可以被刷新了。我唯一​​可以建议是安装的Windows调试工具的。

It's likely that the flash plugin is causing the crash before your log files can be flushed. The only thing I can recommend is to install the Windows Debugging Tools.

然后打开一个命令提示符(以管理员身份,如果在Vista中),然后键入以下内容:

Then bring up a command prompt (as administrator if in vista), and type the following:

cd "%programfiles%\Debugging Tools for Windows"
adplus -crash -pn iexplore.exe

(显然,IEXPLORE.EXE改变的任何浏览器您要针对运行。)

(Obviously, change iexplore.exe to whatever browser you are running against.)

现在,用你的Flex应用程序在浏览器中,直到它崩溃。这将创建一个崩溃转储%PROGRAMFILES%\ Windows调试工具\ Crash_Mode__Date_02-18-2009__Time_14-40-0202(实际日期将被使用)。

Now, use your flex application in the browser until it crashes. This will create a crash dump in %programfiles%\Debugging Tools for Windows\Crash_Mode__Date_02-18-2009__Time_14-40-0202 (actual date will be used).

您现在可以发送小型转储(最小dmp文件)到Adobe,使他们能够正确地进行分析。

You can now send that mini-dump (smallest dmp file) to Adobe so they can analyze it properly.

如果您要查看的(本地)调用堆栈中的发现是什么原因造成这个问题的希望,您可以加载的WinDbg和加载转储文件(文件>打开崩溃转储)。一旦它的加载类型在WinDbg命令行并回车:

If you want to view the (native) call stacks in hope of discovering what caused the issue, you can load windbg and load the dump file (File > Open Crash Dump). Once it's loaded type the following at the windbg commandline and hit enter:

~* kb 2000

这篇关于如何调试的swf浏览器崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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