[Mono-bugs] [Bug 685215] New: Odd SurfaceView Touch Exception

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Apr 5 11:14:00 EDT 2011



           Summary: Odd SurfaceView Touch Exception
    Classification: Mono
           Product: MonoDroid
           Version: unspecified
          Platform: 64bit
        OS/Version: Windows 7
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Runtime
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: aknabb at mobileepiphany.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Beta-Customer
           Blocker: ---

Created an attachment (id=423261)
 --> (http://bugzilla.novell.com/attachment.cgi?id=423261)
Example Code

Description of Problem:
I've written a test app here that deliberately draws a lot of stuff onto the
canvas. If you drag this drawing around enough, you eventually get the
following exception in the device log:

04-05 09:02:05.329: ERROR/mono(15202): Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an

04-05 09:02:05.329: ERROR/mono(15202):   at Java.Lang.Object.GetObject (IntPtr
handle, System.Type type, Boolean owned) [0x00000] in <filename unknown>:0 

04-05 09:02:05.329: ERROR/mono(15202):   at
Java.Lang.Object._GetObject[IOnTouchListener] (IntPtr handle, Boolean owned)
[0x00000] in <filename unknown>:0 

04-05 09:02:05.329: ERROR/mono(15202):   at
Java.Lang.Object.GetObject[IOnTouchListener] (IntPtr handle, Boolean owned)
[0x00000] in <filename unknown>:0 

04-05 09:02:05.329: ERROR/mono(15202):   at
(IntPtr jnienv, IntPtr native__this, IntPtr native_v, IntPtr native_e)
[0x00000] in <filename unknown>:0 

04-05 09:02:05.329: ERROR/mono(15202):   at (wrapper dynamic-method)
object:b039cbb0-15e9-4f47-87ce-442060701362 (intptr,intptr,intptr,intptr)

Steps to reproduce the problem:
1. Run the test code I have supplied.
2. Drag your finger back and forth across the screen (this can take up to about
15 seconds on my Samsung).
3. Notice the drawing moving about the screen somewhat sluggishly.
4. App crashes

Actual Results:
App crashes.

Expected Results:
App does not crash.

How often does this happen? 
Every time after about 5-15 seconds of dragging.

Additional Information:
This test app simulates a real problem I'm having with a custom view I'm
writing. I'm using a surface view because I read that it's better for intense
rendering. If there's a better approach, please let me know.

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