question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OpenGlException: eglMakeCurrent failed with error EGL_CONTEXT_LOST

See original GitHub issue

This 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:14 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
Mikolaytiscommented, Aug 11, 2021

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!

0reactions
jboshcommented, Jul 20, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

eglMakeCurrent() failed EGL_BAD_ALLOC - android
This EGL error is typically caused by device-specific hardware acceleration issues. Webviews may be especially susceptible to this error. Try ...
Read more >
Emulator gives "eglMakeCurrent failed" on Linux [36944610]
When starting an emulator with GPU Emulation enabled, I get a lot of these messages and the window is always black (not updated):...
Read more >
eglMakeCurrent - EGL Reference Pages - Khronos Registry
eglMakeCurrent binds context to the current rendering thread and to the draw and read surfaces. For an OpenGL or OpenGL ES context, draw...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found