[Mono-bugs] [Bug 634495] New: Monodroid app crashes making call to web service with progressdialog shown

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Aug 25 14:39:48 EDT 2010


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

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


           Summary: Monodroid app crashes making call to web service with
                    progressdialog shown
    Classification: Mono
           Product: MonoDroid
           Version: unspecified
          Platform: x86-64
        OS/Version: Windows 7
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Runtime
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: olexiys at desco-soft.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Description of Problem:
Monodroid application quits in emulator without even showing "Force Close"
window when making call to Web Service while ProgressDialog is shown.

Steps to reproduce the problem:
1. In VS 2010 right-click Service References->Add Service
Reference->Advanced->Add Web Reference 

http://soatest.parasoft.com/calculator.wsdl

2. Write following code

        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            var p = ProgressDialog.Show(this, "Calculating", "Please wait");
            float result = 0;
            try
            {
                com.parasoft.soatest.Calculator ws = new
com.parasoft.soatest.Calculator();
                result = ws.add(5, 3);
            }
            catch (Exception ex)
            {
                Toast.MakeText(this, "Exception: " + ex.Message,
Toast.LengthLong).Show();
            }

            p.Hide();
            Toast.MakeText(this, "Result: " + result.ToString(),
Toast.LengthLong).Show();

        }

Actual Results:
App crashes in emulator without Force Close.


Expected Results:
Toast saying "Result: 8" or "Exception: xxxx".

How often does this happen? 
Always

Additional Information:

adb logcat shows the following

I/ActivityManager(   53): Start proc com.novell.monodroid.runtimeservice for
service com.novell.monodroid.runtimeservice/.MonoRuntimeService: pid=2222
 uid=10024 gids={}
D/ddm-heap( 2222): Got feature list request
I/ActivityManager(   53): Displayed activity
MonoDroidTest.MonoDroidTest/monoDroidTest.MainActivity: 1452 ms (total 1452 ms)
D/dalvikvm( 2215): Trying to load lib
/data/data/MonoDroidTest.MonoDroidTest/lib/libmonodroid.so 0x44c069a0
D/dalvikvm( 2215): Added shared lib
/data/data/MonoDroidTest.MonoDroidTest/lib/libmonodroid.so 0x44c069a0
D/dalvikvm(  108): GC freed 1953 objects / 112240 bytes in 453ms
D/dalvikvm( 2215): +++ not scanning '/system/lib/libwebcore.so' for 'init'
(wrong CL)
D/dalvikvm( 2215): +++ not scanning '/system/lib/libmedia_jni.so' for 'init'
(wrong CL)
D/dalvikvm( 2215): +++ not scanning '/system/lib/libexif.so' for 'init' (wrong
CL)
D/dalvikvm( 2215): +++ not scanning '/system/lib/libsrec_jni.so' for 'init'
(wrong CL)
D/dalvikvm( 2215): +++ not scanning '/system/lib/libwebcore.so' for 'register'
(wrong CL)
D/dalvikvm( 2215): +++ not scanning '/system/lib/libmedia_jni.so' for
'register' (wrong CL)
D/dalvikvm( 2215): +++ not scanning '/system/lib/libexif.so' for 'register'
(wrong CL)
D/dalvikvm( 2215): +++ not scanning '/system/lib/libsrec_jni.so' for 'register'
(wrong CL)
D/dalvikvm( 1450): GC freed 43 objects / 1984 bytes in 699ms
W/dalvikvm( 2215): JNI WARNING: 0x44c19ec0 is not a valid JNI reference
W/dalvikvm( 2215):              in Ldalvik/system/NativeStart;.run ()V
(DeleteLocalRef)
I/dalvikvm( 2215): "Thread-8" prio=5 tid=15 RUNNABLE
I/dalvikvm( 2215):   | group="main" sCount=0 dsCount=0 s=N obj=0x44c23150
self=0x4f8698
I/dalvikvm( 2215):   | sysTid=2229 nice=0 sched=0/0 cgrp=default handle=3781344
I/dalvikvm( 2215):   at dalvik.system.NativeStart.run(Native Method)
I/dalvikvm( 2215):
E/dalvikvm( 2215): VM aborting
E/mono    ( 2215):
E/mono    ( 2215): Unhandled Exception: System.NullReferenceException: Object
reference not set to an instance of an object
D/Zygote  (   30): Process 2215 exited cleanly (1)
I/WindowManager(   53): WIN DEATH: Window{44d36c10
MonoDroidTest.MonoDroidTest/monoDroidTest.MainActivity paused=false}
I/ActivityManager(   53): Process MonoDroidTest.MonoDroidTest (pid 2215) has
died.
I/WindowManager(   53): WIN DEATH: Window{44d93250 Calculating paused=false}
I/UsageStats(   53): Unexpected resume of com.android.launcher while already
resumed in MonoDroidTest.MonoDroidTest
W/InputManagerService(   53): Got RemoteException sending setActive(false)
notification to pid 2215 uid 10025

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


More information about the mono-bugs mailing list