#Crash when using `scheduleInTicks()`

1 messages · Page 1 of 1 (latest)

misty depot
vital axleBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

spring ravenBOT
#

Paste version of crash-2023-01-24_11.33.29-client.txt from @misty depot

rose compass
#

that crash log says something about rendering a block model and accessing random from a wrong thread hmmm

waxen light
#

we've been dealing with LegacyRandomSource crashes a lot recently and it has to do with where Random is gotten from

misty depot
#

I've got a script that, when I drop an item on the ground, it deletes the item and runs a bunch of stuff. It's almost entirely runCommandSilent() stuff though

#

I'm not calling any random source myself, but I noticed this started happening after I started calling particle effects

waxen light
#

yeah, that one seems to be a thermal particle

misty depot
#

This one in particular, when the item is dropped, it does some particle effects around the player, then teleports them

#

ah, ok, yes it is actually crashing while running the thermal particles

waxen light
#

what do you pass into the shockwave?

misty depot
#
// spiral shockwave
command = `/execute in ${ritual_dimension} run particle cofh_core:shockwave 3 3 3 0.5 ${coord.x} ${coord.y - 1} ${coord.z} 0.2 0.2 0.2 0.1 10`;
callback.server.runCommandSilent(command);
#

where all the coords are basically just being generated by some code drawing a spiral

#

this runs inside a for loop on an array of those coordinates