Closed 1nd1r4 closed 2 years ago
It seems that this is the same issue I reported some time ago: https://github.com/ModdingForBlockheads/CookingForBlockheads/issues/543
@50ap5ud5 I think I found the problem:
https://gitlab.com/Spectre0987/TardisMod-1-14/-/blob/1.16/src/main/java/net/tardis/mod/events/CommonEvents.java#L674 and https://gitlab.com/Spectre0987/TardisMod-1-14/-/blob/1.16/src/main/java/net/tardis/mod/events/CommonEvents.java#L682
In your reload listeners you call thenRunAsync
. This causes all reload listeners after yours to run on the CompletableFuture.ASYNC_POOL
which seems to be causing classloading issues that eventually result in the above crash.
Using thenRun
instead avoids the problem. If you actually do need them to be async you should pass your own Executor to make sure it doesn't use the default one, since the default one seems to have a different parent class loader than mod/mc classes.
(https://gitlab.com/Spectre0987/TardisMod-1-14/-/merge_requests/67)
Closing since this is just waiting on a Tardis update
Versions
Describe the bug Server crashes on startup. See Log.
To Reproduce Steps to reproduce the behavior:
Expected behavior No crash.
Log latest.log