#(Darwin) strange error on .to_cuboid[]

56 messages · Page 1 of 1 (latest)

bronze shuttle
edgy gustBOT
#

(Darwin) strange error on .to_cuboid[]

edgy gustBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

lunar quiver
#

you've been here long enough to know better than to make threads like this

#

you know what information we need

bronze shuttle
#

have no idea
what do you mean?

lunar quiver
#

How do you replicate this?

#

If i'm on a blank testing server, how could i trigger it?

bronze shuttle
#

It's just a random bug. I have no idea how to replicate it

It's worked fine all day and now just poof. And it's not

The only thing a can tell, samosbor is not a default world

#
  - createworld samosbor generate_structures:false worldtype:FLAT "settings:{"structures":{"structures":{}},"layers":[{"block":"minecraft:air","height":1}],"biome":"minecraft:samosbor_void","flat_world_options":{}}"

lunar quiver
#

It's just a random bug. I have no idea how to replicate it
then it's problem solving time. What does the error message say?

#

(it's literally what you copied above)

bronze shuttle
#

World unloaded?

lunar quiver
#

Is the world unloaded?

#

If so, does loading it fix the issue

bronze shuttle
lunar quiver
#

Does this problem occur with any other worlds or just this one?

bronze shuttle
lunar quiver
#

Just that world? do other tags function fine on it?

#

what if you're standing in it?

bronze shuttle
bronze shuttle
lunar quiver
#

it's impossible to 'address' without having any consistent way to replicate

bronze shuttle
lunar quiver
#

everything has a cause

#

as in, it'll still through the error if you're in the world?

bronze shuttle
#

This happened after I made samosbor world not default
So I think it's partially unloaded somehow
Maybe after several destroy adjusts

bronze shuttle
#

huh?
<location[-1,1,0,samosbor].to_cuboid[<location[-12,5,-11,samosbor]>]>
works fine

#

with
-1,1,0,samosbor -1,0,1,samosbor 0,0,0,samosbor
it's working

but with -1,0,0,samosbor it's not

#

how is this possible?

rocky urchin
#

Well, there's very little we could do without a way to replicate the issue - did you create the world in the same server run you tried using that tag in maybe? and then after a restart it works fine?

bronze shuttle
#

Cuboidtag doesn't even require world to exist

analog roverBOT
thin elbow
#

@analog rover <location[-1,0,0,samosbor].to_cuboid[<location[-12,5,-11,samosbor]>]>

analog roverBOT
thin elbow
bronze shuttle
#

Yeah. How world can be unloaded if it doesn't have to exist

bronze shuttle
rocky urchin
#

Is it specifically with to_cuboid? what if you just construct a location?

bronze shuttle
#

Steps to reproduce:

- createworld test generator:denizen:void
- narrate <location[0,0,0,test].to_cuboid[<location[5,5,5,test]>]>
if no error
- adjust <world[test]> destroy
repeat

https://paste.denizenscript.com/View/124162

bronze shuttle
#

Also
<location[1,1,1,test].to_cuboid[<location[6,6,6,test]>]> works

I can't understand this bug. Is there is something wrong with Static Tag Processor?

rocky urchin
#

@sullen violet these errors seem to happen because the Bukkit Location has an empty reference to a world (but not null), I.e. it had a world instance that was GCed away? might be static tag processing caching a location instance that later loses it's world?

sullen violet
#

there's a whole dedicated system to catch and fix that

#

it looks like spigot actively fucked that system in an update at some point with an unloadedness check that will have to be aggressively bypassed now :(

sullen violet
rocky urchin
#

(#commit-log message)

dense gladeBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@bronze shuttle

bronze shuttle
#

looks like it's stable now 🙀