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

Wait for tens of seconds for the code to run abnormally. help! #65

Open
592116366 opened this issue Dec 20, 2022 · 0 comments
Open

Wait for tens of seconds for the code to run abnormally. help! #65

592116366 opened this issue Dec 20, 2022 · 0 comments

Comments

@592116366
Copy link

Code running on a new project can cause problems.The code screenshot is as follows:
image

image

throw:

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=2_bug.md

When the exception was thrown, this was the stack
#2 AnimationController._tick
package:flutter/…/animation/animation_controller.dart:829
#3 Ticker._tick
package:flutter/…/scheduler/ticker.dart:249
#4 SchedulerBinding._invokeFrameCallback
package:flutter/…/scheduler/binding.dart:1175
#5 SchedulerBinding.handleBeginFrame.
package:flutter/…/scheduler/binding.dart:1079
#6 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:617:13)
#7 SchedulerBinding.handleBeginFrame
package:flutter/…/scheduler/binding.dart:1077
#8 SchedulerBinding._handleBeginFrame
package:flutter/…/scheduler/binding.dart:994
#9 _invoke1 (dart:ui/hooks.dart:167:13)
#10 PlatformDispatcher._beginFrame (dart:ui/platform_dispatcher.dart:296:5)
#11 _beginFrame (dart:ui/hooks.dart:104:31)
(elided 2 frames from class _AssertionError)

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/…/scheduler/binding.dart:538
#3 Ticker.scheduleTick
package:flutter/…/scheduler/ticker.dart:265
#4 Ticker.start
package:flutter/…/scheduler/ticker.dart:171
#5 AnimationController._startSimulation
package:flutter/…/animation/animation_controller.dart:752
#6 AnimationController._animateToInternal
package:flutter/…/animation/animation_controller.dart:619
#7 AnimationController.animateTo
package:flutter/…/animation/animation_controller.dart:538
#8 new DrivenScrollActivity
package:flutter/…/widgets/scroll_activity.dart:632
#9 ScrollPositionWithSingleContext.animateTo
package:flutter/…/widgets/scroll_position_with_single_context.dart:180
#10 PageController.animateToPage
package:flutter/…/widgets/page_view.dart:202
#11 _TransformerPageViewState.onChangeNotifier
package:card_swiper/…/transformer_page_view/transformer_page_view.dart:580
#12 ChangeNotifier.notifyListeners
package:flutter/…/foundation/change_notifier.dart:351
#13 IndexController.next
package:card_swiper/…/transformer_page_view/index_controller.dart:110
#14 _SwiperTimerMixin._onTimer
package:card_swiper/src/swiper.dart:391
(elided 5 frames from class _FrameCallbackEntry, class _RawReceivePortImpl, and class _Timer)
════════════════════════════════════════════════════════════════════════════════

flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.3.8, on Microsoft Windows [版本 10.0.22000.1219], locale zh-CN)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio ���ɹ��� 2019 16.11.17)
[√] Android Studio (version 2021.3)
[√] Connected device (4 available)
[√] HTTP Host Availability

• No issues found!

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