xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.62k stars 1.87k forks source link

[Bug] [iOS] RefreshView/ListView IsRefreshing Activity indicator stops animating after navigating to a page and back. #14115

Open mubaarakhassan opened 3 years ago

mubaarakhassan commented 3 years ago

Description

Whenever the RefreshView.IsRefreshing is set to true the circular loading activity indicator starts animating. After navigating between pages and coming back to the main page the activity indicator suddenly freezes. This also seems to be happening when using the ListView.

The activity indicator also stops animating when going into background and coming back to foreground.

Steps to Reproduce

  1. Launch the application
  2. Pull to refresh on the list page.
  3. Navigate to a different page or go into background.
  4. Return back.

Expected Behavior

Activity indicator starts running/animating again.

Actual Behavior

Activity indicator stops spinning and freezes.

Basic Information

Environment

Show/Hide Visual Studio info ``` === Visual Studio Enterprise 2019 for Mac === Version 8.9.4 (build 25) Installation UUID: c2299c0e-cda3-4430-be82-aaf880282c90 GTK+ 2.24.23 (Raleigh theme) Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638) Package version: 612000125 === Mono Framework MDK === Runtime: Mono 6.12.0.125 (2020-02/8c552e98bd6) (64-bit) Package version: 612000125 === Xamarin Designer === Version: 16.9.0.316 Hash: 2241b204a Branch: tags/vsm-rel/d16.9-4540908 Build date: 2021-03-10 21:18:10 UTC === Roslyn (Language Service) === 3.9.0-6.21152.10+c10f884b30737542ddd84ca889a4aad9281ce210 === NuGet === Version: 5.8.0.6860 === .NET Core SDK === SDK: /usr/local/share/dotnet/sdk/5.0.201/Sdks SDK Versions: 5.0.201 5.0.103 5.0.102 5.0.101 5.0.100 3.1.407 3.1.406 3.1.405 3.1.404 3.1.403 3.1.402 3.1.401 3.1.200 3.1.102 3.1.101 3.1.100 3.0.101 3.0.100 2.1.701 MSBuild SDKs: /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Sdks === .NET Core Runtime === Runtime: /usr/local/share/dotnet/dotnet Runtime Versions: 5.0.4 5.0.3 5.0.2 5.0.1 5.0.0 3.1.13 3.1.12 3.1.11 3.1.10 3.1.9 3.1.8 3.1.7 3.1.2 3.1.1 3.1.0 3.0.1 3.0.0 2.1.23 2.1.22 2.1.21 2.1.17 2.1.16 2.1.15 2.1.14 2.1.13 2.1.12 === .NET Core 3.1 SDK === SDK: 3.1.407 === Xamarin.Profiler === Version: 1.6.12.26 Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler === Updater === Version: 11 === Apple Developer Tools === Xcode 12.4 (17801) Build 12D4e === Xamarin.Mac === Xamarin.Mac not installed. Can't find /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/Version. === Xamarin.iOS === Version: 14.14.2.5 (Visual Studio Enterprise) Hash: 3836759d4 Branch: d16-9 Build date: 2021-02-10 17:56:44-0500 === Xamarin.Android === Version: 11.2.2.1 (Visual Studio Enterprise) Commit: xamarin-android/d16-9/877f572 Android SDK: /Users/mcc/Library/Developer/Xamarin/android-sdk-macosx Supported Android versions: 6.0 (API level 23) 7.0 (API level 24) 7.1 (API level 25) 8.0 (API level 26) 8.1 (API level 27) SDK Tools Version: 26.1.1 SDK Platform Tools Version: 28.0.2 SDK Build Tools Version: 28.0.3 Build Information: Mono: 5e9cb6d Java.Interop: xamarin/java.interop/d16-9@54f8c24 ProGuard: Guardsquare/proguard/v7.0.1@912d149 SQLite: xamarin/sqlite/3.34.1@daff8f4 Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-9@d210f11 === Microsoft OpenJDK for Mobile === Java SDK: /Users/mcc/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25 1.8.0-25 Android Designer EPL code available here: https://github.com/xamarin/AndroidDesigner.EPL === Android SDK Manager === Version: 16.9.0.22 Hash: a391de2 Branch: remotes/origin/d16-9~2 Build date: 2021-03-24 08:30:26 UTC === Android Device Manager === Version: 16.9.0.17 Hash: fc2b3db Branch: remotes/origin/dev/jmt/d16-9bump~1 Build date: 2021-03-24 08:30:44 UTC === Build Information === Release ID: 809040025 Git revision: 5d0f80a4343884101c6c7869bc61d5101cf30052 Build date: 2021-03-25 08:43:13-04 Build branch: release-8.9 Xamarin extensions: 5d0f80a4343884101c6c7869bc61d5101cf30052 === Operating System === Mac OS X 10.16.0 Darwin 20.3.0 Darwin Kernel Version 20.3.0 Thu Jan 21 00:07:06 PST 2021 root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64 === Enabled user installed extensions === ```

Build Logs

Reproduction Link

RefreshViewActivityIndicator.zip

Workaround

Nothing found so far.

mubaarakhassan commented 3 years ago

I also found an old issue where the same problem is happening. It seems like this issue has been going on for a while and is still being looked at.

https://github.com/xamarin/Xamarin.Forms/issues/1366

flywhc commented 3 years ago

I got the same issue: I have a tabbed page that contains 4 subpages, each page contains a listview. It uses shell PushAsync to open another ContentPage and then refresh the listview after use closes the popup. Eventually, the activity indicator stop spinning only on iOS

I have tried various ways but found no workaround for 2 months.