emacinnes's picture

Intermittent error opening a gamewindow in MacOSX

Project:The Open Toolkit library
Category:bug report

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.

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


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture


I haven't been able to reproduce this but I may have found a potential cause.

emacinnes's picture


This issue is one of the faults generated by the multithreading tests

the Fiddler's picture


Version:1.0-2010-10-06» 1.1.0-stable
Status:open» closed

This has been fixed in opentk-1.1.0