Interface breaks on glyph in json
See original GitHub issueDescribe the bug
Recaf GUI breaks when attempting to display a text file with glyph in json.
To Reproduce
Steps to reproduce the behavior:
- Create jar file.
- Add a text file with contents:
[
{
"": "🌉"
}
]
- Load in recaf and open text file.
Exception
If applicable, add the exception/stacktrace.
00:44:14.798 [ForkJoinPool-1-worker-5] DEBUG: Generated 0 phantom classes in 49 ms
java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 32
at com.sun.prism.impl.GlyphCache.getCachedGlyph(GlyphCache.java:332)
at com.sun.prism.impl.GlyphCache.render(GlyphCache.java:148)
at com.sun.prism.impl.ps.BaseShaderGraphics.drawString(BaseShaderGraphics.java:2101)
at com.sun.javafx.sg.prism.NGText.renderText(NGText.java:312)
...
Screenshots
Tested on OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (build 11.0.11+9) OpenJDK Runtime Environment AdoptOpenJDK-16.0.1+9 (build 16.0.1+9) Ubuntu 20.04
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Recaf Interface breaks on glyph in json Java - GitAnswer
Recaf GUI breaks when attempting to display a text file with glyph in json. To Reproduce. Steps to reproduce the behavior: 1. Create...
Read more >Error loading glyphs and tiles in offline map using Mapbox
I am loading map using json file with additional sprite and glyph files to display labels on maps. Map is successfully loading in...
Read more >Settings | JetBrains Fleet Documentation
Fleet provides fine-grained control over its functionality and appearance. The corresponding settings are managed through a set of .json ...
Read more >YAML Ain't Markup Language (YAML™) revision 1.2.2
YAML version 1.1 did support the above non-ASCII line break characters; however, JSON does not. Hence, to ensure JSON compatibility, YAML treats ...
Read more >Styling visual attributes — Bokeh 2.4.3 Documentation
An interface to stroke the outlines of text has not yet been exposed. Visible property#. Glyph renderers, axes, grids, and annotations all have...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
recaf updated javafx to 15.0.1 after deleting the old dependencies, everything works as expected now, thanks 👍
I’ve removed the unnecessary version check, so in the next release it will pull only newer JFX versions. But existing cached jars will need to be manually cleared by the user.