RayTraceAntiXray icon indicating copy to clipboard operation
RayTraceAntiXray copied to clipboard

Client Crashing Issue

Open Goinging opened this issue 9 months ago • 6 comments

I don't know if this is because of Ray tracing, but this started happening to people on my server around the same time I added it. Basically players games randomly crash and it seems like it could be related to this. I am using the recommended optimized settings. Here are some crash logs from a player who keeps crashing although there are multiple players reporting crashes with different setups.

crash-2025-03-21_23.08.34-client.txt crash-2025-03-21_01.48.51-client.txt crash-2025-03-22_01.27.03-client.txt

The crash reason given is shulker boxes, but those shulkers we confirmed don't and didn't have anything special in them. This player who was crashing has a wall of deepslate diamond ore in his base so I suspect there is some issue with rays hitting shulkers or something like that because the shulkers are between where he would crash sometimes when tping to his base and this diamond ore wall.

Goinging avatar Mar 23 '25 06:03 Goinging

This seems more like an issue of the client (or modpack) that they are using. RayTraceAntiXray just sends some block updates to the client, which shouldn't be a problem at all. The client doesn't even "know" anything about the "rays" because this happens completely on the server side. Of course it could be that the additional block update packets affect the client (modpack) in a way that leads to a client crash due to a bug in the client (modpack).

Note that as long as you don't add shulker boxes to the block list (which you apparently haven't done), RayTraceAntiXray won't send block updates for shulker boxes. So if the issue is related to RayTraceAntiXray it must be caused by the block update packets that are sent for the deepslate diamond ore blocks (which then somehow cause issues when rendering nearby shulker boxes on the client). That would be weird.

For further investigation I need better reproduction steps. Does this only happen on modded clients or can this be reproduced on the vanilla client? Which mods are necessary to reproduce this? What are the server, client and mod versions? Does this only happen when teleporting the player? Which block arrangement relative to the teleport location is necessary to reproduce the issue (screenshot)? Etc. All this should be tested on a different test setup (not on your production server) in order to find minimal reproduction steps.

stonar96 avatar Mar 23 '25 14:03 stonar96

Hmm I am trying to see if it is this plugin or not or an issue with fabric or paper. I got another crash report from the same guy from before where he wasn't even looking in the direction of the shulker box when he crashed and this was at spawn where there are no ore decorations at all. Its still possible it was hiding an ore that was slightly underground, but it seems less likely at this point. I am trying hard to get a crash report from the other players reporting crashes, I think they just can't find the files even after instructing them. I will make sure to report back when I have more info and can start ruling out suspects.

crash-2025-03-24_17.34.51-client.txt

Goinging avatar Mar 25 '25 08:03 Goinging

Thanks for your investigation. I also did some tests with shulker boxes (with and without Sodium using Fabric) and I wasn't able to reproduce a crash so far.

Even though I think that this is a client (modpack) issue, I'd still like to find out what causes the reported crashes because maybe they only occur in combination with RayTraceAntiXray (block updates) and maybe there's a way for me to prevent this or otherwise we can report it to the client developers.

I think the most important task now is to answer the question whether or not this also happens on an unmodded vanilla client. So it would be great if you could get crash reports from other players as well.

stonar96 avatar Mar 25 '25 19:03 stonar96

Exactly what I was thinking. Its odd too because I am not able to reproduce the crash myself either and have a lot of the same mods. It could be some chunk culling mod we have on or something but idk. Four people now have crashed to my knowledge because of this although I can't verify due to them not sending me their crash reports. I am very interested to see what mods they share in common or what they use for mods to see if they share anything in common.

Same guy as before keeps sending me crash reports and he literally crashed in point blank range from a shulker box that he was directly looking at.

Whats also interesting is that person also crashed yesterday after increasing his render distance at spawn and then looking around a bit. It definitely doesn't seem to be a chunk loading issue, but instead a block rendering issue. Maybe it is dependent on the performance of the client and that's why I can't replicate it myself? I am not sure.

Goinging avatar Mar 25 '25 19:03 Goinging

You are saying that you are using the optimized recommended settings. For clarification: Do you have added shulker boxes to the ray-trace-blocks? Also, do you have added shulker boxes to the built-in Paper Anti-Xray config? (It's not like it would be a problem but I'm trying to reproduce it.)

stonar96 avatar Mar 26 '25 00:03 stonar96

Nope, shulker boxes are not in neither. The only blocks in either list are ores

Goinging avatar Mar 26 '25 00:03 Goinging

Yeah I really don't know what it was but people on my server stopped caring or it stopped happening to them or something else. I am not sure I am just as confused as you are. But the guy who was giving me logs gave up and nobody else ever gave me their logs.

Goinging avatar May 21 '25 03:05 Goinging

Thanks for the update and for your investigations. Should you get further information on this in the future, please don't hesitate to post it here.

stonar96 avatar May 21 '25 06:05 stonar96