Bug 4804 - Snake sample crashes when resuming after rotation
Summary: Snake sample crashes when resuming after rotation
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: Samples ()
Version: 4.1.x
Hardware: PC Mac OS
: --- minor
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-05-01 12:04 UTC by PJ
Modified: 2012-05-01 13:02 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description PJ 2012-05-01 12:04:44 UTC
The application launches successfully and user able to play the game on portrait view, However, change the view as landscape the game pause and to resume the game when we press the volume up button , the application crashes, throwing the exception, i.e. System.IndexOutOfRangeException on MonoDevelop

Steps to reproduce this issue:

1. Open app Snake

2. Run the solution.
3. Change the view to landscape view. (Game will pause)
4. Resume the application by pressing up.

Actual Result:

The application launches successfully and user able to play the game on portrait view, However, change the view as landscape the game pause and to resume the game when we press the volume up button, the application crashes, throwing the exception in the MD console.

Expected Result:

The application should run successfully, on both landscape view as well as portrait view without throwing any error message.

Supplement information:

https://gist.github.com/2568127

Environment:

mono-android-4.1.2.230625174

MonoDevelop-aea1769d05f0ca1fbbf25aa223ee2af419bafbbf

Mac 10.6.8

Device info:

LG P500

version 2.2

App info:

Snake/monodroid-4.1 preview

Regression status:

Not a regression
Comment 1 Jonathan Pobst 2012-05-01 12:19:23 UTC
The Java sample does not support rotation, so I disabled it for ours as well:

https://github.com/xamarin/monodroid-samples/commit/b2f3f6f815f24189ca961f155cc281d3bab7e660
Comment 2 PJ 2012-05-01 13:02:35 UTC
Removed rotating the app from test case.