Skip to content

TextField is looking for a ticker and can't find it... #9158

Closed

Description

@apwilson
[00034.730] 02493.02530> The following NoSuchMethodError was thrown while handling a gesture:
[00034.730] 02493.02530> The method 'createTicker' was called on null.
[00034.730] 02493.02530> Receiver: null
[00034.730] 02493.02530> Tried calling: createTicker(Closure: (Duration) => void from Function '_tick@58066280':.)
[00034.730] 02493.02530> 
[00034.730] 02493.02530> When the exception was thrown, this was the stack:
[00034.734] 02493.02530> #0      Object._noSuchMethod (dart:core-patch/object_patch.dart:43)
[00034.734] 02493.02530> #1      Object.noSuchMethod (dart:core-patch/object_patch.dart:47)
[00034.734] 02493.02530> #2      AnimationController.AnimationController (package:flutter/src/animation/animation_controller.dart:93)
[00034.734] 02493.02530> #3      TextSelectionOverlay.TextSelectionOverlay (package:flutter/src/widgets/text_selection.dart:103)
[00034.734] 02493.02530> #4      EditableTextState._handleSelectionChanged (package:flutter/src/widgets/editable_text.dart:334)
[00034.735] 02493.02530> #5      RenderEditable._handleTap (package:flutter/src/rendering/editable.dart:329)
[00034.735] 02493.02530> #6      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:65)
[00034.735] 02493.02530> #7      TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:148)
[00034.735] 02493.02530> #8      TapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:119)
[00034.735] 02493.02530> #9      GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:119)
[00034.735] 02493.02530> #10     BindingBase&SchedulerBinding&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:126)
[00034.735] 02493.02530> #11     BindingBase&SchedulerBinding&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:100)
[00034.735] 02493.02530> #12     BindingBase&SchedulerBinding&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:81)
[00034.735] 02493.02530> #13     BindingBase&SchedulerBinding&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:40)
[00034.735] 02493.02530> #14     BindingBase&SchedulerBinding&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:33)
[00034.735] 02493.02530> #15     _dispatchPointerDataPacket (~/fuchsia/flutter/lib/ui/hooks.dart:73)
[00034.735] 02493.02530> 

Activity

  1. apwilson commented on Apr 3, 2017

    @apwilson
    ContributorAuthor

    Hmm, looks like a TextField needs to be a child of an Overlay?

    At a minimum this should be mentioned in the TextField docs.

  2. abarth commented on Apr 3, 2017

    @abarth
    Contributor

    Yes, it needs an overlay.

  3. Hixie commented on Apr 4, 2017

    @Hixie
    Contributor

    We should also have it assert that wants an Overlay if that's really the cause of that exception. The current failure mode is absurd and horrible.

  4. apwilson commented on Apr 4, 2017

    @apwilson
    ContributorAuthor

    It does assert. I was running in release mode though so I didn't hit the assert.

  5. eseidelGoogle commented on Apr 12, 2017

    @eseidelGoogle
    Contributor

    Sounds like we're keeping this to provide a better failure mode in the Framework?

  6. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    on Apr 12, 2017
  7. added this to the milestone on Apr 12, 2017
  8. Hixie commented on Apr 12, 2017

    @Hixie
    Contributor

    If you were running in release mode I don't think there's much we can do to help you.

  9. added 2 commits that reference this issue on Jun 1, 2019
  10. github-actions commented on Aug 15, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  11. locked as resolved and limited conversation to collaborators on Aug 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    d: api docsIssues with https://api.flutter.dev/frameworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions