从商店

时间:2015-05-29 05:33:51

标签: windows-phone windows-phone-8.1 windows-phone-store

我有一个奇怪的问题,如果我通过visual studio部署我的应用程序作为调试或发布版本都运行良好。但是,如果我将其发布到商店并从那里下载,则应用会在Launcher.LaunchFileAsyncFileOpenPicker之后崩溃。

当我的应用程序启动例如照片的默认应用程序时,照片会加载到照片应用程序中并显示出来。在推送硬件按钮后,商店安装返回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"

1 个答案:

答案 0 :(得分:2)

看起来您未能正确使用LaunchFileAsync / FileOpenPicker。 Follow this guide carefully

除非进行调试,否则操作系统会在您调用选择器之后终止您的进程(特别是在具有512MB RAM的低内存设备上)。它取决于您的应用程序以保存其状态,并在重新激活时恢复状态并将用户带到您应用中的确切位置。

Also, here’s how you can debug the problem