-
Notifications
You must be signed in to change notification settings - Fork 59
Description
I am having an interesting issue to report. I am using OpenTK within a windows WPF application. It works perfectly fine and I am doing very basic OpenGL stuff in there (mainly visualizing a videostream).
I encountered an issue when using my application on an AWS instance using niceDCV. niceDCV has a feature where you can resize the windows and it does resize the "remote" desktop accordingly (that behaviour can be switched off however).
My application starts to freeze whenever this kind of operation takes place. I managed to create a stack trace and it mostly looks like this:
System.Threading.WaitHandle.WaitOneNoCheck(Int32)
System.Windows.Interop.D3DImage.LockImpl(System.Windows.Duration)
System.Windows.Interop.D3DImage.Lock()
OpenTK.Wpf.GLWpfControlRenderer.Render(System.Windows.Media.DrawingContext)
OpenTK.Wpf.GLWpfControl.OnRender(System.Windows.Media.DrawingContext)
System.Windows.UIElement.Arrange(System.Windows.Rect)
System.Windows.ContextLayoutManager.UpdateLayout()
System.Windows.ContextLayoutManager.UpdateLayoutCallback(System.Object)
[...]
I am a little bit lost on how to further debug or fix this issue. It "feels" like some d3d handle got disposed without OpenTK's knowledge. Any input/hint appreciated !