HaxeFlixel / HaxeFlixel/flixel-ui

FlxInputText on JS crashes with when trying to make text go multiline

Open
#231 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Haxe
Stars
201
Forks
75
PR merge metrics
No merged PRs in 30d

Description

  • haxe version - 4.2.4
  • flixel version - 4.11.0
  • flixel-ui version - 2.4.0

the title explains it. code snippet to reproduce the crash quickly:

var input = new FlxInputText(100, 100, 300, 15);
input.wordWrap = true;
add(input);
input.text += "\n";

I'm using Firefox and it crashes with shader is null:
image

you can also just add lots of letters/words instead of the "\n"

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the provided FlxInputText reproduction and inspect its JavaScript rendering path, especially the behavior triggered by a newline or longer text in Firefox. Done means multiline and expanded input text no longer produce the reported “shader is null” crash.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.