[Mono-bugs] [Bug 682042] New: long_click issue w/ linking

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Mar 23 14:01:10 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=682042

https://bugzilla.novell.com/show_bug.cgi?id=682042#c0


           Summary: long_click issue w/ linking
    Classification: Mono
           Product: MonoDroid
           Version: unspecified
          Platform: x86
        OS/Version: Windows 7
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Tools
        AssignedTo: mkestner at novell.com
        ReportedBy: dkibby at laneautomotive.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729;
Media Center PC 6.0; .NET4.0C; .NET4.0E)

I/ActivityManager( 1089): Starting activity: Intent {
act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]
flg=0x10200000 cmp=PPPG.PPPG/monodroid.pppg.PPPG } I/ActivityManager( 1089):
Start proc PPPG.PPPG for activity PPPG.PPPG/monodroid.pppg.PPPG: pid=24964
uid=10069 gids={3003}
I/ActivityThread(24964): Publishing provider PPPG.PPPG.__mono_init__:
mono.MonoRuntimeProvider
D/dalvikvm(24964): Trying to load lib /data/data/PPPG.PPPG/lib/libmonodroid.so
0x44712b50
D/dalvikvm(24964): Added shared lib /data/data/PPPG.PPPG/lib/libmonodroid.so
0x44712b50
I/MonoDroid-Debugger(24964): Not starting the debugger as the timeout value has
been reached; current-time: 1300892330  timeout: 1300880504
D/dalvikvm(24964): GC_FOR_MALLOC freed 12890 objects / 480392 bytes in 64ms
D/dalvikvm(24964): GC_FOR_MALLOC freed 10230 objects / 477472 bytes in 41ms
I/monodroid(24964): Activating instance of type MonoDroid.PPPG.PPPG
I/monodroid(24964): signature
D/dalvikvm(24964): GC_EXTERNAL_ALLOC freed 7644 objects / 375912 bytes in 43ms
I/ActivityManager( 1089): Starting activity: Intent {
cmp=PPPG.PPPG/pppg.UpdatePreferencesActivity }
I/MonoDroid(24964): UNHANDLED EXCEPTION: System.TypeInitializationException: An
exception was thrown by the type initializer for
Android.Widget.ItemLongClickImplementor ---> System.ArgumentException: Couldn't
bind to method 'GetOnItemLongClickHandler'.
I/MonoDroid(24964):   at System.Delegate.GetCandidateMethod (System.Type type,
System.Type target, System.String method, BindingFlags bflags, Boolean
ignoreCase, Boolean throwOnBindFailure) [0x00000] in <filename unknown>:0 
I/MonoDroid(24964):   at System.Delegate.CreateDelegate (System.Type type,
System.Type target, System.String method, Boolean ignoreCase, Boolean
throwOnBindFailure) [0x00000] in <filename unknown>:0 
I/MonoDroid(24964):   at System.Delegate.CreateDelegate (System.Type type,
System.Type target, System.String method) [0x00000] in <filename unknown>:0 
I/MonoDroid(24964):   at Android.Runtime.JNIEnv.RegisterJniNatives (IntPtr
typeName_ptr, Int32 typeName_len, IntPtr jniClass, IntPtr methods_ptr, Int32
methods_len) [0x00000] in <filename unknown>:0 
I/MonoDroid(24964):   at (wrapper delegate-invoke)
<Module>:invoke_intptr__this___intptr_intptr_string_string
(intptr,intptr,string,string)
I/MonoDroid(24964):   at Android.Runtime.JNIEnv.GetMethodID (IntPtr kls,
System.String name, System.String signature) [0x00000] in <filename unknown>:0 
I/MonoDroid(24964):   at Android.Widget.ItemLongClickImplementor..cctor ()
[0x00000] in <filename unknown>:0 
I/MonoDroid(24964):   --- End of inner exception stack trace ---
I/MonoDroid(24964): at Android.Widget.AdapterView.add_ItemLongClick
(System.EventHandler`1<Android.Widget.ItemEventArgs>) <0x00027>
I/MonoDroid(24964): at MonoDroid.PPPG.PPPG.OnCreate (Android.OS.Bundle)
<0x00593>
I/MonoDroid(24964): at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_
(intptr,intptr,intptr) <0x00057>
I/MonoDroid(24964): at (wrapper dynamic-method)
object.ebebb663-a775-4ce7-9cfe-69b06ac30687 (intptr,intptr,intptr) <0x00033>
E/mono    (24964): 
E/mono    (24964): Unhandled Exception: System.MissingMethodException: No
constructor found for
Java.Lang.ExceptionInInitializerError::.ctor(System.String)
E/mono    (24964): at System.Activator.CreateInstance
(System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[])
<0x0034c>
E/mono    (24964): at System.Activator.CreateInstance
(System.Type,object[],object[]) <0x00043>
E/mono    (24964): at System.Activator.CreateInstance (System.Type,object[])
<0x0002f>
E/mono    (24964): at Java.Lang.Throwable.FromException (System.Exception)
<0x001a3>
E/mono    (24964): at Android.Runtime.AndroidEnvironment.UnhandledException
(System.Exception) <0x000db>
E/mono    (24964): at (wrapper dynamic-method)
object.ebebb663-a775-4ce7-9cfe-69b06ac30687 (intptr,intptr,intptr) <0x00087>
E/mono    (24964): at (wrapper native-to-managed)
object.ebebb663-a775-4ce7-9cfe-69b06ac30687 (intptr,intptr,intptr) <0x00043>
E/mono    (24964): 
W/ActivityManager( 1089): Activity pause timeout for HistoryRecord{449b3500
PPPG.PPPG/monodroid.pppg.PPPG} I/ActivityManager( 1089): Process PPPG.PPPG (pid
24964) has died.
D/Zygote  ( 1009): Process 24964 exited cleanly (1) I/UsageStats( 1089):
Unexpected resume of com.android.launcher while already resumed in PPPG.PPPG
W/InputManagerService( 1089): Window already focused, ignoring focus gain of:
com.android.internal.view.IInputMethodClient$Stub$Proxy at 44cba440


        void listView_ItemLongClick(object sender, ItemEventArgs e)
        {
            //Get our item from the list adapter
            var item = this.listAdapter.GetItemAtPosition(e.Position);

            AlertDialog.Builder builder;
            AlertDialog alertDialog;
            Context mContext = this;

            LayoutInflater inflater =
(LayoutInflater)mContext.GetSystemService(LayoutInflaterService);
            View layout = inflater.Inflate(Resource.Layout.customdialog,
(ViewGroup)FindViewById(Resource.Id.layout_root));
            TextView text = (TextView)layout.FindViewById(Resource.Id.text);
            text.Text = "LAT: " + lat + "\n" + "LON: " + lon;
            ImageView image =
(ImageView)layout.FindViewById(Resource.Id.image);
            image.SetImageResource(Resource.Drawable.pppg);

            builder = new AlertDialog.Builder(mContext);
            builder.SetView(layout);
            alertDialog = builder.Create();
            builder.Show();

        } 


Reproducible: Always

Steps to Reproduce:
1.release config
2.disable "use common runtime"
3.liking "sdk assemblies only"
Actual Results:  
window and titlebar drawn, but app not fully started, then ab-end w/ no report.



Expected Results:  
app loaded completely

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list