Bug 308003 - Ark crashed at unpacking zipfile with odt file fresh downloaded from outlook.com
Summary: Ark crashed at unpacking zipfile with odt file fresh downloaded from outlook.com
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-07 08:29 UTC by Hanno
Modified: 2012-10-14 21:40 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.9.3
Sentry Crash Report:


Attachments
attachment-7819-0.html (5.27 KB, text/html)
2012-10-13 16:21 UTC, Hanno
Details
attachment-7819-1.dat (1 bytes, multipart/alternative)
2012-10-13 16:21 UTC, Hanno
Details
gemelde_mailfouten_original_.odt (19.35 KB, application/vnd.oasis.opendocument.text)
2012-10-13 16:21 UTC, Hanno
Details
mailfouten.zip (19.49 KB, application/zip)
2012-10-13 16:21 UTC, Hanno
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hanno 2012-10-07 08:29:09 UTC
Application: ark (2.17)
KDE Platform Version: 4.7.2 (4.7.2) "release 5"
Qt Version: 4.7.4
Operating System: Linux 3.1.10-1.16-desktop i686
Distribution: "openSUSE 12.1 (i586)"

-- Information about the crash:
- What I was doing when the application crashed:
On my own pc, with an account i made an .odt file containing messages about false mail adresses.
I sended this through a outlook.com mailadress to my original useraccount on my pc.
From there i downloaded it as a zip-file.
trying to unpack it Ark crashed, four times.
My pc is using standard SuSe, newest version, last update 2012-10-06.

To get the .odt file itself on the wanted place is not the problem. 
 
With regards,

Hanno.

The crash can be reproduced every time.

-- Backtrace:
Application: Ark (ark), signal: Segmentation fault
[KCrash Handler]
#6  QTextLayout::lineForTextPosition (this=0x0, pos=5576) at text/qtextlayout.cpp:803
#7  0xb19c6740 in Okular::TextDocumentUtils::calculateBoundingRect (document=<optimized out>, startPosition=0, endPosition=5576, rect=..., page=@0xbfcc6248) at /usr/src/debug/okular-4.7.2/core/textdocumentgenerator_p.h:43
#8  0xb19c85da in Okular::TextDocumentGeneratorPrivate::generateAnnotationInfos (this=0x8401168) at /usr/src/debug/okular-4.7.2/core/textdocumentgenerator.cpp:173
#9  0xb19c8b88 in Okular::TextDocumentGenerator::loadDocument (this=0x82ecaa8, fileName=..., pagesVector=...) at /usr/src/debug/okular-4.7.2/core/textdocumentgenerator.cpp:277
#10 0xb19acef0 in Okular::DocumentPrivate::openDocumentInternal (this=0x83056f0, offer=..., isstdin=false, docFile=..., filedata=...) at /usr/src/debug/okular-4.7.2/core/document.cpp:674
#11 0xb19b5540 in Okular::Document::openDocument (this=0x8300628, docFile=..., url=..., _mime=...) at /usr/src/debug/okular-4.7.2/core/document.cpp:1631
#12 0xb1b54454 in Okular::Part::openFile (this=0x82eff58) at /usr/src/debug/okular-4.7.2/part.cpp:965
#13 0xb76766d0 in KParts::ReadOnlyPartPrivate::openLocalFile (this=0x82f00b0) at /usr/src/debug/kdelibs-4.7.2/kparts/part.cpp:590
#14 0xb7676d95 in KParts::ReadOnlyPart::openUrl (this=0x82eff58, url=...) at /usr/src/debug/kdelibs-4.7.2/kparts/part.cpp:554
#15 0xb1b43a3f in Okular::Part::openUrl (this=0x82eff58, _url=...) at /usr/src/debug/okular-4.7.2/part.cpp:1084
#16 0xb3c3fc28 in ArkViewer::viewInInternalViewer (this=0x82ebeb8, filename=...) at /usr/src/debug/kdeutils-4.7.2/ark/part/arkviewer.cpp:190
#17 0xb3c40026 in ArkViewer::view (filename=..., parent=0x81b9740) at /usr/src/debug/kdeutils-4.7.2/ark/part/arkviewer.cpp:103
#18 0xb3c38abc in Ark::Part::slotPreviewExtracted (this=0x816b9e8, job=0x82c3430) at /usr/src/debug/kdeutils-4.7.2/ark/part/part.cpp:563
#19 0xb3c2ffa6 in Ark::Part::qt_metacall (this=0x816b9e8, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0xb24069f8) at /usr/src/debug/kdeutils-4.7.2/build/ark/part/moc_part.cpp:134
#20 0xb60a77ed in metacall (argv=0xb24069f8, idx=28, cl=QMetaObject::InvokeMetaMethod, object=0x816b9e8) at kernel/qmetaobject.cpp:237
#21 QMetaObject::metacall (object=0x816b9e8, cl=QMetaObject::InvokeMetaMethod, idx=28, argv=0xb24069f8) at kernel/qmetaobject.cpp:232
#22 0xb60b2315 in QMetaCallEvent::placeMetaCall (this=0xb2401a80, object=0x816b9e8) at kernel/qobject.cpp:535
#23 0xb60b983f in QObject::event (this=0x816b9e8, e=0xb2401a80) at kernel/qobject.cpp:1226
#24 0xb65f3f24 in notify_helper (e=0xb2401a80, receiver=0x816b9e8, this=0x807c5d8) at kernel/qapplication.cpp:4481
#25 QApplicationPrivate::notify_helper (this=0x807c5d8, receiver=0x816b9e8, e=0xb2401a80) at kernel/qapplication.cpp:4453
#26 0xb65f92b2 in QApplication::notify (this=0xb2401a80, receiver=0x816b9e8, e=0xb2401a80) at kernel/qapplication.cpp:4228
#27 0xb7154681 in KApplication::notify (this=0xbfcc746c, receiver=0x816b9e8, event=0xb2401a80) at /usr/src/debug/kdelibs-4.7.2/kdeui/kernel/kapplication.cpp:311
#28 0xb60a143e in QCoreApplication::notifyInternal (this=0xbfcc746c, receiver=0x816b9e8, event=0xb2401a80) at kernel/qcoreapplication.cpp:787
#29 0xb60a4c04 in sendEvent (event=<optimized out>, receiver=<optimized out>) at kernel/qcoreapplication.h:215
#30 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x805f9f8) at kernel/qcoreapplication.cpp:1428
#31 0xb60a4d4c in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1321
#32 0xb60cf414 in sendPostedEvents () at kernel/qcoreapplication.h:220
#33 postEventSourceDispatch (s=0x807e800) at kernel/qeventdispatcher_glib.cpp:277
#34 0xb5437e4f in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#35 0xb5438580 in ?? () from /usr/lib/libglib-2.0.so.0
#36 0xb543881a in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#37 0xb60cf847 in QEventDispatcherGlib::processEvents (this=0x805f590, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#38 0xb66a7b1a in QGuiEventDispatcherGlib::processEvents (this=0x805f590, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#39 0xb60a045d in QEventLoop::processEvents (this=0xbfcc7374, flags=...) at kernel/qeventloop.cpp:149
#40 0xb60a06a1 in QEventLoop::exec (this=0xbfcc7374, flags=...) at kernel/qeventloop.cpp:201
#41 0xb60a4dfa in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#42 0xb65f1da4 in QApplication::exec () at kernel/qapplication.cpp:3755
#43 0x080510fc in main (argc=) at /usr/src/debug/kdeutils-4.7.2/ark/app/main.cpp:209

Reported using DrKonqi
Comment 1 Raphael Kubo da Costa 2012-10-08 08:25:30 UTC
This looks like a problem in OkularPart, which was used to preview the ODT file. Reassigning to the Okular team.
Comment 2 Albert Astals Cid 2012-10-08 08:29:21 UTC
Are you unpacking or previewing the file?
Can we have the file?
Comment 3 Albert Astals Cid 2012-10-08 20:43:51 UTC
Created attachment 74518 [details]
attachment-7819-0.html

Need an answer...
Comment 4 Hanno 2012-10-13 16:21:22 UTC
Good evening Albert,

My excuses for my late answer.

Hereby the file.
The original is sended as well.

This week i updated my Linux from too many sources.
After that KDE did  not work anymore.
I installed all new.
The problem still occurs > file corrupt?

With regards, 

Hanno

Op maandag 8 oktober 2012 08:29:21 schreef u:
> https://bugs.kde.org/show_bug.cgi?id=308003
> 
> Albert Astals Cid <aacid@kde.org> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
> CC|                            |aacid@kde.org
> 
> --- Comment #2 from Albert Astals Cid <aacid@kde.org> ---
> Are you unpacking or previewing the file?
> Can we have the file?
Comment 5 Hanno 2012-10-13 16:21:24 UTC
Created attachment 74519 [details]
attachment-7819-1.dat
Comment 6 Hanno 2012-10-13 16:21:24 UTC
Created attachment 74520 [details]
gemelde_mailfouten_original_.odt
Comment 7 Hanno 2012-10-13 16:21:24 UTC
Created attachment 74521 [details]
mailfouten.zip
Comment 8 Albert Astals Cid 2012-10-14 16:58:08 UTC
Git commit 30e48300944ce478be110f1e0c2bdad1aec1cb58 by Albert Astals Cid.
Committed on 14/10/2012 at 18:56.
Pushed by aacid into branch 'KDE/4.9'.

Do not crash if start or end layout don't exist
FIXED-IN: 4.9.3

M  +5    -0    core/textdocumentgenerator_p.h

http://commits.kde.org/okular/30e48300944ce478be110f1e0c2bdad1aec1cb58
Comment 9 Hanno 2012-10-14 21:40:13 UTC
Albert:

This is a very nice experience!

Thank you!

With regards,

Hanno.

Op zondag 14 oktober 2012 16:58:08 schreef u:
> https://bugs.kde.org/show_bug.cgi?id=308003
> 
> Albert Astals Cid <aacid@kde.org> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
> Status|NEEDSINFO                   |RESOLVED
>    Version Fixed In|                            |4.9.3
>          Resolution|WAITINGFORINFO              |FIXED
>       Latest Commit|                            |http://commits.kde.org/okul
>                    |                            |ar/30e48300944ce478be110f1e
>                    |                            |0c2bdad1aec1cb58
> 
> --- Comment #8 from Albert Astals Cid <aacid@kde.org> ---
> Git commit 30e48300944ce478be110f1e0c2bdad1aec1cb58 by Albert Astals Cid.
> Committed on 14/10/2012 at 18:56.
> Pushed by aacid into branch 'KDE/4.9'.
> 
> Do not crash if start or end layout don't exist
> FIXED-IN: 4.9.3
> 
> M  +5    -0    core/textdocumentgenerator_p.h
> 
> http://commits.kde.org/okular/30e48300944ce478be110f1e0c2bdad1aec1cb58