-
Bug
-
Resolution: Unresolved
-
P4
-
11, 17, 21, 25, 26
-
linux_oracle
The test javax/sound/midi/Soundbanks/ExtraCharInSoundbank.java fails when running on Oracle Linux 9. This doesn't always happen, but will soon be the norm in our internal test system. In our current setup, where no XDG variables are setup for the test running user, the test does not find any audio device and just silently skips (which it still does on OL8, regardless of setup). With our new setup, the OS is defining some XDG variables, e.g. XDG_RUNTIME_DIR, for the test running user, and I suspect this is making the JDK find some kind of audio device, but then later fail with the stacktrace below.
My best guess is that the skip logic for the test needs to be improved.
----------System.out:(1/56)----------
Got synth: com.sun.media.sound.SoftSynthesizer@74e2a605
----------System.err:(18/1275)----------
javax.sound.midi.MidiUnavailableException: Can not open line
at java.desktop/com.sun.media.sound.SoftSynthesizer.open(SoftSynthesizer.java:1174)
at java.desktop/com.sun.media.sound.SoftSynthesizer.open(SoftSynthesizer.java:1085)
at ExtraCharInSoundbank.main(ExtraCharInSoundbank.java:86)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1474)
Caused by: javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian not supported.
at java.desktop/com.sun.media.sound.DirectAudioDevice$DirectDL.implOpen(DirectAudioDevice.java:480)
at java.desktop/com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:115)
at java.desktop/com.sun.media.sound.SoftSynthesizer.open(SoftSynthesizer.java:1126)
... 6 more
My best guess is that the skip logic for the test needs to be improved.
----------System.out:(1/56)----------
Got synth: com.sun.media.sound.SoftSynthesizer@74e2a605
----------System.err:(18/1275)----------
javax.sound.midi.MidiUnavailableException: Can not open line
at java.desktop/com.sun.media.sound.SoftSynthesizer.open(SoftSynthesizer.java:1174)
at java.desktop/com.sun.media.sound.SoftSynthesizer.open(SoftSynthesizer.java:1085)
at ExtraCharInSoundbank.main(ExtraCharInSoundbank.java:86)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1474)
Caused by: javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian not supported.
at java.desktop/com.sun.media.sound.DirectAudioDevice$DirectDL.implOpen(DirectAudioDevice.java:480)
at java.desktop/com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:115)
at java.desktop/com.sun.media.sound.SoftSynthesizer.open(SoftSynthesizer.java:1126)
... 6 more