Djvu plugin crashes in Firefox

Bug #940853 reported by Per-Inge
82
This bug affects 14 people
Affects Status Importance Assigned to Milestone
djview4 (Ubuntu)
Fix Released
Undecided
Unassigned
Precise
Fix Released
High
Colin Watson

Bug Description

[Impact] Plugin crashes in Firefox.
[Test Case] Installed the Djvu plugin described below, in an Ubuntu 12.04 installation fully updated 2012-02-25. Opened this page in Firefox and the plugin crashed.
http://www.svar.ra.se/svarimagetransfer/frameset.asp?uidObjectGUID=C002CA73-1F41-42A3-81CA-4568E83A4533&strPysicalPass=SE%2FULA%2F10219%2FA+I%2F1/&kalla=Ervalla+kyrkoarkiv%2C+Husf%C3%B6rh%C3%B6rsl%C3%A4ngder%2C+SE%2FULA%2F10219%2FA+I%2F1+%281745-1763%29&bildnr=1&volym=volym&arkbildnr=&batchnr=C0000262&skrivare=
This page is no longer available at the time of writing (2013-01-03); try the one from comment #2 instead, namely: http://historiskakartor.lantmateriet.se/arken/s/show.html?showmap=true&archive=RAK&sd_base=rak2&sd_ktun=52414b5f4a3234332d36382d31&archive=RAK
[Regression Potential] Shouldn't affect anything outside the plugin; if it broke before the update and works after it, it should be a clear improvement.

Package: djview-plugin
Source: djview4
Version: 4.7-1
Architecture: amd64
Maintainer: Ubuntu Developers <email address hidden>
Original-Maintainer: Barak A. Pearlmutter <email address hidden>
Installed-Size: 116
Depends: libc6 (>= 2.7), djview4 | djview3
Recommends: chromium-browser | mozilla-browser | mozilla | firefox | iceweasel | iceape-browser | konqueror | galeon
Suggests: mime-support
Enhances: chromium-browser, firefox, galeon, iceape-browser, iceweasel, konqueror, mozilla, mozilla-browser
Conflicts: djvulibre-bin (<< 3.5.19), djvulibre-plugin (<= 3.5.23-4)
Provides: djvulibre-plugin
Section: web
Priority: optional
Homepage: http://djvu.sourceforge.net/
Description: Browser plugin for the DjVu image format
 DjVu browser plugin.

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in djvulibre (Ubuntu):
status: New → Confirmed
Revision history for this message
OlaJi (ola-jirlow) wrote :

I can confirm the same behaviour (DjVu plugin crash) on both i386 and amd64 verions of Ubuntu 11.10, trying to open http://historiskakartor.lantmateriet.se/arken/s/show.html?showmap=true&archive=RAK&sd_base=rak2&sd_ktun=52414b5f4a3234332d36382d31&archive=RAK. Fully updated systems 2012-04-14 with Firefox

Revision history for this message
Jens Blomster (blomster) wrote :

This has worked before but has broken. Using the same Lucid as when it worked. Now it crashes in both Opera and Firefox using the same nsdejavu.so plugin. Duplicate bug #800114, where the reporting users gave up, bug timed out on inactivity. 3 users affected there. Most affected people are Swedish, that's because Swedish geosurvey has chosen this a bit unusual format. Therefor this is of some importance locally here. Opera crash from /var/log/syslog:
May 4 21:12:44 jens-desktop kernel: [10885.987826] operapluginwrap[4764]: segfault at 0 ip b77ca670 sp bff2e160 error 4 in nsdejavu.so[b77c8000+8000]

Revision history for this message
Mieszko Malinowski (malinowski-mieszko) wrote :

The plugin stopped working once installed on a clean 12.04 install.

Would like to extend the importance a bit - all Polish Digital Libraries use ONLY djvu.

Using it only with FireFox - no crash report to add since FF only demands reloading the page.

Revision history for this message
jan hjalmarsson (jan-hjalmarsson) wrote :

seems it works in MINT

Revision history for this message
OlaJi (ola-jirlow) wrote :

This is the output in terminal from Firefox when the plugin crashes:
djview: QDjViewPlugin::exec() begin
nsdejavu: using the Xt protocol.
Error: Couldn't find per display information
djview: QDjViewPlugin::exec() end code=0

Revision history for this message
OlaJi (ola-jirlow) wrote :

This is a work-around that worked for me, involving compiling the package from source (sorry it might be ugly but I'm not rely a Linux development savvy):

Download the source code djview4.
ola@minifix:/usr/local/src$ apt-get source djview4
ola@minifix:/usr/local/src$ cd djview4-4.9/

run
ola@minifix:/usr/local/src/djview4-4.9$ ./configure

edit config.h, ensure that you have #undef HAVE_XT in the file to compile without Xt
then

ola@minifix:/usr/local/src/djview4-4.9$ make
ola@minifix:/usr/local/src/djview4-4.9$ sudo checkinstall --fstrans=0

make a link from the browser plugin library (in my case /usr/lib/mozilla/plugins) to the plugin you just installed (in my case it installed in /usr/local/lib/netscape/plugins) (you need to rename or delete the original plugin before you do this)

ola@minifix:/usr/lib/mozilla/plugins$ sudo ln -s /usr/local/lib/netscape/plugins/nsdejavu.so nsdejavu.so

Revision history for this message
leonbottou (leon-bottou) wrote :

I downloaded the ubuntu binary package djview-plugin (Precise) and I discovered that the binary nsdejavu.so has no glib support. It only has Xt support. And it seems clear that recent versions of firefox no longer work well with Xt...

I believe this can be fixed by adding "libglib2.0-dev" in the Build-Depends directive of debian/control. This should cause the djview-plugin package to be compiled with glib support.

- L. B.

Revision history for this message
Erik Johansson (erijo) wrote :

I can confirm that the solution in comment #8 (adding libglib2.0-dev to build deps) works for me.

Revision history for this message
faqing (faqing) wrote :

Should release djview4 4.9-2 for Precise

Revision history for this message
jan hjalmarsson (jan-hjalmarsson) wrote :

it worked in old 10.4 of ubuntu 32bit. Id doesnt work on 12.10 Ubuntu 32 bit not on xubuntu 32 bit and not on mint 64-bit

jth (jth)
tags: added: patch
Revision history for this message
jth (jth) wrote :

Verified patch in #8, it works with just a recompile.

sudo apt-get -u build-dep djview-plugin
apt-get source djview-plugin
edit djview4-4.9/debian/control
Add ", libglib2.0-dev" to depends for package Package: djview-plugin
sudo dpkg-buildpackage -b -us -uc
Then install it
sudo dpkg -i djview4_4.9-1_amd64.deb djview-plugin_4.9-1_amd64.deb djvulibre-plugin_4.9-1_all.deb
Restart browser
Done it is working..

Revision history for this message
Colin Watson (cjwatson) wrote :

I don't understand the comment that this doesn't work in 12.10, because 12.10 has a version with this build-dependency. But since people say that's sufficient, I suspect that that was a typo or an out-of-date version, and am therefore assuming that this just needs a stable update for 12.04.

affects: djvulibre (Ubuntu) → djview4 (Ubuntu)
Changed in djview4 (Ubuntu):
status: Confirmed → Fix Released
Changed in djview4 (Ubuntu Precise):
status: New → Triaged
importance: Undecided → High
Revision history for this message
Per-Inge (per-inge-hallin) wrote : Re: [Bug 940853] Re: Djvu plugin crashes in Firefox

I tested on 12.10 and it works for me both in Firefox and Chrome.

On 09/30/2012 01:08 PM, Colin Watson wrote:
> I don't understand the comment that this doesn't work in 12.10, because
> 12.10 has a version with this build-dependency. But since people say
> that's sufficient, I suspect that that was a typo or an out-of-date
> version, and am therefore assuming that this just needs a stable update
> for 12.04.
>
> ** Package changed: djvulibre (Ubuntu) => djview4 (Ubuntu)
>
> ** Also affects: djview4 (Ubuntu Precise)
> Importance: Undecided
> Status: New
>
> ** Changed in: djview4 (Ubuntu)
> Status: Confirmed => Fix Released
>
> ** Changed in: djview4 (Ubuntu Precise)
> Status: New => Triaged
>
> ** Changed in: djview4 (Ubuntu Precise)
> Importance: Undecided => High
>

Colin Watson (cjwatson)
Changed in djview4 (Ubuntu Precise):
assignee: nobody → Colin Watson (cjwatson)
milestone: none → ubuntu-12.04.2
Colin Watson (cjwatson)
description: updated
Colin Watson (cjwatson)
description: updated
description: updated
Colin Watson (cjwatson)
Changed in djview4 (Ubuntu Precise):
status: Triaged → In Progress
Colin Watson (cjwatson)
Changed in djview4 (Ubuntu Precise):
milestone: ubuntu-12.04.2 → ubuntu-12.04.3
Revision history for this message
Dave Walker (davewalker) wrote : Please test proposed package

Hello Per-Inge, or anyone else affected,

Accepted djview4 into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/djview4/4.9-1ubuntu1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in djview4 (Ubuntu Precise):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Jens Blomster (blomster) wrote :

hello djvu-watchers
Tried to verify this in an untouched 12.04 system, where I hadn't messed with my own homemade fixes. Installed djview4 and djview-plugin. Got version 4.9-1. This version immediately worked with my Firefox 19! This was not so last year. I then followed the instructions and upgraded to the "proposed" version. Then version number changed to 4.9-1ubuntu1. That version also worked.

Sorry if this isn't crystal clear but this is what I could do. Anyway I'm glad it works, I have done much tweaking with this in 2012. Thanks!

Revision history for this message
OlaJi (ola-jirlow) wrote :

Verified to work on 12.04. I uninstalled the (patched) djview4 package and verified that I could not open DjVu images in Firefox 19.0.2. Then I installed djview4/4.9-1ubuntu1 and I could open DjVu images in Firefox 19.0.2 (at http://www.svar.ra.se). Thanks!

Colin Watson (cjwatson)
tags: added: verification-done
removed: verification-needed
Revision history for this message
Per-Inge (per-inge-hallin) wrote :

Verified to work on Ubuntu 12.04, Kernel Linux 3.2.0-38-generic, GNOME 3.4.2
djview4 version 4.9-1
djview-plugin 4.9-1
Firefox version 19.0.2

Revision history for this message
Scott Kitterman (kitterman) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

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

This bug was fixed in the package djview4 - 4.9-1ubuntu1

---------------
djview4 (4.9-1ubuntu1) precise; urgency=low

  * Build-depend on libglib2.0-dev to fix browser plugin crash
    (LP: #940853).
 -- Colin Watson <email address hidden> Thu, 03 Jan 2013 14:01:46 +0000

Changed in djview4 (Ubuntu Precise):
status: Fix Committed → Fix Released
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.