Zekr Quran study tool loads and then promptly crashes

Bug #491906 reported by Abdul Qadeer Draper
70
This bug affects 10 people
Affects Status Importance Assigned to Milestone
zekr (Debian)
Fix Released
Unknown
zekr (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The Zekr installation from Ubuntu software center never worked at all. I tried downloading from "Ubuntu" at Zekr web site. via the terminal. I was then able to load the splash and the programme began to load at which point it crashed.

ProblemType: Bug
Architecture: i386
CheckboxSubmission: bed4a19fd6334c1030fe4bc06c2d4de6
CheckboxSystem: 9a8dfd7f83677f101ab201cb214a9227
Date: Thu Dec 3 14:25:35 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/gnome-terminal
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
Package: gnome-terminal 2.28.1-0ubuntu1
ProcEnviron:
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-15.50-generic
SourcePackage: gnome-terminal
Uname: Linux 2.6.31-15-generic i686
XsessionErrors:
 (gnome-settings-daemon:1920): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (gnome-settings-daemon:1920): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (polkit-gnome-authentication-agent-1:1985): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 (nautilus:1976): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed

Revision history for this message
Abdul Qadeer Draper (abdulqadeer-hld) wrote :
Revision history for this message
Brian Murray (brian-murray) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at https://wiki.ubuntu.com/Bugs/FindRightPackage. I have classified this bug as a bug in zekr.

When reporting bugs in the future please use apport, either via the appropriate application's "Help -> Report a Problem" menu or using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

affects: ubuntu → zekr (Ubuntu)
Revision history for this message
MD (mderakhs) wrote :

Abdul Qadeer,

Thank you for reporting the bug.
It seems that package zekr for karmic is broken. I think this is because a dependency package, velocity, has been upgraded to a newer version which is not compatible with zekr0.5.

Abdul Qadeer, for the time being you can use zekr's repository:
http://zekr.org/wiki/Installation#Zekr_Repository

We will try to get it fixed.

Launching Zekr...
java.lang.NullPointerException
 at org.apache.velocity.context.InternalContextAdapterImpl.put(InternalContextAdapterImpl.java:269)
 at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:213)
 at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
 at org.apache.velocity.Template.merge(Template.java:328)
 at org.apache.velocity.Template.merge(Template.java:235)
 at net.sf.zekr.engine.theme.TemplateEngine.getUpdated(TemplateEngine.java:115)
 at net.sf.zekr.common.config.VelocityInputStream.<init>(VelocityInputStream.java:29)
 at net.sf.zekr.common.config.ResourceManager.<init>(ResourceManager.java:30)
 at net.sf.zekr.common.config.ResourceManager.getInstance(ResourceManager.java:40)
 at net.sf.zekr.ui.splash.AbstractSplachScreen.<init>(AbstractSplachScreen.java:16)
 at net.sf.zekr.ui.splash.AdvancedSplashScreen.<init>(AdvancedSplashScreen.java:31)
 at net.sf.zekr.ZekrMain.startZekr(ZekrMain.java:41)
 at net.sf.zekr.ZekrMain.main(ZekrMain.java:79)

Changed in zekr (Ubuntu):
status: New → Confirmed
Revision history for this message
MD (mderakhs) wrote :
Revision history for this message
Abdul Qadeer Draper (abdulqadeer-hld) wrote : RE: [Bug 491906] Re: Zekr Quran study tool loads and then promptly crashes

Mohammad Derakhshani Thank you for taking an interest in this problem. How will I know when the bug is fixed?
Zekr web site has not helped. JZA

> Date: Fri, 4 Dec 2009 16:25:41 +0000
> From: <email address hidden>
> To: <email address hidden>
> Subject: [Bug 491906] Re: Zekr Quran study tool loads and then promptly crashes
>
>
> ** Attachment added: "zekr crash log file"
> http://launchpadlibrarian.net/36443883/zekr.log
>
> --
> Zekr Quran study tool loads and then promptly crashes
> https://bugs.launchpad.net/bugs/491906
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “zekr” package in Ubuntu: Confirmed
>
> Bug description:
> The Zekr installation from Ubuntu software center never worked at all. I tried downloading from "Ubuntu" at Zekr web site. via the terminal. I was then able to load the splash and the programme began to load at which point it crashed.
>
> ProblemType: Bug
> Architecture: i386
> CheckboxSubmission: bed4a19fd6334c1030fe4bc06c2d4de6
> CheckboxSystem: 9a8dfd7f83677f101ab201cb214a9227
> Date: Thu Dec 3 14:25:35 2009
> DistroRelease: Ubuntu 9.10
> ExecutablePath: /usr/bin/gnome-terminal
> InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
> Package: gnome-terminal 2.28.1-0ubuntu1
> ProcEnviron:
> LANG=en_GB.UTF-8
> SHELL=/bin/bash
> ProcVersionSignature: Ubuntu 2.6.31-15.50-generic
> SourcePackage: gnome-terminal
> Uname: Linux 2.6.31-15-generic i686
> XsessionErrors:
> (gnome-settings-daemon:1920): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
> (gnome-settings-daemon:1920): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
> (polkit-gnome-authentication-agent-1:1985): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
> (nautilus:1976): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/zekr/+bug/491906/+subscribe

_________________________________________________________________
Have more than one Hotmail account? Link them together to easily access both
 http://clk.atdmt.com/UKM/go/186394591/direct/01/

Changed in zekr (Debian):
status: Unknown → Fix Committed
Revision history for this message
abevrnja (bevrnjaalija) wrote :

installation from download center didnt work so i tried different approaches. after trying solution delivered on zekr help page (which was to use repositories, add them manually and get the packages that way....) application worked nice...

Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

it might be a little hacky but it certainly seems to work on 0.5.1.dfsg-1.1ubuntu1. sadly i've no idea how to debdiff a patch for a jar file (dist/zeka-src.jar)

diff -ruN net.old/sf/zekr/engine/theme/TemplateEngine.java net/sf/zekr/engine/theme/TemplateEngine.java
--- net.old/sf/zekr/engine/theme/TemplateEngine.java 2010-01-14 01:04:42.322704592 +0000
+++ net/sf/zekr/engine/theme/TemplateEngine.java 2010-01-14 01:04:31.552706377 +0000
@@ -112,6 +112,9 @@
        public String getUpdated(String name) throws Exception {^M
                template = Velocity.getTemplate(name);^M
                Writer writer = new StringWriter();^M
+ if (context == null){^M
+ context = new VelocityContext();^M
+ }^M
                template.merge(context, writer);^M
                return writer.toString();^M
        }^M

Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

it seems the net.sf.zekr.engine.theme.TemplateEngine constructor catches the
exception,
Error using VM library : VM_global_library.vm
meaning that context is never initialised. but since the exceptions been handled by catch zekr carries on. better to initialise context no matter what here? this is a
slightly better hacky fix than previously

diff -ruN net/sf/zekr/engine/template/TemplateEngine.java net.new/sf/zekr/engine/template/TemplateEngine.java
--- net/sf/zekr/engine/template/TemplateEngine.java 2008-06-26 19:15:32.000000000 +0100
+++ net.new/sf/zekr/engine/template/TemplateEngine.java 2010-01-14 01:30:48.022705986 +0000
@@ -41,10 +41,10 @@
                        System.setProperty("zekr.home", Naming.getWorkspace());^M
                        Velocity.setExtendedProperties(new ExtendedProperties("res/config/lib/velocity.properties"));^M
                        Velocity.init();^M
- context = new VelocityContext();^M
                } catch (Exception e) {^M
                        Logger.getLogger(this.getClass()).log(e);^M
                }^M
+ context = new VelocityContext();^M
        }^M
 ^M
        /**^M

Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

seems like theres a few ways to sanely ensure context is initialised but i've uploaded the constructor version to the ppa below if anyone wants to try it

https://launchpad.net/~sevenmachines/+archive/release+1/+packages

zekr (0.5.1.dfsg-1.1ubuntu2~sevenmachines1) lucid; urgency=low

  * dist/zekr-src.jar:
    - fix net/sf/zekr/engine/template/TemplateEngine.java contructor
    to initialise context even if theres an exception (LP: #491906)

Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

also from https://bugs.launchpad.net/ubuntu/+source/zekr/+bug/491457
although zekr should handle the exception gracefully it should probably avoid it anyway by not setting velocimacro in res/config/lib/velocity.properties
i've also added this to the ppa for testing

https://launchpad.net/~sevenmachines/+archive/release+1/+packages

zekr (0.5.1.dfsg-1.1ubuntu2~sevenmachines3) lucid; urgency=low

  * debian/patches/05-unset-velocitymacro-library.dpatch:
    - dont set velocitymacro.library resource to avoid an exception on
    velocity init (LP: #491457)

Revision history for this message
أحمد المحمودي (Ahmed El-Mahmoudy) (aelmahmoudy) wrote :

This is fixed in 0.7.5beta3 (which hopefully would enter Debian soon).

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

Revision history for this message
Mohsen Saboorian (mohsens) wrote :

I provided a quick fix at the time the bug was reported, but no one put it here yet. The bug is result of a backward incompatibility issue at velocity side. When you upgrade to 1.6.x, older velocity.properties is no longer valid and causes this problem. The simple solution is to replace <zekr>/res/config/lib/velocity.properties with the attached one.

Mohsen

Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

great, this should then get fixed soon with a sync to debian 0.7.5beta3. thanks

Changed in zekr (Debian):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (3.3 KiB)

This bug was fixed in the package zekr - 0.7.5~beta3+repack-1

---------------
zekr (0.7.5~beta3+repack-1) unstable; urgency=low

  [ Mohammad Derakhshani ]
  * New upstream release. (Closes: #561730, #561115, #444240)
                          (LP: #267412, #491457, #491906)
    + Works with velocity 1.6 (Closes: #561115)
  * debian/control:
    + Update SWT dependency to 3.5
    + Added sound related java packages to Build-Depends.
    + libjs-jquery added to the Depends field
    + Extended description reviewed.
    + ttf-sil-scheherazade | ttf-kacst (>= 1.6.2+mry-1) | ttf-farsiweb moved
      from Recommends to Depends.
    + Remove java1-runtime from Depends: field since zekr is not compatible
      with java1-runtime.
  * debian/zekr.sh:
    + Added sound related java packages to CLASSPATH
    + Changed VM_ARGS value to "-Xms10m -Xmx80m".
  * Added a patch 03_mozilla_five_home.diff, to set
   'options.browser.useMozilla = true' in res/config/config.properties
  * All relations to ttf-bitstream-vera have been removed (Closes: #461299).
  * “msttcorefonts” is not suggested anymore (Closes: #490031).
  * debian/zekr.links: added a symbolic link to jquery.js from libjs-jquery
  * Added a patch 03_mozilla_five_home.diff, to set
   'options.browser.useMozilla = true' in res/config/config.properties
  * fix LP: #279935: a typo in mangage is fixed.
  * debian/postinst:
    + Index installed Quran translations.

  [ أحمد المحمودي (Ahmed El-Mahmoudy) ]
  * Use 3.0 (quilt) source format.
  * Use debhelper 7 instead of cdbs
  * debian/control:
    + Replace java dependencies in Depends with ${java:Depends}
    + Bump xulrunner dependency to 1.9.1
    + Remove browser alternatives from Depends.
    + Bump lucene2 dependency to >= 2.9.0
  * Added build_manifest.diff patch to add Class-Path & Main-Class
    attributes to manifest
  * Added debian/install, debian/docs, debian/README.source
  * Add jogg.jar to class path
  * debian/control: Added Vcs-* headers
  * According to debian/copyright, zekr should be in non-free
  * debian/zekr.sh:
    + Do not define org.eclipse.swt.browser.XULRunnerPath, not
      needed.
    + Pass -Djava.net.preferIPv4Stack=true as an argument to java to
      workaround the problem reported in #560056, this should be removed once
      the bug got fixed.
  * debian/rules: Delete res/images/sura-header.png from orig tarball since
    its license is unknown.
  * Add a free (under same license of the package) sura-header.png
  * A watch file has been added in 0.7.1-3~ppa5 (Closes: #561732).

  [ Mehdi Dogguy ]
  * Set debian-islamic-maintainers as Maintainer and set former
    maintainer as an uploader.
  * Add myself as an uploader.
  * Reformat debian/control so that it becomes easier to read.
  * get-orig-source: Fix a typo 'images' -> 'image'

zekr (0.7.0~beta2-1~ppa4) intrepid; urgency=low

  [ Mohammad Derakhshani ]
  * Provide the online recitation files with zekr packages, hence:
    + Added zekr-quran-recitation-online-* to Provides field.
    + Added zekr-quran-recitation-online-* (<< 0.7.0~beta2-1) to Replaces and
      Conflicts fields.

zekr (0.7.0~beta1-3~ppa8) hardy; urgency=low

  * source package produces two...

Read more...

Changed in zekr (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Donny Kurnia (donnykurnia) wrote :

I had a different error:

$ dpkg -l zekr
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=======================================-=======================================-==============================================================================================
ii zekr 0.7.5+repack-1~ppa2 Quranic Study Tool

$ zekr
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/swt/SWT
        at net.sf.zekr.common.config.GlobalConfig.<clinit>(GlobalConfig.java:34)
        at net.sf.zekr.common.runtime.Naming.<clinit>(Naming.java:21)
        at net.sf.zekr.engine.log.Logger.<clinit>(Logger.java:44)
        at net.sf.zekr.ZekrMain.<clinit>(ZekrMain.java:32)
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.SWT
        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)
        ... 4 more
Could not find the main class: net.sf.zekr.ZekrMain. Program will exit.

Any idea how to fix this?

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.