ImmediatelyFast icon indicating copy to clipboard operation
ImmediatelyFast copied to clipboard

ImmediatelyFast causes AMDGPU use-after-free

Open AutumnalModding opened this issue 1 year ago • 9 comments
trafficstars

dmesg output

Does not happen without IF installed. Game does not crash.

AutumnalModding avatar Mar 17 '24 04:03 AutumnalModding

Please provide more details like other mods installed. A game log. PC Sepcs. Used OS

RaphiMC avatar Mar 17 '24 11:03 RaphiMC

Other mods installed

Modpack is Additive

Game log

dmesg stacktrace attached.

PC specs, used OS neofetch output

@RaphiMC is this sufficient?

AutumnalModding avatar Mar 17 '24 13:03 AutumnalModding

Can you try with only ImmediatelyFast installed. Also when does the use after free happen?

RaphiMC avatar Mar 17 '24 13:03 RaphiMC

Can you try with only ImmediatelyFast installed. Also when does the use after free happen?

Unfortunately it doesn't happen at a specific point, it's entirely random. I have four thousand three hundred stacktraces from a SINGLE FUCKIN' RUN if you'd like, though! But given it's random, I have reason to believe it happens with IF. For a friend of mine (5700XT) it happened on the loading screen. Kernel version string (uname -a) is Linux emdex 6.6.21-1-lts #1 SMP PREEMPT_DYNAMIC Wed, 06 Mar 2024 16:59:55 +0000 x86_64 GNU/Linux if you'd like to test, I have reason to believe it happens on all modern AMD GPUs - perhaps even older ones, assuming they use amdgpu and not radeon.

AutumnalModding avatar Mar 18 '24 07:03 AutumnalModding

I can't test the issue since I don't have any AMD GPU nor do I run linunx on my PC. Can you please test it with only IF installed (and no other mods), just to make sure its not another mod in combination with IF causing it

RaphiMC avatar Mar 18 '24 15:03 RaphiMC

@RaphiMC Sorry for the delay. I have reliably reproduced it, and it looks like a chunkloading race condition. In addition to that I have an area in which I can reliably trigger it.

And yes - it happens only with IF.

AutumnalModding avatar May 02 '24 02:05 AutumnalModding

@AutumnalModding can you send the config for ImmediatelyFast you have? I encountered a similar issue caused by fast_buffer_upload_size_mb being set to 64

DBTDerpbox avatar May 13 '24 22:05 DBTDerpbox

@DBTDerpbox "fast_buffer_upload_size_mb": 256,

AutumnalModding avatar May 14 '24 00:05 AutumnalModding

I had to change mine to 512 and it didn't crash anymore for me :)

tamolny avatar May 14 '24 03:05 tamolny