Structure Compass

Structure Compass

13M Downloads

[Bug]: Game Breaks If Structure Search Fails

SansyTDST opened this issue · 13 comments

commented

General Info

  • I am running a modpack
  • I can reproduce this issue consistently in single-player
  • I can reproduce this issue consistently in multi-player
  • I have searched for this issue previously and it was either (1) not previously reported, or (2) previously fixed and I am having the same problem.
  • I am crashing and can provide my crash report(s)
  • I am using the latest version of the mod

Forge version

47.2.0

Minecraft version

1.20.1

Mod version

2.0.5

Java version

Java 8 update 381

Issue Description

Im currently searching for an Ocean Monument, which i have allowed the compass to search for despite not being near one by allowing it in the config, but i kept the search distance at 10000. I try looking for the Monument, it starts search, i wait for a while and check the tooltip, not found. Now, after it cant be found, i cant right click anything. I cant switch to another structure, i cant eat, drink, use items and dropped items arent dropped. it destroys the game to the point that trying to save and quit doesnt work and you have to force close.

Additional Information

No response

commented

A new version will be up shortly with a config option that makes structure locating asynchronous, please enable it and tell me if it fixes the problem

commented

Same this has been an issue forever. This mod handles structures terribly and will cause an entire server to crash like if you search for "minecraft:desert_pyramid" and it doesn't exist. It hard locks the server with no error log nothing just a thread dump after some time.

commented

I've

Can you use the locate command? Because the compass uses the exact same code so if the structure compass locks your game so should the locate command

I've run into this issue as well. /locate also hangs the server for me.

commented

Can you use the locate command? Because the compass uses the exact same code so if the structure compass locks your game so should the locate command

commented
commented

Any logs? (Make sure to remove the access token if you were to upload logs!)

commented
commented

Then I have no clue, it shouldn't be able to lock your world up...

commented
commented

Might be some incompat with that Better Monuments mod if it's asking you to use their command. They probably have custom locating code. Structure Compass calls the locating code the regular locate command uses

commented
commented

I've got some logs, that have this crash, probably in them. I used ATM 9 on 0.2.28
2023-12-10-3.log it at least has an error thrown of it. It's located at the end of the log.

commented

A new version of Structure Compass is being uploaded that adds some extra null checks that I apparently missed