Sponge icon indicating copy to clipboard operation
Sponge copied to clipboard

Exceptions thrown in tasks submitted to TaskExecutorService are caught silently

Open avaruus1 opened this issue 2 years ago • 0 comments

Affected Product(s)

SpongeVanilla

Version

1.19.4-10.0.0-RC1304

Operating System

Linux/6.2.8-zen1-1-zen

Java Version

18.0.1/64-bit

Plugins/Mods

-

Describe the bug

Exceptions thrown in tasks submitted to TaskExecutorService seem to be caught silently. Nothing is logged to console.

The following code results in no console output:

final var scheduler = Sponge.server().scheduler().executor(container);

scheduler.submit(() -> {
    throw new RuntimeException("This won't be logged.");
});

Link to logs

No response

avaruus1 avatar Apr 05 '23 19:04 avaruus1