Open bakua opened 3 years ago
Please attach the output of flutter doctor and a sample main.dart that reproduces the issue.
Hello,
I don't know how to reproduce it myslef. I got this error reported by Crashlytics.
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.5, on macOS 11.2.3 20D91 darwin-arm, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] Connected device (1 available)
• No issues found!
I am having the same error. It is very difficult to reproduce, just sliding up and down very quickly and erratically until it crashes.
From Crashlitycs I get the same stacktrace.
But when reproduced, the assertion throws the error before reaching the null check operator.
Exception: 'package:flutter/src/animation/animation_controller.dart': Failed assertion: line 771 pos 7: '_ticker != null': AnimationController.stop() called after AnimationController.dispose()
AnimationController methods should not be used after calling dispose.
#0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
#1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2 AnimationController.stop (package:flutter/src/animation/animation_controller.dart:771:7)
#3 AnimationController.value= (package:flutter/src/animation/animation_controller.dart:364:5)
#4 _SlidingUpPanelState._onGestureSlide (package:sliding_up_panel/src/panel.dart:473:13)
#5 _SlidingUpPanelState._gestureHandler.<anonymous closure> (package:sliding_up_panel/src/panel.dart:461:9)
#6 RenderPointerListener.handleEvent (package:flutter/src/rendering/proxy_box.dart:2831:29)
#7 GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:419:22)
#8 RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:287:11)
#9 GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:374:7)
#10 GestureBinding.handlePointerEvent (package:flutter/src/ge<…>
If the Panel gets disposed while the animation is played it crashes. _onGestureSlide
tries to update it after it was disposed.
I created this PR: https://github.com/akshathjain/sliding_up_panel/pull/278
Hello, I got this NPE.