Bug 421603 - Okular crash on loading a PDF
Summary: Okular crash on loading a PDF
Status: RESOLVED UPSTREAM
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: drkonqi
Depends on:
Blocks:
 
Reported: 2020-05-16 09:30 UTC by Cyrille Dunant
Modified: 2020-05-16 12:54 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cyrille Dunant 2020-05-16 09:30:42 UTC
Application: okular (1.10.70)

Qt Version: 5.15.0
Frameworks Version: 5.71.0
Operating System: Linux 5.6.12-1-default x86_64
Windowing system: X11
Distribution: "openSUSE Tumbleweed"

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

- Unusual behavior I noticed:

None

- Custom settings of the application:

None

Backtrace:

Application: Okular (okular), signal: Segmentation fault

[KCrash Handler]
#4  PDFDoc::getSignatureFields (this=<optimized out>) at /usr/src/debug/poppler-0.88.0-ku.5.1.x86_64/poppler/PDFDoc.cc:620
#5  0x00007fcc402f692e in Poppler::Document::signatures (this=0x5556039b6380) at /usr/src/debug/poppler-qt5-0.88.0-ku.5.1.x86_64/qt5/src/poppler-document.cc:837
#6  0x00007fcc4037f813 in PDFGenerator::loadPages (rotation=0, clear=false, pagesVector=..., this=<optimized out>) at /usr/include/qt5/QtCore/qlist.h:524
#7  PDFGenerator::init (this=this@entry=0x55560372c7e0, pagesVector=..., password=...) at /usr/src/debug/okular-20.07.70git.20200515T174404~7eb37c99c-ku.23.1.x86_64/generators/poppler/generator_pdf.cpp:670
#8  0x00007fcc403801e8 in PDFGenerator::loadDocumentWithPassword (this=0x55560372c7e0, filePath=..., pagesVector=..., password=...) at /usr/src/debug/okular-20.07.70git.20200515T174404~7eb37c99c-ku.23.1.x86_64/generators/poppler/generator_pdf.cpp:625
#9  0x00007fcc42307333 in Okular::DocumentPrivate::openDocumentInternal (this=0x5556035471e0, offer=..., isstdin=<optimized out>, docFile=..., filedata=..., password=...) at /usr/src/debug/okular-20.07.70git.20200515T174404~7eb37c99c-ku.23.1.x86_64/core/document.cpp:952
#10 0x00007fcc422fbfac in Okular::Document::openDocument (this=this@entry=0x555603522bb0, docFile=..., url=..., _mime=..., password=...) at /usr/src/debug/okular-20.07.70git.20200515T174404~7eb37c99c-ku.23.1.x86_64/core/document.cpp:2589
#11 0x00007fcc424ada35 in Okular::Part::doOpenFile (this=this@entry=0x5556034f6f70, mimeA=..., fileNameToOpenA=..., isCompressedFile=isCompressedFile@entry=0x7ffe676389e7) at /usr/src/debug/okular-20.07.70git.20200515T174404~7eb37c99c-ku.23.1.x86_64/part.cpp:1441
#12 0x00007fcc424afdbd in Okular::Part::openFile (this=0x5556034f6f70) at /usr/src/debug/okular-20.07.70git.20200515T174404~7eb37c99c-ku.23.1.x86_64/part.cpp:1575
#13 0x00007fcc4eb8669c in KParts::ReadOnlyPartPrivate::openLocalFile (this=this@entry=0x5556034fa040) at /usr/src/debug/kparts-5.71.0git.20200512T110304~aaabf23-ku.4.2.x86_64/src/readonlypart.cpp:190
#14 0x00007fcc4eb86eff in KParts::ReadOnlyPart::openUrl (this=0x5556034f6f70, url=...) at /usr/src/debug/kparts-5.71.0git.20200512T110304~aaabf23-ku.4.2.x86_64/src/readonlypart.cpp:153
#15 0x00007fcc424af21e in Okular::Part::openUrl (this=0x5556034f6f70, _url=..., swapInsteadOfOpening=<optimized out>) at /usr/src/debug/okular-20.07.70git.20200515T174404~7eb37c99c-ku.23.1.x86_64/part.cpp:1782
#16 0x0000555602cbe84e in Shell::openUrl (this=0x5556034ebb20, url=..., serializedOptions=...) at /usr/src/debug/okular-20.07.70git.20200515T174404~7eb37c99c-ku.23.1.x86_64/shell/shell.cpp:292
#17 0x0000555602cbedc7 in Shell::openDocument (this=0x5556034ebb20, url=..., serializedOptions=...) at /usr/src/debug/okular-20.07.70git.20200515T174404~7eb37c99c-ku.23.1.x86_64/shell/shell.cpp:233
#18 0x0000555602cb69f1 in Shell::openDocument (serializedOptions=..., url=..., this=0x5556034ebb20) at /usr/src/debug/okular-20.07.70git.20200515T174404~7eb37c99c-ku.23.1.x86_64/shell/okular_main.cpp:171
#19 Okular::main (serializedOptions=..., paths=...) at /usr/src/debug/okular-20.07.70git.20200515T174404~7eb37c99c-ku.23.1.x86_64/shell/okular_main.cpp:176
#20 main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/okular-20.07.70git.20200515T174404~7eb37c99c-ku.23.1.x86_64/shell/main.cpp:82
[Inferior 1 (process 23257) detached]

The crash can be reproduced every time.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault

[KCrash Handler]
#4  PDFDoc::getSignatureFields (this=<optimized out>) at /usr/src/debug/poppler-0.88.0-ku.5.1.x86_64/poppler/PDFDoc.cc:620
#5  0x00007fcc402f692e in Poppler::Document::signatures (this=0x5556039b6380) at /usr/src/debug/poppler-qt5-0.88.0-ku.5.1.x86_64/qt5/src/poppler-document.cc:837
#6  0x00007fcc4037f813 in PDFGenerator::loadPages (rotation=0, clear=false, pagesVector=..., this=<optimized out>) at /usr/include/qt5/QtCore/qlist.h:524
#7  PDFGenerator::init (this=this@entry=0x55560372c7e0, pagesVector=..., password=...) at /usr/src/debug/okular-20.07.70git.20200515T174404~7eb37c99c-ku.23.1.x86_64/generators/poppler/generator_pdf.cpp:670
#8  0x00007fcc403801e8 in PDFGenerator::loadDocumentWithPassword (this=0x55560372c7e0, filePath=..., pagesVector=..., password=...) at /usr/src/debug/okular-20.07.70git.20200515T174404~7eb37c99c-ku.23.1.x86_64/generators/poppler/generator_pdf.cpp:625
#9  0x00007fcc42307333 in Okular::DocumentPrivate::openDocumentInternal (this=0x5556035471e0, offer=..., isstdin=<optimized out>, docFile=..., filedata=..., password=...) at /usr/src/debug/okular-20.07.70git.20200515T174404~7eb37c99c-ku.23.1.x86_64/core/document.cpp:952
#10 0x00007fcc422fbfac in Okular::Document::openDocument (this=this@entry=0x555603522bb0, docFile=..., url=..., _mime=..., password=...) at /usr/src/debug/okular-20.07.70git.20200515T174404~7eb37c99c-ku.23.1.x86_64/core/document.cpp:2589
#11 0x00007fcc424ada35 in Okular::Part::doOpenFile (this=this@entry=0x5556034f6f70, mimeA=..., fileNameToOpenA=..., isCompressedFile=isCompressedFile@entry=0x7ffe676389e7) at /usr/src/debug/okular-20.07.70git.20200515T174404~7eb37c99c-ku.23.1.x86_64/part.cpp:1441
#12 0x00007fcc424afdbd in Okular::Part::openFile (this=0x5556034f6f70) at /usr/src/debug/okular-20.07.70git.20200515T174404~7eb37c99c-ku.23.1.x86_64/part.cpp:1575
#13 0x00007fcc4eb8669c in KParts::ReadOnlyPartPrivate::openLocalFile (this=this@entry=0x5556034fa040) at /usr/src/debug/kparts-5.71.0git.20200512T110304~aaabf23-ku.4.2.x86_64/src/readonlypart.cpp:190
#14 0x00007fcc4eb86eff in KParts::ReadOnlyPart::openUrl (this=0x5556034f6f70, url=...) at /usr/src/debug/kparts-5.71.0git.20200512T110304~aaabf23-ku.4.2.x86_64/src/readonlypart.cpp:153
#15 0x00007fcc424af21e in Okular::Part::openUrl (this=0x5556034f6f70, _url=..., swapInsteadOfOpening=<optimized out>) at /usr/src/debug/okular-20.07.70git.20200515T174404~7eb37c99c-ku.23.1.x86_64/part.cpp:1782
#16 0x0000555602cbe84e in Shell::openUrl (this=0x5556034ebb20, url=..., serializedOptions=...) at /usr/src/debug/okular-20.07.70git.20200515T174404~7eb37c99c-ku.23.1.x86_64/shell/shell.cpp:292
#17 0x0000555602cbedc7 in Shell::openDocument (this=0x5556034ebb20, url=..., serializedOptions=...) at /usr/src/debug/okular-20.07.70git.20200515T174404~7eb37c99c-ku.23.1.x86_64/shell/shell.cpp:233
#18 0x0000555602cb69f1 in Shell::openDocument (serializedOptions=..., url=..., this=0x5556034ebb20) at /usr/src/debug/okular-20.07.70git.20200515T174404~7eb37c99c-ku.23.1.x86_64/shell/okular_main.cpp:171
#19 Okular::main (serializedOptions=..., paths=...) at /usr/src/debug/okular-20.07.70git.20200515T174404~7eb37c99c-ku.23.1.x86_64/shell/okular_main.cpp:176
#20 main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/okular-20.07.70git.20200515T174404~7eb37c99c-ku.23.1.x86_64/shell/main.cpp:82
[Inferior 1 (process 23257) detached]

Possible duplicates by query: bug 418738, bug 416077, bug 414179, bug 409684, bug 408837.

Reported using DrKonqi
Comment 1 Yuri Chornoivan 2020-05-16 09:34:02 UTC
Can you attach this PDF for testing?

Thanks in advance for your answer.
Comment 2 Albert Astals Cid 2020-05-16 10:21:57 UTC
This is a bug in poppler 0.88.0 will be fixed in a few days once 0.89 is relased.

Os Tumbleweed really shipping unstable okular by default or are you enabling some bleeding edge repository?
Comment 3 Cyrille Dunant 2020-05-16 12:38:05 UTC
It's the unstable.

Do you need the pdf? It looks like this crash occurs on every pdf I've tried.
Comment 4 Yuri Chornoivan 2020-05-16 12:52:26 UTC
(In reply to Cyrille Dunant from comment #3)
> It's the unstable.
> 
> Do you need the pdf? It looks like this crash occurs on every pdf I've tried.

No. Now when Albert fixed this regression, it should work without further testing. Sorry.
Comment 5 Cyrille Dunant 2020-05-16 12:54:05 UTC
Thank you very much. I shall miss okular sorely for a few days ;)