-
Notifications
You must be signed in to change notification settings - Fork 0
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
CI hang on ubuntu-latest #113
Comments
It happened again. Here's the CI log. |
I am seeing this occasionally locally. If I attach the C/C++ debugger to the Java process, I see this as the stack trace for one of the threads:
Basically, it's blocking waiting for a mutex while running HALSimWS's createDevice callback. The device being created in this case is "CANCoder:CANSparkMax[2]". Not sure yet what other thread is holding the mutex... |
This is the stack for the thread that is holding the mutex:
That thread is blocking waiting for the Still pondering how to avoid this... |
@CoolSpy3, how's this for a possible workaround:
|
Opened issue wpilibsuite/allwpilib/issues/6842 to cover the underlying problem. |
|
Per this PR comment, it looks like something closer to the original proposed workaround will be required. |
@CoolSpy3, after thinking about this some more, this issue has ramifications for just using the
Thoughts? |
I think that should work. You may also need to add a signal at the end of each test to disconnect from HALSim, so that the old controller doesn't cause a deadlock (because the reload request isn't sent until after |
Actually, it looks like that behavior is changed in #118, so it should be fine. |
Fixed in #120. |
Opening this issue just in case we see something similar again...
Here's the CI log. It's particularly strange that the test appears to have just permanently frozen with no output in the middle of a test despite the 30 minute timeout on the test. It looks like it was eventually cancelled by github after the CI had been running for 6 hours.
Rerunning the job succeeded in just a few minutes.
The text was updated successfully, but these errors were encountered: