unoplatform / uno

Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported.
https://platform.uno
Apache License 2.0
8.77k stars 706 forks source link

[Droid] Fatal crash with unknown reason #17512

Open FrozDark opened 2 months ago

FrozDark commented 2 months ago

Current behavior

Starting from Uno 5.1+ it has fatal crash even on latest 5.4 dev

Video representation https://youtu.be/EY5D9ModKyo

[libc] Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8 in tid 29972 (k.jupiter.trade), pid 29972 (k.jupiter.trade)

All I have is pages with NavigationCacheMode enabled and single instances of content dialogs that weak referenced per XamlRoot (even though I have single window app). It's reproducable by showing content dialogs and at some point it crashes

I think it somehow maybe related to https://github.com/unoplatform/uno/issues/15346

Expected behavior

No crash as like on Uno 5.0.159

How to reproduce it (as minimally and precisely as possible)

No response

Workaround

Revert back to 5.0 version of uno

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

Packages used to crash

CommunityToolkit.Mvvm "8.2.2" Mapsui.WinUI "4.1.7" Mapsui.Uno.WinUI "4.1.7" Microsoft.Extensions.Logging.Console "8.0.0" Microsoft.Windows.Compatibility "8.0.1" Microsoft.Windows.SDK.BuildTools "10.0.26100.1" Microsoft.WindowsAppSDK "1.5.240607001" NPOI "2.6.2" QRCoder "1.4.3" SkiaSharp "2.88.8" SkiaSharp.Skottie "2.88.8" SkiaSharp.Views "2.88.8" SkiaSharp.Views.Gtk2 "2.88.8" SkiaSharp.Views.Uno.WinUI "2.88.8" Uno.Wasm.Bootstrap.Server "8.0.8" Uno.WinUI "5.1.104" Uno.WinUI.Lottie "5.1.104" Swashbuckle.AspNetCore "6.5.0" Uno.Toolkit.WinUI "6.0.24" Uno.Core.Extensions.Logging.Singleton "4.1.1" Uno.Extensions.Configuration "4.1.24" Uno.Extensions.Core.WinUI "4.1.24" Uno.Extensions.Hosting "3.0.10" Uno.Extensions.Hosting.WinUI "4.1.24" Uno.Extensions.Localization "3.0.10" Uno.Extensions.Localization.WinUI "4.1.24" Uno.Extensions.Logging.OSLog "1.7.0" Uno.Extensions.Logging.WebAssembly.Console "1.7.0" Uno.Resizetizer "1.4.8" Uno.UI.Adapter.Microsoft.Extensions.Logging "5.1.104" Uno.UniversalImageLoader "1.9.36" Uno.Wasm.Bootstrap "8.0.8" Uno.Wasm.Bootstrap.DevServer "8.0.8" Uno.WinUI.DevServer "5.1.104" Uno.WinUI.Skia.Gtk "5.1.104" Uno.WinUI.Skia.Wpf "5.1.104" Uno.WinUI.WebAssembly "5.1.104" Xamarin.Google.Android.Material "1.11.0" NetTopologySuite.IO.GeoJSON4STJ "4.0.0"

Affected platforms

Android

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

jeromelaban commented 1 month ago

Thanks for the report. It would also be interesting to get the device logcat before the crash happens.