Application randomly crashes or freezes

I can consistently cause it by picking the transform tool and flailing arround, but sometimes it happens with the pen tool aswell (haven’t tested with other tools). My system doesn’t support Vulkan so I’m using OpenGL.

Sometimes it instantly closes (leaving no crash report), but sometimes the screen freezes and the application remains interactable. When the latter happens I can move arround the window and interact with UI, but the screen won’t update so I can’t see what I’m doing. I only know the UI works because my cursor will change in response like normal. Also any popups will be fully transparent, just leaving the windows border.

Here’s my system info from a forced crash if it’s any use:

-----System Information----
General:
  PlatformId: Windows
  PlatformName: Microsoft Windows NT 10.0.19045.0
  OSVersion: Microsoft Windows NT 10.0.19045.0

CPU:
  Name: Intel(R) Core(TM) i7-7700T CPU @ 2.90GHz
  Speed: 3.56 GHz
  Max Speed: 2.90 GHz

GPU:
  Name: Intel(R) HD Graphics 630
  Driver: 26.20.100.7325

Memory:
  Available: 4.48  GB
  Total: 12.72  GB

Hi, if you can, please go to windows Event Viewer, go to administrative events and find PixiEditor on the list. It should be listed with an error and more info about the crash

1 Like

When it freezes I get:
Display driver igfx stopped responding and has successfully recovered.

When it crashes I get two errors:

Application: PixiEditor.exe
CoreCLR Version: 8.0.1925.36514
.NET Version: 8.0.19
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Stack:
   at SkiaSharp.SkiaApi.<gr_direct_context_flush_and_submit>g____PInvoke|27_0(IntPtr, SByte)
   at SkiaSharp.SkiaApi.<gr_direct_context_flush_and_submit>g____PInvoke|27_0(IntPtr, SByte)
   at Avalonia.Skia.SurfaceRenderTarget.Blit(Avalonia.Platform.IDrawingContextImpl)
   at Avalonia.Rendering.Composition.Server.ServerCompositionTarget.Render()
   at Avalonia.Rendering.Composition.Server.ServerCompositor.RenderCore(Boolean)
   at Avalonia.Rendering.Composition.Server.ServerCompositor.RenderReentrancySafe(Boolean)
   at Avalonia.Rendering.Composition.Server.ServerCompositor.Render(Boolean)
   at Avalonia.Rendering.RenderLoop.TimerTick(System.TimeSpan)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.TimerQueueTimer.Fire(Boolean)
   at System.Threading.TimerQueue.FireNextTimers()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart()

and

Faulting application name: PixiEditor.exe, version: 1.0.0.0, time stamp: 0x674f0000
Faulting module name: coreclr.dll, version: 8.0.1925.36514, time stamp: 0x68769299
Exception code: 0xc0000005
Fault offset: 0x00000000001d9e2d
Faulting process id: 0x28a8
Faulting application start time: 0x01dc077ea54b8cf8
Faulting application path: C:\Program Files\PixiEditor\PixiEditor.exe
Faulting module path: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.19\coreclr.dll
Report Id: 9eb6f28c-30bf-4fc6-9570-bf700bb8c999
Faulting package full name: 
Faulting package-relative application ID: 

Restarted my system and getting the same results

Also here’s a different crash error:

Application: PixiEditor.exe
CoreCLR Version: 8.0.1925.36514
.NET Version: 8.0.19
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Stack:
   at SkiaSharp.SkiaApi.sk_canvas_draw_rect(IntPtr, SkiaSharp.SKRect*, IntPtr)
   at SkiaSharp.SkiaApi.sk_canvas_draw_rect(IntPtr, SkiaSharp.SKRect*, IntPtr)
   at PixiEditor.Views.Rendering.Scene.RenderScene(Drawie.Numerics.RectD)
   at PixiEditor.Views.Rendering.Scene.Draw(Drawie.Backend.Core.Surfaces.DrawingSurface)
   at PixiEditor.Views.Rendering.Scene.<RenderFrame>b__97_0()
   at Drawie.Interop.Avalonia.OpenGl.OpenGlRenderApiResources.Render(Avalonia.PixelSize, System.Action)
   at PixiEditor.Views.Rendering.Scene.RenderFrame(Avalonia.PixelSize)
   at PixiEditor.Views.Rendering.Scene.UpdateFrame()
   at Avalonia.Rendering.Composition.Compositor.CommitCore()
   at Avalonia.Rendering.Composition.Compositor.Commit()
   at Avalonia.Media.MediaContext.CommitCompositorsWithThrottling()
   at Avalonia.Media.MediaContext.RenderCore()
   at Avalonia.Media.MediaContext.Render()
   at Avalonia.Threading.DispatcherOperation.InvokeCore()
   at Avalonia.Threading.DispatcherOperation.Execute()
   at Avalonia.Threading.Dispatcher.ExecuteJob(Avalonia.Threading.DispatcherOperation)
   at Avalonia.Threading.Dispatcher.ExecuteJobsCore(Boolean)
   at Avalonia.Threading.Dispatcher.OnOSTimer()
   at Avalonia.Win32.Win32Platform.WndProc(IntPtr, UInt32, IntPtr, IntPtr)
   at Avalonia.Win32.Interop.UnmanagedMethods.DispatchMessage(MSG ByRef)
   at Avalonia.Win32.Interop.UnmanagedMethods.DispatchMessage(MSG ByRef)
   at Avalonia.Win32.Win32DispatcherImpl.RunLoop(System.Threading.CancellationToken)
   at Avalonia.Threading.DispatcherFrame.Run(Avalonia.Threading.IControlledDispatcherImpl)
   at Avalonia.Threading.Dispatcher.PushFrame(Avalonia.Threading.DispatcherFrame)
   at Avalonia.Threading.Dispatcher.MainLoop(System.Threading.CancellationToken)
   at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.StartCore(System.String[])
   at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(System.String[])
   at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(Avalonia.AppBuilder, System.String[], System.Action`1<Avalonia.Controls.ApplicationLifetimes.IClassicDesktopStyleApplicationLifetime>)
   at PixiEditor.Desktop.Program.Main(System.String[])

consistently seems to be SkiaApi?

Thanks for the logs, it looks like the crashes have something to do with how OpenGL implementation in PixiEditor interacts with your graphics driver. It could be a bug in PixiEditor or an issue with your specific driver, we’ll try to look into it

For now I can suggest trying to update the GPU drivers, but I can’t promise that it will help

Update:
My computer’s manufacturer had locked my graphics driver to the last version they considered compatible. But I force updated them anyways and it seems to be fine (I think HP just couldn’t be bothered to test it). I FINALLY HAVE VULKAN SUPPORT!!!

Anyways, it doesn’t crash on the Vulkan version, but when I switch it back to OpenGL it still crashes with no differences. So I’m guessing there’s something wrong with the implementation if the 2025 driver still breaks (still an ancient igpu though so who knows)

interesting, thank you, it’s possible that there is an issue with our opengl implementation, it’s not as well tested as the vulkan one