Bug 4421 - NRE when selecting ‘Action Bar Display Options’ in API Demo sample
Summary: NRE when selecting ‘Action Bar Display Options’ in API Demo sample
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: Samples ()
Version: 4.0
Hardware: Macintosh Mac OS
: Low normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-04-13 09:29 UTC by PJ
Modified: 2014-01-07 18:07 UTC (History)
3 users (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-04-13 09:29:11 UTC
Steps:
1) Debug API Demo with the option Build->General->Target framework set to Ice Cream Sandwich (4.0)
2) Navigate to App->Action Bar Display Options

Expected behavior:
Unknown

Actual behavior:
App stops responding, NRE thrown.

MD Stacktrace: https://gist.github.com/2376730
Logcat: https://gist.github.com/2376741

This behavior is seen on both Debug and Release.
This behavior is seen on both Emulator and Device.

Found on:
Monodevelop 2.8.8.4
Mono 2.10.9
Mono for Android 4.0.6
OSX Lion 10.7.3

Emulator
4.0 (Ice Cream Sandwich)

API Demo Sample (master)
github.com/xamarin/monodroid-samples
Comment 1 Peter Collins 2013-05-21 16:22:30 UTC
Bug reproduced and confirmed on current stable of XA (4.6.6 - 6d7480e9).
Comment 2 Jonathan Pryor 2013-05-21 17:41:19 UTC
@Peter: Can you provide the most recent Logcat when this occurred?
Comment 3 Peter Collins 2013-05-21 18:49:10 UTC
Here's the logcat of this NRE. Looks similar to the one PJ posted. https://gist.github.com/pjcollins/65dbb8ebeeaa85eb64f4
Comment 4 Jonathan Pryor 2013-05-21 22:48:31 UTC
That's still confusing. :-(

Specifically this part:

> 05-21 18:48:03.175   218   218 D Zygote  : Process 2075 exited cleanly (1)

Normally, the value in parenthesis is the exit value of the process, e.g. `exit(1)` was invoked. (Unverified, but that's my recollection...)

The only spot that calls `exit(1)` is when `libmonosgen-2.0.so` can't be found for Debug builds, which clearly isn't the case here. (The `exit(1)` code also prints out a reason for exiting.)

Guess I'll need to investigate...
Comment 5 Peter Collins 2014-01-07 18:07:28 UTC
ApiDemo has had major changes since this bug was filed and is no longer valid.