Bug 110278 - Some TOC entries fail to link to the correct page
Summary: Some TOC entries fail to link to the correct page
Status: RESOLVED FIXED
Alias: None
Product: kpdf
Classification: Applications
Component: general (show other bugs)
Version: 0.4.2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Astals Cid
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-06 10:57 UTC by Bryan
Modified: 2005-09-09 20:25 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bryan 2005-08-06 10:57:55 UTC
Version:           0.4.2 (using KDE KDE 3.4.2)
Installed from:    Unlisted Binary Package
OS:                Linux

The Australian Immunisation Handbook 8th edition 2003 pdf has a long tree'ed index/contents which is known to be unnavigatable in current xpdf based browsers.

PDF download location:
http://www1.health.gov.au/immhandbook/pdf/handbook.pdf

 Attempting to navigate the pdf with the contents navigator causes kpdf to crash.

Here is the backtrace:
(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(no debugging symbols found)
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1229950848 (LWP 11712)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#4  0xb730c62f in QDomElement::attribute () from /usr/lib/libqt-mt.so.3
#5  0xb686aa24 in TOC::slotExecuted () from /usr/lib/kde3/libkpdfpart.so
#6  0xb686b105 in TOC::qt_invoke () from /usr/lib/kde3/libkpdfpart.so
#7  0xb70e6067 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#8  0xb7412568 in QListView::clicked () from /usr/lib/libqt-mt.so.3
#9  0xb71c1b5e in QListView::contentsMouseReleaseEventEx ()
   from /usr/lib/libqt-mt.so.3
#10 0xb71c1936 in QListView::contentsMouseReleaseEvent ()
   from /usr/lib/libqt-mt.so.3
#11 0xb78bb873 in KListView::contentsMouseReleaseEvent ()
   from /usr/lib/libkdeui.so.4
#12 0xb71f00fc in QScrollView::viewportMouseReleaseEvent ()
   from /usr/lib/libqt-mt.so.3
#13 0xb71efa10 in QScrollView::eventFilter () from /usr/lib/libqt-mt.so.3
#14 0xb71c0338 in QListView::eventFilter () from /usr/lib/libqt-mt.so.3
#15 0xb70e3b01 in QObject::activate_filters () from /usr/lib/libqt-mt.so.3
#16 0xb70e3a5d in QObject::event () from /usr/lib/libqt-mt.so.3
#17 0xb711976f in QWidget::event () from /usr/lib/libqt-mt.so.3
#18 0xb708e370 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#19 0xb708dac7 in QApplication::notify () from /usr/lib/libqt-mt.so.3
#20 0xb75de8a5 in KApplication::notify () from /usr/lib/libkdecore.so.4
#21 0xb702712f in QETWidget::translateMouseEvent ()
   from /usr/lib/libqt-mt.so.3
#22 0xb7024e1c in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3
#23 0xb703aec2 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#24 0xb709f74c in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#25 0xb709f60e in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#26 0xb708e57b in QApplication::exec () from /usr/lib/libqt-mt.so.3
#27 0x0804efbe in ?? ()
#28 0xbffff910 in ?? ()
#29 0xbffff8e0 in ?? ()
#30 0x00000000 in ?? ()
#31 0x00000000 in ?? ()
#32 0x08050bb5 in _IO_stdin_used ()
#33 0x00000001 in ?? ()
#34 0x08050e20 in _IO_stdin_used ()
#35 0x00000000 in ?? ()
#36 0x00000000 in ?? ()
#37 0x08050aa0 in _IO_stdin_used ()
#38 0x0804c55e in ?? ()
#39 0xbffff968 in ?? ()
#40 0xb7ff3151 in _dl_lookup_versioned_symbol () from /lib/ld-linux.so.2
#41 0xb7d948c8 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#42 0x0804ecc1 in ?? ()
Comment 1 Albert Astals Cid 2005-08-06 13:50:08 UTC
The crash is a duplicate of #110087
Using the fixed kpdf i see no problem with the TOC

*** This bug has been marked as a duplicate of 110087 ***
Comment 2 Bryan 2005-08-07 01:07:01 UTC
This is still  broken on kpdf 0.4.2 using KDE 3.4.2 on  ubuntu hoary debs.
What exactly is the "fixed kpdf"?
Comment 3 Bryan 2005-08-07 03:41:49 UTC
This is NOT a duplicate of 110087.  The kpdf 0.5 version has not been specifically reported to browse the pdf in question [Australian Imm. Hndbook 8th]  properly. I  have doubts whether this is the case since xpdf 3.0  code is still in use in kpdf 0.5. No other xpdf 3.0 based browsers  navigate this file's TOC/index properly. However, the TOC/index of the pdf file mentioned in 110087 is navigated properly in other current xpdf based browsers e.g Evince.
Comment 4 Albert Astals Cid 2005-08-07 14:51:09 UTC
Well, i downloaded, navigated and did not crash. If you think you can give more info on how to reproduce the crash just give it and don't expect me do discover it miracously.
Of course the "fixed kpdf" will be in 3.4.3 and in 3.5.0 what else do you expect?
Comment 5 Bryan 2005-08-07 15:39:52 UTC
Ta, Albert.
It is not just about crashing.  Did it navigate the TOC properly in the middle
of the TOC tree? It does not do this in any  xpdf 3.00 based browser I know as a
mere user. If it does this in kpdf 0.5 then you have fixed the xpdf code and
this should be ported to poppler, gpdf, evince, xpdf, etc.  Keep up the good
work. Best regards.
Quoting Albert Astals Cid <tsdgeos@terra.es>:

[bugs.kde.org quoted mail]
Comment 6 Albert Astals Cid 2005-08-07 16:22:57 UTC
Correct the bug.

The problem is really that for example clicking on "1.1.1" moves you to page 210 instead to page 11
Comment 7 Albert Astals Cid 2005-09-09 20:25:20 UTC
SVN commit 459064 by aacid:

LinkDests and Dict contents are now UGString instead of GString, this makes the toc of the pdf in bug 110278 work, beign again the first xpdf based viewer (including xpdf 3.01) has this feature, REJOICE!
BUGS: 110278


 M  +19 -8     core/generator_pdf/generator_pdf.cpp  
 M  +1 -1      core/generator_pdf/gp_outputdev.cpp  
 M  +1 -1      core/generator_pdf/gp_outputdev.h  
 M  +5 -4      xpdf/xpdf/Annot.cc  
 M  +10 -6     xpdf/xpdf/Catalog.cc  
 M  +4 -3      xpdf/xpdf/Catalog.h  
 M  +9 -8      xpdf/xpdf/Dict.cc  
 M  +9 -7      xpdf/xpdf/Dict.h  
 M  +1 -0      xpdf/xpdf/Function.cc  
 M  +2 -0      xpdf/xpdf/Gfx.cc  
 M  +4 -1      xpdf/xpdf/GfxFont.cc  
 M  +1 -0      xpdf/xpdf/GfxState.cc  
 M  +5 -4      xpdf/xpdf/Link.cc  
 M  +5 -4      xpdf/xpdf/Link.h  
 M  +1 -1      xpdf/xpdf/Makefile.am  
 M  +9 -8      xpdf/xpdf/Object.h  
 M  +1 -0      xpdf/xpdf/Outline.cc  
 M  +1 -0      xpdf/xpdf/PDFDoc.cc  
 M  +1 -1      xpdf/xpdf/PDFDoc.h  
 M  +4 -1      xpdf/xpdf/PSOutputDev.cc  
 M  +1 -0      xpdf/xpdf/Page.cc  
 M  +3 -0      xpdf/xpdf/Parser.cc  
 M  +1 -0      xpdf/xpdf/SecurityHandler.cc  
 M  +1 -0      xpdf/xpdf/Stream.cc  
 A             xpdf/xpdf/UGString.cc   [License: UNKNOWN]
 A             xpdf/xpdf/UGString.h   [License: UNKNOWN]
 M  +1 -0      xpdf/xpdf/XRef.cc