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

Frequently loses its own scroll controller #390

Open
cyberpwnn opened this issue Aug 4, 2024 · 3 comments
Open

Frequently loses its own scroll controller #390

cyberpwnn opened this issue Aug 4, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@cyberpwnn
Copy link

cyberpwnn commented Aug 4, 2024

The following assertion was thrown during a scheduler callback:
ScrollController not attached to any scroll views.
'package:flutter/src/widgets/scroll_controller.dart':
Failed assertion: line 157 pos 12: '_positions.isNotEmpty'

When the exception was thrown, this was the stack: 
#2      ScrollController.position (package:flutter/src/widgets/scroll_controller.dart:157:12)
#3      RawEditorState._showCaretOnScreen.<anonymous closure> (package:fleather/src/widgets/editor.dart:1607:29)
#4      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1392:15)
#5      SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1326:11)
#6      SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1171:5)
#10     _invoke (dart:ui/hooks.dart:314:10)
#11     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:419:5)
#12     _drawFrame (dart:ui/hooks.dart:283:31)
(elided 5 frames from class _AssertionError and dart:async)
@Amir-P
Copy link
Member

Amir-P commented Aug 4, 2024

Could you please provide a minimal code with reproducible steps? @cyberpwnn

@cyberpwnn
Copy link
Author

You can cause this with the fleather examples, just on windows specifically.

@amantoux
Copy link
Member

amantoux commented Aug 7, 2024

I'll try to reproduce on windows in a week or so. I don't have a windows computer handy

@amantoux amantoux added bug Something isn't working and removed waiting for user feedback labels Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants