Open grebennikovlmax opened 3 years ago
Hi @grebennikovlmax,
Thanks for filing the issue, could you please share the output of flutter doctor -v
, And could you please rephrase the issue, Are you seeing the freeze when navigating back by pressing the button or by swiping on the right?
And Are you experiencing this issue on a particular ios device or all devices?
Thank you.
Hi @grebennikovlmax, Thanks for filing the issue, could you please share the output of
flutter doctor -v
, And could you please rephrase the issue, Are you seeing the freeze when navigating back by pressing the button or by swiping on the right? And Are you experiencing this issue on a particular ios device or all devices? Thank you.
HI @maheshmnj output of flutter doctor in the logs. This issue present on all IOS devices. App freeze when you try swipe again. On pressing back button nothing happen.
Sorry, if I was not clear I meant the complete log of flutter doctor -v
. Which should include the device that you tried with and the ios version that you are using. This helps to better investigate the issue.
Thank you.
Sorry, if I was not clear I meant the complete log of
flutter doctor -v
. Which should include the device that you tried with and the ios version that you are using. This helps to better investigate the issue.Thank you.
Added complete log
I am not able to replicate the freeze issue on the stable channel neither on the simulator or the real IOS device. I see the screen pops twice and shows a blank screen (as expected).
Can you try if you are experiencing the freeze on the master channel too by running
flutter channel master
flutter upgrade
Bug present on master channel too. It depend on position when you hold your finger. On first video finger closer to the right, on the second to the left.
Could you please explain where would you need this kind of use case? And Are you experiencing this freeze on the master channel too?
Videos post above from master channel. Use case: waiting for a response from the server that closes the screen, but 'bad' user use swipe for whatever reason. Use case from production.
For such a use case you have WillPopScope which can prevent users from popping the screen until the response comes from the server.
Of course I can, but this is a bug. I think on such cases swipe should be cancelled and nothing happen with it.
This looks like an implementation issue and not an issue with flutter. So I am going to go ahead and close the issue as invalid. if you disagree feel free to comment and I will reopen it. Thank you.
Hi! I found the same bug. @maheshmnj Thanks for your advice, but using WillPopScope is not suitable cause it breaks iOs user experience. I think we need to resolve the app freeze, cause sometimes it is necessary to call Navigator.pop() programmatically. And if it happen while user swipes back it freezes all UI.
Could you reopen issue please?
@maheshmnj Maybe this is implementation issue, but I think this is a bug because app freezes. In this case on native IOS app nothing happens: swipe isn't canceled and navigation isn't invoked. Moreover, in the navigator.dart method _cancelActivePointers exist todo 'This mechanism is far from perfect'. Method cancel all active gestures, but this calls method dragEnd from route.dart.
I think we need to resolve the app freeze, cause sometimes it is necessary to call Navigator.pop() programmatically. And if it happens while the user swipes back it freezes all UI.
Alright keeping it open for further investigation from the team.
removed the found in release labels since this was not reproducible
Hi @grebennikovlmax I just tried again, there is no freeze,
Can you please upgrade to the latest stable
and try again
Execute the following commands to upgrade
flutter channel stable
flutter upgrade --force
flutter doctor -v
To better address the issue, If the problem persists, can you please provide your flutter doctor -v
with the upgrade, complete reproducible minimal code sample (since the above code sample doesn't reproduce on device or simulator), and complete flutter run --verbose
logs running the minimal code sample?
Thank you
Hi @TahaTesser,
Issue still persist.
Reproduction code and steps are actual. You need an ios device.
Hold swipe gest on second screen after tap on go back button. After await Future.delayed(Duration(seconds: 1)) will be called Navigator.pop() and gesture will canceled. It wont freeze, but if you try swipe again an exception will be thrown and the app will freeze:
Same on the master channel
Issue is reproducible on stable
and master
.
Steps to Reproduce
An application freeze occurs when user uses swipe back gesture on IOS and Navigator.pop() is called.
Expected results:
Navigation happened and gesture is canceled
Actual results:
Application freezes.
https://user-images.githubusercontent.com/15684133/125729637-d2ae00a4-64bc-4a5d-88ea-9984e1659eb8.mp4
Logs
```console Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-x64, locale ru) • Flutter version 2.2.3 at /Users/Development/flutter • Framework revision f4abaa0735 (2 weeks ago), 2021-07-01 12:46:11 -0700 • Engine revision 241c87ad80 • Dart version 2.13.4 [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at /Library/Android/sdk • Platform android-30, build-tools 30.0.3 • Java binary at: Library/Java/JavaVirtualMachines/corretto-11.0.11/Contents/Home/bin/java • Java version OpenJDK Runtime Environment Corretto-11.0.11.9.1 (build 11.0.11+9-LTS) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 12.5, Build version 12E262 • CocoaPods version 1.10.1 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [!] Android Studio (not installed) • Android Studio not found; download from https://developer.android.com/studio/index.html (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions). [✓] IntelliJ IDEA Ultimate Edition (version 2021.1.3) • IntelliJ at /Applications/IntelliJ IDEA.app • Flutter plugin version 58.0.3 • Dart plugin version 211.7665 [✓] IntelliJ IDEA Community Edition (version 2021.1.2) • IntelliJ at /Applications/IntelliJ IDEA CE.app • Flutter plugin version 57.0.5 • Dart plugin version 211.7665 [✓] Connected device (2 available) • iPhone (itweb) (mobile) • 00008020-001A701C3A09002E • ios • iOS 14.4 • Chrome (web) • chrome • web-javascript • Google Chrome 91.0.4472.114 ! Doctor found issues in 1 category. ```