未处理的异常在WWAHost在Cordova APP使用Angular [英] Unhandled exception in WWAHost in Cordova APP using Angular

查看:286
本文介绍了未处理的异常在WWAHost在Cordova APP使用Angular的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用Foundation for Apps和cordova开发一个Windows现代应用程序。该应用程序在导航期间以很多方式崩溃,有时甚至在运行后立即崩溃。



崩溃是这个



我不能以任何方式调试它。



我试过设置一个window.onerror和一个WinJS.Application.onerror catch all函数,没有结果。显然,崩溃发生在较低的水平。我也检查了事件查看器,但没有可用的信息。



会发生什么显然类似于这个问题:



之后,我可以回到Windows 10,一切都很好。这是在两个开发机器上可重现的。



我不知道移动的项目是否是问题的根源,也许重写的config.xml触发任何重建机制。


I'm currently developing a windows modern app using Foundation for Apps and cordova. The app crashes in many ways during navigation, sometimes even immediately after running it.

The crash is this one

And i can't manage to debug it in any way.

I've tried setting up a window.onerror and a WinJS.Application.onerror catch all function with no results. Apparently the crash happens at a lower level. I've also inspected the event viewer but no info are available.

What happens is apparently similar to this question: How to debug unhandled win32 exception in WinJS Win8 store app which is unfortunately unsolved.

What are my options here?

解决方案

I had the same issue with Visual Studio 2015, Windows 10 and cordova 5.1.1 when I transfer the project to another dev environment. It only occurs at the Windows-x64 app build configuration for the local machine.

After successful building, the app window launches shortly and after that, the win32 exception like the screenshot from sPoz came up. It was reproducible every time.

I try to repair Visual Studio and also I checked the environment variable from my solution as it is described in this Microsoft Article. But I had no luck.

Nothing helped, but simply open the config.xml file and change the Windows Target Version from "Windows 10" to "Windows 8.1" solved the problem and I could run the app with no error:

After that I can turn back to "Windows 10" and everything is fine. This was reproducable on two dev machines.

I do not exactly know if the moved project was the source of the problem and maybe the rewritten config.xml triggers any rebuild mechanism.

这篇关于未处理的异常在WWAHost在Cordova APP使用Angular的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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