Anuken / Mindustry

The automation tower defense RTS
https://mindustrygame.github.io
GNU General Public License v3.0
22.18k stars 2.93k forks source link

game crashed after destroying enemy core (likely rendering related) #9353

Closed antonilol closed 9 months ago

antonilol commented 9 months ago

Platforms

Linux

Build

146

Issue

after destroying the enemy core on salt flats the game crashed

got this stack trace from the console (also in the crash log)

[E] java.lang.NullPointerException: Cannot read field "parent" because the return value of "arc.scene.ui.layout.WidgetGroup.find(String)" is null
    at scheme.ui.HudFragment.lambda$updateBlocks$84(HudFragment.java:303)
    at arc.util.TaskQueue.run(TaskQueue.java:17)
    at arc.backend.sdl.SdlApplication.loop(SdlApplication.java:194)
    at arc.backend.sdl.SdlApplication.<init>(SdlApplication.java:54)
    at mindustry.desktop.DesktopLauncher.main(DesktopLauncher.java:39)

Steps to reproduce

destroying the enemy core on salt flats

Mods used

AutoDrill and SchemeSize, both from mod browser

Save file

mindustry_game_data.zip as said before, campaign salt flats

(Crash) logs

crash_logs.txt

Submission

JojoFR1 commented 9 months ago

The crash come from the mod Scheme Size. Disable it or report the issue to them. Anuke can't do anything

antonilol commented 9 months ago

The crash come from the mod Scheme Size. Disable it or report the issue to them.

ok thx, reported it there

Anuke can't do anything

depends, this is probably caused by the mod, but there could be some missing validation (null checks) in mindustry

Anuken commented 9 months ago

depends, this is probably caused by the mod, but there could be some missing validation (null checks) in mindustry

No. The line that crashes is from scheme-size.