cancel
Showing results for 
Search instead for 
Did you mean: 

SAPGUI for Java, problem with sound (Linux)

Former Member
0 Kudos

Hi,

Some time after booting my PC the sound goes off, all applications plays no more sound without any error message.

Finally I took a time for analyzing and I see playing a flash video, the following message from Firefox:

ALSA lib pcm_pulse.c:752:(pulse_prepare) PulseAudio: Unable to create stream: Too large

It's hard to suspect from SAPGUI, but it's the origin of the problem.

I tested these versions:

7.20rev11 (no sound)

7.30rev2  (fine: for each sound opens a sink and client, and closes in 5 seconds)

7.30rev9  (wrong: for each sound opens a sink and client, and remains until sapgui is closed)

7.30rev10 (wrong: like 7.30rev9)

7.40      (wrong: like 7.30rev9)

I have no more revisions for 7.30 installed and I don't see changes in the release notes in between.

The problem starts somewhere in 7.30, which don't close the audio streams and occupies all available even for other programs.

Any of you noticed the problem? maybe with different linux configuration... although mine is pretty standard.

More info:

aitor@myhost:~$ pactl list|grep application.name

                application.name = "ALSA plug-in [java]"

                module-stream-restore.id = "sink-input-by-application-name:ALSA plug-in [java]"

                application.name = "ALSA plug-in [java]"

                module-stream-restore.id = "sink-input-by-application-name:ALSA plug-in [java]"

                application.name = "ALSA plug-in [java]"

                module-stream-restore.id = "sink-input-by-application-name:ALSA plug-in [java]"

                application.name = "ALSA plug-in [java]"

                module-stream-restore.id = "sink-input-by-application-name:ALSA plug-in [java]"

                application.name = "Login Session c1"

                application.name = "KMix"

                application.name = "XSMP Session on KDE as 10108d5cadf000142139132800000024070045"

                application.name = "KMix"

                application.name = "KNotify"

                application.name = "libcanberra"

                application.name = "ALSA plug-in [java]"

                application.name = "ALSA plug-in [java]"

                application.name = "ALSA plug-in [java]"

                application.name = "ALSA plug-in [java]"

                application.name = "pactl"

                application.name = "libcanberra"

aitor@myhost:~$ pactl list

...

Sink Input #307

        Driver: protocol-native.c

        Owner Module: 9

        Client: 2907

        Sink: 0

        Sample Specification: s16le 1ch 44100Hz

        Channel Map: mono

        Format: pcm, format.sample_format = "\"s16le\""  format.rate = "44100"  format.channels = "1"  format.channel_map = "\"mono\""

        Corked: no

        Mute: no

        Volume: 0: 100%

                0: 0.00 dB

                balance 0.00

        Buffer Latency: 0 usec

        Sink Latency: 18860 usec

        Resample method: copy

        Properties:

                media.name = "ALSA Playback"

                application.name = "ALSA plug-in [java]"

                native-protocol.peer = "UNIX socket client"

                native-protocol.version = "28"

                application.process.id = "20846"

                application.process.user = "aitor"

                application.process.host = "myhost"

                application.process.binary = "java"

                application.language = "es_ES.UTF-8"

                window.x11.display = ":0"

                application.process.machine_id = "676375716da5263758e8a9c3000004d4"

                application.process.session_id = "c1"

                module-stream-restore.id = "sink-input-by-application-name:ALSA plug-in [java]"

...

Client #2907

        Driver: protocol-native.c

        Owner Module: 9

        Properties:

                application.name = "ALSA plug-in [java]"

                native-protocol.peer = "UNIX socket client"

                native-protocol.version = "28"

                application.process.id = "20846"

                application.process.user = "aitor"

                application.process.host = "myhost"

                application.process.binary = "java"

                application.language = "es_ES.UTF-8"

                window.x11.display = ":0"

                application.process.machine_id = "676375716da5263758e8a9c3000004d4"

                application.process.session_id = "c1"

aitor@myhost:~$ ps -ef|grep 15589

aitor    15589  2204 14 11:18 ?        00:00:17 java -Xms32M -Xmx512M -cp /opt/SAPClients/SAPGUI7.40/jar/GuiStartS.jar com.sap.platin.Gui

aitor@myhost:~$ java -version

java version "1.7.0_21"

Java(TM) SE Runtime Environment (build 1.7.0_21-b11)

Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)

aitor@myhost:~$ java -version

java version "1.8.0_25"

Java(TM) SE Runtime Environment (build 1.8.0_25-b17)

Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

aitor@myhost:~$ pulseaudio --version

pulseaudio 4.0

aitor@myhost:~$ uname -a

Linux myhost 3.13.0-43-generic #72-Ubuntu SMP Mon Dec 8 19:35:06 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

aitor@myhost:~$ lsb_release -a

No LSB modules are available.

Distributor ID: Ubuntu

Description:    Ubuntu 14.04.1 LTS

Release:        14.04

Codename:       trusty

Accepted Solutions (0)

Answers (3)

Answers (3)

developer9933
Explorer
0 Kudos

FYI today i received a test version of the SAPGui software compiled yesterday and the problem seems to be resolved.

Sound threads/sinks are closing again after playing the sound like it should be and don't stay open and block the system anymore.

So let's wait for the next rev. and everything should be fine.

RMW
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Manuel,

apologizes that it took some time, we had a couple of other fixes in the pipeline as well.

I am glad to read, that the issue is solved with our fix.

Best regards

Rolf-Martin

developer9933
Explorer
0 Kudos

Hi,

it's all good. Sound is not essential for me to work with sapgui so this was not on high priority

I just disable sound output in sapgui until it is fixed...

Thanks for the support and have a nice day!

0 Kudos

I have the same problem, on ubuntu 12.04 and others..


I re - instal java and all is Fine.

Best regards

Ivan C


sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

java -version

sudo update-java-alternatives -s java-7-oracle

sudo echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections

sudo apt-get install oracle-java7-set-default


developer9933
Explorer
0 Kudos

I have exactly the same problem.

With every sound sap produces there's one more thread in the audio output list of applications.

I use gnome-shell and you can observe the bug in the Audio Settings>Applications.

XXX:~$ java -version

java version "1.8.0_31"

Java(TM) SE Runtime Environment (build 1.8.0_31-b13)

Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

XXX:~$ uname -a

Linux XXXHostname 3.16.0-30-generic #40-Ubuntu SMP Mon Jan 12 22:06:37 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

XXX:~$ lsb_release -a

No LSB modules are available.

Distributor ID:    Ubuntu

Description:    Ubuntu 14.10

Release:    14.10

Codename:    utopic

: System Details

: -----------------------------------------------------------

: Java VM: Oracle Corporation Version 1.8.0_31

: OS: Linux(amd64) Version 3.16.0-23-generic

: Java Directory: /usr/lib/jvm/java-8-oracle/jre

: Home Directory: /home/XXX

: Current Directory: /home/XXX/Downloads

: Locale: Deutsch (Deutschland)

: Default Character Encoding: UTF8

: -----------------------------------------------------------

: Product Details

: -----------------------------------------------------------

: SAP GUI for Java 7.40

: 2014-12-03 06:00:42 +0100

: ldm049, 740_REL, 1541807

: (Version ID A074000040000)

developer9933
Explorer
0 Kudos

SAP GUI for Java 7.40 rev 1

(Version ID 074000040100)

2015-02-16 06:00:38 +0100

ldm049, 740_REL, 1557612

Java VM: Oracle Corporation Version 1.8.0_31

OS: Linux(amd64) Version 3.16.0-31-generic

problem still persists...

jude_bradley
Advisor
Advisor
0 Kudos

Can you please add a JavaGUI trace to the thread?

http://service.sap.com/sap/support/notes/683960

Regards,

Jude

developer9933
Explorer
0 Kudos

trace attached. if you need more components to be activated feel free to ask...

RMW
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Manuel,

tracing does not really help in this case.

Please create a support message on component BC-FES-JAV.

We already have fixed something regarding sound lately (after rev 1), we would like you to verify with an intermediate version if the issue is solved with that chance.

Best regards

Rolf-Martin

developer9933
Explorer
0 Kudos

Hi,

i have opened a support ticket with this thread and your name as reference. Hope it does reach you.

Last update was on March, 05th where it was handed over to the next support level.