Skip to content

Engine crashes when placing cursor in the middle of tab characters #31154

@justinmc

Description

@justinmc

The app is crashing when tapping in the middle of some tab characters in a TextField.

Related:
flutter/engine#8591
#30173

Steps to Reproduce

  1. In any TextField, enter some text, a few tab characters, and then some more text.
  2. Tap in the middle of the tab characters to attempt to place the cursor there.
  3. Crash!

Note that most software keyboards don't have a tab key. You'll need to use a physical keyboard (with a simulator or real device), or install a keyboard with tab, like the Keyboard for Excel.

Logs

Unfortunately I don't get a full stack trace, just this:

[VERBOSE-3:opacity_layer.cc(16)] Check failed: layers().size() > 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: text inputEntering text in a text field or keyboard related problemsa: typographyText rendering, possibly libtxtc: crashStack traces logged to the consoledependency: skiaSkia team may need to help usengineflutter/engine related. See also e: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions