Summary: | Crash on exit while PDF file is updated | ||
---|---|---|---|
Product: | [Applications] okular | Reporter: | auxsvr |
Component: | general | Assignee: | Okular developers <okular-devel> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | aacid, jirislaby, yurchor |
Priority: | NOR | ||
Version: | 0.17.1 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/okular/68439221ea29801133586d82f19a24f8f3627a31 | Version Fixed In: | 4.11.3 |
Attachments: |
Large tex document
New crash information added by DrKonqi |
Description
auxsvr
2013-07-28 17:52:39 UTC
I guess it's a latex file that takes "a while" to generate, right? Or can you also reproduce with "very simple" latex files? In order to reproduce this the PDF file must take so long to generate, that "Reloading the document..." is displayed while attempting to close okular. For small latex files the window of opportunity is too short. I don't have such a big latex file, can you provide one to us to help reproduce the problem? Created attachment 81546 [details]
Large tex document
I'm getting ! fontspec error: "font-not-found" ! ! The font "Minion Pro" cannot be found. ! ! See the fontspec documentation for further information. ! ! For immediate help type H <return>. Do you have any clue how to install that font on Ubuntu or maybe you can use a different font? Sorry i'm a tex noob (In reply to comment #5) > I'm getting > > ! fontspec error: "font-not-found" > ! > ! The font "Minion Pro" cannot be found. > ! > ! See the fontspec documentation for further information. > ! > ! For immediate help type H <return>. > > Do you have any clue how to install that font on Ubuntu or maybe you can use > a different font? > > Sorry i'm a tex noob It is enough to copy Minion Pro and Myriad Pro (*.otf) fonts from Adobe Reader Linux distribution to /usr/share/fonts/OTF (I can send you an archive with them if you need it) then run xelatex. Valgrind says ==23131== Invalid read of size 8 ==23131== at 0x17D258BB: TOCModelPrivate::~TOCModelPrivate() (tocmodel.cpp:108) ==23131== by 0x17D2591B: TOCModel::~TOCModel() (tocmodel.cpp:169) ==23131== by 0x17D25938: TOCModel::~TOCModel() (tocmodel.cpp:170) ==23131== by 0x7095307: QObjectPrivate::deleteChildren() (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.4) ==23131== by 0x5FA6B36: QWidget::~QWidget() (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.4) ==23131== by 0x648B008: QTreeView::~QTreeView() (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.4) ==23131== by 0x7095307: QObjectPrivate::deleteChildren() (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.4) ==23131== by 0x5FA6B36: QWidget::~QWidget() (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.4) ==23131== by 0x17D23838: TOC::~TOC() (toc.cpp:58) ==23131== by 0x17CA09E1: Okular::Part::~Part() (part.cpp:838) ==23131== by 0x17CA0CB8: Okular::Part::~Part() (part.cpp:863) ==23131== by 0x7095307: QObjectPrivate::deleteChildren() (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.4) ==23131== Address 0xedc2830 is 0 bytes inside a block of size 24 free'd ==23131== at 0x4C2BADC: operator delete(void*) (vg_replace_malloc.c:480) ==23131== by 0x7095307: QObjectPrivate::deleteChildren() (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.4) ==23131== by 0x5FA6B36: QWidget::~QWidget() (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.4) ==23131== by 0x648B008: QTreeView::~QTreeView() (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.4) ==23131== by 0x7095307: QObjectPrivate::deleteChildren() (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.4) ==23131== by 0x5FA6B36: QWidget::~QWidget() (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.4) ==23131== by 0x17D23838: TOC::~TOC() (toc.cpp:58) ==23131== by 0x17CA09E1: Okular::Part::~Part() (part.cpp:838) ==23131== by 0x17CA0CB8: Okular::Part::~Part() (part.cpp:863) ==23131== by 0x7095307: QObjectPrivate::deleteChildren() (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.4) ==23131== by 0x5FA6B36: QWidget::~QWidget() (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.4) ==23131== by 0x5A1FEE4: KMainWindow::~KMainWindow() (kmainwindow.cpp:467) Possible solutions, make TOCModel *m_oldModel; be a QPointer so it gets automatically nulled when it's deleted or change parentship of m_model in toc.cpp when calling setOldModelData/clearOldModelData Both look not nice. Comments on what you guys think its less worse? Created attachment 82340 [details]
New crash information added by DrKonqi
okular (0.17.1) on KDE Platform 4.11.1 using Qt 4.8.5
- What I was doing when the application crashed:
I just updated the pdf and moved it elsewhere. Then I tried to close okular and it crashed.
-- Backtrace (Reduced):
#7 0x00007ffcb452f971 in TOCModelPrivate::~TOCModelPrivate (this=0x23615a0, __in_chrg=<optimized out>) at /usr/src/debug/okular-4.11.1/ui/tocmodel.cpp:108
#8 0x00007ffcb452f9cc in TOCModel::~TOCModel (this=0x2353240, __in_chrg=<optimized out>) at /usr/src/debug/okular-4.11.1/ui/tocmodel.cpp:169
#9 0x00007ffcb452f9e9 in TOCModel::~TOCModel (this=0x2353240, __in_chrg=<optimized out>) at /usr/src/debug/okular-4.11.1/ui/tocmodel.cpp:170
#10 0x00007ffcc6ccc672 in QObjectPrivate::deleteChildren (this=0x1f2def0) at kernel/qobject.cpp:1916
#11 0x00007ffcc770d67c in QWidget::~QWidget (this=0x1dca2a0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1679
Git commit 68439221ea29801133586d82f19a24f8f3627a31 by Fabio D'Urso. Committed on 01/10/2013 at 14:19. Pushed by fabiod into branch 'KDE/4.11'. Unparent the old TOCModel so that it doesn't get deleted twice FIXED-IN: 4.11.3 M +3 -0 ui/toc.cpp http://commits.kde.org/okular/68439221ea29801133586d82f19a24f8f3627a31 |