[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


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

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


           Summary: Exception Thown Continuously Creating
                    Android.Graphics.Matrix
    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:
1. 
    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); }
            }

            #endregion 

2. 
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
Stacktrace:

Actual Results:
In mgmain JNI_OnLoad
Stacktrace:

  at Android.Runtime.JNIEnv.NewGlobalRef (intptr) [0x00000] in
/home/jpobst/Desktop/mondroid/Mono.Android/src/Runtime/JNIEnv.cs:228
  at Java.Lang.Object.RegisterInstance
(intptr,Android.Runtime.IJavaObject,bool) [0x0003c] in
/home/jpobst/Desktop/mondroid/Mono.Android/src/Java.Lang/Object.cs:103
  at Java.Lang.Object.SetHandle (intptr,bool) [0x00000] in
/home/jpobst/Desktop/mondroid/Mono.Android/src/Java.Lang/Object.cs:91
  at Android.Graphics.Matrix..ctor () [0x00095] in
/home/jpobst/Desktop/mondroid/Mono.Android/platforms/android-10/src/generated/Android.Graphics.Matrix.cs:95
  at ShadowRunner.Main.OnCreate (Android.OS.Bundle) [0x00025] in
C:\EpicCampaigns\ShadowRunner\ShadowRunner\Main.cs:32


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