[Mono-bugs] [Bug 649465] New: RunOnUiThread crashes

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Oct 26 21:52:49 EDT 2010


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

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


           Summary: RunOnUiThread crashes
    Classification: Mono
           Product: MonoDroid
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: Runtime
        AssignedTo: mkestner at novell.com
        ReportedBy: steveniemitz at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.41 Safari/534.7

Running this:
            for (int a = 0; a < 10; a++)
            {
                ThreadPool.QueueUserWorkItem(o =>
                {
                    count++;
                    RunOnUiThread(() => button.Text = count.ToString());
                });
            }

Causes:
10-27 01:47:39.384: INFO/ActivityManager(59): [ 10-27 01:47:42.013   518:0x20f
F/Mono.Android ]
10-27 01:47:39.384: INFO/ActivityManager(59): Unable to get JNI Environment
pointer!
10-27 01:47:42.183: DEBUG/Zygote(33): Process 518 exited cleanly (255)
10-27 01:47:42.193: INFO/ActivityManager(59): Process RunOnUI.RunOnUI (pid 518)
has died.
10-27 01:47:42.193: INFO/WindowManager(59): WIN DEATH: Window{45013068
RunOnUI.RunOnUI/runOnUI.Activity1 paused=false}



Reproducible: Always

Steps to Reproduce:
1. Run Code above

Actual Results:  
Crash

Expected Results:  
Doesn't crash

-- 
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