Goldendict hangs while indexing dictionaries

Bug #1069486 reported by Amr Ibrahim
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
goldendict (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Goldendict hangs while indexing dictionaries. Everything was fine in Ubuntu 12.04. While indexing, Goldendict consumes 100% CPU and 41.5 MiB memory (see screenshot). This is a regression from Ubuntu 12.04.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: goldendict 1.0.2~git20110906-1.1 [modified: usr/share/pixmaps/goldendict.png]
ProcVersionSignature: Ubuntu 3.5.0-17.28-generic 3.5.5
Uname: Linux 3.5.0-17-generic x86_64
ApportVersion: 2.6.1-0ubuntu3
Architecture: amd64
Date: Sun Oct 21 20:24:09 2012
ExecutablePath: /usr/bin/goldendict
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
SourcePackage: goldendict
UpgradeStatus: No upgrade log present (probably fresh install)
XsessionErrors:
 (gnome-settings-daemon:2000): color-plugin-WARNING **: failed to get edid: unable to get EDID for output
 (gnome-settings-daemon:2000): color-plugin-WARNING **: unable to get EDID for xrandr-LVDS1: unable to get EDID for output

Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :
Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :

Here is the terminal output,

amr@amr-VGN-NR32M:~$ goldendict
Load done
getResource: gdlookup://localhost?blank=1
scheme: gdlookup
host: localhost
getResource: gdlookup://localhost?blank=1
scheme: gdlookup
host: localhost
getResource: gdlookup://localhost?word=Welcome!&group=4294967295
scheme: gdlookup
host: localhost
In-place finish.
====reading 16384 bytes
====reading 37009 bytes
Default charset: ISO-8859-1
Source Charset: ISO-8859-1
TargetCharset: ISO-8859-1
Writing index...
Building a tree of 405 elements
Default charset: ISO-8859-1
Source Charset: ISO-8859-1
TargetCharset: ISO-8859-1
Writing index...
Building a tree of 198 elements
bookname = Oxford Advanced learner's Dictionary
wordcount = 34148
35300 entires made
Building a tree of 188 elements
Default charset: ISO-8859-1
Source Charset: ISO-8859-1
TargetCharset: ISO-8859-1
Writing index...
Building a tree of 450 elements
Default charset: ISO-8859-1
Source Charset: ISO-8859-1
TargetCharset: ISO-8859-1
Writing index...
Building a tree of 210 elements
Dictionary name: WordNet® 3.0 (En-En)
Building a tree of 403 elements
Default charset: ISO-8859-1
Source Charset: ISO-8859-1
TargetCharset: ISO-8859-1
Writing index...
Building a tree of 492 elements
Default charset: ISO-8859-1
Source Charset: ISO-8859-1
TargetCharset: CP1256
Writing index...
Building a tree of 300 elements

description: updated
summary: - Indexing dictionaries takes forever (endless loop)
+ Indexing dictionaries takes forever (never stops)
tags: added: regression-release
description: updated
summary: - Indexing dictionaries takes forever (never stops)
+ Indexing dictionaries never stops
summary: - Indexing dictionaries never stops
+ [quantal] Indexing dictionaries never stops
Revision history for this message
Launchpad Janitor (janitor) wrote : Re: [quantal] Indexing dictionaries never stops

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

Changed in goldendict (Ubuntu):
status: New → Confirmed
summary: - [quantal] Indexing dictionaries never stops
+ [quantal-12.10] Indexing dictionaries never stops
Revision history for this message
vdca (vdca) wrote : Re: [quantal-12.10] Indexing dictionaries never stops

I can confirm the same issue for 13.04. Any workaround?

summary: - [quantal-12.10] Indexing dictionaries never stops
+ Indexing dictionaries never stops
tags: added: raring
summary: - Indexing dictionaries never stops
+ Goldendict hangs while indexing dictionaries
description: updated
Revision history for this message
Tvangeste (i-4m-l33t) wrote :

Folks, try to build GoldenDict directly from sources and let me know if you could still reproduce the problem.

Instructions about how to build the latest GoldenDict are here:
https://github.com/goldendict/goldendict#external-deps

I couldn't reproduce the problem with never finishing indexing, tried on multiple Ubuntu versions. Either the problem has been already fixed or the problem is triggered by specific dictionary. It would be interesting to know what dictionary causes this then.

Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :

Thanks Tvangeste for your reply. I built Goldendict as you suggested on Ubuntu 13.04 and here are my comments:

1) Two dependences are missing in order to build correctly: git-core and libqtwebkit-dev.

2) I can't reproduce this bug after building from source. I think it's fixed there.

I think the problem was indexing multiple .BGL dictionaries. I tried indexing without the .BGL files and it worked. By the way, it doesn't matter any more in the package built from source, it works correctly with .BGL files.

Thanks.

Revision history for this message
Tvangeste (i-4m-l33t) wrote :

Amr, thanks for reporting back. Nice to see the problem fixed for you. And I've updated the README to include git and qtwebkit-dev packages as well.

Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :

Please revise the dependencies here https://github.com/goldendict/goldendict#installing-external-deps-on-ubuntu-linux because qt4-qmake is duplicated.

Revision history for this message
Tvangeste (i-4m-l33t) wrote :

Amr, thanks, corrected.

Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :

Fixed in saucy.

Changed in goldendict (Ubuntu):
status: Confirmed → 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.