Bug 623796 - Mono crashes when I try to debug application with OpenTK in MonoDevelop on OSX
Summary: Mono crashes when I try to debug application with OpenTK in MonoDevelop on OSX
Status: NEW
Alias: None
Product: Mono: Runtime
Classification: Mono
Component: debug (show other bugs)
Version: 2.6.x
Hardware: Macintosh Mac OS X 10.6
: P5 - None : Critical
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-20 08:53 UTC by Hannes Rahm
Modified: 2011-06-02 18:01 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Test Code (3.76 MB, application/zip)
2010-07-20 08:53 UTC, Hannes Rahm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hannes Rahm 2010-07-20 08:53:19 UTC
Created attachment 377115 [details]
Test Code

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6

The problem occurs only when I run the application through the debugger in MonoDevelop. If i don't add the OpenTK OpenGL control to the window the application runs.

The output looks like this (full stack trace in attachement problem.txt):
** (/Users/hannes/Projects/Revolutions2/Testing/bin/Debug/Testing.exe:1495): WARNING **: mono_class_from_mono_type: implement me 0x8b

**
ERROR:class.c:5408:mono_class_from_mono_type: code should not be reached
Stacktrace:

  at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal.GetDelegateForFunctionPointerInternal (intptr,System.Type) <0x00004>
...........
  at Mono.Debugging.Soft.SoftDebuggerSession.EventHandler () [0x00000] in <filename unknown>:0 


Reproducible: Always

Steps to Reproduce:
1. Download http://zink-interactive.se/media/2011/opentk-debug-bug.zip
2. Open in MonoDevelop on OSX
3. Run with debugging.
4. Watch the crash
Actual Results:  
Mono crashes

Expected Results:  
Shown a window with an opengl rendered square

My system is a Macbook Pro i7 15" (GT330M) with OSX 10.6.3, Mono 2.6.4 and MonoDevelop 2.4.