Legacy-Minecraft: [bug] toasts crash game instantly on latest version

im trying to develop an addon for l4j and keep running into a problem with toast rendering. by problem i mean the game crashes and floods with at wily.legacy.client.LegacyTip.getHeight(LegacyTip.java:94). crash-2024-05-16_23.00.08-client.txt

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 20 (8 by maintainers)

Most upvoted comments

(Been trying to debug this issue with @RedRain0o0 in a discord voice chat) after testing several things, we have determined this is a very annoying and niche issue.

  • The game DID NOT crash when they ran L4J and their built mod .jar together in a PrismLauncher instance.
  • The game DID NOT crash when they ran L4J under offline mode, again in PrismLauncher.
  • The game DID NOT crash when they ran L4J via IDEA as a Java project.
  • The game DID crash when attempting to run L4J within the other IDEA project, both via /run/mods/ (1.6.3c) and as a dependency via CurseMaven (1.6.2a, as 1.6.3c would crash due to a controller mapping error)

The crash is on the Render Thread, caused by some form of infinite loop within the LegacyTip class’ width() and height() methods. The issue may be fabric specific (we did not test other launchers, as they are only developing the mod for fabric currently) Because it is an infinite loop, the stack trace is unhelpful in tracking the issue, and because the issue does not exist when the project itself is ran, breakpoints (seemingly) cannot be used.

If you have any ideas as to what the problem may be, or how we could test further, we would be open to debugging and trying to figure out this issue together. It is rather elusive.