Windows Phone 从商店下载 Launcher.LaunchFileAsync 后应用程序崩溃
Windows Phone App crashes after Launcher.LaunchFileAsync when downloaded from store
我有一个奇怪的问题,如果我通过 visual studio 部署我的应用程序作为调试或发布版本,一切都运行良好。但是,如果我将其发布到商店并从那里下载,应用程序会在 Launcher.LaunchFileAsync
或 FileOpenPicker
.
后崩溃
当我的应用程序启动时,例如默认的照片应用程序,照片会加载到照片应用程序中并显示出来。按下硬件后退按钮后,商店安装返回到 windows phone home screen
,visual studio 部署版本返回到我的应用程序的最后一个屏幕。 FileOpenPicker
.
也有同样的问题
在我的应用程序的前一个版本中,这是有效的,我没有更改相关代码。这个版本新增了Unity和Prism的使用(之前我没有用过任何容器框架)
我尝试使用商店测试版应用对此进行调试,并将所有 UnhandledExceptions
写入 LocalStorage
中的文件,但似乎没有 UnhandledException。
有没有人遇到同样的问题并且有一些提示或经验来找出问题所在?是否可以调试我从商店下载的应用程序?
商店异常:
"Frame Bild Funktion Offset
0 Windows.UI.Xaml.dll DirectUI::NavigationHistory::WritePageStackEntryToString 0x000000f9
1 Windows.UI.Xaml.dll DirectUI::NavigationHistory::GetNavigationState 0x000000d7
2 Windows.UI.Xaml.dll DirectUI::Frame::GetNavigationStateImpl 0x0000002f
3 Windows.UI.Xaml.dll DirectUI::FrameGenerated::GetNavigationState 0x00000033
4 WINDOWS.NI.WINMD 0x00403a41
5 Microsoft.Practices.Prism.StoreApps.ni.DLL 0x0000c661
6 Microsoft.Practices.Prism.StoreApps.ni.DLL 0x0000d191
7 Microsoft.Practices.Prism.StoreApps.ni.DLL 0x0000e739
8 Microsoft.Practices.Prism.StoreApps.ni.DLL 0x0000f5df
9 Microsoft.Practices.Prism.StoreApps.ni.DLL 0x0000cc81
10 Microsoft.Practices.Prism.StoreApps.Phone.ni.DLL 0x00005ed3
11 Microsoft.Practices.Prism.StoreApps.Phone.ni.DLL 0x000063f3
12 Microsoft.Practices.Prism.StoreApps.Phone.ni.DLL 0x00005723
13 WINDOWS.NI.WINMD 0x004bacc5
14 CoreClr.dll COMToCLRDispatchHelper 0x0000003d
15 CoreClr.dll GenericComCallStub 0x00000019
16 Windows.UI.Xaml.dll Microsoft::WRL::EventSource_Windows::UI::Xaml::ISuspendingEventHandler,Microsoft::WRL::InvokeModeOptions_-2_ _::DoInvoke__lambda_23bdf1386dc85166ec5d0f15e3e7ceef_ _ 0x00000047
17 Windows.UI.Xaml.dll XAML::PLM::ASTAEventSource_Windows::UI::Xaml::ISuspendingEventHandler,IInspectable,Windows::ApplicationModel::ISuspendingEventArgs_::InvokeHandlers 0x0000000d
18 Windows.UI.Xaml.dll XAML::PLM::PLMHandler::OnSuspending 0x00000095
19 twinapi.appcore.dll Microsoft::WRL::InvokeTraits_-2_::InvokeDelegates__lambda_19fa2f90eeadc306808dc8b8c64b7666_,Windows::Foundation::IEventHandler_Windows::ApplicationModel::SuspendingEventArgs *_ _ 0x00000057
20 twinapi.appcore.dll Microsoft::WRL::EventSource_Windows::Foundation::IEventHandler_Windows::ApplicationModel::SuspendingEventArgs *_,Microsoft::WRL::InvokeModeOptions_-2_ _::DoInvoke__lambda_19fa2f90eeadc306808dc8b8c64b7666_ _ 0x0000004d
21 twinapi.appcore.dll Windows::ApplicationModel::Core::CoreApplicationView::SuspendResume 0x000000b3
22 twinapi.appcore.dll _lambda_806d9f75e467416c61267ff2e6219463_::operator 0x00000055
23 twinapi.appcore.dll Microsoft::WRL::Details::InvokeHelper_Microsoft::WRL::Implements_Microsoft::WRL::RuntimeClassFlags_2_,Windows::UI::Core::IDispatchedHandler,Microsoft::WRL::FtmBase,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Detai 0x0000000f
24 windows.ui.dll Windows::UI::Core::CDispatcher::ProcessInvokeItem 0x000001b3
25 windows.ui.dll Windows::UI::Core::CDispatcher::WaitAndProcessMessages 0x000001dd
26 windows.ui.dll Windows::UI::Core::CDispatcher::ProcessEvents 0x00000063
27 Windows.UI.Xaml.dll CJupiterWindow::RunCoreWindowMessageLoop 0x0000003b
28 Windows.UI.Xaml.dll CJupiterControl::RunMessageLoop 0x0000001b
29 Windows.UI.Xaml.dll DirectUI::DXamlCore::RunMessageLoop 0x00000027
30 Windows.UI.Xaml.dll DirectUI::FrameworkView::Run 0x0000000f
31 twinapi.appcore.dll Windows::ApplicationModel::Core::CoreApplicationView::Run 0x00000027
32 twinapi.appcore.dll _lambda_57350c7fa2f68b1d43d8bfac2a0781a8_::operator 0x000000c7
33 shcore.dll _WrapperThreadProc 0x00000149
34 ntdll.dll RtlUserThreadStart 0x00000017"
您似乎没有正确使用 LaunchFileAsync/FileOpenPicker。 Follow this guide carefully.
除非进行调试,否则 OS 会在您调用选择器后立即终止您的进程(尤其是在具有 512MB RAM 的低内存设备上)。由您的应用程序保存其状态,并在重新激活时恢复状态并将用户带到您应用程序中她所在的确切位置。
Also, here’s how you can debug the problem.
我有一个奇怪的问题,如果我通过 visual studio 部署我的应用程序作为调试或发布版本,一切都运行良好。但是,如果我将其发布到商店并从那里下载,应用程序会在 Launcher.LaunchFileAsync
或 FileOpenPicker
.
当我的应用程序启动时,例如默认的照片应用程序,照片会加载到照片应用程序中并显示出来。按下硬件后退按钮后,商店安装返回到 windows phone home screen
,visual studio 部署版本返回到我的应用程序的最后一个屏幕。 FileOpenPicker
.
在我的应用程序的前一个版本中,这是有效的,我没有更改相关代码。这个版本新增了Unity和Prism的使用(之前我没有用过任何容器框架)
我尝试使用商店测试版应用对此进行调试,并将所有 UnhandledExceptions
写入 LocalStorage
中的文件,但似乎没有 UnhandledException。
有没有人遇到同样的问题并且有一些提示或经验来找出问题所在?是否可以调试我从商店下载的应用程序?
商店异常:
"Frame Bild Funktion Offset
0 Windows.UI.Xaml.dll DirectUI::NavigationHistory::WritePageStackEntryToString 0x000000f9
1 Windows.UI.Xaml.dll DirectUI::NavigationHistory::GetNavigationState 0x000000d7
2 Windows.UI.Xaml.dll DirectUI::Frame::GetNavigationStateImpl 0x0000002f
3 Windows.UI.Xaml.dll DirectUI::FrameGenerated::GetNavigationState 0x00000033
4 WINDOWS.NI.WINMD 0x00403a41
5 Microsoft.Practices.Prism.StoreApps.ni.DLL 0x0000c661
6 Microsoft.Practices.Prism.StoreApps.ni.DLL 0x0000d191
7 Microsoft.Practices.Prism.StoreApps.ni.DLL 0x0000e739
8 Microsoft.Practices.Prism.StoreApps.ni.DLL 0x0000f5df
9 Microsoft.Practices.Prism.StoreApps.ni.DLL 0x0000cc81
10 Microsoft.Practices.Prism.StoreApps.Phone.ni.DLL 0x00005ed3
11 Microsoft.Practices.Prism.StoreApps.Phone.ni.DLL 0x000063f3
12 Microsoft.Practices.Prism.StoreApps.Phone.ni.DLL 0x00005723
13 WINDOWS.NI.WINMD 0x004bacc5
14 CoreClr.dll COMToCLRDispatchHelper 0x0000003d
15 CoreClr.dll GenericComCallStub 0x00000019
16 Windows.UI.Xaml.dll Microsoft::WRL::EventSource_Windows::UI::Xaml::ISuspendingEventHandler,Microsoft::WRL::InvokeModeOptions_-2_ _::DoInvoke__lambda_23bdf1386dc85166ec5d0f15e3e7ceef_ _ 0x00000047
17 Windows.UI.Xaml.dll XAML::PLM::ASTAEventSource_Windows::UI::Xaml::ISuspendingEventHandler,IInspectable,Windows::ApplicationModel::ISuspendingEventArgs_::InvokeHandlers 0x0000000d
18 Windows.UI.Xaml.dll XAML::PLM::PLMHandler::OnSuspending 0x00000095
19 twinapi.appcore.dll Microsoft::WRL::InvokeTraits_-2_::InvokeDelegates__lambda_19fa2f90eeadc306808dc8b8c64b7666_,Windows::Foundation::IEventHandler_Windows::ApplicationModel::SuspendingEventArgs *_ _ 0x00000057
20 twinapi.appcore.dll Microsoft::WRL::EventSource_Windows::Foundation::IEventHandler_Windows::ApplicationModel::SuspendingEventArgs *_,Microsoft::WRL::InvokeModeOptions_-2_ _::DoInvoke__lambda_19fa2f90eeadc306808dc8b8c64b7666_ _ 0x0000004d
21 twinapi.appcore.dll Windows::ApplicationModel::Core::CoreApplicationView::SuspendResume 0x000000b3
22 twinapi.appcore.dll _lambda_806d9f75e467416c61267ff2e6219463_::operator 0x00000055
23 twinapi.appcore.dll Microsoft::WRL::Details::InvokeHelper_Microsoft::WRL::Implements_Microsoft::WRL::RuntimeClassFlags_2_,Windows::UI::Core::IDispatchedHandler,Microsoft::WRL::FtmBase,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Detai 0x0000000f
24 windows.ui.dll Windows::UI::Core::CDispatcher::ProcessInvokeItem 0x000001b3
25 windows.ui.dll Windows::UI::Core::CDispatcher::WaitAndProcessMessages 0x000001dd
26 windows.ui.dll Windows::UI::Core::CDispatcher::ProcessEvents 0x00000063
27 Windows.UI.Xaml.dll CJupiterWindow::RunCoreWindowMessageLoop 0x0000003b
28 Windows.UI.Xaml.dll CJupiterControl::RunMessageLoop 0x0000001b
29 Windows.UI.Xaml.dll DirectUI::DXamlCore::RunMessageLoop 0x00000027
30 Windows.UI.Xaml.dll DirectUI::FrameworkView::Run 0x0000000f
31 twinapi.appcore.dll Windows::ApplicationModel::Core::CoreApplicationView::Run 0x00000027
32 twinapi.appcore.dll _lambda_57350c7fa2f68b1d43d8bfac2a0781a8_::operator 0x000000c7
33 shcore.dll _WrapperThreadProc 0x00000149
34 ntdll.dll RtlUserThreadStart 0x00000017"
您似乎没有正确使用 LaunchFileAsync/FileOpenPicker。 Follow this guide carefully.
除非进行调试,否则 OS 会在您调用选择器后立即终止您的进程(尤其是在具有 512MB RAM 的低内存设备上)。由您的应用程序保存其状态,并在重新激活时恢复状态并将用户带到您应用程序中她所在的确切位置。
Also, here’s how you can debug the problem.