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

Render exception on Android #17034

Open
sessiontalk opened this issue Sep 16, 2024 · 1 comment
Open

Render exception on Android #17034

sessiontalk opened this issue Sep 16, 2024 · 1 comment

Comments

@sessiontalk
Copy link

Describe the bug

When restarting an Android app after swipinig it from the task switcher, views are not displayed and get blank screen with the folloiwng stack trace

[Visual]Exception in render loop: 'System.NullReferenceException: Object reference not set to an instance of an object. at Avalonia.Android.Platform.SkiaPlatform.TopLevelImpl.Avalonia.OpenGL.Egl.EglGlPlatformSurface.IEglWindowGlPlatformSurfaceInfo.get_Handle() at Avalonia.OpenGL.Egl.EglGlPlatformSurface.CreateGlRenderTarget(IGlContext context) at Avalonia.Skia.GlRenderTarget..ctor(GRContext grContext, IGlContext glContext, IGlPlatformSurface glSurface) at Avalonia.Skia.GlSkiaGpu.TryCreateRenderTarget(IEnumerable1 surfaces) at Avalonia.Skia.SkiaContext.CreateRenderTarget(IEnumerable1 surfaces) at Avalonia.Rendering.PlatformRenderInterfaceContextManager.CreateRenderTarget(IEnumerable1 surfaces) at Avalonia.Rendering.Composition.Server.ServerCompositor.CreateRenderTarget(IEnumerable1 surfaces) at Avalonia.Rendering.Composition.Server.ServerCompositionTarget.Render() at Avalonia.Rendering.Composition.Server.ServerCompositor.RenderCore(Boolean catchExceptions) at Avalonia.Rendering.Composition.Server.ServerCompositor.RenderReentrancySafe(Boolean catchExceptions) at Avalonia.Rendering.Composition.Server.ServerCompositor.Render(Boolean catchExceptions) at Avalonia.Rendering.Composition.Server.ServerCompositor.Render() at Avalonia.Rendering.RenderLoop.TimerTick(TimeSpan time)'

To Reproduce

NA

Expected behavior

NA

Avalonia version

11.1.3

OS

Android

Additional context

No response

@emmauss
Copy link
Contributor

emmauss commented Sep 17, 2024

Please, check if this issue occurs on the latest nightly. There have been changes since 11.1.3 that addressed this issue.

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

No branches or pull requests

3 participants