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

When both interfaces have display logic, frequent interface switching reports an error, and the animation is stuck #149

Open
yangmingchuan opened this issue Jan 25, 2022 · 1 comment

Comments

@yangmingchuan
Copy link

The following assertion was thrown during a scheduler callback:
'package:flutter/src/animation/animation_controller.dart': Failed assertion: line 789 pos 12: 'elapsedInSeconds >= 0.0': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=BUG.md

When the exception was thrown, this was the stack:
#2 AnimationController._tick (package:flutter/src/animation/animation_controller.dart:789:12)
#3 Ticker._tick (package:flutter/src/scheduler/ticker.dart:238:12)
#4 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1148:15)
#5 SchedulerBinding.handleBeginFrame. (package:flutter/src/scheduler/binding.dart:1062:11)
#6 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:377:8)
...

This exception was thrown in the context of a scheduler callback. When the scheduler callback was registered (as opposed to when the exception was thrown), this was the stack:
#2 SchedulerBinding.scheduleFrameCallback (package:flutter/src/scheduler/binding.dart:532:49)
#3 Ticker.scheduleTick (package:flutter/src/scheduler/ticker.dart:253:47)
#4 Ticker.start (package:flutter/src/scheduler/ticker.dart:162:7)
#5 AnimationController._startSimulation (package:flutter/src/animation/animation_controller.dart:714:42)
#6 AnimationController.repeat (package:flutter/src/animation/animation_controller.dart:638:12)
...

@github-actions
Copy link

Thanks for taking the time to open an issue. I will have a look and answer as soon as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant