New issue
Advanced search Search tips

Issue 829402 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug
Proj-XR
Proj-XR-VR



Sign in to add a comment

UI crashes when attempting to render an empty text field

Project Member Reported by cjgrant@chromium.org, Apr 5 2018

Issue description

Our Text element requests a texture size of 0 by 0 for empty strings.  This makes the texture allocation and drawing code very unhappy.

Check failed: surface_.get()

This happens when an element uses the kSingleLine (fixed height) configuration.  In this case, the text element sizes its width to fix its text.  In the kSingleLineFixedWidth case, the texture always ends up as the fixed width (even if there's no text).

This could cause a text binding to blow up an element.
 
Labels: -Pri-3 Pri-2
This has been fixed by the work to separate texture rendering from layout.  As of now, empty text will gracefully not generate or render a texture.
Labels: VR-TD
Status: Fixed (was: Assigned)
No tester verification required for this one.
Labels: Test-Complete

Sign in to add a comment