Bug 167795 - Crash when filling in form fields in a PDF
Summary: Crash when filling in form fields in a PDF
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-31 00:47 UTC by Simon Edwards
Modified: 2008-07-31 21:01 UTC (History)
0 users

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 Simon Edwards 2008-07-31 00:47:32 UTC
Version:           0.7, KDE 4.1.00 (using KDE 4.1.0)
Installed from:    Ubuntu Packages
OS:                Linux

Okular crashes when filling in the fields on this PDF.

- Go to http://www.kpn.com/web/show/id=553044
- Click on "Opzegbrief UPC" to download the PDF.
- Open the PDF in Okular.
- Click on the button in the top right to make the form fields editable
- Type text into the first field.
=> Okular crash after approximately 5-6 characters.
Comment 1 Pino Toscano 2008-07-31 01:01:31 UTC
Could you please attach a backtrace, as explained in:
http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports
Comment 2 Dominik Tritscher 2008-07-31 20:15:00 UTC
I can confirm that issue. I tried to get a backtrace (dbg-package for kdegraphics is isntalled) but the crash manager just claimed that the stack frame may have been destroyed.
After running okular from gdb and retrying, I got the following output:
Starting program: /usr/lib/kde4/bin/okular                                   
(no debugging symbols found)                                                 
(no debugging symbols found)                                                 
[Thread debugging using libthread_db enabled]                                
[New Thread 0xb6230a40 (LWP 20234)]                                          
okular(20234) KMimeTypeFactory::parseMagic: Now parsing  "/usr/share/mime/magic"
okular(20234) KMimeTypeFactory::parseMagic: Now parsing  "/home/thechief/.local/share/mime/magic"
Annotation "Widget" not supported                                                                
Annotation "Widget" not supported                                                                
Annotation "Widget" not supported                                                                
Annotation "Widget" not supported                                                                
Annotation "Widget" not supported                                                                
Annotation "Widget" not supported                                                                
[New Thread 0xb2c25b90 (LWP 20288)]                                                              
[Thread 0xb2c25b90 (LWP 20288) exited]                                                           
[New Thread 0xb2c25b90 (LWP 20289)]                                                              
[Thread 0xb2c25b90 (LWP 20289) exited]                                                           
[New Thread 0xb2c25b90 (LWP 20292)]                                                              
[Thread 0xb2c25b90 (LWP 20292) exited]                                                           
[New Thread 0xb2c25b90 (LWP 20293)]                                                              
[Thread 0xb2c25b90 (LWP 20293) exited]                                                           
[New Thread 0xb2c25b90 (LWP 20298)]                                                              
[Thread 0xb2c25b90 (LWP 20298) exited]                                                           
[New Thread 0xb2c25b90 (LWP 20299)]                                                              
[Thread 0xb2c25b90 (LWP 20299) exited]                                                           
[New Thread 0xb2c25b90 (LWP 20320)]                                                              

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb2c25b90 (LWP 20320)]        
0xb2d10329 in XRef::addIndirectObject () from /usr/lib/libpoppler.so.3
Comment 3 Dominik Tritscher 2008-07-31 20:23:34 UTC
Ah sorry, forgot something important ;)
Here is the rest of the backtrace:
#0  0xb2f40329 in XRef::addIndirectObject () from /usr/lib/libpoppler.so.3
#1  0xb2ec6347 in AnnotWidget::generateFieldAppearance () from /usr/lib/libpoppler.so.3
#2  0xb2ec74d8 in AnnotWidget::draw () from /usr/lib/libpoppler.so.3
#3  0xb2f2ff1e in Page::displaySlice () from /usr/lib/libpoppler.so.3
#4  0xb2f33817 in PDFDoc::displayPageSlice () from /usr/lib/libpoppler.so.3
#5  0xb302f87a in Poppler::Page::renderToImage () from /usr/lib/libpoppler-qt4.so.3
#6  0xb30b42b0 in ?? () from /usr/lib/kde4/lib/kde4/okularGenerator_poppler.so
#7  0xb7626612 in ?? () from /usr/lib/libQtCore.so.4
#8  0xb64ef4fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#9  0xb6b02e5e in clone () from /lib/tls/i686/cmov/libc.so.6

I'm using libpoppler 0.8.3 from Ubuntu packages.
Comment 4 Dominik Tritscher 2008-07-31 20:49:22 UTC
In between I also install libpoppler 0.8.5 and the problem still exists.
Comment 5 Pino Toscano 2008-07-31 21:01:00 UTC
Cannot reproduce with Poppler HEAD.
But anyway, this looks not an Okular problem, but a Poppler one.
Please open a bug report for Poppler at https://bugs.freedesktop.org.

Thanks for your understanding.