Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get error 'eglMakeCurrent failed with error EGL_BAD_MATCH (0x3009) #3042

Open
ShahroozAnsari opened this issue Sep 28, 2019 · 4 comments
Open
Labels

Comments

@ShahroozAnsari
Copy link

I get Avalonia.OpenGL.OpenGlException: 'eglMakeCurrent failed with error EGL_BAD_MATCH (0x3009) Error while Start App.

this is my start up config code


AppBuilder.Configure<App>()
                .UsePlatformDetect()
                .With(new Win32PlatformOptions { AllowEglInitialization = true })
                .With(new X11PlatformOptions { UseGpu = true , UseEGL = true })
                .With(new AvaloniaNativePlatformOptions { UseGpu = true })

I try installed Avalonia.Angle.Natives and Avalonia.Angle.Windows.Natives but nothing changed
I
my Os is win

@grokys grokys added the bug label Oct 28, 2019
@fomalsd
Copy link

fomalsd commented Jan 31, 2020

@ShahroozAnsari Did you find a way to work around this?
A user with AMD Athlon X4 860k and GTX 1050 TI on Windows 10 reported the same issue, just one machine for some reason.
Config we use is:

        public static AppBuilder BuildAvaloniaApp()
            => AppBuilder.Configure<App>()
                .UsePlatformDetect()
                .With(new X11PlatformOptions { UseGpu = true, UseEGL = true })
                .With(new AvaloniaNativePlatformOptions { UseGpu = true, UseDeferredRendering = false })
                .With(new MacOSPlatformOptions { ShowInDock = true })
                .With(new Win32PlatformOptions
                {
                    UseDeferredRendering = false,
                    AllowEglInitialization = true
                })
                .LogToDebug()
                .UseReactiveUI(); 

@AndreSteenbergen
Copy link

This is still an issue on Avalonia UI 11 preview 4 (still working out all breaking changes 4=>5)
I get an error when CreateWindowSurface is called EGL_BAD_MATCH 0x3009.

OS: Debian Bullseye
System: Radxa model rock 3
GPU: Mali G52

kmscube running without issues 60 frames / sec

I do see there has been some discussion about it in this topic: https://forums.raspberrypi.com/viewtopic.php?t=243707
image

If this is not the same issue I would gladly open another issue.

@AndreSteenbergen
Copy link

AndreSteenbergen commented Mar 5, 2023

Some extra info:

GL Version Avalonia.OpenGL.GlVersion
StencilSize 8

GlInterface.Vendor ARM
GlInterface.Renderer Mali-G52
GlInterface.IsBlitFramebufferAvailable True
GlInterface.IsBindVertexArrayAvailable True
GlInterface.IsGenVertexArraysAvailable True
GlInterface.Version OpenGL ES 3.2 v1.g2p0-01eac0.327c41db9c110a33ae6f67b4cc0581c7

extensions:
EGL_KHR_partial_update EGL_KHR_config_attribs EGL_KHR_image EGL_KHR_image_base EGL_KHR_fence_sync EGL_KHR_wait_sync EGL_KHR_gl_colorspace EGL_KHR_get_all_proc_addresses EGL_IMG_context_priority EGL_KHR_no_config_context EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_EXT_yuv_surface EGL_EXT_pixel_format_float EGL_ARM_pixmap_multisample_discard EGL_ARM_implicit_external_sync EGL_KHR_gl_texture_2D_image EGL_KHR_gl_renderbuffer_image EGL_KHR_create_context EGL_KHR_surfaceless_context EGL_KHR_gl_texture_cubemap_image EGL_EXT_image_gl_colorspace EGL_EXT_create_context_robustness

with error: `Avalonia.OpenGL.OpenGlException: eglCreateWindowSurface failed with error EGL_BAD_MATCH (0x3009)
'

@AndreSteenbergen
Copy link

sampleCount == 0 is that an issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants