java fails to initialize pulseaudio in oneiric

Bug #862286 reported by Xerxes Rånby
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
Fix Released
Undecided
Unassigned
pulseaudio (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

testcase:
apt-get install openjdk-6-jdk
appletviewer http://www.javazoom.net/applets/tinyplayer/tinyplayer.html

testcase PASS on i386 natty running pulseaudo 0.9.22-24-g67d18. when using jamvm / hotspot

testcase FAIL on amd64 oneiric running pulseaudio 1.0. tested using hotspot
testcase FAIL on armel ac100 oneiric running pulseaudio 1.0. tested using jamvm / zero
testcase FAIL on armel pandaboard oneiric running pulseaudio 1.0. tested using jamvm / zero

output on armel:
xranby@panda:~$ appletviewer -J-zero http://www.javazoom.net/applets/tinyplayer/tinyplayer.html
Exception in thread "PulseAudio Eventloop Thread" java.lang.IllegalStateException: Illegal constant for ContextEvent: 67739950999336617
 at org.classpath.icedtea.pulseaudio.ContextEvent.checkNativeEnumReturn(ContextEvent.java:90)
 at org.classpath.icedtea.pulseaudio.ContextEvent.<init>(ContextEvent.java:98)
 at org.classpath.icedtea.pulseaudio.EventLoop.update(EventLoop.java:175)
 at org.classpath.icedtea.pulseaudio.EventLoop.native_setup(Native Method)
 at org.classpath.icedtea.pulseaudio.EventLoop.run(EventLoop.java:121)
 at java.lang.Thread.run(Thread.java:679)

output on amd64:
Exception in thread "PulseAudio Eventloop Thread" java.lang.IllegalMonitorStateException
 at java.lang.Object.notifyAll(Native Method)
 at org.classpath.icedtea.pulseaudio.PulseAudioDataLine$3.update(PulseAudioDataLine.java:215)
 at org.classpath.icedtea.pulseaudio.Stream.playbackStartedCallback(Stream.java:685)
 at org.classpath.icedtea.pulseaudio.EventLoop.native_iterate(Native Method)
 at org.classpath.icedtea.pulseaudio.EventLoop.run(EventLoop.java:133)
 at java.lang.Thread.run(Thread.java:679)

Xerxes Rånby (xranby)
description: updated
affects: pulseaudio → pulseaudio (Ubuntu)
Revision history for this message
David Henningsson (diwic) wrote :

I have test build openjdk on amd64 and confirmed that the attached patch fixes the problem for amd64.

Revision history for this message
David Henningsson (diwic) wrote :

The ARM bug is different. I don't have any possibility to test this at the moment, but my guess is that this *might* fix the ARM bug. I'm far from sure, though.

Revision history for this message
Xerxes Rånby (xranby) wrote :

the pulseaudiodataline.patch are now upstream
http://icedtea.classpath.org/hg/icedtea6/rev/88f9ea95b92c

Revision history for this message
Xerxes Rånby (xranby) wrote :

upstream comments to the contextgetstate.patch ARM patch:
(16.27.25) omajid: xranby: hmm, this one *looks* fine too.
(16.29.09) omajid: xranby: i wonder if something like int64_t might be more correct though.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "pulseaudiodataline.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-sponsors please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openjdk-6 - 6b23~pre10-0ubuntu4

---------------
openjdk-6 (6b23~pre10-0ubuntu4) oneiric; urgency=low

  [ Matthias Klose ]
  * Fix exception on trying to start PulseAudio playback on ARM (Xerxes
    Rånby, David Henningsson). LP: #862286.

  [ Damien Raude-Morvan ]
  * Add myself to Uploaders.
  * d/rules: Fix java.policy to include jre/lib/ext/* files (instead of
    non-existant ext/*). It'll restore privilegied access from sunpkcs11.jar
    to sun.* code. (Closes: #642734, #642598).
 -- Matthias Klose <email address hidden> Thu, 29 Sep 2011 17:28:29 +0200

Changed in openjdk-6 (Ubuntu):
status: New → Fix Released
Changed in pulseaudio (Ubuntu):
status: New → Invalid
Revision history for this message
Xerxes Rånby (xranby) wrote :

the contextgetstate ARM patch are now upstream as well:
http://icedtea.classpath.org/hg/icedtea6/rev/80aee2097f5e

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.