Bug 247332 - Okular cannot open some pdf files
Summary: Okular cannot open some pdf files
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 0.10.5
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-11 08:05 UTC by Dhaval Giani
Modified: 2010-08-18 20:11 UTC (History)
1 user (show)

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


Attachments
New crash information added by DrKonqi (5.70 KB, text/plain)
2010-08-12 03:50 UTC, Dhaval Giani
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dhaval Giani 2010-08-11 08:05:20 UTC
Application: okular (0.10.5)
KDE Platform Version: 4.4.5 (KDE 4.4.5)
Qt Version: 4.6.3
Operating System: Linux 2.6.33.3-85.fc13.x86_64 x86_64
Distribution: "Fedora release 13 (Goddard)"

-- Information about the crash:
On entering the password, the application crashes. Unfortunately, I cannot share the pdf since it is a sensitive document.

I have been able to open it in gv though.

The crash can be reproduced every time.

 -- Backtrace:
Application: Okular (okular), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f7c42ba5820 (LWP 3525))]

Thread 2 (Thread 0x7f7c34f4b710 (LWP 3529)):
[KCrash Handler]
#5  0x00007f7c387c4580 in opj_image_destroy () from /usr/lib64/libopenjpeg.so.2
#6  0x00007f7c387c72af in j2k_decode () from /usr/lib64/libopenjpeg.so.2
#7  0x00007f7c38a6a362 in JPXStream::init2(unsigned char*, int, CODEC_FORMAT) () from /usr/lib64/libpoppler.so.5
#8  0x00007f7c38a6a443 in JPXStream::init2(unsigned char*, int, CODEC_FORMAT) () from /usr/lib64/libpoppler.so.5
#9  0x00007f7c38a6a53a in JPXStream::init() () from /usr/lib64/libpoppler.so.5
#10 0x00007f7c38a6a59e in JPXStream::getImageParams(int*, StreamColorSpaceMode*) () from /usr/lib64/libpoppler.so.5
#11 0x00007f7c38a99ca7 in Gfx::doImage(Object*, Stream*, int) () from /usr/lib64/libpoppler.so.5
#12 0x00007f7c38aa0279 in Gfx::opXObject(Object*, int) () from /usr/lib64/libpoppler.so.5
#13 0x00007f7c38a8ee0d in Gfx::go(int) () from /usr/lib64/libpoppler.so.5
#14 0x00007f7c38a92074 in Gfx::display(Object*, int) () from /usr/lib64/libpoppler.so.5
#15 0x00007f7c38a93c95 in Gfx::doForm1(Object*, Dict*, double*, double*, int, int, GfxColorSpace*, int, int, int, Function*, GfxColor*) () from /usr/lib64/libpoppler.so.5
#16 0x00007f7c38a9fc53 in Gfx::doForm(Object*) () from /usr/lib64/libpoppler.so.5
#17 0x00007f7c38aa02f3 in Gfx::opXObject(Object*, int) () from /usr/lib64/libpoppler.so.5
#18 0x00007f7c38a8ee0d in Gfx::go(int) () from /usr/lib64/libpoppler.so.5
#19 0x00007f7c38a92074 in Gfx::display(Object*, int) () from /usr/lib64/libpoppler.so.5
#20 0x00007f7c38a93c95 in Gfx::doForm1(Object*, Dict*, double*, double*, int, int, GfxColorSpace*, int, int, int, Function*, GfxColor*) () from /usr/lib64/libpoppler.so.5
#21 0x00007f7c38a9fc53 in Gfx::doForm(Object*) () from /usr/lib64/libpoppler.so.5
#22 0x00007f7c38aa02f3 in Gfx::opXObject(Object*, int) () from /usr/lib64/libpoppler.so.5
#23 0x00007f7c38a8ee0d in Gfx::go(int) () from /usr/lib64/libpoppler.so.5
#24 0x00007f7c38a92074 in Gfx::display(Object*, int) () from /usr/lib64/libpoppler.so.5
#25 0x00007f7c38a93c95 in Gfx::doForm1(Object*, Dict*, double*, double*, int, int, GfxColorSpace*, int, int, int, Function*, GfxColor*) () from /usr/lib64/libpoppler.so.5
#26 0x00007f7c38aa10dd in Gfx::drawAnnot(Object*, AnnotBorder*, AnnotColor*, double, double, double, double) () from /usr/lib64/libpoppler.so.5
#27 0x00007f7c38a73dbf in AnnotWidget::draw(Gfx*, int) () from /usr/lib64/libpoppler.so.5
#28 0x00007f7c38acf30d in Page::displaySlice(OutputDev*, double, double, int, int, int, int, int, int, int, int, Catalog*, int (*)(void*), void*, int (*)(Annot*, void*), void*) ()
   from /usr/lib64/libpoppler.so.5
#29 0x00007f7c38ddccee in Poppler::Page::renderToImage(double, double, int, int, int, int, Poppler::Page::Rotation) const () from /usr/lib64/libpoppler-qt4.so.3
#30 0x00007f7c3902fce5 in ?? () from /usr/lib64/kde4/okularGenerator_poppler.so
#31 0x0000003c49e711a5 in ?? () from /usr/lib64/libQtCore.so.4
#32 0x0000003c3fa07761 in start_thread () from /lib64/libpthread.so.0
#33 0x0000003c3f2e14ed in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f7c42ba5820 (LWP 3525)):
#0  0x0000003c3fa0b3bc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x0000003c49e70993 in ?? () from /usr/lib64/libQtCore.so.4
#2  0x0000003c49e6d0b5 in QMutex::lock() () from /usr/lib64/libQtCore.so.4
#3  0x00007f7c3903331e in ?? () from /usr/lib64/kde4/okularGenerator_poppler.so
#4  0x00007f7c3ab5d2ad in Okular::Document::openDocument(QString const&, KUrl const&, KSharedPtr<KMimeType> const&) () from /usr/lib64/libokularcore.so.1
#5  0x00007f7c3ae0a37c in ?? () from /usr/lib64/kde4/okularpart.so
#6  0x000000396bc21c17 in KParts::ReadOnlyPart::openUrl(KUrl const&) () from /usr/lib64/libkparts.so.4
#7  0x00007f7c3adfedfa in ?? () from /usr/lib64/kde4/okularpart.so
#8  0x000000000040918a in _start ()

Reported using DrKonqi
Comment 1 Pino Toscano 2010-08-11 10:35:19 UTC
Which version of poppler and openjpeg do you have installed?
Comment 2 Dhaval Giani 2010-08-11 10:38:12 UTC
[dhaval@gondor ~]$ rpm -qa | grep jpeg
libjpeg-6b-46.fc12.x86_64
libjpeg-6b-46.fc12.i686
openjpeg-libs-1.3-7.fc13.x86_64
libjpeg-devel-6b-46.fc12.x86_64
[dhaval@gondor ~]$ rpm -qv poppler
poppler-0.12.4-5.fc13.x86_64
[dhaval@gondor ~]$
Comment 3 Albert Astals Cid 2010-08-11 20:09:44 UTC
Can you install packages with debug information for poppler and openjpeg (if they exist in your distro) and post the backtrace again?

Can you run the okular through valgrind and paste the output? i.e valgrind okular myfile.pdf
Comment 4 Dhaval Giani 2010-08-12 03:50:56 UTC
Created attachment 50037 [details]
New crash information added by DrKonqi

backtrace with debuginfo
Comment 5 Dhaval Giani 2010-08-12 03:53:35 UTC
[dhaval@gondor Documents]$ valgrind okular 7160.pdf
==8237== Memcheck, a memory error detector
==8237== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==8237== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
==8237== Command: okular 7160.pdf
==8237== 
==8237== Syscall param write(buf) points to uninitialised byte(s)
==8237==    at 0x3C3FA0E410: __write_nocancel (syscall-template.S:82)
==8237==    by 0x3C44A08F2E: ??? (in /usr/lib64/libICE.so.6.3.0)
==8237==    by 0x3C44A0D707: _IceWrite (in /usr/lib64/libICE.so.6.3.0)
==8237==    by 0x3C44A0D7F3: IceFlush (in /usr/lib64/libICE.so.6.3.0)
==8237==    by 0x3C4C81290C: ??? (in /usr/lib64/libQtGui.so.4.6.3)
==8237==    by 0x3C4C81641F: ??? (in /usr/lib64/libQtGui.so.4.6.3)
==8237==    by 0x3C4C826E5D: ??? (in /usr/lib64/libQtGui.so.4.6.3)
==8237==    by 0x3C4C827B58: ??? (in /usr/lib64/libQtGui.so.4.6.3)
==8237==    by 0x3C4460623B: _SmcProcessMessage (in /usr/lib64/libSM.so.6.0.0)
==8237==    by 0x3C44A12153: IceProcessMessages (in /usr/lib64/libICE.so.6.3.0)
==8237==    by 0x3C4C812D7E: ??? (in /usr/lib64/libQtGui.so.4.6.3)
==8237==    by 0x3C49F66A35: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib64/libQtCore.so.4.6.3)
==8237==  Address 0xb78889c is 12 bytes inside a block of size 1,024 alloc'd
==8237==    at 0x4A04481: calloc (vg_replace_malloc.c:418)
==8237==    by 0x3C44A05CD8: IceOpenConnection (in /usr/lib64/libICE.so.6.3.0)
==8237==    by 0x3C4460270A: SmcOpenConnection (in /usr/lib64/libSM.so.6.0.0)
==8237==    by 0x3C4C819627: QSessionManager::QSessionManager(QApplication*, QString&, QString&) (in /usr/lib64/libQtGui.so.4.6.3)
==8237==    by 0x3C4C7B64AB: QApplicationPrivate::initialize() (in /usr/lib64/libQtGui.so.4.6.3)
==8237==    by 0x3C4C7B6650: QApplicationPrivate::construct(_XDisplay*, unsigned long, unsigned long) (in /usr/lib64/libQtGui.so.4.6.3)
==8237==    by 0x3C4C7B6DA7: QApplication::QApplication(int&, char**, bool, int) (in /usr/lib64/libQtGui.so.4.6.3)
==8237==    by 0x3C4DE093E6: KApplication::KApplication(bool) (in /usr/lib64/libkdeui.so.5.4.0)
==8237==    by 0x407FF3: ??? (in /usr/bin/okular)
==8237==    by 0x3C3F21EC5C: (below main) (libc-start.c:226)
==8237== 
Error: Incorrect password
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Annotation Widget not supported. 
==8237== Thread 2:
==8237== Conditional jump or move depends on uninitialised value(s)
==8237==    at 0x10622143: jp2_read_boxhdr (jp2.c:102)
==8237==    by 0x10622597: jp2_decode (jp2.c:474)
==8237==    by 0x102CC361: JPXStream::init2(unsigned char*, int, CODEC_FORMAT) (JPEG2000Stream.cc:125)
==8237==    by 0x102CC539: JPXStream::init() (JPEG2000Stream.cc:80)                                                                                                                                                                         
==8237==    by 0x102CC59D: JPXStream::getImageParams(int*, StreamColorSpaceMode*) (JPEG2000Stream.cc:181)                                                                                                                                   
==8237==    by 0x102FBCA6: Gfx::doImage(Object*, Stream*, int) (Gfx.cc:3789)                                                                                                                                                                
==8237==    by 0x10302278: Gfx::opXObject(Object*, int) (Gfx.cc:3736)                                                                                                                                                                       
==8237==    by 0x102F0E0C: Gfx::go(int) (Gfx.cc:671)                                                                                                                                                                                        
==8237==    by 0x102F4073: Gfx::display(Object*, int) (Gfx.cc:640)                                                                                                                                                                          
==8237==    by 0x102F5C94: Gfx::doForm1(Object*, Dict*, double*, double*, int, int, GfxColorSpace*, int, int, int, Function*, GfxColor*) (Gfx.cc:4309)                                                                                      
==8237==    by 0x10301C52: Gfx::doForm(Object*) (Gfx.cc:4235)                                                                                                                                                                               
==8237==    by 0x103022F2: Gfx::opXObject(Object*, int) (Gfx.cc:3744)                                                                                                                                                                       
==8237==                                                                                                                                                                                                                                    
==8237== Conditional jump or move depends on uninitialised value(s)                                                                                                                                                                         
==8237==    at 0x10622147: jp2_read_boxhdr (jp2.c:111)                                                                                                                                                                                      
==8237==    by 0x10622597: jp2_decode (jp2.c:474)                                                                                                                                                                                           
==8237==    by 0x102CC361: JPXStream::init2(unsigned char*, int, CODEC_FORMAT) (JPEG2000Stream.cc:125)                                                                                                                                      
==8237==    by 0x102CC539: JPXStream::init() (JPEG2000Stream.cc:80)                                                                                                                                                                         
==8237==    by 0x102CC59D: JPXStream::getImageParams(int*, StreamColorSpaceMode*) (JPEG2000Stream.cc:181)                                                                                                                                   
==8237==    by 0x102FBCA6: Gfx::doImage(Object*, Stream*, int) (Gfx.cc:3789)                                                                                                                                                                
==8237==    by 0x10302278: Gfx::opXObject(Object*, int) (Gfx.cc:3736)                                                                                                                                                                       
==8237==    by 0x102F0E0C: Gfx::go(int) (Gfx.cc:671)                                                                                                                                                                                        
==8237==    by 0x102F4073: Gfx::display(Object*, int) (Gfx.cc:640)                                                                                                                                                                          
==8237==    by 0x102F5C94: Gfx::doForm1(Object*, Dict*, double*, double*, int, int, GfxColorSpace*, int, int, int, Function*, GfxColor*) (Gfx.cc:4309)
Comment 6 Dhaval Giani 2010-08-12 04:15:17 UTC
considering that it does run at times with valgrind, I am assuming there is a thread safety issue.
Comment 7 Albert Astals Cid 2010-08-12 20:02:22 UTC
I doubt it's a thread issue, actually the valgrind log says libopenjpeg is using an uninitialized variable, that is something that can very well lead to a crash situation.

To verify the thing about threads can you run 
valgrind --tool=helgrind okular myfile.pdf
and paste the output?
Comment 8 Dhaval Giani 2010-08-12 20:11:14 UTC
[dhaval@gondor Documents]$ valgrind --tool=helgrind okular 7160.pdf
==15837== Helgrind, a thread error detector
==15837== Copyright (C) 2007-2009, and GNU GPL'd, by OpenWorks LLP et al.
==15837== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
==15837== Command: okular 7160.pdf
==15837== 
==15837== Thread #1 is the program's root thread
==15837== 
==15837== Thread #1: lock order "0x4C79B60 before 0x4CF2F20" violated
==15837==    at 0x4A078DF: QMutex::lock() (hg_intercepts.c:1987)
==15837==    by 0x3C49F568E3: QCoreApplication::libraryPaths() (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49F3C20D: QFactoryLoader::update() (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49F3EE53: QFactoryLoader::QFactoryLoader(char const*, QString const&, Qt::CaseSensitivity) (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C4C812139: ??? (in /usr/lib64/libQtGui.so.4.6.3)
==15837==    by 0x3C4C81BBC7: QApplicationPrivate::x11_apply_settings() (in /usr/lib64/libQtGui.so.4.6.3)
==15837==    by 0x3C4C81E39D: ??? (in /usr/lib64/libQtGui.so.4.6.3)
==15837==    by 0x3C4C825233: ??? (in /usr/lib64/libQtGui.so.4.6.3)
==15837==    by 0x3C4C7B6648: QApplicationPrivate::construct(_XDisplay*, unsigned long, unsigned long) (in /usr/lib64/libQtGui.so.4.6.3)
==15837==    by 0x3C4C7B6DA7: QApplication::QApplication(int&, char**, bool, int) (in /usr/lib64/libQtGui.so.4.6.3)
==15837==    by 0x3C4DE093E6: KApplication::KApplication(bool) (in /usr/lib64/libkdeui.so.5.4.0)
==15837==    by 0x407FF3: ??? (in /usr/bin/okular)
==15837==   Required order was established by acquisition of lock at 0x4C79B60
==15837==    at 0x4A078DF: QMutex::lock() (hg_intercepts.c:1987)
==15837==    by 0x3C49F56F9B: QCoreApplication::addLibraryPath(QString const&) (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C4C81A4C7: QApplicationPrivate::x11_apply_settings() (in /usr/lib64/libQtGui.so.4.6.3)
==15837==    by 0x3C4C81E39D: ??? (in /usr/lib64/libQtGui.so.4.6.3)
==15837==    by 0x3C4C825233: ??? (in /usr/lib64/libQtGui.so.4.6.3)
==15837==    by 0x3C4C7B6648: QApplicationPrivate::construct(_XDisplay*, unsigned long, unsigned long) (in /usr/lib64/libQtGui.so.4.6.3)
==15837==    by 0x3C4C7B6DA7: QApplication::QApplication(int&, char**, bool, int) (in /usr/lib64/libQtGui.so.4.6.3)
==15837==    by 0x3C4DE093E6: KApplication::KApplication(bool) (in /usr/lib64/libkdeui.so.5.4.0)
==15837==    by 0x407FF3: ??? (in /usr/bin/okular)
==15837==    by 0x3C3F21EC5C: (below main) (libc-start.c:226)
==15837==   followed by a later acquisition of lock at 0x4CF2F20
==15837==    at 0x4A078DF: QMutex::lock() (hg_intercepts.c:1987)
==15837==    by 0x3C49F3ED0B: QFactoryLoader::refreshAll() (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49F57031: QCoreApplication::addLibraryPath(QString const&) (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C4C81A4C7: QApplicationPrivate::x11_apply_settings() (in /usr/lib64/libQtGui.so.4.6.3)
==15837==    by 0x3C4C81E39D: ??? (in /usr/lib64/libQtGui.so.4.6.3)
==15837==    by 0x3C4C825233: ??? (in /usr/lib64/libQtGui.so.4.6.3)
==15837==    by 0x3C4C7B6648: QApplicationPrivate::construct(_XDisplay*, unsigned long, unsigned long) (in /usr/lib64/libQtGui.so.4.6.3)                                                                                                    
==15837==    by 0x3C4C7B6DA7: QApplication::QApplication(int&, char**, bool, int) (in /usr/lib64/libQtGui.so.4.6.3)                                                                                                                         
==15837==    by 0x3C4DE093E6: KApplication::KApplication(bool) (in /usr/lib64/libkdeui.so.5.4.0)                                                                                                                                            
==15837==    by 0x407FF3: ??? (in /usr/bin/okular)                                                                                                                                                                                          
==15837==    by 0x3C3F21EC5C: (below main) (libc-start.c:226)                                                                                                                                                                               
==15837==                                                                                                                                                                                                                                   
Error: Incorrect password                                                                                                                                                                                                                   
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)                                                                                                                                      
Annotation Widget not supported.                                                                                                                                                                                                            
Error: Expected JP Marker                                                                                                                                                                                                                   
                                                                                                                                                                                                                                            
Error: Failed to decode jp2 structure                                                                                                                                                                                                       
                                                                                                                                                                                                                                            
Error: Did no succeed opening JPX Stream as JP2, trying as J2K.                                                                                                                                                                             
Error: 00000000: expected a marker instead of 0                                                                                                                                                                                             
                                                                                                                                                                                                                                            
Error: Did no succeed opening JPX Stream as J2K, trying as JPT.                                                                                                                                                                             
Error: Did no succeed opening JPX Stream.                                                                                                                                                                                                   
==15837== Thread #3 was created                                                                                                                                                                                                             
==15837==    at 0x3C3F2E14AE: clone (clone.S:77)                                                                                                                                                                                            
==15837==    by 0x3C3FA066EF: do_clone.clone.0 (createthread.c:75)                                                                                                                                                                          
==15837==    by 0x3C3FA06BD1: pthread_create@@GLIBC_2.2.5 (createthread.c:256)
==15837==    by 0x4A094BF: pthread_create_WRK (hg_intercepts.c:229)
==15837==    by 0x4A09562: pthread_create@* (hg_intercepts.c:256)
==15837==    by 0x3C49E71771: QThread::start(QThread::Priority) (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0xEDC40DB: ??? (in /usr/lib64/kde4/okularGenerator_poppler.so)
==15837==    by 0xCEA242B: ??? (in /usr/lib64/libokularcore.so.1.4.0)
==15837==    by 0xCEA2F55: ??? (in /usr/lib64/libokularcore.so.1.4.0)
==15837==    by 0xEDC77D5: ??? (in /usr/lib64/kde4/okularGenerator_poppler.so)
==15837==    by 0xEDC7A63: ??? (in /usr/lib64/kde4/okularGenerator_poppler.so)
==15837==    by 0x3C49F62F30: QObject::event(QEvent*) (in /usr/lib64/libQtCore.so.4.6.3)
==15837== 
==15837== Possible data race during write of size 8 at 0x13ea6be0 by thread #3
==15837==    at 0x4A077F8: QMutex::lock() (hg_intercepts.c:1982)
==15837==    by 0x3C49F7A01F: QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate(_GMainContext*) (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49F7A14F: QEventDispatcherGlib::QEventDispatcherGlib(QObject*) (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49E7101E: ??? (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49E71184: ??? (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x4A095EB: mythread_wrapper (hg_intercepts.c:201)
==15837==    by 0x3C3FA07760: start_thread (pthread_create.c:301)
==15837==    by 0x3C3F2E14EC: clone (clone.S:115)
==15837== 
==15837== Possible data race during write of size 8 at 0x13ea6be8 by thread #3
==15837==    at 0x4A07800: QMutex::lock() (hg_intercepts.c:1982)
==15837==    by 0x3C49F7A01F: QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate(_GMainContext*) (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49F7A14F: QEventDispatcherGlib::QEventDispatcherGlib(QObject*) (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49E7101E: ??? (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49E71184: ??? (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x4A095EB: mythread_wrapper (hg_intercepts.c:201)
==15837==    by 0x3C3FA07760: start_thread (pthread_create.c:301)
==15837==    by 0x3C3F2E14EC: clone (clone.S:115)
==15837== 
==15837== Possible data race during write of size 8 at 0x13ea6bf0 by thread #3
==15837==    at 0x4A07804: QMutex::lock() (hg_intercepts.c:1982)
==15837==    by 0x3C49F7A01F: QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate(_GMainContext*) (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49F7A14F: QEventDispatcherGlib::QEventDispatcherGlib(QObject*) (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49E7101E: ??? (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49E71184: ??? (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x4A095EB: mythread_wrapper (hg_intercepts.c:201)
==15837==    by 0x3C3FA07760: start_thread (pthread_create.c:301)
==15837==    by 0x3C3F2E14EC: clone (clone.S:115)
==15837== 
==15837== Possible data race during write of size 8 at 0x13ea6bf8 by thread #3
==15837==    at 0x4A0780C: QMutex::lock() (hg_intercepts.c:1982)
==15837==    by 0x3C49F7A01F: QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate(_GMainContext*) (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49F7A14F: QEventDispatcherGlib::QEventDispatcherGlib(QObject*) (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49E7101E: ??? (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49E71184: ??? (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x4A095EB: mythread_wrapper (hg_intercepts.c:201)
==15837==    by 0x3C3FA07760: start_thread (pthread_create.c:301)
==15837==    by 0x3C3F2E14EC: clone (clone.S:115)
==15837== 
==15837== Possible data race during write of size 8 at 0x13ea6c00 by thread #3
==15837==    at 0x4A07814: QMutex::lock() (hg_intercepts.c:1982)
==15837==    by 0x3C49F7A01F: QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate(_GMainContext*) (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49F7A14F: QEventDispatcherGlib::QEventDispatcherGlib(QObject*) (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49E7101E: ??? (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49E71184: ??? (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x4A095EB: mythread_wrapper (hg_intercepts.c:201)
==15837==    by 0x3C3FA07760: start_thread (pthread_create.c:301)
==15837==    by 0x3C3F2E14EC: clone (clone.S:115)
==15837== 
==15837== Possible data race during write of size 8 at 0x13ea6c08 by thread #3
==15837==    at 0x4A0781C: QMutex::lock() (hg_intercepts.c:1982)
==15837==    by 0x3C49F7A01F: QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate(_GMainContext*) (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49F7A14F: QEventDispatcherGlib::QEventDispatcherGlib(QObject*) (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49E7101E: ??? (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49E71184: ??? (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x4A095EB: mythread_wrapper (hg_intercepts.c:201)
==15837==    by 0x3C3FA07760: start_thread (pthread_create.c:301)
==15837==    by 0x3C3F2E14EC: clone (clone.S:115)
==15837== 
==15837== Possible data race during write of size 8 at 0x13ea6b68 by thread #3
==15837==    at 0x4A04737: calloc (vg_replace_malloc.c:418)
==15837==    by 0x3C3EE44A17: g_malloc0 (in /lib64/libglib-2.0.so.0.2400.1)
==15837==    by 0x3C3EE59A32: g_slice_alloc (in /lib64/libglib-2.0.so.0.2400.1)
==15837==    by 0x3C3EE16280: g_ptr_array_sized_new (in /lib64/libglib-2.0.so.0.2400.1)
==15837==    by 0x3C3EE3CA0A: g_main_context_new (in /lib64/libglib-2.0.so.0.2400.1)
==15837==    by 0x3C49F79F9C: QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate(_GMainContext*) (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49F7A14F: QEventDispatcherGlib::QEventDispatcherGlib(QObject*) (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49E7101E: ??? (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49E71184: ??? (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x4A095EB: mythread_wrapper (hg_intercepts.c:201)
==15837==    by 0x3C3FA07760: start_thread (pthread_create.c:301)
==15837==    by 0x3C3F2E14EC: clone (clone.S:115)
==15837== 
==15837== Possible data race during write of size 8 at 0x13ea6b70 by thread #3
==15837==    at 0x4A0473B: calloc (vg_replace_malloc.c:418)
==15837==    by 0x3C3EE44A17: g_malloc0 (in /lib64/libglib-2.0.so.0.2400.1)
==15837==    by 0x3C3EE59A32: g_slice_alloc (in /lib64/libglib-2.0.so.0.2400.1)
==15837==    by 0x3C3EE16280: g_ptr_array_sized_new (in /lib64/libglib-2.0.so.0.2400.1)
==15837==    by 0x3C3EE3CA0A: g_main_context_new (in /lib64/libglib-2.0.so.0.2400.1)
==15837==    by 0x3C49F79F9C: QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate(_GMainContext*) (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49F7A14F: QEventDispatcherGlib::QEventDispatcherGlib(QObject*) (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49E7101E: ??? (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49E71184: ??? (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x4A095EB: mythread_wrapper (hg_intercepts.c:201)
==15837==    by 0x3C3FA07760: start_thread (pthread_create.c:301)
==15837==    by 0x3C3F2E14EC: clone (clone.S:115)
==15837== 
==15837== Possible data race during write of size 8 at 0x13ea6b78 by thread #3
==15837==    at 0x4A0473F: calloc (vg_replace_malloc.c:418)
==15837==    by 0x3C3EE44A17: g_malloc0 (in /lib64/libglib-2.0.so.0.2400.1)
==15837==    by 0x3C3EE59A32: g_slice_alloc (in /lib64/libglib-2.0.so.0.2400.1)
==15837==    by 0x3C3EE16280: g_ptr_array_sized_new (in /lib64/libglib-2.0.so.0.2400.1)
==15837==    by 0x3C3EE3CA0A: g_main_context_new (in /lib64/libglib-2.0.so.0.2400.1)
==15837==    by 0x3C49F79F9C: QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate(_GMainContext*) (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49F7A14F: QEventDispatcherGlib::QEventDispatcherGlib(QObject*) (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49E7101E: ??? (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49E71184: ??? (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x4A095EB: mythread_wrapper (hg_intercepts.c:201)
==15837==    by 0x3C3FA07760: start_thread (pthread_create.c:301)
==15837==    by 0x3C3F2E14EC: clone (clone.S:115)
==15837== 
Error: Expected JP Marker
 
Error: Failed to decode jp2 structure
 
Error: Did no succeed opening JPX Stream as JP2, trying as J2K. 
Error: 00000000: expected a marker instead of 0
 
Error: Did no succeed opening JPX Stream as J2K, trying as JPT. 
Error: Did no succeed opening JPX Stream. 
Error: Expected JP Marker
 
Error: Failed to decode jp2 structure
 
Error: Did no succeed opening JPX Stream as JP2, trying as J2K. 
KCrash: Application 'okular' crashing...
okular: Fatal IO error: client killed
==15837== Thread #5 was created
==15837==    at 0x3C3F2E14AE: clone (clone.S:77)
==15837==    by 0x3C3FA066EF: do_clone.clone.0 (createthread.c:75)
==15837==    by 0x3C3FA06BD1: pthread_create@@GLIBC_2.2.5 (createthread.c:256)
==15837==    by 0x4A094BF: pthread_create_WRK (hg_intercepts.c:229)
==15837==    by 0x4A09562: pthread_create@* (hg_intercepts.c:256)
==15837==    by 0x3C49E71771: QThread::start(QThread::Priority) (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0xEDC40DB: ??? (in /usr/lib64/kde4/okularGenerator_poppler.so)
==15837==    by 0xCEA242B: ??? (in /usr/lib64/libokularcore.so.1.4.0)
==15837==    by 0xCEA2F55: ??? (in /usr/lib64/libokularcore.so.1.4.0)
==15837==    by 0xEDC77D5: ??? (in /usr/lib64/kde4/okularGenerator_poppler.so)
==15837==    by 0xEDC7A63: ??? (in /usr/lib64/kde4/okularGenerator_poppler.so)
==15837==    by 0x3C49F62F30: QObject::event(QEvent*) (in /usr/lib64/libQtCore.so.4.6.3)
==15837== 
==15837== Possible data race during write of size 8 at 0x3c4a262708 by thread #1
==15837==    at 0x3C4C812477: QApplicationPrivate::reset_instance_pointer() (in /usr/lib64/libQtGui.so.4.6.3)
==15837==    by 0x3C4C81469D: ??? (in /usr/lib64/libQtGui.so.4.6.3)
==15837==    by 0x3C4DE06D77: KApplication::xioErrhandler(_XDisplay*) (in /usr/lib64/libkdeui.so.5.4.0)
==15837==    by 0x3C40E4556D: _XIOError (in /usr/lib64/libX11.so.6.3.0)
==15837==    by 0x3C40E4D084: ??? (in /usr/lib64/libX11.so.6.3.0)
==15837==    by 0x3C40E4D946: _XEventsQueued (in /usr/lib64/libX11.so.6.3.0)
==15837==    by 0x3C40E361FE: XEventsQueued (in /usr/lib64/libX11.so.6.3.0)
==15837==    by 0x3C4C84A996: ??? (in /usr/lib64/libQtGui.so.4.6.3)
==15837==    by 0x3C3EE3F270: g_main_context_prepare (in /lib64/libglib-2.0.so.0.2400.1)
==15837==    by 0x3C3EE3F6B7: ??? (in /lib64/libglib-2.0.so.0.2400.1)
==15837==    by 0x3C3EE3FC9B: g_main_context_iteration (in /lib64/libglib-2.0.so.0.2400.1)
==15837==    by 0x3C49F79862: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib64/libQtCore.so.4.6.3)
==15837==  This conflicts with a previous read of size 8 by thread #5
==15837==    at 0x3C49F79F77: QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate(_GMainContext*) (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49F7A14F: QEventDispatcherGlib::QEventDispatcherGlib(QObject*) (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49E7101E: ??? (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49E71184: ??? (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x4A095EB: mythread_wrapper (hg_intercepts.c:201)
==15837==    by 0x3C3FA07760: start_thread (pthread_create.c:301)
==15837==    by 0x3C3F2E14EC: clone (clone.S:115)
==15837== 
sock_file=/home/dhaval/.kde/socket-gondor.retis/kdeinit4__0
==15837== Thread #1: lock order "0x4D66060 before 0x4D6AE40" violated
==15837==    at 0x4A0654C: pthread_mutex_lock (hg_intercepts.c:464)
==15837==    by 0x3C43E2A9B7: ??? (in /lib64/libdbus-1.so.3.4.0)
==15837==    by 0x3C43E0AE90: ??? (in /lib64/libdbus-1.so.3.4.0)
==15837==    by 0x3C43E0EE5F: ??? (in /lib64/libdbus-1.so.3.4.0)
==15837==    by 0x3C43E0F450: ??? (in /lib64/libdbus-1.so.3.4.0)
==15837==    by 0x3C43E0F666: ??? (in /lib64/libdbus-1.so.3.4.0)
==15837==    by 0x3C43E0A221: dbus_bus_remove_match (in /lib64/libdbus-1.so.3.4.0)
==15837==    by 0x3C4B41F1DB: ??? (in /usr/lib64/libQtDBus.so.4.6.3)
==15837==    by 0x3C4B420012: ??? (in /usr/lib64/libQtDBus.so.4.6.3)
==15837==    by 0x3C4B459983: ??? (in /usr/lib64/libQtDBus.so.4.6.3)
==15837==    by 0x3C49F66A35: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C49F66E0E: QObject::destroyed(QObject*) (in /usr/lib64/libQtCore.so.4.6.3)
==15837==   Required order was established by acquisition of lock at 0x4D66060
==15837==    at 0x4A0654C: pthread_mutex_lock (hg_intercepts.c:464)
==15837==    by 0x3C43E2A9B7: ??? (in /lib64/libdbus-1.so.3.4.0)
==15837==    by 0x3C43E0B50E: ??? (in /lib64/libdbus-1.so.3.4.0)
==15837==    by 0x3C4B414BD7: QDBusConnection::connectToBus(QDBusConnection::BusType, QString const&) (in /usr/lib64/libQtDBus.so.4.6.3)
==15837==    by 0x3C4B414E8B: QDBusConnection::sessionBus() (in /usr/lib64/libQtDBus.so.4.6.3)
==15837==    by 0x3C4DE296C4: KGlobalSettings::KGlobalSettings() (in /usr/lib64/libkdeui.so.5.4.0)
==15837==    by 0x3C4DE297AD: KGlobalSettings::self() (in /usr/lib64/libkdeui.so.5.4.0)
==15837==    by 0xB108948: qt_plugin_instance (in /usr/lib64/kde4/plugins/gui_platform/libkde.so)
==15837==    by 0x3C49F3C139: QFactoryLoader::instance(QString const&) const (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C4C81214C: ??? (in /usr/lib64/libQtGui.so.4.6.3)
==15837==    by 0x3C4C81BBC7: QApplicationPrivate::x11_apply_settings() (in /usr/lib64/libQtGui.so.4.6.3)
==15837==    by 0x3C4C81E39D: ??? (in /usr/lib64/libQtGui.so.4.6.3)
==15837==   followed by a later acquisition of lock at 0x4D6AE40
==15837==    at 0x4A0654C: pthread_mutex_lock (hg_intercepts.c:464)
==15837==    by 0x3C43E2A9B7: ??? (in /lib64/libdbus-1.so.3.4.0)
==15837==    by 0x3C43E0E95D: ??? (in /lib64/libdbus-1.so.3.4.0)
==15837==    by 0x3C43E0F935: ??? (in /lib64/libdbus-1.so.3.4.0)
==15837==    by 0x3C43E0B682: ??? (in /lib64/libdbus-1.so.3.4.0)
==15837==    by 0x3C4B414BD7: QDBusConnection::connectToBus(QDBusConnection::BusType, QString const&) (in /usr/lib64/libQtDBus.so.4.6.3)
==15837==    by 0x3C4B414E8B: QDBusConnection::sessionBus() (in /usr/lib64/libQtDBus.so.4.6.3)
==15837==    by 0x3C4DE296C4: KGlobalSettings::KGlobalSettings() (in /usr/lib64/libkdeui.so.5.4.0)
==15837==    by 0x3C4DE297AD: KGlobalSettings::self() (in /usr/lib64/libkdeui.so.5.4.0)
==15837==    by 0xB108948: qt_plugin_instance (in /usr/lib64/kde4/plugins/gui_platform/libkde.so)
==15837==    by 0x3C49F3C139: QFactoryLoader::instance(QString const&) const (in /usr/lib64/libQtCore.so.4.6.3)
==15837==    by 0x3C4C81214C: ??? (in /usr/lib64/libQtGui.so.4.6.3)
==15837== 
==15837== Possible data race during write of size 8 at 0x3c4bc71710 by thread #1
==15837==    at 0x3C4B90BE64: ??? (in /usr/lib64/libkdecore.so.5.4.0)
==15837==    by 0x3C3F235FD1: exit (exit.c:78)
==15837==    by 0x3C4C8146A7: ??? (in /usr/lib64/libQtGui.so.4.6.3)
==15837==    by 0x3C4DE06D77: KApplication::xioErrhandler(_XDisplay*) (in /usr/lib64/libkdeui.so.5.4.0)
==15837==    by 0x3C40E4556D: _XIOError (in /usr/lib64/libX11.so.6.3.0)
==15837==    by 0x3C40E4D084: ??? (in /usr/lib64/libX11.so.6.3.0)
==15837==    by 0x3C40E4D946: _XEventsQueued (in /usr/lib64/libX11.so.6.3.0)
==15837==    by 0x3C40E361FE: XEventsQueued (in /usr/lib64/libX11.so.6.3.0)
==15837==    by 0x3C4C84A996: ??? (in /usr/lib64/libQtGui.so.4.6.3)
==15837==    by 0x3C3EE3F270: g_main_context_prepare (in /lib64/libglib-2.0.so.0.2400.1)
==15837==    by 0x3C3EE3F6B7: ??? (in /lib64/libglib-2.0.so.0.2400.1)
==15837==    by 0x3C3EE3FC9B: g_main_context_iteration (in /lib64/libglib-2.0.so.0.2400.1)
==15837==  This conflicts with a previous read of size 8 by thread #5
==15837==    at 0x3C4B90C8E8: KGlobal::mainComponent() (in /usr/lib64/libkdecore.so.5.4.0)
==15837==    by 0x3C4DE70104: KCrash::defaultCrashHandler(int) (in /usr/lib64/libkdeui.so.5.4.0)
==15837==    by 0x3C3F232A1F: ??? (in /lib64/libc-2.12.so)
==15837==    by 0xF61F57F: opj_image_destroy (image.c:78)
==15837==    by 0xF6222AE: j2k_decode (j2k.c:1859)
==15837==    by 0xF2CE361: JPXStream::init2(unsigned char*, int, CODEC_FORMAT) (JPEG2000Stream.cc:125)
==15837==    by 0xF2CE442: JPXStream::init2(unsigned char*, int, CODEC_FORMAT) (JPEG2000Stream.cc:136)
==15837==    by 0xF2CE539: JPXStream::init() (JPEG2000Stream.cc:80)
==15837== 
==15837== Possible data race during write of size 8 at 0x4c7e0f8 by thread #1
==15837==    at 0x3C4B90E97A: KComponentData::~KComponentData() (in /usr/lib64/libkdecore.so.5.4.0)
==15837==    by 0x3C4B90BED2: ??? (in /usr/lib64/libkdecore.so.5.4.0)
==15837==    by 0x3C3F235FD1: exit (exit.c:78)
==15837==    by 0x3C4C8146A7: ??? (in /usr/lib64/libQtGui.so.4.6.3)
==15837==    by 0x3C4DE06D77: KApplication::xioErrhandler(_XDisplay*) (in /usr/lib64/libkdeui.so.5.4.0)
==15837==    by 0x3C40E4556D: _XIOError (in /usr/lib64/libX11.so.6.3.0)
==15837==    by 0x3C40E4D084: ??? (in /usr/lib64/libX11.so.6.3.0)
==15837==    by 0x3C40E4D946: _XEventsQueued (in /usr/lib64/libX11.so.6.3.0)
==15837==    by 0x3C40E361FE: XEventsQueued (in /usr/lib64/libX11.so.6.3.0)
==15837==    by 0x3C4C84A996: ??? (in /usr/lib64/libQtGui.so.4.6.3)
==15837==    by 0x3C3EE3F270: g_main_context_prepare (in /lib64/libglib-2.0.so.0.2400.1)
==15837==    by 0x3C3EE3F6B7: ??? (in /lib64/libglib-2.0.so.0.2400.1)
==15837==  This conflicts with a previous read of size 8 by thread #5
==15837==    at 0x3C4B90DB60: KComponentData::isValid() const (in /usr/lib64/libkdecore.so.5.4.0)
==15837==    by 0x3C4B90C906: KGlobal::mainComponent() (in /usr/lib64/libkdecore.so.5.4.0)
==15837==    by 0x3C4DE70104: KCrash::defaultCrashHandler(int) (in /usr/lib64/libkdeui.so.5.4.0)
==15837==    by 0x3C3F232A1F: ??? (in /lib64/libc-2.12.so)
==15837==    by 0xF61F57F: opj_image_destroy (image.c:78)
==15837==    by 0xF6222AE: j2k_decode (j2k.c:1859)
==15837==    by 0xF2CE361: JPXStream::init2(unsigned char*, int, CODEC_FORMAT) (JPEG2000Stream.cc:125)
==15837==    by 0xF2CE442: JPXStream::init2(unsigned char*, int, CODEC_FORMAT) (JPEG2000Stream.cc:136)
==15837== 
==15837== Thread #5: Exiting thread still holds 1 lock
==15837==    at 0x3C3F2A6A6D: ??? (syscall-template.S:82)
==15837==    by 0x3C3F2A68DF: sleep (sleep.c:138)
==15837==    by 0x3C4DE6F8CB: ??? (in /usr/lib64/libkdeui.so.5.4.0)
==15837==    by 0x3C4DE70323: KCrash::defaultCrashHandler(int) (in /usr/lib64/libkdeui.so.5.4.0)
==15837==    by 0x3C3F232A1F: ??? (in /lib64/libc-2.12.so)
==15837==    by 0xF61F57F: opj_image_destroy (image.c:78)
==15837==    by 0xF6222AE: j2k_decode (j2k.c:1859)
==15837==    by 0xF2CE361: JPXStream::init2(unsigned char*, int, CODEC_FORMAT) (JPEG2000Stream.cc:125)
==15837==    by 0xF2CE442: JPXStream::init2(unsigned char*, int, CODEC_FORMAT) (JPEG2000Stream.cc:136)
==15837==    by 0xF2CE539: JPXStream::init() (JPEG2000Stream.cc:80)
==15837==    by 0xF2CE59D: JPXStream::getImageParams(int*, StreamColorSpaceMode*) (JPEG2000Stream.cc:181)
==15837==    by 0xF2FDCA6: Gfx::doImage(Object*, Stream*, int) (Gfx.cc:3789)
==15837== 
==15837== 
==15837== For counts of detected and suppressed errors, rerun with: -v
==15837== Use --history-level=approx or =none to gain increased speed, at
==15837== the cost of reduced accuracy of conflicting-access information
==15837== ERROR SUMMARY: 31 errors from 15 contexts (suppressed: 1230 from 234)
[dhaval@gondor Documents]$
Comment 9 Albert Astals Cid 2010-08-12 20:19:40 UTC
Ok, there are some warnings but none of them really fatal.

Now the thing is that pdf has some images that make libopenjpeg (the library we use to read them) crash. 

The thing is that for the libopenjpeg developers would be much easier to fix the code if they get the images, so, are the images in the pdf private too or can i make a program that extracts the image data from the file so it can help reproducing the crash? (I understand you'd be able to compile the program since you seem quite technically versed)
Comment 10 Dhaval Giani 2010-08-12 20:22:33 UTC
well, the pdf is a tax document and there does not seem to be text, just images. I can try out fixes, if you have some ideas.
Building and running from source is absolutely no problem.
Comment 11 Dhaval Giani 2010-08-12 20:28:21 UTC
btw, if you have a program to extract images, it will be great. if they are not sensitive, i can send them across.
Comment 12 Albert Astals Cid 2010-08-17 23:53:37 UTC
It would be great if you could compile openjpeg from svn and try if that fixes your problem.

To do that please do
svn checkout http://openjpeg.googlecode.com/svn/trunk/ openjpeg-read-only
cd openjpeg-read-only
make
Hope it works
ln -s libopenjpeg-2.1.4.0.so libopenjpeg.so.2
LD_LIBRARY_PATH=`pwd` okular myfile.pdf (note the ` need to be exactly `)

See if it crashes. If it still crashes please do

LD_LIBRARY_PATH=`pwd` valgrind okular myfile.pdf

and paste the output
Comment 13 Dhaval Giani 2010-08-18 06:07:28 UTC
yep. That fixes it.

Thanks a ton for looking into it.
Comment 14 Albert Astals Cid 2010-08-18 20:11:16 UTC
Confirmed by the user to be a bug in upstream openjpeg that seems to have been fixed in their latest code. Closing as Resolved/Upstream