Skip to content

Crash on RDP reconnect "Back buffer's device is not valid." in SetBackBuffer in GLWpfControlRenderer.Render #163

@SLMJanMatyssek

Description

@SLMJanMatyssek

Hi, I'm encountering a crash when reconnecting via RDP

Precondition

  • OpenTK Version 4.9.4
  • OpenTK.GLWpfControl 4.2.2 (newer is currently not possible due to the intel graphic problems)
  • framework: .NET8
  • Windows 11

Steps To Reproduce

  1. Connect via RDP
  2. Run Application - Rendering works fine
  3. Close RDP connection
  4. Connect via RDP
  5. Error:

"ClassName": "System.ArgumentException",
"Message": "Back buffer's device is not valid.",
"Data": null,
"InnerException": {
"ClassName": "System.Runtime.InteropServices.COMException",
"Message": "0x88980803",
"Data": null,
"InnerException": null,
"HelpURL": null,
"StackTraceString": null,
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": null,
"HResult": -2003302397,
"Source": null,
"WatsonBuckets": null
},

Stacktrace:

  • at System.Windows.Interop.D3DImage.SetBackBuffer(D3DResourceType backBufferType, IntPtr backBuffer, Boolean enableSoftwareFallback)
  • at OpenTK.Wpf.GLWpfControlRenderer.Render(DrawingContext drawingContext)

is this a known issues? Are we doing something wrong? Can we do something to prevent this? Thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    4.0bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions