FancyMenu [Fabric] [MOVED TO NEW PROJECT]

FancyMenu [Fabric] [MOVED TO NEW PROJECT]

17M Downloads

Having a text embed and being blacklisted from the domain permanently crashes the game

Sotumney opened this issue ยท 2 comments

commented

Describe the bug
After having done a bunch of bugfixing and testing on my personal modpack, making it ready to ship, I was suddenly unable to load the game. The game loaded and parsed as in "Loaded game in xx seconds".

Turns out, this stemmed from me trying to embed a PasteBin text file on the main menu, which got reparsed EVERY TIME I loaded the main menu. This embed only contained the text "Up-to-Date!".

It also turns out that PasteBin can rate limit IPs.
The bug in question is that instead of returning an error, it crashes the game.

This is a REALLY funny bug. I internally cried for like 2 hours before I found out that I was just dumb

To Reproduce
Steps to reproduce the behavior (e.g.):

  1. Add a text embed from an online source (in my case Pastebin)
  2. Reload the menu in question way too many times
  3. Restart the game
  4. Insta-crash ensues (or when you open the menu that has the embed)

Expected behavior
Usually, FM has a failsafe where it just says ERROR and that the text file could not be parsed. I'm not even sure if this is a fixable thing, but I still think it was a funny bug.

Basic Information:

  • Windows 11
  • FM 3.3.2
  • Fabric 0.16.9 (API 0.115.1)
  • MC 1.21.1
  • Replicable with only FancyMenu installed!
commented

How exactly do you "embed" the text? Do you set it as web source for a Text element or do you get the text via placeholder or something?

And do you do anything in a non-default way, because you said yourself that normally FancyMenu would handle errors as simple "ERROR" text where the web text would normally be, so did you do anything in a "weird" or hacky way to make it crash like that?

Also please send your latest.log file after the game crashed.