Skip to content

application freeze on niceDCV resize desktop operation #133

@flat-eric147

Description

@flat-eric147

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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions