Bug 1914649 - REW: no pulseaudio output
Summary: REW: no pulseaudio output
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: java-1.8.0-openjdk
Version: 33
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mario Torre
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-10 14:18 UTC by Harald Reindl
Modified: 2021-05-25 17:15 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-25 17:04:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Harald Reindl 2021-01-10 14:18:50 UTC
https://www.roomeqwizard.com/ basicly works *but* i need to stop pulsed to get my USB-DAC as ouput option and just use "Default Device" has no output at all

every other application (not written in java) works without any issues

i expect software even when written in Java to use the same sound-output as the rest of the system in 2021

java-1.8.0-openjdk-1.8.0.275.b01-6.fc32.x86_64
java-1.8.0-openjdk-headless-1.8.0.275.b01-6.fc32.x86_64

Google "fedora libpulse-java.so" shows that some audio stuff existed in the past which seems no longer to be the case

Comment 1 Harald Reindl 2021-01-10 14:23:29 UTC
you can find that stuff left and right everywhere:

javax.sound.sampled.Clip=org.classpath.icedtea.pulseaudio.PulseAudioMixerProvider
javax.sound.sampled.Port=org.classpath.icedtea.pulseaudio.PulseAudioMixerProvider
javax.sound.sampled.SourceDataLine=org.classpath.icedtea.pulseaudio.PulseAudioMixerProvider
javax.sound.sampled.TargetDataLine=org.classpath.icedtea.pulseaudio.PulseAudioMixerProvider

----------------------------------

but how is this supposed to work when there is no single pulse related java file on teh whole system and why don't something basic like sound work out-of-the-box and why is a config below /usr/lib/jvm/ to begin with - such stuff belongs to /etc


[harry@srv-rhsoft:/downloads/JavaSoundDemo]$ cat /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.275.b01-6.fc32.x86_64/jre/lib/sound.properties
############################################################
#               Sound Configuration File
############################################################
#
# This properties file is used to specify default service
# providers for javax.sound.midi.MidiSystem and
# javax.sound.sampled.AudioSystem.
#
# The following keys are recognized by MidiSystem methods:
#
# javax.sound.midi.Receiver
# javax.sound.midi.Sequencer
# javax.sound.midi.Synthesizer
# javax.sound.midi.Transmitter
#
# The following keys are recognized by AudioSystem methods:
#
# javax.sound.sampled.Clip
# javax.sound.sampled.Port
# javax.sound.sampled.SourceDataLine
# javax.sound.sampled.TargetDataLine
#
# The values specify the full class name of the service
# provider, or the device name.
#
# See the class descriptions for details.
#
# Example 1:
# Use MyDeviceProvider as default for SourceDataLines:
# javax.sound.sampled.SourceDataLine=com.xyz.MyDeviceProvider
#
# Example 2:
# Specify the default Synthesizer by its name "InternalSynth".
# javax.sound.midi.Synthesizer=#InternalSynth
#
# Example 3:
# Specify the default Receiver by provider and name:
# javax.sound.midi.Receiver=com.sun.media.sound.MidiProvider#SunMIDI1
#
[harry@srv-rhsoft:/downloads/JavaSoundDemo]$

Comment 2 Omair Majid 2021-01-11 21:06:38 UTC
Hi!

Thanks for reporting this bug! Every bug you report helps us find deficiencies and improve the software.

(In reply to Harald Reindl from comment #0)
> https://www.roomeqwizard.com/ basicly works

Just so that we are all working with the same information, can you share how you install and run this? Please share as much detail as you can. This will help us make sure we are looking at the same problem.

> *but* i need to stop pulsed to
> get my USB-DAC as ouput option and just use "Default Device" has no output
> at all

Does it work with some other output option? For example, a built-in sound card? Do other applications, such as a browser, behave differently? If so, can you share what the exact behaviour is? 

> i expect software even when written in Java to use the same sound-output as
> the rest of the system in 2021

That's a very reasonable expectation: I too am surprised that it doesn't work.

> Google "fedora libpulse-java.so" shows that some audio stuff existed in the
> past which seems no longer to be the case
>
> you can find that stuff left and right everywhere:
> 
> javax.sound.sampled.Clip=org.classpath.icedtea.pulseaudio.PulseAudioMixerProvider
> javax.sound.sampled.Port=org.classpath.icedtea.pulseaudio.PulseAudioMixerProvider
> javax.sound.sampled.SourceDataLine=org.classpath.icedtea.pulseaudio.PulseAudioMixerProvider
> javax.sound.sampled.TargetDataLine=org.classpath.icedtea.pulseaudio.PulseAudioMixerProvider
> 
> ----------------------------------
> 
> but how is this supposed to work when there is no single pulse related java
> file on teh whole system

I am one of the initial authors of org.classpath.icedtea.pulseaudio code. The reason those files don't exist any more is because we intentionally removed them. We needed libpulse-java (and the configuration files) about a decade ago when the Java audio stack couldn't use PulseAudio out of the box. We later fixed that so Java is using the default audio system (currently PulseAudio). And we we did it by using the same code paths as all other audio applications instead of a special code path for Java+PulseAudio (which is what libpulse-java was).

Unfortunately, it looks like Google searches are giving you out of date information which wont help you solve you problem.

Comment 3 Harald Reindl 2021-01-11 21:18:24 UTC
> can you share how you install and run this

https://www.roomeqwizard.com/ 
just download, run the installer script and after that "roomeqwizard" from the install directory
preferences -> check levels -> you see it opticvally paly something but no output on the speakers

> Does it work with some other output option

surely, with every soundcard directly as long as it's not used and so locked by pulseaudio
but i expect it to work with "Output Device" at "Default Device" and just use pulsed as everything else

> Do other applications, such as a browser, behave differently?

surely, they just use pulseuadio, in my case the systemwide instance everything uses from "music plaser daemon" as service with or without a login session as well as every other application producing sound output no matter which session or user - and yes i know about "systemdwide is bad" but it isn't, i expect my music to start where it stopped after reboot no matter what and not collide with other applicantions, users and sessions

[root@srv-rhsoft:~]$ cat /etc/pulse/daemon.conf
## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5)

system-instance=true
disable-shm=true
disallow-exit=true
disallow-module-loading=true

avoid-resampling=true
exit-idle-time=0
high-priority=true
lock-memory=false
no-cpu-limit=false
realtime-scheduling=true
resample-method=soxr-vhq
use-pid-file=false
log-target=syslog
log-level=0


[root@srv-rhsoft:~]$ systemctl status pulsed.service
● pulsed.service - Pulseaudio Daemon
     Loaded: loaded (/usr/lib/systemd/system/pulsed.service; enabled; vendor preset: disabled)
    Drop-In: /etc/systemd/system/pulsed.service.d
             └─delay-start.conf
     Active: active (running) since Sun 2021-01-10 15:28:22 CET; 1 day 6h ago
    Process: 2495321 ExecStartPre=/usr/libexec/pulsed-execstartpre (code=exited, status=0/SUCCESS)
    Process: 2495327 ExecStartPre=/usr/bin/sleep 0.5 (code=exited, status=0/SUCCESS)
    Process: 2495328 ExecStart=/usr/bin/pulseaudio --daemonize=true --system=true (code=exited, status=0/SUCCESS)
   Main PID: 2495331 (pulseaudio)
      Tasks: 2 (limit: 512)
     Memory: 14.1M
        CPU: 11min 31.959s
     CGroup: /system.slice/pulsed.service
             └─2495331 /usr/bin/pulseaudio --daemonize=true --system=true

Comment 4 Harald Reindl 2021-01-11 21:18:52 UTC
[root@srv-rhsoft:~]$ ls /usr/local/rew/
insgesamt 15M
-rwxr-xr-x 1 harry verwaltung  14K 2018-08-27 19:19 roomeqwizard
-rwx------ 1 harry verwaltung  14K 2018-08-27 19:19 uninstall
-rw-r--r-- 1 harry verwaltung 3,4K 2018-05-25 19:15 EULA.html
-rw-r----- 1 harry verwaltung  12K 2015-04-26 14:29 favicon.ico
-rw-r--r-- 1 harry verwaltung  12K 2018-05-26 14:45 AppleJavaExtensions.jar
-rw-r--r-- 1 harry verwaltung  28K 2018-05-26 14:45 comm.jar
-rw-r--r-- 1 harry verwaltung  11K 2018-08-27 19:17 commons-lang3-3.2.1.jar
-rw-r--r-- 1 harry verwaltung 490K 2018-05-26 14:45 jh.jar
-rw-r--r-- 1 harry verwaltung 1,1M 2018-05-26 14:45 jna-4.2.0.jar
-rw-r--r-- 1 harry verwaltung  46K 2018-08-27 19:17 parallelcolt-0.8.jar
-rw-r--r-- 1 harry verwaltung  13M 2018-08-27 19:17 RoomEQ_Wizard_obf.jar
-rw-r--r-- 1 harry verwaltung  11K 2018-08-27 19:17 TableLayout.jar
-rw-r--r-- 1 harry verwaltung  45K 2018-05-26 14:45 usb4java-1.2.0.jar
-rw-r--r-- 1 harry verwaltung  20K 2018-08-27 19:17 vecmath.jar
-rw-r--r-- 1 harry verwaltung  243 2018-08-27 19:19 roomeqwizard.vmoptions
[root@srv-rhsoft:~]$

Comment 5 Fedora Program Management 2021-04-29 16:45:30 UTC
This message is a reminder that Fedora 32 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 32 on 2021-05-25.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '32'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 32 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 6 Ben Cotton 2021-05-25 17:04:10 UTC
Fedora 32 changed to end-of-life (EOL) status on 2021-05-25. Fedora 32 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 7 Harald Reindl 2021-05-25 17:15:46 UTC
> Fedora 32 changed to end-of-life (EOL)

well, there are issues dating back to 2017 (we have) 2021 and nobody gives a shit about - new features here, new features there - yeah the last 20% are most of the work and nobody is doing them nowhere


Note You need to log in before you can comment on or make changes to this bug.