This project has moved and is read-only. For the latest updates, please go here.


Crash from ListPickerPage NavigateBack call


I released a new version of my software that's been around since WP7.0, and this time updated to use the Nov 11 release of the toolkit, instead of an ancient version.
Unfortunately, I now have a crash leaving the list picker (stack trace follows).
I know shawnosterman has been making some changes based on some other ListPicker bugs I found, and has committed both 76125 and 76139.
Are either of those commits related to this bug, and if so, when will they be available via nuget?
If not, what can I do to help debug this?
Frame Image Function Offset
0 coredll.dll xxx_RaiseException 19
1 mscoree3_7.dll WatsonUnhandledManagedException 296
2 mscoree3_7.dll Dbg_NotifyManagedException 93
3 mscoree3_7.dll FirstPassException 1044
4 TransitionStub 0
5 System.Windows.Navigation.NavigationService.GoBack 116
6 Microsoft.Phone.Controls.ListPickerPage.OnClosedStoryboardCompleted 80
7 MS.Internal.CoreInvokeHandler.InvokeEventHandler 1220
Closed Sep 6, 2012 at 12:37 AM by RohanTha
Closing fixed issues.


wieser_software wrote May 20, 2012 at 8:44 AM

I've got the latest commits, and the problem still exists.

Here's how to repro:

Go to a picker page.
Select an item, and while the animation is taking place, press the start button
When you press the back button and switch back to the app, the exception occurs.

wieser_software wrote May 20, 2012 at 9:01 AM

Here's the fix:

In ListPickerPage.xaml.cs
    private void OnClosedStoryboardCompleted(object sender, EventArgs e)
        // Close the picker page
if (NavigationService.CanGoBack)
// Only do this if we can go back, or we crash
// navigate to start menu before this happens provokes.

wrote May 22, 2012 at 8:35 AM

Fixed on changeset 76512

wrote May 22, 2012 at 8:35 AM

wrote May 22, 2012 at 8:36 AM

wrote Sep 6, 2012 at 12:37 AM

wrote Feb 22, 2013 at 2:49 AM

wrote May 16, 2013 at 1:34 PM

wrote Nov 27 at 10:06 PM