-
Notifications
You must be signed in to change notification settings - Fork 529
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
version 3.3.1 doesn't properly terminate on error in SBT #2704
Comments
I'm pretty sure #2600 is the culprit. I'll investigate. Thanks for the report. Upgrading to |
CE3 |
Confirmed this locally. Working on confirming the culprit, though I strongly suspect Vasil's hunch is correct. |
This is absolutely wild, honestly. Taking a thread dump while the VM is firing up all the cores shows exactly… zero active threads. Like, everything is parked. The only real hint is that the WSTP isn't shutdown, because its worker threads are all still alive (just parked). |
I think what we're actually seeing here is a bug in sbt. Working around it is going to be very subtle and annoying, because it's effectively requiring us to detect that we're running within sbt, unforked, and then impose a different termination semantic not only on the application but upon the worker threads and runtime. In the interim, if anyone is hitting this, |
In my case it didn't help. I downgraded to 3.3.0 |
@nikiforo Does 3.3.3 resolve the issue? It actually surprises me that |
Using
Using
On sbt v1.5.5, ce version "3.3.3" issue is resolved for both |
Sbt 1.6.0 is not actually killed, it just lacks the code to trap System.exit (i.e. it's a feature, not a bug). |
build.sbt
Main.scala
Expected behavior: IOApp completes with error, sbt is usable
Actual behavior: IOApp completes with error, sbt starts consuming all available CPU(up to 800% on my PC)
After I change
ce3
version to3.3.0
the problem disappears.The text was updated successfully, but these errors were encountered: