Using a deployer with a whistle on a station crashes the game

memory allocation error?
No description
86 Replies
Steam 'n' Rails Bot
Steam 'n' Rails Bot•8mo ago
Hello @Hiyshhiysh! Someone will help you shortly, please do not ping moderators or other people and just wait for someone to come help.
IThundxr
IThundxr•8mo ago
!!logs
Steam 'n' Rails Bot
Steam 'n' Rails Bot•8mo ago
How to post your logs to get help
When requesting support for a crash or other error, you should provide error logs - this will give us the information we'll need to help you. You can find logs in the logs folder or crash-reports folder of your instance's directory. Latest.log files may contain more information than crash reports. Please make sure to upload these logs to a paste site instead of uploading the file directly. Type !!paste for a list of sites you can use. Do not copy and paste, screenshot, or significantly alter your logs. Where to find your logs: » Windows/Linux » macOS Credit to the Fabric Community discord for these instructions.
Hiyshhiysh
HiyshhiyshOP•8mo ago
oop yep
Hiyshhiysh
HiyshhiyshOP•8mo ago
Steam 'n' Rails Bot
Steam 'n' Rails Bot•8mo ago
Log File
Environment info
Minecraft Version
1.20.1
Mod Loader
Forge (47.2.0)
Errors
48
​
​
Warnings
882
Hiyshhiysh
HiyshhiyshOP•8mo ago
here
ModularPasteBot
ModularPasteBot•8mo ago
Paste created of latest.log, uploaded by _1696_.
IThundxr
IThundxr•8mo ago
Hm I'll look into it later today
Hiyshhiysh
HiyshhiyshOP•8mo ago
May be to do with the fact i'm using interactive oka
IThundxr
IThundxr•8mo ago
Could be that Try without interactive on another world
Hiyshhiysh
HiyshhiyshOP•8mo ago
okay new curseforge instance time ig just launching the game now doesn't crash without interactive now to try it with interactive
IThundxr
IThundxr•8mo ago
This should probably be reported to them then if it occurs with interactive Since they make a quite large changes to the underlying system
Hiyshhiysh
HiyshhiyshOP•8mo ago
okay I assume its the VS server
IThundxr
IThundxr•8mo ago
Yep
Hiyshhiysh
HiyshhiyshOP•8mo ago
I'm sorry but what 💀
No description
Hiyshhiysh
HiyshhiyshOP•8mo ago
top 10 piracy!!! anyway loading the game
IThundxr
IThundxr•8mo ago
Yeah they don't publish to curseforge
Hiyshhiysh
HiyshhiyshOP•8mo ago
ik so some other goofball decided to reupload it which i'm pretty sure violates A LOT of TOS rules why not?
IThundxr
IThundxr•8mo ago
Dunno But my best guess would be because cf is a pain to upload to
Hiyshhiysh
HiyshhiyshOP•8mo ago
yeah ig
IThundxr
IThundxr•8mo ago
Their api is iffy and the site is buggy for devs
Hiyshhiysh
HiyshhiyshOP•8mo ago
ye anyway I tested it interactive isn't the issue guess I'll just start adding more of those mods until I get the crash
Hiyshhiysh
HiyshhiyshOP•8mo ago
found this in the log btw
No description
Hiyshhiysh
HiyshhiyshOP•8mo ago
may be related to the issue but idk
IThundxr
IThundxr•8mo ago
Yeah that doesn't tell much apart from the tag being null which shouldn't happen normally
Hiyshhiysh
HiyshhiyshOP•8mo ago
hmmmm okay what is the StackTag btw? is it the conductor id or
IThundxr
IThundxr•8mo ago
It's the tag for the conductor info or smt iirc I don't remember off the top of my head sadly
Hiyshhiysh
HiyshhiyshOP•8mo ago
okay could be an issue with binding it whilst it is on an interactive train I will try that now interactive works by having the actual blocks tens of millions of blocks away from the train, which could cause all sorts of issues nope not that uh it corrupts the world btw
IThundxr
IThundxr•8mo ago
:thinky: I'll have a look later today then
Hiyshhiysh
HiyshhiyshOP•8mo ago
okay i'll continue trying to find which mod it is hmmmmm tried again and no crash hmmmmmmmmm can't replicate AHA found the issue I accidentally put an unbound whistle in the deployer XD thats why it had no data still though pretty serious
IThundxr
IThundxr•8mo ago
Yeah will take a look
Hiyshhiysh
HiyshhiyshOP•8mo ago
cool
SpottyTheTurtle
SpottyTheTurtle•8mo ago
:kekw: Lol that's my bad I added that feature But I never thought to test with an unbound whistle Hence I never thought to add a null check for it
IThundxr
IThundxr•8mo ago
I'll add one later today lol
SpottyTheTurtle
SpottyTheTurtle•8mo ago
Not if I beat you to it :p
IThundxr
IThundxr•8mo ago
lol
SpottyTheTurtle
SpottyTheTurtle•8mo ago
uh
No description
IThundxr
IThundxr•8mo ago
:thinky:
SpottyTheTurtle
SpottyTheTurtle•8mo ago
yeah it's not crashing in dev maybe it just wasn't on the 1.20.1 branch? this is 1.19 lemme check nope, it's still there
IThundxr
IThundxr•8mo ago
Show the location that the stack trace Blames
SpottyTheTurtle
SpottyTheTurtle•8mo ago
No description
IThundxr
IThundxr•8mo ago
I mean the .string part Where it actually is run in the mixin
SpottyTheTurtle
SpottyTheTurtle•8mo ago
wait is that in the mixin? what mixin is that?
IThundxr
IThundxr•8mo ago
search for autoWhistle( And look for the one in a mixin
SpottyTheTurtle
SpottyTheTurtle•8mo ago
found it MixinStationBlock
IThundxr
IThundxr•8mo ago
Just slap a null check there and it should be good
SpottyTheTurtle
SpottyTheTurtle•8mo ago
...which has errors? wut?
No description
SpottyTheTurtle
SpottyTheTurtle•8mo ago
ye on 1.19, right? and then pull to 1.20?
IThundxr
IThundxr•8mo ago
Yeah
SpottyTheTurtle
SpottyTheTurtle•8mo ago
No description
SpottyTheTurtle
SpottyTheTurtle•8mo ago
that's what's there already
IThundxr
IThundxr•8mo ago
:Confused:
SpottyTheTurtle
SpottyTheTurtle•8mo ago
you and me both
IThundxr
IThundxr•8mo ago
I'll have a look later today
Szedann
Szedann•8mo ago
can you link the line?
SpottyTheTurtle
SpottyTheTurtle•8mo ago
sure, lemme find it on the github
SpottyTheTurtle
SpottyTheTurtle•8mo ago
ayy I replicated the crash
Szedann
Szedann•8mo ago
me too and fixed it?
SpottyTheTurtle
SpottyTheTurtle•8mo ago
No description
SpottyTheTurtle
SpottyTheTurtle•8mo ago
oh?
Szedann
Szedann•8mo ago
seemingly
SpottyTheTurtle
SpottyTheTurtle•8mo ago
what'd you do?
Szedann
Szedann•8mo ago
if (stackTag == null || !stackTag.hasUUID("SelectedTrain") || !stackTag.hasUUID("SelectedConductor")) {
cir.setReturnValue(InteractionResult.FAIL);
return;
}
if (stackTag == null || !stackTag.hasUUID("SelectedTrain") || !stackTag.hasUUID("SelectedConductor")) {
cir.setReturnValue(InteractionResult.FAIL);
return;
}
SpottyTheTurtle
SpottyTheTurtle•8mo ago
huh
Szedann
Szedann•8mo ago
I thought setReturnValue would return on it's own apparently not
SpottyTheTurtle
SpottyTheTurtle•8mo ago
this makes it seem like it already cancels it
No description
Szedann
Szedann•8mo ago
not really sure why it does that gonna commit the fix tho also-
SpottyTheTurtle
SpottyTheTurtle•8mo ago
do we need to add a return for any other cir's that don't return?
Szedann
Szedann•8mo ago
yeah that's what I was gonna ask or no
SpottyTheTurtle
SpottyTheTurtle•8mo ago
@IThundxr you probably know
Szedann
Szedann•8mo ago
I was gonna ask if we should add cir's to returns elsewhere in that mixin
IThundxr
IThundxr•8mo ago
I'm gonna have to look at the Mixin Java docs
SpottyTheTurtle
SpottyTheTurtle•8mo ago
ty
IThundxr
IThundxr•8mo ago
setReturnValue should cancel
SpottyTheTurtle
SpottyTheTurtle•8mo ago
yeah
Szedann
Szedann•8mo ago
yeah but like it doesn't? gonna check rq
IThundxr
IThundxr•8mo ago
Ok setReturnValue cancels the target method Not your method
Szedann
Szedann•8mo ago
ah yeah
IThundxr
IThundxr•8mo ago
Add a return; under it
SpottyTheTurtle
SpottyTheTurtle•8mo ago
cool we should do the same for any other places like that
IThundxr
IThundxr•8mo ago
Yeah I'll take a look at where this is needed Some places shouldn't cancel their own method but some should
SpottyTheTurtle
SpottyTheTurtle•8mo ago
yeah
Slimeist
Slimeist•7mo ago
they set the return for the injected-into method, they don't make your mixin method return. I'm generally careful to make sure my control flow is correct, so hopefully my mixins shouldn't have this issue
SpottyTheTurtle
SpottyTheTurtle•7mo ago
Yeah. I haven't done a lot of work with mixins before writing that code so I just wasn't aware of that detail.
Want results from more Discord servers?
Add your server