[Mono-bugs] [Bug 553637] New: Breakpoints cause app to crash while running in simulator for active OpenGL apps

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Nov 8 00:52:30 EST 2009


           Summary: Breakpoints cause app to crash while running in
                    simulator for active OpenGL apps
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Debugger
        AssignedTo: gnorton at novell.com
        ReportedBy: matt.e.greer at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
rv: Gecko/2009101600 Firefox/3.0.15

There is something about CocosNet apps that are not compatible with the
debugger. Setting a breakpoint will cause the app to crash as soon as that
break point is hit. This is true of any breakpoint anywhere in the app. It
seems the breakpoint is causing the runtime to try and pause the app in a way
that is not compatible with the GL rendering that is happening every frame.

Reproducible: Always

Steps to Reproduce:
1. Get CocosNet (http://github.com/city41/CocosNet), you can just download the
zip or tar. 
2. Open the solution in MonoDevelop.
3. Set a breakpoint in CocosNetLib/Primitives.cs in DrawPoint()
4. Launch CocosNetTests in the simulator

Actual Results:  
As soon as the breakpoint is hit, the app crashes. Which in this case will
happen immediately.

Expected Results:  
The debugger breaks and allows debugging

CocosNet is debatable as to how small of a repro it really is. If you guys need
a smaller repro I can whip one up.

In CocosNetTests/Main.cs, on line 46, that is where the test that is going to
be ran is instantiated. You can load a different test there. the tests are in

Example places to set breakpoints:
-- As above in repro, but add a dummy counter variable and set the breakpoint
inside DrawPoint() inside an if statement that will get triggered after the
variable has counted up say 200 times. You will see the app draw to the screen
and fully work before the breakpoint is hit.

-- Set it to load the ParallaxTest. Set a breakpoint in
ParallaxTest.cs/Parallax2.TouchMoved(), line 116. Launch the app, click the
green arrow to move to the second test. Then touch the screen to cause a touch

Configure bugmail: http://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