Bug 436408 - Okular crashes when opening docx file
Summary: Okular crashes when opening docx file
Status: RESOLVED WORKSFORME
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 21.04.0
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2021-04-30 15:14 UTC by Sascha Gaspar
Modified: 2021-05-30 04:33 UTC (History)
1 user (show)

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 Sascha Gaspar 2021-04-30 15:14:57 UTC
Application: okular (21.04.0)

Qt Version: 5.15.2
Frameworks Version: 5.81.0
Operating System: Linux 5.11.16-1-default x86_64
Windowing System: X11
Drkonqi Version: 5.21.4
Distribution: "openSUSE Tumbleweed"

-- Information about the crash:
- What I was doing when the application crashed:

I clicked on a docx file in an other application and it tried to open it with Okular.

I wonder if Okular has a buggy file type checking or no check at all when it tries to open a file. There are many bug reports related to this. E.g.:
426020
425725
417241
415261
408851
408818
406738
But this is only an assumption.

The crash can be reproduced every time.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault
Content of s_kcrashErrorMessage: [Current thread is 1 (Thread 0x7f25b88f3880 (LWP 506243))]
[KCrash Handler]
#6  0x00007f25b445f990 in Okular::Generator::image (this=<optimized out>, request=0x7f25b445fb00 <Okular::Generator::layersModel() const>) at /usr/src/debug/okular-21.04.0-1.1.x86_64/core/generator.cpp:330
#7  0x00007f25b464763a in Layers::notifySetup (this=0x565370bcf290) at /usr/src/debug/okular-21.04.0-1.1.x86_64/part/layers.cpp:63
#8  0x00007f25b4441a32 in Okular::Document::openDocument (this=this@entry=0x565370777a00, docFile=..., url=..., _mime=..., password=...) at /usr/src/debug/okular-21.04.0-1.1.x86_64/core/document.cpp:2412
#9  0x00007f25b45aacc5 in Okular::Part::doOpenFile (this=this@entry=0x5653707720d0, mimeA=..., fileNameToOpenA=..., isCompressedFile=isCompressedFile@entry=0x7ffef36101d7) at /usr/src/debug/okular-21.04.0-1.1.x86_64/part/part.cpp:1391
#10 0x00007f25b45ad4fb in Okular::Part::openFile (this=0x5653707720d0) at /usr/src/debug/okular-21.04.0-1.1.x86_64/part/part.cpp:1509
#11 0x00007f25bc6a4105 in KParts::ReadOnlyPartPrivate::openLocalFile (this=this@entry=0x565370642f70) at /usr/src/debug/kparts-5.81.0-1.2.x86_64/src/readonlypart.cpp:180
#12 0x00007f25bc6a843f in KParts::ReadOnlyPart::openUrl (this=0x5653707720d0, url=...) at /usr/src/debug/kparts-5.81.0-1.2.x86_64/src/readonlypart.cpp:141
#13 0x00007f25b45ab8c3 in Okular::Part::openUrl (this=<optimized out>, _url=..., swapInsteadOfOpening=<optimized out>) at /usr/src/debug/okular-21.04.0-1.1.x86_64/part/part.cpp:1741
#14 0x000056536eb8843d in Shell::openUrl (this=<optimized out>, url=..., serializedOptions=...) at /usr/src/debug/okular-21.04.0-1.1.x86_64/shell/shell.cpp:289
#15 0x000056536eb8d72e in Shell::openDocument (this=0x56537076f5a0, url=..., serializedOptions=...) at /usr/src/debug/okular-21.04.0-1.1.x86_64/shell/shell.cpp:240
#16 0x000056536eb84abe in Shell::openDocument (serializedOptions=..., url=..., this=0x56537076f5a0) at /usr/src/debug/okular-21.04.0-1.1.x86_64/shell/okular_main.cpp:165
#17 Okular::main (serializedOptions=..., paths=...) at /usr/src/debug/okular-21.04.0-1.1.x86_64/shell/okular_main.cpp:166
#18 main (argc=<optimized out>, argv=0x7ffef3610760) at /usr/src/debug/okular-21.04.0-1.1.x86_64/shell/main.cpp:95
[Inferior 1 (process 506243) detached]

Possible duplicates by query: bug 435462, bug 433909, bug 426020, bug 425725, bug 421603.

Reported using DrKonqi
Comment 1 Albert Astals Cid 2021-04-30 19:22:39 UTC
This backtrace is sadly not so useful. 

Can you reproduce the crash every time?

If so can you run in a terminal

valgrind okular myfile.docx 

and attach the output here?

Also, can you share such docx file?
Comment 2 Bug Janitor Service 2021-05-15 04:33:38 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2021-05-30 04:33:38 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!