简体   繁体   English

Windows应用商店显示黑屏

[英]Windows Store App shows black screen

I have a problem with my Windows Store App Car Buddy. 我的Windows Store App Car Buddy有问题。 Microsoft Support contacted me about a problem with my app, that it shows only a black screen instead of actual content. Microsoft支持程序联系我有关我的应用程序的问题,该应用程序仅显示黑屏而不显示实际内容。 I am unable to reproduce the error, although I tried on several computers that are available to me. 尽管我尝试了几台可用的计算机,但是无法重现该错误。

But the problem has been also brought to my attention by users, and honestly I have no idea what is the reason. 但是这个问题也引起了用户的注意,说实话,我也不知道是什么原因。 There are no errors, the app does not crash, apparently while in black screen users can still access Settings Charm and pages that are available from there. 没有错误,该应用程序不会崩溃,很明显,在黑屏状态下,用户仍然可以访问“设置超级按钮”和从此处可用的页面。

Can you help? 你能帮我吗? If you need additional information just ask. 如果您需要其他信息,请询问。 I am clueless atm... 我无能为力...

UPDATE 31.05.2013: It seems that while navigating from ExtendedSplashScreen to first page, the Frame.Navigate method returns false, and no exception is thrown. UPDATE 31.05.2013:似乎从ExtendedSplashScreen导航到首页时,Frame.Navigate方法返回false,并且不会引发异常。 Any ideas how to debug this? 有什么想法如何调试吗? Or force the exception to show? 还是强制异常显示?

I seen the same problem with my application. 我的应用程序遇到了同样的问题。 It was only reproducible when running without debugger. 仅在没有调试器的情况下运行才可重现。 So, I ended with using MessageDialog to determine the place where application fails. 因此,我最后使用MessageDialog确定应用程序失败的位置。 It was the ERROR_ACCESS_DENIED exception at attempt to access clipboard when loading application. 加载应用程序时尝试访问剪贴板是ERROR_ACCESS_DENIED异常。 So, I wrapped clipboard operation into try/catch and now it works. 因此,我将剪贴板操作包装到try / catch中,现在可以使用了。 There are 2 strange(bad) things: 有2件奇怪的(坏的)事情:

  • after loading the application the clipboard operations just work, so you can't expect such type of exception; 加载应用程序后,剪贴板操作可以正常工作,因此您不能指望此类异常;
  • this exception is never shown to end-user and application is not terminated - it just shows blank screen. 永远不会向最终用户显示此异常,并且应用程序也不会终止-它仅显示空白屏幕。

I suppose, you have something of this kind, maybe not clipboard.. 我想,您有这种东西,也许不是剪贴板。

The issue has been resolved. 该问题已解决。 The problem was the lack of some Resource translations in default language. 问题是缺少一些默认语言的资源翻译。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM