question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Interface breaks on glyph in json

See original GitHub issue

Describe the bug

Recaf GUI breaks when attempting to display a text file with glyph in json.

To Reproduce

Steps to reproduce the behavior:

  1. Create jar file.
  2. Add a text file with contents:
[
  {
    "": "🌉"
  }
]

  1. 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)
...

https://pastebin.com/f7DKDMbF

Screenshots

screenshot

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:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nothubcommented, Jun 11, 2021

recaf updated javafx to 15.0.1 after deleting the old dependencies, everything works as expected now, thanks 👍

0reactions
Col-Ecommented, Jun 19, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found