You are not logged in.

#1 2011-02-19 18:15:57

xdemo
Member
From: Bristol, UK
Registered: 2010-06-10
Posts: 42

openjdk6 sound broken

EDIT (making this easier to read).

At first i was experiencing sound problems, but it seems i am now getting complete "lockups" or freezing with java applets.

When using OpenJDK6 / icedtea-web in firefox, it randomly crashes after the loading screen. I have been trying to get this game to work:
http://www.runescape.com/game.ws?j=1

Before the 18th Feb' (when the plugin was part of the openjdk6 package, it worked fine). Since the package was split (the plugin, icedtea-web is now an opt-depend) it doesn't want to run.

Reported bug here:
https://bugs.archlinux.org/task/22968

PS Also the same problems in midori and chromium. I have been using the package "jre" (oracle java) for now as a workaround, which seems to work... but i am getting alsa/sound problems with it... which has always been the case with oracle java.

Not too sure how to fix it so that openjdk works again.

Last edited by xdemo (2011-02-23 22:04:47)


Linux 2.6.38-ck x86_64 / xfce

Offline

#2 2011-02-20 05:11:12

doorknob60
Member
Registered: 2008-09-29
Posts: 404

Re: openjdk6 sound broken

Ah, so you're not the only one having the same problem, thank god. I've noticed sound still works with the official java client: http://aur.archlinux.org/packages.php?ID=42058

It just doesn't work with the browser plugin in any browser. I'm currently looking for a good solution. Oh how Java sound has bugged me for the past 3 and a half years (when I started using Linux). I finally thought I found a solution a month or two ago when I realized OpenJDK worked flawlessly. Then this... I would guess it's a simple fix though, since it was just working.

Offline

#3 2011-02-20 09:09:46

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,642

Re: openjdk6 sound broken

can you give a simple webpage to test the sound in openjdk?

Offline

#4 2011-02-21 03:38:39

doorknob60
Member
Registered: 2008-09-29
Posts: 404

Re: openjdk6 sound broken

Here's a good test page: http://people.xiph.org/~maikmerten/demo … pplet.html

Sound started working for me now (after a reboot), but I got it to crash a couple of times in Firefox, need to do more testing, but it seems a little unstable so far (wasn't before).

Offline

#5 2011-02-22 00:20:57

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: openjdk6 sound broken

FWIW, sound doesn't work in Java apps for me in KDE. If I boot into Gnome, they work. Go figure?!?


Matt

"It is very difficult to educate the educated."

Offline

#6 2011-02-22 17:13:38

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,642

Re: openjdk6 sound broken

starting midori from command line also gives no sound here reporting this:

[INFO] mixer description: Direct Audio Device: HDA Intel PCH, ALC892 Analog, ALC892 Analog, vendor: ALSA (http://www.alsa-project.org)
[INFO] Attempting to get a line from ALSA mixer
[INFO] mixer: Direct Audio Device: HDA Intel PCH, ALC892 Analog, ALC892 Analog failed: java.lang.IllegalArgumentException: Line unsupported: interface SourceDataLine supporting format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, big-endian
[INFO] mixer description: Direct Audio Device: HDA Intel PCH, ALC892 Analog, ALC892 Analog, vendor: ALSA (http://www.alsa-project.org)
[INFO] Attempting to get a line from ALSA mixer
[INFO] mixer: Direct Audio Device: HDA Intel PCH, ALC892 Analog, ALC892 Analog failed: java.lang.IllegalArgumentException: Line unsupported: interface SourceDataLine supporting format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, big-endian
[INFO] mixer description: Direct Audio Device: HDA Intel PCH, ALC892 Digital, ALC892 Digital, vendor: ALSA (http://www.alsa-project.org)
[INFO] Mixer supports line: interface SourceDataLine supporting 24 audio formats, and buffers of at least 32 bytes
[INFO] Format: PCM_SIGNED unknown sample rate, 16 bit, mono, 2 bytes/frame, little-endian
[INFO] Format: PCM_SIGNED unknown sample rate, 16 bit, mono, 2 bytes/frame, big-endian
[INFO] Format: PCM_SIGNED unknown sample rate, 16 bit, stereo, 4 bytes/frame, little-endian
[INFO] Format: PCM_SIGNED unknown sample rate, 16 bit, stereo, 4 bytes/frame, big-endian

I know that upstream introduced the possebility to also use pulseaudio but this shouldn't break our prefered alsa audio. Maybe you can find something out about this all. Now we have to check two project for changes: openjdk6 and icedtea-web.

Edit: and I remember an alsa upate today. But everything else seems to work with the new alsa packages.

Last edited by AndyRTR (2011-02-22 17:14:47)

Offline

#7 2011-02-24 02:13:34

bzipitidoo
Member
Registered: 2010-01-29
Posts: 33

Re: openjdk6 sound broken

openjdk6 is broken.  I can't use brettspielwelt.com with it.  When I switched from openjdk6 to jre, brettspielwelt worked again.

BTW, brettspielwelt is not user friendly if you're thinking of using it for testing.  Best is to create an account.  Hit the "Log in" button on their page, then hit "Play Now".  After "Play Now" another window will pop up, and that's the one that uses Java and which won't work with the latest openjdk6.

Offline

#8 2011-02-24 06:52:28

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,642

Re: openjdk6 sound broken

Start your browser with ICEDTEAPLUGIN_DEBUG set in a terminal and pipe the output into a log file to get helpful information.

Offline

#9 2011-02-24 16:46:00

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: openjdk6 sound broken

The link given in post #4 is working with chromium. can you try with all other application using sound card closed?

Offline

#10 2011-02-26 00:42:31

bzipitidoo
Member
Registered: 2010-01-29
Posts: 33

Re: openjdk6 sound broken

How?  I got an empty file when I tried:

$ export ICEDTEAPLUGIN_DEBUG=1
$ firefox > debug.log

I didn't think that would work.  I suppose I could search for information on how to do it, but think it will be faster to ask.

Offline

#11 2011-02-27 17:50:26

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,642

Re: openjdk6 sound broken

ICEDTEAPLUGIN_DEBUG=1 midori > /tmp/browser.log 2>&1 wink

Offline

#12 2011-03-01 20:45:39

bzipitidoo
Member
Registered: 2010-01-29
Posts: 33

Re: openjdk6 sound broken

The only thing in the log was this:

*** NSPlugin Wrapper *** WARNING:(/build/src/nspluginwrapper-1.3.0/src/npw-wrapper.c:3160):invoke_NP_Initialize: assertion failed: (rpc_method_invoke_possible(g_rpc_connection))

But that message was logged on navigating to brettspielwelt.com, before doing anything else.  The "Play Now" button is the part that needs Java, and which behaves the same as before.  And which didn't generate any messages.

Offline

Board footer

Powered by FluxBB