Flurry 分析在 Windows Phone 7 中崩溃 [英] Flurry analytics crashing with Windows Phone 7

查看:29
本文介绍了Flurry 分析在 Windows Phone 7 中崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将 Flurry (http://www.flurry.com/) 集成到我的手机 7 应用程序中.唯一需要的代码是应用程序启动中的这一行

I've integrated Flurry (http://www.flurry.com/) into my phone 7 app. The only code needed is this line in application launching

FlurryWP7SDK.Api.StartSession(ApiKeyValue);

但是,一旦命中该行,应用程序就会崩溃并引发 KeyNotFoundException.堆栈跟踪包含在下面.它似乎在查询隔离的存储设置并在密钥不存在时失败.

However, as soon as that line is hit the application crashes with a KeyNotFoundException. The stack trace is included below. It appears to be querying isolated storage settings and failing when the key doesn't exist.

有没有人遇到过这个错误,甚至成功地将 flurry 集成到 Phone 7 应用中?

Does anyone have any experience with this error or even successfully integrating flurry into a Phone 7 app?

at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(String key)
at System.IO.IsolatedStorage.IsolatedStorageSettings.get_Item(String key)
at A.ca98fb38190f0d5cad84c67a779d17229.c204dba68825403c905efd7bfd067b17b(String ce0360de492f1f363775feaf6d6a8ced5, Object c8d4be677f7ee63f6756e13f285072523)
at A.c3f1105d518a239d73e2236200494de25.set_cfca54db015a16ab23de44b4d5c65e9a3(String c8d4be677f7ee63f6756e13f285072523)
at FlurryWP7SDK.Api.StartSession(String apiKey)
at AppName.App.Application_Launching(Object sender, LaunchingEventArgs e)
at Microsoft.Phone.Shell.PhoneApplicationService.FireLaunching()
at Microsoft.Phone.Execution.NativeEmInterop.FireOnLaunching()

<小时>

编辑

在与 Flurry 支持人员讨论后,似乎 KeyNotFoundException 被 Flurry 代码捕获.但是,如果您的调试器设置在抛出异常时中断,无论如何您都将进入调试器.由于异常被 Flurry 捕获并处理,因此继续执行将起作用.

After discussions with Flurry support it appears that the KeyNotFoundException is caught by Flurry code. However if your debugger settings are to break when the exception is thrown you will break into the debugger regardless. Continuing execution will then work because the exception is caught and handled by Flurry.

我无法验证这是否是解决方案,因为我无法再访问指示错误的开发环境,但它似乎是一个可能的解决方案.

I can't verify that this is the solution because I no longer have access to the dev environment that was indicating the error, but it appears to be a likely solution.

推荐答案

我为 Flurry 工作.我们在 Windows 7 平台上有很多成功的部署.您和 Buju 可能正在遇到一个我们以前没有注意到的新问题.请发送电子邮件至 winmosupport@flurry.com,因为诊断可能涉及讨论帐户特定的详细信息.一旦我们确定了根本原因,我们就可以发回此线程,以便社区从我们的调查中受益.感谢您与 Flurry 合作.

I work for Flurry. We have many successful deployments on the Windows 7 platform. You and Buju may be experiencing an emerging issue that has not come to our attention previously. Please email winmosupport@flurry.com as the diagnosis may involve discussing account specific details. Once we determine the underlying cause we can post back to this thread so the community has the benefit of our investigation. Thanks for working with Flurry.

编辑

我只是想跟进 Mac 的评论,因为 KeyNotFoundException 在调试过程中可能以两种方式表现出来.正如 Mac 所指出的,我们确实捕获了 KeyNotFoundException,但是,在我们可以在我们的库中处理它之前,调试器首先看到异常.调试器的行为由 Debug > Exceptions 中的设置决定.

I just wanted to follow up on Mac's comment as the KeyNotFoundException may manifest in two ways during debugging. As Mac noted we do caputure the KeyNotFoundException, however, the debugger sees the exception first before we can handle it within our library. The debugger's behavior is dictated by the setting in Debug > Exceptions.

如果选中Thrown 下的复选框,程序将停止并输出上面的堆栈跟踪.如果未选中 Thrown 下的复选框,则输出将生成如下错误:

If the checkboxes under Thrown are selected the program will be stopped and the stack trace above will be output. If the checkboxes under Thrown are not selected the output will generate an error like the following:

mscorlib.dll 中发生了System.Collections.Generic.KeyNotFoundException"类型的第一次机会异常(这是 Buju 收到的消息)

A first chance exception of type 'System.Collections.Generic.KeyNotFoundException' occurred in mscorlib.dll (this is the message Buju received)

程序将继续遵循此消息,因为它只是作为程序中某处发生异常的通知.有关首次机会例外的更多信息,请参阅以下文章:

The program will continue following this message as it just serves as a notice that an exception occurred somewhere within the program. More information on first chance exceptions can be found in the following articles:

什么是第一次机会例外 - http:///blogs.msdn.com/b/davidklinems/archive/2005/07/12/438061.aspx

What is a first chance exception - http://blogs.msdn.com/b/davidklinems/archive/2005/07/12/438061.aspx

如何处理(禁用)第一次机会报告 - http://www.helixoft.com/博客/档案/24

How to handle (disable) first chance reporting - http://www.helixoft.com/blog/archives/24

这篇关于Flurry 分析在 Windows Phone 7 中崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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