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
- Connect via RDP
- Run Application - Rendering works fine
- Close RDP connection
- Connect via RDP
- 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!