Skip to content

[Bug]: Android app crashes when a thread contains an SVG whose text uses font-variation-settings #39270

Closed

Description

@fkoeppling

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/mobile

Steps to reproduce

  1. Have the agent embed an SVG in a reply, e.g. mockup.
    The SVG has text with font-variation-settings, e.g.
    Hello
  2. Open that thread in the Android app.

Expected behavior

The thread opens. An image that can't be rendered shows a placeholder instead of taking the app down.

Actual behavior

The app crashes a few seconds after the SVG asset is loaded, every time the thread is opened (4 of 4). The thread can no longer be opened on the phone. Threads without that image open fine.

Cause, as far as I can tell: react-native-svg (TSpanView.java) builds "'wght' " + weight + font.fontVariationSettings without a comma, giving 'wght' 400'wdth' 114, which Android rejects. The exception is thrown during draw on the main thread.

Impact

Major degradation or frequent failure

Version or commit

Android app 2.3.0 (784), server 0.1.10

Environment

Pixel 9 Pro, Android 17 (beta build DP11.261030.003). Server on Ubuntu 24.04, provider Claude.

Logs or stack traces

java.lang.IllegalArgumentException: Failed to parse float string: For input string: " 400'wdth' 114"
  at android.graphics.fonts.FontVariationAxis.fromFontVariationSettingsForList(FontVariationAxis.java:181)
  at android.graphics.fonts.FontVariationAxis.fromFontVariationSettings(FontVariationAxis.java:144)
  at android.graphics.fonts.Font$Builder.setFontVariationSettings(Font.java:441)
  at android.graphics.Typeface$Builder.setFontVariationSettings(Typeface.java:770)
  at com.horcrux.svg.y0.getPath
  at com.horcrux.svg.RenderableView.render
  at com.horcrux.svg.SvgView.onDraw

Screenshots, recordings, or supporting files

t3code-android-crash.txt

Workaround

Tell the agent to embed PNGs instead of SVGs.

Activity

  1. added
    bug
    needs-triage
    on Nov 19, 2026
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

    bugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions