Bug 1957 - Unhandled Exception occurred when user RUN the Button application on Emulator API 4,10 and 14.
Summary: Unhandled Exception occurred when user RUN the Button application on Emulator...
Status: CLOSED INVALID
Alias: None
Product: Android
Classification: Xamarin
Component: Mono runtime / AOT Compiler ()
Version: 1.9.2
Hardware: Macintosh Mac OS
: Highest normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-11-09 04:54 UTC by Atin
Modified: 2012-02-27 18:16 UTC (History)
4 users (show)

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


Attachments
Image for the bug (190.07 KB, image/jpeg)
2011-11-09 04:54 UTC, Atin
Details


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:
CLOSED INVALID

Description Atin 2011-11-09 04:54:35 UTC
Steps to Reproduce:
1. Download the application from "https://github.com/xamarin/monodroid-samples"
link.
2. Launch MonoDevelop.
3. Click on "Start Solution or File" icon.
4. Browse ApiDemo application.
5. Click on Open button.
6. Build the application.
7 Run the application on API 4, API 10, API 14.
8. See the error message.
Error details:

I/MonoDroid(  799): UNHANDLED EXCEPTION: System.NotSupportedException: Unable to activate instance of type Mono.Samples.Button.ButtonActivity from native handle 6f300019 ---> System.MissingMethodException: No constructor found for Mono.Samples.Button.ButtonActivity::.ctor(System.IntPtr)
I/MonoDroid(  799):   at Android.Runtime.TypeManager.CreateProxy (System.Type type, IntPtr handle) [0x00000] in <filename unknown>:0
I/MonoDroid(  799):   at Android.Runtime.TypeManager.CreateInstance (IntPtr handle, System.Type targetType) [0x00000] in <filename unknown>:0
I/MonoDroid(  799):   --- End of inner exception stack trace ---
I/MonoDroid(  799): at Android.Runtime.TypeManager.CreateInstance (intptr,System.Type) <0x0057c>
I/MonoDroid(  799): at Java.Lang.Object.GetObject (intptr,System.Type,bool) <0x00223>
I/MonoDroid(  799): at Java.Lang.Object._GetObject<Android.App.Activity> (intptr,bool) <0x0004f>
I/MonoDroid(  799): at Java.Lang.Object.GetObject<Android.App.Activity> (intptr,bool) <0x0002b>
I/MonoDroid(  799): at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) <0x00027>
I/MonoDroid(  799): at (wrapper dynamic-method) object.07dad3e3-248f-4ce7-b5ea-d001b9c278e9 (intptr,intptr,intptr) <0x00033>
E/mono    (  799):
E/mono    (  799): Unhandled Exception: System.NotSupportedException: Unable to activate instance of type Mono.Samples.Button.ButtonActivity from native handle 6f300019 ---> System.MissingMethodException: No constructor found for Mono.Samples.Button.ButtonActivity::.ctor(System.IntPtr)
E/mono    (  799):   at Android.Runtime.TypeManager.CreateProxy (System.Type type, IntPtr handle) [0x00000] in <filename unknown>:0
E/mono    (  799):   at Android.Runtime.TypeManager.CreateInstance (IntPtr handle, System.Type targetType) [0x00000] in <filename unknown>:0
E/mono    (  799):   --- End of inner exception stack trace ---
E/mono    (  799):   at Android.Runtime.TypeManager.CreateInstance (IntPtr handle, System.Type targetType) [0x00000] in <filename unknown>:0
E/mono    (  799):   at Java.Lang.Object.GetObject (IntPtr handle, System.Type type, Boolean owned) [0x00000] in <filename unknown>:0
E/mono    (  799):   at Java.Lang.Object._GetObject[Activity] (IntPtr handle, Boolean owned) [0x00000] in <filename unknown>:0
E/mono    (  799):   at Java.Lang.Object.GetObject[Activity] (IntPtr handle, Boolean owned) [0x00000] in <filename unknown>:0
E/mono    (  799):   at Android.App

Actual Result:
Error occurs when user run the application on the emulator.

Expected Result:
Application should run without an error on API level 4, 10,14.

Environment:
MAC Snow Leopard 10.6.7
MD 2.8.2
M4A 1.9.2
Comment 1 Atin 2011-11-09 04:54:54 UTC
Created attachment 854 [details]
Image for the bug
Comment 2 narayanp 2011-11-10 11:38:18 UTC
Step4- Browse "Button" application
Comment 3 narayanp 2011-12-22 06:41:19 UTC
Now unhandled exception issue is not occurring on any API's. 

please suggest can we close this issue.
Comment 4 Eric Beisecker 2012-02-27 18:15:37 UTC
This no longer is an issue