problems with Zekr 1.0.0 on Ubuntu Lucid

89 views
Skip to first unread message

Benjamin Geer

unread,
Aug 14, 2010, 6:42:59 AM8/14/10
to ze...@googlegroups.com
As-Salamu Alaykum,

I've just installed Zekr 1.0.0 from the Debian package on Ubuntu Lucid, and I'm having a few problems.

First, when I press "play" on the audio player, the audio (an offline MP3 recitation) starts playing.  If I stop the audio by pressing "stop", the audio stops, but Zekr then hangs.  My zekr.log is attached.  I'm using OpenJDK because it is required by libjlayer-java, which seems to be necessary for playing MP3 recitations, according to this thread:


Second, if I try to adjust the audio volume using the volume control on the player, I get this error:

net.sf.zekr.engine.audio.PlayerException: javazoom.jlgui.basicplayer.BasicPlayerException: Gain control not supported
at net.sf.zekr.engine.audio.DefaultPlayerController.setGain(DefaultPlayerController.java:187)
at net.sf.zekr.engine.audio.DefaultPlayerController.setVolume(DefaultPlayerController.java:243)
at net.sf.zekr.engine.audio.ui.AudioPlayerForm$14.mouseUp(AudioPlayerForm.java:553)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:207)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3493)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3112)
at net.sf.zekr.ui.BaseForm.loopEver(BaseForm.java:34)
at net.sf.zekr.ZekrMain.startZekr(ZekrMain.java:63)
at net.sf.zekr.ZekrMain.main(ZekrMain.java:91)
Caused by: javazoom.jlgui.basicplayer.BasicPlayerException: Gain control not supported
at javazoom.jlgui.basicplayer.BasicPlayer.setGain(Unknown Source)
at net.sf.zekr.engine.audio.DefaultPlayerController.setGain(DefaultPlayerController.java:185)
... 10 more

Third, the "Go" buttons do not cause the main window to scroll to the selected aya; the display remains at the beginning of the selected sura.

Ben
zekr.log

Mohsen Saboorian

unread,
Aug 14, 2010, 6:58:20 AM8/14/10
to ze...@googlegroups.com
Wa Alaikumassalaam,

First and second issues relate to OpenJDK. This is a known issue with open JDK and you should use Sun JRE instead to fix it:

Third bug relates to your browser and issue in current swt package available. Can you reproduce it with our basic .tar.gz package?

Mohsen

--
You received this message because you are subscribed to the Google Groups "zekr" group.
To post to this group, send email to ze...@googlegroups.com.
To unsubscribe from this group, send email to zekr+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/zekr?hl=en.

Benjamin Geer

unread,
Aug 14, 2010, 10:23:30 AM8/14/10
to ze...@googlegroups.com
On 14 August 2010 12:58, Mohsen Saboorian <moh...@gmail.com> wrote:
First and second issues relate to OpenJDK. This is a known issue with open JDK and you should use Sun JRE instead to fix it:

Those instructions say to install the package "sun-java6-jre", but that package is no longer available in Ubuntu Lucid by default.  Users need to perform extra steps to install it:


I followed those instructions to install the Sun JRE, and uninstalled OpenJDK, and now I get this error when I press "play" on the audio player:

java.lang.NoClassDefFoundError: javazoom/jl/decoder/Bitstream
at javazoom.spi.mpeg.sampled.file.MpegAudioFileReader.getAudioFileFormat(Unknown Source)
at org.tritonus.share.sampled.file.TAudioFileReader.getAudioInputStream(TAudioFileReader.java:365)
at org.tritonus.share.sampled.file.TAudioFileReader.getAudioInputStream(TAudioFileReader.java:320)
at javazoom.spi.mpeg.sampled.file.MpegAudioFileReader.getAudioInputStream(Unknown Source)
at javazoom.spi.mpeg.sampled.file.MpegAudioFileReader.getAudioInputStream(Unknown Source)
at javax.sound.sampled.AudioSystem.getAudioInputStream(AudioSystem.java:1162)
at javazoom.jlgui.basicplayer.BasicPlayer.initAudioInputStream(Unknown Source)
at javazoom.jlgui.basicplayer.BasicPlayer.initAudioInputStream(Unknown Source)
at javazoom.jlgui.basicplayer.BasicPlayer.open(Unknown Source)
at net.sf.zekr.engine.audio.DefaultPlayerController.open(DefaultPlayerController.java:125)
at net.sf.zekr.engine.audio.DefaultPlayerController.open(DefaultPlayerController.java:139)
at net.sf.zekr.ui.AudioPlayerUiController.playerOpenAyaAudio(AudioPlayerUiController.java:235)
at net.sf.zekr.ui.AudioPlayerUiController.playerOpenAyaAudio(AudioPlayerUiController.java:230)
at net.sf.zekr.ui.AudioPlayerUiController.playerTogglePlayPause(AudioPlayerUiController.java:206)
at net.sf.zekr.engine.audio.ui.AudioPlayerForm$8.widgetSelected(AudioPlayerForm.java:455)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3493)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3112)
at net.sf.zekr.ui.BaseForm.loopEver(BaseForm.java:34)
at net.sf.zekr.ZekrMain.startZekr(ZekrMain.java:63)
at net.sf.zekr.ZekrMain.main(ZekrMain.java:91)
Caused by: java.lang.ClassNotFoundException: javazoom.jl.decoder.Bitstream
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 23 more
 

Third bug relates to your browser and issue in current swt package available. Can you reproduce it with our basic .tar.gz package?

No, none of these problems occur with the .tar.gz package.

Ben

Mohsen Saboorian

unread,
Aug 14, 2010, 10:48:34 AM8/14/10
to ze...@googlegroups.com, Mohammad Derakhshani, Ahmed El-Mahmoudy
Salaam,

1. You don't have libjlayer-java installed:
$ sudo apt-get install libjlayer-java

2. We should wait until Ahmed or Mohammad update swt package on Zekr PPA.

Regards,
Mohsen

Benjamin Geer

unread,
Aug 14, 2010, 1:05:50 PM8/14/10
to ze...@googlegroups.com
On 14 August 2010 16:48, Mohsen Saboorian <moh...@gmail.com> wrote:
1. You don't have libjlayer-java installed:
$ sudo apt-get install libjlayer-java

If I do this, it also installs openjdk-6-jre-headless and openjdk-6-jre-lib.  Then when I press "play" in the audio player, I get this error:

java.lang.UnsatisfiedLinkError: no pulse-java in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1681)
at java.lang.Runtime.loadLibrary0(Runtime.java:840)
at java.lang.System.loadLibrary(System.java:1047)
at org.classpath.icedtea.pulseaudio.SecurityWrapper.loadNativeLibrary(SecurityWrapper.java:27)
at org.classpath.icedtea.pulseaudio.EventLoop.<clinit>(EventLoop.java:105)
at org.classpath.icedtea.pulseaudio.PulseAudioMixer.openImpl(PulseAudioMixer.java:654)
at org.classpath.icedtea.pulseaudio.PulseAudioMixer.openLocal(PulseAudioMixer.java:588)
at org.classpath.icedtea.pulseaudio.PulseAudioMixer.openLocal(PulseAudioMixer.java:584)
at org.classpath.icedtea.pulseaudio.PulseAudioMixer.open(PulseAudioMixer.java:579)
at org.classpath.icedtea.pulseaudio.PulseAudioDataLine.open(PulseAudioDataLine.java:95)
at org.classpath.icedtea.pulseaudio.PulseAudioSourceDataLine.open(PulseAudioSourceDataLine.java:75)
at javazoom.jlgui.basicplayer.BasicPlayer.openLine(Unknown Source)
at javazoom.jlgui.basicplayer.BasicPlayer.initLine(Unknown Source)
at javazoom.jlgui.basicplayer.BasicPlayer.startPlayback(Unknown Source)
at net.sf.zekr.engine.audio.DefaultPlayerController.play(DefaultPlayerController.java:159)
at net.sf.zekr.ui.AudioPlayerUiController.playerTogglePlayPause(AudioPlayerUiController.java:211)
at net.sf.zekr.engine.audio.ui.AudioPlayerForm$8.widgetSelected(AudioPlayerForm.java:455)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3493)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3112)
at net.sf.zekr.ui.BaseForm.loopEver(BaseForm.java:34)
at net.sf.zekr.ZekrMain.startZekr(ZekrMain.java:63)
at net.sf.zekr.ZekrMain.main(ZekrMain.java:91)

This is what I was trying to say before: Zekr won't play any audio if OpenJDK is installed, but libjlayer-java requires OpenJDK.

Ben

meho_r

unread,
Aug 14, 2010, 3:05:00 PM8/14/10
to zekr
Salaam

And here's the funny part: on my machine with Debian Squeeze 64bit, I
have both javas: openJDK and Sun JRE, and with OpenJDK audio usually
works (have to restart Zekr from time to time though; and get the same
message as the one above from time to time too), but with Sun JRE it
does not work at all (I click on "Play", nothing happens, no error
messages, nothing).

Beside all that, Sun's Java is getting removed from repos (Ubuntu
Lucid already removed it), so I wonder if depending on it is a wise
move. Isn't there any other way to implement audio feature avoiding
these, I'd say traditionally recurring, java problems? I personally
don't mind fiddling with system to get it work, but what about people
who really have no idea what to do to make it work (even with
instructions present)?

أحمد المحمودي

unread,
Aug 14, 2010, 11:06:58 AM8/14/10
to Mohsen Saboorian, ze...@googlegroups.com, Mohammad Derakhshani
On Sat, Aug 14, 2010 at 07:18:34PM +0430, Mohsen Saboorian wrote:
> 2. We should wait until Ahmed or Mohammad update swt package on Zekr PPA.
---end quoted text---

You mean you want SWT 3.6 on the PPA ? And what for ?

--
‎أحمد المحمودي (Ahmed El-Mahmoudy)
Digital design engineer
GPG KeyID: 0xEDDDA1B7
GPG Fingerprint: 8206 A196 2084 7E6D 0DF8 B176 BC19 6A94 EDDD A1B7

signature.asc

Mohsen Saboorian

unread,
Aug 14, 2010, 9:12:12 PM8/14/10
to أحمد المحمودي, ze...@googlegroups.com, Mohammad Derakhshani
Yes, then users may optionally use WebKitGTK+ as the browser and some issues they currently face with PPA package but not wih tar.gz package will resolve.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAEBCAAGBQJMZrESAAoJELwZapTt3aG3wxEH/25whhkB5rfHYxRFRxSG/bvI
k9coDW7eB4MS8Tl8s4jxUoV9nVd4kUhs3Ytj3kf2O4wwCCZOoaHkMC244TboT65s
b5zSteh9S6lHb3E2KdtbaM8LQ6mvD0sePfY0iGBKvXDs3paUX+hnRKNkz8EVkkQe
Grri6NNv9fo6AWmR4VyXsmznaeLjSp0rHTcWck1OZnZG+c+CCPzMqFt8g2DBAXkX
C0bNyoQyhhjxDIvEsbLiR9bgTsYi6mmnLarTV0ccy0Q8pQzGmeugN6Zhynv1kws7
JaZ5ALjiC0Sh1IgcHHOoRFSU9g33GCUKriuATAiXcT336aCa1vorZf/5TCEtQZM=
=WevV
-----END PGP SIGNATURE-----


Mohsen Saboorian

unread,
Aug 14, 2010, 9:22:58 PM8/14/10
to ze...@googlegroups.com
Benjamin, does this help when using OpenJDK (editing /etc/java-6-openjdk/sound.properties)?
We should find a way to have Zekr audio work with OpenJDK, as it seems this is the only Java available to Ubuntu users.

Mohsen

Mohsen Saboorian

unread,
Aug 14, 2010, 9:32:29 PM8/14/10
to ze...@googlegroups.com
How about playing other formats such as Speex or OGG? If you can play Speex for example, then it means that only mp3decoder library has bug and we can provide more offline recitation formats to bypass this issue. But if you see the same problem with Speex or OGG, then basicplayer is buggy.

Unfortunately at Java side you don't have many options for playing audio files such as MP3s.

Our previous method of playing audio files was delegating this to the browser. This has its own drawbacks as flash plugin is non-free and almost buggy for Linux users. If we choose HTML5 audio feature, it won't support MP3 on Linux and in addition to that, we need a complete re-code at Zekr side.

Regards,
Mohsen

أحمد المحمودي

unread,
Aug 15, 2010, 10:15:58 AM8/15/10
to Mohsen Saboorian, ze...@googlegroups.com, Mohammad Derakhshani
On Sun, Aug 15, 2010 at 05:42:12AM +0430, Mohsen Saboorian wrote:
> Yes, then users may optionally use WebKitGTK+ as the browser and some issues
> they currently face with PPA package but not wih
> tar.gz<http://groups.google.com/group/zekr/browse_thread/thread/1c2ccc967c089227/cf2a04d75b59bb7f?#cf2a04d75b59bb7f>package

> will resolve.
>
> On Sat, Aug 14, 2010 at 7:36 PM, أحمد المحمودي <aelma...@sabily.org>wrote:
>
> > On Sat, Aug 14, 2010 at 07:18:34PM +0430, Mohsen Saboorian wrote:
> > > 2. We should wait until Ahmed or Mohammad update swt package on Zekr PPA.
> > ---end quoted text---
> >
> > You mean you want SWT 3.6 on the PPA ? And what for ?
---end quoted text---

Done !

signature.asc

ida...@gmx.net

unread,
Aug 16, 2010, 4:59:07 AM8/16/10
to ze...@googlegroups.com
Salam,

what is to be done exactly to make it work?

wassalam
idanse

Benjamin Geer

unread,
Aug 16, 2010, 7:59:35 AM8/16/10
to ze...@googlegroups.com
On 15 August 2010 03:22, Mohsen Saboorian <moh...@gmail.com> wrote:
Benjamin, does this help when using OpenJDK (editing /etc/java-6-openjdk/sound.properties)?

I'd be happy to try, but what should I change in that file?

Thanks,
Ben

meho_r

unread,
Aug 16, 2010, 12:33:44 PM8/16/10
to zekr
Salaam

Now I'm puzzled: if you go with OGG instead of MP3, how will that
reflect on the issue? What is the best solution in the long run? HTML5–
OpenJDK–OGG?
> > zekr+uns...@googlegroups.com <zekr%2Bunsu...@googlegroups.com>.

Mohsen Saboorian

unread,
Aug 16, 2010, 9:47:45 PM8/16/10
to ze...@googlegroups.com
Ben,

Could you install Ubuntu Restricted Extras:
$ sudo apt-get install ubuntu-restricted-extras

and tell us about the result. Seems that MP3 playing should work even with OpenJDK?

Sorry, I don't have an Ubuntu 10.04 box for now. As this is a common issue for Linux users, please help us fix this by checking different configurations.

Mohsen

Mohsen Saboorian

unread,
Aug 16, 2010, 9:48:59 PM8/16/10
to ze...@googlegroups.com

Mohsen Saboorian

unread,
Aug 16, 2010, 9:54:08 PM8/16/10
to ze...@googlegroups.com
Please check this out, specially Ahmed's last comment:

Mohsen

Mohsen Saboorian

unread,
Aug 16, 2010, 10:04:20 PM8/16/10
to ze...@googlegroups.com
Salaam,

As I mentioned earlier, if the issue relates to mp3 decoding java library, it can be fixed by using speex or ogg. we already support these formats in .tar.gz package. Our debian package may also play these formats if these are installed:

libvorbisspi-java
libjspeex-java
libjorbis-java

Meho, please make a change to one of your installed offline recitation descriptors  (.properties) files either in <zekr>/res/audio or ~/.zekr/audio. Change file type from .mp3 to .ogg (audio.offlineUrl, see this), and convert a few of your mp3s into ogg in the related folder. Then try to play it with Zekr. Tell us about the result.

Regards,
Mohsen

To unsubscribe from this group, send email to zekr+uns...@googlegroups.com.

Benjamin Geer

unread,
Aug 17, 2010, 11:39:29 AM8/17/10
to ze...@googlegroups.com
On 17 August 2010 03:47, Mohsen Saboorian <moh...@gmail.com> wrote:
Ben,

Could you install Ubuntu Restricted Extras:
$ sudo apt-get install ubuntu-restricted-extras

That package was already installed.

Ben

أحمد المحمودي

unread,
Aug 17, 2010, 5:21:21 PM8/17/10
to Mohsen Saboorian, ze...@googlegroups.com, Mohammad Derakhshani
السلام عليكم،

On Sun, Aug 15, 2010 at 04:15:58PM +0200, أحمد المحمودي wrote:
> On Sun, Aug 15, 2010 at 05:42:12AM +0430, Mohsen Saboorian wrote:
> > Yes, then users may optionally use WebKitGTK+ as the browser and some issues
> > they currently face with PPA package but not wih
> > tar.gz<http://groups.google.com/group/zekr/browse_thread/thread/1c2ccc967c089227/cf2a04d75b59bb7f?#cf2a04d75b59bb7f>package
> > will resolve.
> >
> > On Sat, Aug 14, 2010 at 7:36 PM, أحمد المحمودي <aelma...@sabily.org>wrote:
> >
> > > On Sat, Aug 14, 2010 at 07:18:34PM +0430, Mohsen Saboorian wrote:
> > > > 2. We should wait until Ahmed or Mohammad update swt package on Zekr PPA.
> > > ---end quoted text---
> > >
> > > You mean you want SWT 3.6 on the PPA ? And what for ?
> ---end quoted text---
>
> Done !

---end quoted text---

I forgot to update zekr package in order to use SWT 3.6, I just fixed
that now on Zekr PPA.

signature.asc
Reply all
Reply to author
Forward
0 new messages