Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exceptions thrown in tasks submitted to TaskExecutorService are caught silently #3836

Open
avaruus1 opened this issue Apr 5, 2023 · 0 comments
Labels
status: needs triage This label is automatically applied to new issues and pull requests to indicate they require triage type: bug Something isn't working version: 1.19 API: 10

Comments

@avaruus1
Copy link
Contributor

avaruus1 commented Apr 5, 2023

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 avaruus1 added status: needs triage This label is automatically applied to new issues and pull requests to indicate they require triage type: bug Something isn't working labels Apr 5, 2023
@Yeregorix Yeregorix added the version: 1.19 API: 10 label May 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This label is automatically applied to new issues and pull requests to indicate they require triage type: bug Something isn't working version: 1.19 API: 10
Projects
None yet
Development

No branches or pull requests

2 participants