Skip to content

[BUG] Windows App Crash - only on x86 - v3.116 or newer #3375

@viktorspacil

Description

@viktorspacil

Description

Hi, we delop multiplatform (Windows, macOS) dotnet (9.0) application using Avalonia UI (11.3.6) which loads some DLLs in runtime from subdirectory. One of this DLL use SkiaSharp lib (3.116 or newer) for some image manupulation. When the application is compiled for x64 then everything is ok but when we compile the application for x86 then we are getting app crash (no event log, no dump). In case of x84, when we copy the DLLs from subdirectory to application root directory then the app crash is gone. When we rollback the SkiaSharp nuget to version 2.88.9 then DLLs loading from subdirectory also work as expected (x64, x86). Any ideas?

Code

No repro

Expected Behavior

No app crash

Actual Behavior

App crash

Version of SkiaSharp

3.116.0 (Current)

Last Known Good Version of SkiaSharp

2.88.9 (Previous)

IDE / Editor

Visual Studio (Windows)

Platform / Operating System

Windows

Platform / Operating System Version

Microsoft Windows 11 Pro (ARM CPU), 23H2 (build 22631)

Devices

No response

Relevant Screenshots

No response

Relevant Log Output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/SkiaSharpIssues that relate to the C# binding of SkiaSharp.os/Windows-ClassicIssues running on Microsoft Windows using Win32 APIs (Windows.Forms or WPF)tenet/reliabilityIssues relating to crashes or unexpected behaviorstype/bug

    Type

    No type

    Projects

    Status

    New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions