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 during ci-test #2539
Comments
@bobjacobsen From a quick look, the problem may be related to the following: https://github.com/JMRI/JMRI/blob/master/java/src/jmri/jmrit/vsdecoder/VSDSound.java#L35 That line seems to define the base pathname wrongly. |
I think the code in this area is basically broken, and the test is actually point that out. The
That's this code in
Note that this is a constructor: It's supposed to work always. The
which specifies that
which will invoke (because
The + operator is a String operation, so the null becomes "null" and is appended. This just seems wrong. Very wrong. We've got a constructor, which is supposed to always work, which requires a filename in order to operate properly, but there's no way to get that filename into that constructor. |
@bobjacobsen Thanks for your explanations. This helped me to do some tests. I inserted an
Note: Next minor issue is the correct folder for the test file "test.wav". @mattharris was right pointing on this. Last point is the correct setup of the test class, e.g.
Run the test with: Sorry, got very long. |
Reduce verbosity of warnings discussed in #2539
Routinely seeing some exceptions when running "ant ci-test":
There might be a couple things going on here.
resources/sounds/vsd doesn’t exist as a valid directory. Git sometimes acts oddly with empty directories, so maybe something went wrong if/when somebody added it. Haven’t done any research on that, although have noticed that it wasn’t present in SVN either.
jmri.jmrit.vsdecoder.SoundBiteTest mentions a test.wav filename. It doesn’t seem to exist, but it’s not clear that the test intended to open it.
Still, SoundBite does seem to be the cause. A typical traceback looks like:
That particular test line is:
Have to drop this now to go to day job, can pick up again tomorrow, but my current hypothesis is that SoundBit is pressing on to ask for a AudioBuffer with a source name set to null, which some toString operation changes to “null”, and the stuff happens. Those might just be tests without proper setup.
The text was updated successfully, but these errors were encountered: