OpenGlException: eglMakeCurrent failed with error EGL_CONTEXT_LOST
See original GitHub issueThis happens to me when using the version on the master, it’s very rare but happened 3 times when I logged into my computer and opened the window using the Show functions. AllowEglInitialization=true and UseDeferredRendering = false
Application: Blast.exe CoreCLR Version: 5.0.20.27801 .NET Version: 5.0.0-preview.5.20278.1 Description: The process was terminated due to an unhandled exception. Exception Info: Avalonia.OpenGL.OpenGlException: eglMakeCurrent failed with error EGL_CONTEXT_LOST (0x300E) at Avalonia.OpenGL.EglContext.MakeCurrent(EglSurface surface) at Avalonia.OpenGL.EglGlPlatformSurface.RenderTarget.BeginDraw() at Avalonia.Skia.GlRenderTarget.BeginRenderingSession() at Avalonia.Skia.SkiaGpuRenderTarget.CreateDrawingContext(IVisualBrushRenderer visualBrushRenderer) at Avalonia.Rendering.ImmediateRenderer.Paint(Rect rect) at Avalonia.Win32.WindowImpl.WndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam) This happens to me when I use Acrylic + UseGPU randomly, couldn't find any issue like this, are you familiar with it or I should open an issue?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:14 (12 by maintainers)
CONTEXT_LOSS handling is a must have feature. Especially on a notebooks. After a sleep users are getting almost 100% repro. This is making them angry a lot 😃 App freeze/crash + potential progress loss is a pain. I hope this feature will have a higher priority and will be fixed in near future. Thanks!
I’m seeing this issue if I leave an application open and then put Windows to sleep. Upon wakeup, the exception will fire 100% of the time.