Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flutter Animate Assertion Error #148132

Open
opensourcepj opened this issue May 10, 2024 · 3 comments
Open

Flutter Animate Assertion Error #148132

opensourcepj opened this issue May 10, 2024 · 3 comments
Labels
in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds

Comments

@opensourcepj
Copy link

opensourcepj commented May 10, 2024

Steps to reproduce

curve parameter of curve animation set to
Interval((1 / count) * 0, 1.0, curve: Curves.fastOutSlowIn)
where in error count = 0

Expected results

improved error description

Actual results

When the exception was thrown, this was the stack:
#2      Interval.transformInternal
(package:flutter/src/animation/curves.dart:175:12)
#3      ParametricCurve.transform
(package:flutter/src/animation/curves.dart:40:12)
#4      Curve.transform (package:flutter/src/animation/curves.dart:94:18)
#5      CurvedAnimation.value
(package:flutter/src/animation/animations.dart:464:24)
#6      Animatable.evaluate (package:flutter/src/animation/tween.dart:68:66)
#7      _AnimatedEvaluation.value
(package:flutter/src/animation/tween.dart:114:31)
#8      RenderAnimatedOpacityMixin._updateOpacity
(package:flutter/src/rendering/proxy_box.dart:1052:51)
#9      AnimationLocalListenersMixin.notifyListeners
(package:flutter/src/animation/listener_helpers.dart:161:19)
#10     AnimationController._tick
(package:flutter/src/animation/animation_controller.dart:865:5)
#11     Ticker._tick (package:flutter/src/scheduler/ticker.dart:258:12)
#12     SchedulerBinding._invokeFrameCallback
(package:flutter/src/scheduler/binding.dart:1386:15)
#13     SchedulerBinding.handleBeginFrame.<anonymous closure>
(package:flutter/src/scheduler/binding.dart:1233:11)
#14     _LinkedHashMapMixin.forEach
(dart:collection-patch/compact_hash.dart:633:13)
#15     SchedulerBinding.handleBeginFrame
(package:flutter/src/scheduler/binding.dart:1231:17)
#16     SchedulerBinding._handleBeginFrame
(package:flutter/src/scheduler/binding.dart:1148:5)
#17     _invoke1 (dart:ui/hooks.dart:328:13)
#18     PlatformDispatcher._beginFrame (dart:ui/platform_dispatcher.dart:361:5)
#19     _beginFrame (dart:ui/hooks.dart:272:31)

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[Paste your output here]
@darshankawar darshankawar added the in triage Presently being triaged by the triage team label May 13, 2024
@darshankawar
Copy link
Member

@opensourcepj
Please provide complete reproducible code sample (ex: main.dart) along with flutter doctor -v so that we can properly address the issue.

@darshankawar darshankawar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 13, 2024
@opensourcepj
Copy link
Author

Tween(begin: 0.0, end: 1.0).animate(
CurvedAnimation(
parent: animationController!,
curve: Interval((1 / count) * 0, 1.0,
curve: Curves.fastOutSlowIn)))

@darshankawar The error was caused by count being equal to 0 in the above tween.

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 15, 2024
@darshankawar
Copy link
Member

@opensourcepj
I tried to come up with a runnable code sample including your code snippet but not able to replicate the error you reported. Please try to provide us complete code and also provide on which flutter version are you seeing this behavior.

ex: https://github.com/flutter/website/blob/main/examples/animation/animate5/lib/main.dart

@darshankawar darshankawar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds
Projects
None yet
Development

No branches or pull requests

2 participants