Repository navigation
Closed
Labels
customer: galleryRelating to flutter/gallery repository. Please transfer non-framework issues there.Relating to flutter/gallery repository. Please transfer non-framework issues there.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Description
Steps to Reproduce
Just had this happen once when scrolling in the gallery app home screen (Flutter unmodified TOT sycned to cbfed19) with TalkBack on (was scrolling with 2 fingers).
The scroll was not responding and I had this crash in the log.
Couldn't reproduce this again.
Logs
E/flutter ( 3509): [ERROR:topaz/lib/tonic/logging/dart_error.cc(16)] Unhandled exception:
E/flutter ( 3509): 'package:flutter/src/widgets/scrollable.dart': Failed assertion: line 437: '_drag == null': is not true.
E/flutter ( 3509): #0 _AssertionError._doThrowNew (dart:core-patch/dart:core/errors_patch.dart:37)
E/flutter ( 3509): #1 _AssertionError._throwNew (dart:core-patch/dart:core/errors_patch.dart:33)
E/flutter ( 3509): #2 ScrollableState._handleDragDown (package:flutter/src/widgets/scrollable.dart:437)
E/flutter ( 3509): #3 RawGestureDetectorState._handleSemanticsVerticalDragUpdate (package:flutter/src/widgets/gesture_detector.dart:674)
E/flutter ( 3509): #4 RenderSemanticsGestureHandler._performSemanticScrollUp (package:flutter/src/rendering/proxy_box.dart:3129)
E/flutter ( 3509): #5 SemanticsOwner.performAction (package:flutter/src/rendering/semantics.dart:865)
E/flutter ( 3509): #6 BindingBase&SchedulerBinding&GestureBinding&ServicesBinding&RendererBinding._handleSemanticsAction (package:flutter/src/rendering/binding.dart:188)
E/flutter ( 3509): #7 _invoke2 (file:///b/build/slave/Linux_Engine/build/src/flutter/lib/ui/hooks.dart:129)
E/flutter ( 3509): #8 _dispatchSemanticsAction (file:///b/build/slave/Linux_Engine/build/src/flutter/lib/ui/hooks.dart:77)
Run flutter analyze and attach any output of that command also.
Analyzing 1277 files...
No analyzer warnings! (ran in 37.8s; 13 public members lack documentation)
Flutter Doctor
$ flutter doctor
[✓] Flutter (on Linux, locale en_US.UTF-8, channel master)
• Flutter at /usr/local/google/home/amirha/git/flutter
• Framework revision cbfed1960f (2 hours ago), 2017-10-25 07:18:09 -0700
• Engine revision ec19da1c80
• Tools Dart version 1.25.0-dev.11.0
[✓] Android toolchain - develop for Android devices (Android SDK 26.0.2)
• Android SDK at /usr/local/google/home/amirha/Android/Sdk
• Platform android-26, build-tools 26.0.2
• Java binary at: /usr/local/google/home/amirha/progs/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
[✓] Android Studio (version 2.3)
• Android Studio at /opt/android-studio-with-blaze-2.3
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
[✓] Android Studio (version 2.3)
• Android Studio at /usr/local/google/home/amirha/progs/android-studio
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
[✓] IntelliJ IDEA Community Edition (version 2017.2)
• Flutter plugin version 18.0
• Dart plugin version 172.4155.35
[✓] Connected devices
• Pixel • FA6890301419 • android-arm • Android 8.1.0 (API 27)
Metadata
Metadata
Assignees
Labels
customer: galleryRelating to flutter/gallery repository. Please transfer non-framework issues there.Relating to flutter/gallery repository. Please transfer non-framework issues there.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Activity
zoechi commentedon Dec 3, 2018
Looks stale. Is this still relevant?
amirh commentedon Dec 3, 2018
I don't know, it happened once, I guess we can close and re-open if we see it again.
CatEatFishs commentedon Jun 17, 2019
I have the same problem,how to solve it
[✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Mac OS X 10.14.4 18E226, locale zh-Hans-CN)
• Flutter version 1.5.4-hotfix.2 at /Users/hongka-liming/Downloads/flutter
• Framework revision 7a4c334 (7 weeks ago), 2019-04-29 11:05:24 -0700
• Engine revision 52c7a1e
• Dart version 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/hongka-liming/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
• All Android licenses accepted.
[!] iOS toolchain - develop for iOS devices (Xcode 10.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.2.1, Build version 10E1001
✗ libimobiledevice and ideviceinstaller are not installed. To install with Brew, run:
brew update
brew install --HEAD usbmuxd
brew link usbmuxd
brew install --HEAD libimobiledevice
brew install ideviceinstaller
✗ ios-deploy not installed. To install:
brew install ios-deploy
✗ Brew can be used to install tools for iOS device development.
Download brew at https://brew.sh/.
[✓] Android Studio (version 3.4)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 35.0.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
[✓] Connected device (1 available)
• COR AL00 • 6EJ7N18526001222 • android-arm64 • Android 9 (API 28)
alexviquez commentedon Oct 9, 2019
I got this problem when inactive the scrollPhysics and touch the component who has this scroll inactivated
TatsuUkraine commentedon Oct 21, 2019
@amirh @zoechi still relevant exact same issue with the exact same case as in prev example. It seems that when physics is changing, while scroll was in progress, it doesn't clear prev state of
dragandholdCode
Exception
akshathjain commentedon Jan 23, 2020
@amirh Can we reopen this? I've been having the same issue in a very similar scenario to @TatsuUkraine while developing sliding_up_panel.
TatsuUkraine commentedon Jan 23, 2020
@akshathjain btw, it seems flutter has built in widget that does exact same as your package
akshathjain commentedon Jan 23, 2020
@TatsuUkraine yeah lol, I released my package before that was introduced (although I think that mine provides many more features)
yonatann commentedon Apr 15, 2020
I am seeing the same issue, I recommend that this will be reopened.
SouravDatta1995 commentedon Jun 30, 2020
Seeing the same issue, recommended reopening this issue
8fdafs2 commentedon Jul 1, 2020
Observing the same issue when attaching a ScrollController to a CustomScrollView widget.
RaashVision commentedon Jul 24, 2020
Still having the same issue.
amirc901 commentedon Jul 24, 2020
Same issue here
here is a code :
this is happing when you are dragging the list and after you released the drag and list scroll went to an idle state (detecting it in notification listener) than if you could start dragging the list again before the scrollController.animateTo method gets invoked you will see the error is happening
So i have found a workaround for my case taht is like this :
i am postponing the scrollController.animateTo until the next frame and meanwhile, I am listnening to the scroll notifications if there was any notification beside an idle state i would change the isScrollIdle to a false and i am executing the scrollController.animateTo if isScrollIdle is true
I'm not sure about this workaround and it needs more investigation but for now, it is working for me
Flucadetena commentedon Sep 19, 2020
Still having the same problem! Please reopen this issue.
gadearaujo commentedon Sep 27, 2020
Still having the same problem! Please reopen this issue.
SF-Simon commentedon Oct 5, 2020
Please reopen this issue, Because I have almost the same code as @amirc901 , this problem still exists.
Flutter 1.22.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision d408d30 (6 days ago) • 2020-09-29 11:49:17 -0700
Engine • revision 5babba6
Tools • Dart 2.10.0
ivan-pavliuk commentedon Oct 14, 2020
Any updates?
albrownwood commentedon Nov 14, 2020
same issue here, any updates?
jja08111 commentedon Dec 14, 2020
animateTousingScrollControllerofNestedScrollViewhas same issuemregnauld commentedon Jan 10, 2021
Same issue here
Gcii commentedon Feb 3, 2021
Resolví el problema gracias a TatsuUkraine.
Efectivamente esto sucede cuando el scroll está en movimiento y se escribe "neverScrollable...".
Para solucionarlo utilicé timers justo antes de activar "neverScrollable...". y usé otro timer justo después de desactivar.
I solved the problem thanks to TatsuUkraine.
Indeed this happens when the scroll is in motion and "neverScrollable ..." is written.
To fix it I used timers just before activating "neverScrollable ...". and I used another timer right after disabling.
vytautas-pranskunas- commentedon Mar 2, 2021
same here
vytautas-pranskunas- commentedon Mar 2, 2021
I needed to disable scrolling if calendar was expanded and needed enable scrolling ater calendar is minimized so I have found another workaround:
basically on swipe up I am moving list by 2 pixels up and adding if check atEgde
also added conditional physics on ListView
github-actions commentedon Aug 5, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.