You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Android app crashes when a thread contains an SVG whose text uses font-variation-settings #39270
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
Have the agent embed an SVG in a reply, e.g. .
The SVG has text with font-variation-settings, e.g.
Hello
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
Activity