
Intermittent error opening a gamewindow in MacOSX
Posted Tuesday, 26 October, 2010 - 08:04 by emacinnes| Project: | The Open Toolkit library |
| Version: | 1.0-2010-10-06 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | open |
Jump to:
I will occasionally get the following error opening a gamewindow in MacOSX:
Tue Oct 26 15:45:46 Euan-MacInness-Mac-mini.local mono[254] : kCGErrorIllegalArgument: CGSDeviceUnlock: Invalid device lock
Tue Oct 26 15:45:46 Euan-MacInness-Mac-mini.local mono[254] : kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
Stacktrace:
at (wrapper managed-to-native) OpenTK.Platform.MacOS.Carbon.API.ReceiveNextEvent (uint,intptr,double,bool,intptr&) <0x00004>
at (wrapper managed-to-native) OpenTK.Platform.MacOS.Carbon.API.ReceiveNextEvent (uint,intptr,double,bool,intptr&) <0x00004>
at OpenTK.Platform.MacOS.Carbon.API.ProcessEvents ()
at OpenTK.Platform.MacOS.Carbon.Application.ProcessEvents ()
at OpenTK.Platform.MacOS.CarbonGLNative.ProcessEvents ()
at OpenTK.NativeWindow.ProcessEvents (bool)
at OpenTK.NativeWindow.ProcessEvents ()
at OpenTK.GameWindow.Run (double,double)
at OpenTK.GameWindow.Run (double)
at Icarus.IcarusApp.Main (string[]) [0x00099] in /Users/euanmacinnes/Desktop/icarus/icarus/Development/Source/IcarusPro/Icarus.cs:153
at (wrapper runtime-invoke) .runtime_invoke_void_object (object,intptr,intptr,intptr)
The gamewindow will open, and an OpenGL context appears and is renderable, and is also opening a hidden background GL context as well. Occasionally the app is successful, but it's pretty random as to whether itstays open or not, and it always crashes at the OpenTK.Platform.MacOS.Carbon.API.ReceiveNextEvent with an Invalid Device Lock


Comments
#1
I haven't been able to reproduce this but I may have found a potential cause.
#2
This issue is one of the faults generated by the multithreading tests