[Mono-bugs] [Bug 685863] New: Exception Thown Continuously Creating Android.Graphics.Matrix

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Apr 7 08:58:32 EDT 2011



           Summary: Exception Thown Continuously Creating
    Classification: Mono
           Product: MonoDroid
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Runtime
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: dennis.quebe at quebesystems.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Other
           Blocker: Yes

Description of Problem:

Steps to reproduce the problem:
    public class Main : Activity {

        protected override void OnCreate (Bundle bundle) {

            System.Diagnostics.Debug.WriteLine ("Main.OnCreate [BEGIN]");

            base.OnCreate (bundle);

            RequestWindowFeature (WindowFeatures.NoTitle);

            #region Matrix Test

            Int32 matrixCount = 0;

            while (true) {

                matrixCount = matrixCount + 1;

                Android.Graphics.Matrix matrixTest = new
Android.Graphics.Matrix ();

                if ((matrixCount % 100) == 0) {
System.Diagnostics.Debug.WriteLine ("Count: " + matrixCount); }


Main.OnCreate [BEGIN]
Count: 100
Count: 200
Count: 300
Count: 400
Count: 500
Count: 600
Count: 700
Count: 800
Count: 900
Count: 1000
Count: 1100
Count: 1200
Count: 1300
Count: 1400
Count: 1500
Count: 1600
Count: 1700
Count: 1800
In mgmain JNI_OnLoad

Actual Results:
In mgmain JNI_OnLoad

  at Android.Runtime.JNIEnv.NewGlobalRef (intptr) [0x00000] in
  at Java.Lang.Object.RegisterInstance
(intptr,Android.Runtime.IJavaObject,bool) [0x0003c] in
  at Java.Lang.Object.SetHandle (intptr,bool) [0x00000] in
  at Android.Graphics.Matrix..ctor () [0x00095] in
  at ShadowRunner.Main.OnCreate (Android.OS.Bundle) [0x00025] in

Expected Results:
Matrix Object goes out of scope and cleaned up for garbage collection. No
exception thrown.

How often does this happen? 
Every time. 

Additional Information:

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