dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.86k stars 1.68k forks source link

iOS app hangs indefinitely (possibly related to scrollview) #23427

Open IeuanWalker opened 1 week ago

IeuanWalker commented 1 week ago

Description

I've created quite a basic page, that works fine on -

But on my physical ios device (iPhone 11 Pro - 17.5.1) when navigating to the page the whole app hangs indefinitely, no error and nothing in the output window

Here is a video showing the issue. The video shows the following -

  1. Working android emulator
  2. Working iOS simulator
  3. Then I screen mirror my physical iOS device that shows it hanging
  4. I then use xcode instruments > system trace. That shows after I press the button to navigate the app starts using 100% CPU
  5. I then use xcode instruments > logging. That shows after I press the button it repeatedly starts logging the same thing every couple of ms even making the tool start lagging
    • Dropping "com.apple.UIKit.UIScrollView.OffsetChange" as it isn't used in any transform (not in the config or budgeted?)
    • Here is the output from the logging - LoggingRepo.trace.zip

https://github.com/dotnet/maui/assets/6544051/7acb1f6b-de40-4390-acd0-94d614937ac2

Steps to Reproduce

Github repo linked, is the same one used in the video above

Link to public reproduction project repository

https://github.com/IeuanWalker/MauiIosHangingRepo

Version with bug

8.0.61 SR6.1

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms, Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 17.5.1

Did you find any workaround?

No response

Relevant log output

Logs zipped in description
github-actions[bot] commented 1 week ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

davidschlabach commented 1 week ago

I'm having a similar issue

I've attached a test app that just has a ListView and items. I can scroll up and down a few times then it locks.

Test.zip

IeuanWalker commented 5 days ago

This is likely a result of a dodgy iOS update.

I reset my phone's settings (Settings > General > Transfer or reset iPhone > rest all settings).

And it all started working as expected. I didn't need to rebuild/ redeploy the app again as it was still on the phone, and the OS version is the same, so not sure what was causing it, but I did waste 3 days trying to work it out 😒

davidschlabach commented 5 days ago

The hanging for me happens in multiple different simulator device sizes and iOS versions.