Bug 287138 - Okular Random Crashes on exit in KDE 4.8 beta 1
Summary: Okular Random Crashes on exit in KDE 4.8 beta 1
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Chakra Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 287783 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-11-21 08:55 UTC by Weng Xuetian
Modified: 2012-08-09 21:00 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (5.62 KB, text/plain)
2011-11-29 11:57 UTC, Francesco Riosa
Details
dell_monitor_u2410.pdf.xz (722.79 KB, application/x-xz)
2011-11-29 12:10 UTC, Francesco Riosa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Weng Xuetian 2011-11-21 08:55:19 UTC
Application: okular (0.13.80)
KDE Platform Version: 4.7.3 (4.7.3)
Qt Version: 4.7.4
Operating System: Linux 3.1-CHAKRA x86_64
Distribution: "Chakra Linux"

-- Information about the crash:
- What I was doing when the application crashed:
Open serveral pdf and chm file, do some text selection, then close Okular.

Chakra KDE 4.8 beta 1
qt 4.7.4-3
poppler-qt 0.16.7-1

The crash can be reproduced some of the time.

-- Backtrace:
Application: Okular (okular), signal: Aborted
[KCrash Handler]
#6  0x00007fab3ceec965 in raise () from /lib/libc.so.6
#7  0x00007fab3ceedddb in abort () from /lib/libc.so.6
#8  0x00007fab3cf2554e in ?? () from /lib/libc.so.6
#9  0x00007fab3cf2b466 in ?? () from /lib/libc.so.6
#10 0x00007fab2fae27d5 in qDeleteAll<QList<TinyTextEntity*>::const_iterator> (end=<optimized out>, begin=<optimized out>) at /usr/include/QtCore/qalgorithms.h:322
#11 qDeleteAll<QList<TinyTextEntity*> > (c=...) at /usr/include/QtCore/qalgorithms.h:330
#12 Okular::TextPagePrivate::~TextPagePrivate (this=0x2e520b0, __in_chrg=<optimized out>) at /chakra/desktop-unstable/kdegraphics-okular/src/okular-4.7.80/core/textpage.cpp:182
#13 0x00007fab2fae2831 in Okular::TextPage::~TextPage (this=0x2dfaae0, __in_chrg=<optimized out>) at /chakra/desktop-unstable/kdegraphics-okular/src/okular-4.7.80/core/textpage.cpp:206
#14 0x00007fab2fad7a14 in Okular::PagePrivate::~PagePrivate (this=0x29237c0, __in_chrg=<optimized out>) at /chakra/desktop-unstable/kdegraphics-okular/src/okular-4.7.80/core/page.cpp:80
#15 0x00007fab2fadafe3 in Okular::Page::~Page (this=0x279f110, __in_chrg=<optimized out>) at /chakra/desktop-unstable/kdegraphics-okular/src/okular-4.7.80/core/page.cpp:140
#16 0x00007fab2fac64b5 in Okular::Document::closeDocument (this=0x1afb040) at /chakra/desktop-unstable/kdegraphics-okular/src/okular-4.7.80/core/document.cpp:1832
#17 0x00007fab2fd87289 in Okular::Part::closeUrl (this=0x1a59670) at /chakra/desktop-unstable/kdegraphics-okular/src/okular-4.7.80/part.cpp:1337
#18 0x00007fab2fd87860 in Okular::Part::~Part (this=0x1a59670, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /chakra/desktop-unstable/kdegraphics-okular/src/okular-4.7.80/part.cpp:774
#19 0x00007fab2fd878c9 in Okular::Part::~Part (this=0x1a59670, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /chakra/desktop-unstable/kdegraphics-okular/src/okular-4.7.80/part.cpp:799
#20 0x000000000040990c in Shell::~Shell (this=0x19ef530, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /chakra/desktop-unstable/kdegraphics-okular/src/okular-4.7.80/shell/shell.cpp:123
#21 0x00000000004099b9 in Shell::~Shell (this=0x19ef530, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /chakra/desktop-unstable/kdegraphics-okular/src/okular-4.7.80/shell/shell.cpp:126
#22 0x00007fab3d932ad8 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#23 0x00007fab3e341ddb in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#24 0x00007fab3e6e081b in QMainWindow::event(QEvent*) () from /usr/lib/libQtGui.so.4
#25 0x00007fab3f0f9a58 in KXmlGuiWindow::event(QEvent*) () from /usr/lib/libkdeui.so.5
#26 0x00007fab3e2f1d94 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#27 0x00007fab3e2f6c01 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#28 0x00007fab3effce26 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#29 0x00007fab3d91c2fc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#30 0x00007fab3d91f66f in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#31 0x00007fab3d946ab3 in ?? () from /usr/lib/libQtCore.so.4
#32 0x00007fab39cbc6d3 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#33 0x00007fab39cbceb0 in ?? () from /usr/lib/libglib-2.0.so.0
#34 0x00007fab39cbd14d in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#35 0x00007fab3d946f16 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#36 0x00007fab3e394cae in ?? () from /usr/lib/libQtGui.so.4
#37 0x00007fab3d91b4f2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#38 0x00007fab3d91b6f7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#39 0x00007fab3d91f8eb in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#40 0x0000000000408206 in main (argc=<optimized out>, argv=<optimized out>) at /chakra/desktop-unstable/kdegraphics-okular/src/okular-4.7.80/shell/main.cpp:85

Reported using DrKonqi
Comment 1 Albert Astals Cid 2011-11-21 09:13:43 UTC
Any chance you could open and close those pdf files one by one and then close them and attach here the one that makes this crash?
Comment 2 Weng Xuetian 2011-11-21 10:59:34 UTC
Oh, I found the file can reproduce this bug.

It's too big so I put it here:
http://uploads.csslayer.tk/uploads/MANAGING%20AND%20MINING%20GRAPH%20DATA.pdf

Open it, ctrl + g go to 512 page, close it. that will always reproduce it on my machine.
Comment 3 Albert Astals Cid 2011-11-25 21:01:58 UTC
Which zoom are you using?
Comment 4 Albert Astals Cid 2011-11-25 21:14:34 UTC
No need to asnwer, i was trying with the wrong okular version :D
Comment 5 Albert Astals Cid 2011-11-28 23:53:12 UTC
*** Bug 287783 has been marked as a duplicate of this bug. ***
Comment 6 Albert Astals Cid 2011-11-29 00:01:40 UTC
Git commit dcf0e78227959a52300d8f253c4b1058b3e81567 by Albert Astals Cid.
Committed on 29/11/2011 at 00:54.
Pushed by aacid into branch 'master'.

Properly parse "characters" formed by two QChars

This fixes the crash at 287138, it does still not really fix the flaw in the algorithm in TextPagePrivate::breakWordIntoCharacters
when there are two strings with the same text and the same bounding rectangle in the same page, but i still don't know how to fix that problem properly,
so i've fixed a bug that was generating the situation for files that actually do not have it
BUGS: 287138

M  +31   -11   generators/poppler/generator_pdf.cpp

http://commits.kde.org/okular/dcf0e78227959a52300d8f253c4b1058b3e81567
Comment 7 Francesco Riosa 2011-11-29 11:57:48 UTC
Created attachment 66188 [details]
New crash information added by DrKonqi

okular (0.13.80) on KDE Platform 4.7.3 (4.7.3) using Qt 4.7.4

trying the same pdf

commit dcf0e78227959a52300d8f253c4b1058b3e81567

is applied

-- Backtrace (Reduced):
#6  0x00007f23e3003ac5 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f23e3004f3b in __GI_abort () at abort.c:93
[...]
#9  0x00007f23e30431b6 in malloc_printerr (action=3, str=0x7f23e3114411 "free(): invalid pointer", ptr=<optimized out>) at malloc.c:6283
#10 0x00007f23cfb9abe7 in qDeleteAll<QList<TinyTextEntity*>::const_iterator> (begin=..., end=...) at /usr/include/qt4/QtCore/qalgorithms.h:322
#11 0x00007f23cfb9acfd in qDeleteAll<QList<TinyTextEntity*> > (c=...) at /usr/include/qt4/QtCore/qalgorithms.h:330
Comment 8 Francesco Riosa 2011-11-29 12:10:47 UTC
Created attachment 66189 [details]
dell_monitor_u2410.pdf.xz

"the same pdf" in the previous comment is referred to "dell_monitor_u2410.pdf" mentioned in Bug 287783. I've compressed it and attached.

MANAGING%20AND%20MINING%20GRAPH%20DATA.pdf seem to work fine with commit dcf0e7822, but I've not tryed it before.
Comment 9 Francesco Riosa 2011-11-29 12:12:05 UTC
Reopening with reasoning at comments #7,#8
Comment 10 Albert Astals Cid 2012-08-09 21:00:00 UTC
I am almost sure i fixed this bug forgot to close the bug. Please if it still crashes for you with a newer okular reopen this bug.