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.76k stars 706 forks source link

iOS Simulator: adding ProgressRing crashes app #17810

Open baskren opened 1 month ago

baskren commented 1 month ago

Current behavior

Add ProgressRing to iOS Simulator app's VisualTree and app crashes

Expected behavior

No crash, just like Android (device and emulator), iOS device, MacCatalyst, WinUI, Windows-Desktop

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

DEMO REPO: https://github.com/baskren/LottieTest

STEPS TO CREATE:

Workaround

N/A

Works on UWP/WinUI

Yes

Environment

Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia

NuGet package version(s)

"Uno.Sdk" : "5.3.96"

Affected platforms

iOS

IDE

Visual Studio 2022, Rider macOS

IDE version

JetBrains Rider 2024.1.4; Microsoft Visual Studio Community 2022 (ARM 64-bit) - Current Version 17.10.4

Relevant plugins

n/a

Anything else we need to know?

No response

baskren commented 1 month ago

UPDATE: By accident, I tried this using the iPhone 13 simulator, iOS 15.5 (instead of the iPhone 15 simulator, iOS 17.5, which crashes). On the iPhone 13, iOS 15.5, I got the following:

https://github.com/user-attachments/assets/7abdc223-e768-41f6-aa6e-dc7b4eff2bdb

baskren commented 1 month ago

Looks like, for now, a work around is to test if the app is running on an iOS Simulator and then set IsActive=false

ajpinedam commented 3 weeks ago

@baskren Thanks for the report.

Are you running this on a Mac with M processors (ARMs)? I am running the Sample project you attached on a Mac with Intel, but I have problems reproducing the error.

I use the iPhone 15 and iPhone 15 Pro simulators with iOS 17.5 for my tests.

I ran the app from Rider 2024.1.4 and VsCode with Uno plugin version v0.15.4.

I could try running it on a Mac with M processors to validate there, too.

ajpinedam commented 3 weeks ago

https://github.com/user-attachments/assets/6189cf5d-3f98-4a7b-a7cf-40d7ad75eb9a

baskren commented 3 weeks ago

@ajpinedam : Glad to hear it's working for you. I'm running on M2 MBP, using Parallels when running from VisualStudio 2022 ARM (connected via Parallels back to the same M2 for Pair2Mac) and using Rider when running in MacOS.

baskren commented 3 weeks ago

https://github.com/user-attachments/assets/8d46eac4-dce3-4ca6-a32f-7fdf6b9e0762

baskren commented 3 weeks ago

FWIW, I would be happy to do a screen share.

ajpinedam commented 3 weeks ago

@ajpinedam : Glad to hear it's working for you. I'm running on M2 MBP, using Parallels when running from VisualStudio 2022 ARM (connected via Parallels back to the same M2 for Pair2Mac) and using Rider when running in MacOS.

Thanks. I am getting an M2 ready to test it out. If still unable to reproduce I will take your invite for the screen sharing.

Keep you posted and thanks again!

ajpinedam commented 3 weeks ago

@baskren finished the test on the MBP M processors, and I could reproduce the error reported.

I will continue with the investigation.

baskren commented 3 weeks ago

@ajpinedam : Glad to hear that you're able to reproduce the problem. Thanks for your attention!