Bug 154762 - When trying to open a .CBR file, Okular crashes
Summary: When trying to open a .CBR file, Okular crashes
Status: RESOLVED WORKSFORME
Alias: None
Product: okular
Classification: Applications
Component: Comicbook backend (show other bugs)
Version: 0.5.94
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-28 16:55 UTC by Fernando Neubaum
Modified: 2009-01-14 11:34 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 Fernando Neubaum 2007-12-28 16:55:30 UTC
Version:           0.5.94 (using KDE KDE 3.97.0)
Installed from:    Ubuntu Packages
OS:                Linux

I've tried to use Okular to read comic books and as soon as I try to open a .CBR file, the app crashes. I've noticed that when the extension is not capitalized (.cbr) this doesn't happen and the app works like a charm, so I'd think that the problem comes from there.

Thank you very much for your great effort, both Okular and KDE4 are great.
Fernando Javier Neubaum
Comment 1 Pino Toscano 2007-12-28 17:42:26 UTC
Hm, it works here.

Can you please execute the following command in a console:
  unrar --version | head -n 1
?
Comment 2 Fernando Neubaum 2007-12-28 18:19:49 UTC
I did it, and this is the result:

taoman@Introspeccion:/home$ unrar --version | head -n 1

taoman@Introspeccion:/home$

I'm sorry but I have no idea what that means, hope it's useful.

Thanks in advance.
Comment 3 Pino Toscano 2007-12-28 18:23:21 UTC
Hm, so you seem to be using the non-free version of unrar.

Can you paste the backtrace of the crash?
Comment 4 Fernando Neubaum 2007-12-28 23:24:40 UTC
This is the complete backtrace:

(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1236547904 (LWP 6657)]
[New Thread -1277494384 (LWP 6664)]
[KCrash handler]
#6  0xffffe410 in __kernel_vsyscall ()
#7  0xb6864875 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb6866201 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb7da301d in qt_message_output () from /usr/lib/libQtCore.so.4
#10 0xb7da30a1 in qFatal () from /usr/lib/libQtCore.so.4
#11 0xb7da320d in qt_assert () from /usr/lib/libQtCore.so.4
#12 0xb3db77b0 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#13 0xb3db7c34 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#14 0xb3db7840 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#15 0x00000280 in ?? ()
#16 0xb3db83b0 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#17 0x00000020 in ?? ()
#18 0x00000020 in ?? ()
#19 0xbfa72c38 in ?? ()
#20 0xb3db735f in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#21 0xbfa72c18 in ?? ()
#22 0x086c0e7c in ?? ()
#23 0x00000020 in ?? ()
#24 0xbfa72c1a in ?? ()
#25 0xbfa72c18 in ?? ()
#26 0xbfa72c26 in ?? ()
#27 0xbfa72c24 in ?? ()
#28 0xbfa72c14 in ?? ()
#29 0xbfa72c16 in ?? ()
#30 0x00000012 in ?? ()
#31 0x086c0e7c in ?? ()
#32 0x086c0e80 in ?? ()
#33 0x00320030 in ?? ()
#34 0x00280028 in ?? ()
#35 0x002e0029 in ?? ()
#36 0xb3db7640 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#37 0xbfa72c44 in ?? ()
#38 0x002e0029 in ?? ()
#39 0x00300030 in ?? ()
#40 0xb3db83b0 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#41 0x086c0e7c in ?? ()
#42 0xbfa72c88 in ?? ()
#43 0xbfa72c48 in ?? ()
#44 0xb3db75b3 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#45 0x086c0e80 in ?? ()
#46 0xb3db83b0 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#47 0xbfa72ca8 in ?? ()
#48 0xb3db3e94 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#49 0x086c0e80 in ?? ()
#50 0x086c0e7c in ?? ()
#51 0x00000001 in ?? ()
#52 0xbfa72c74 in ?? ()
#53 0xbfa72c76 in ?? ()
#54 0x00000012 in ?? ()
#55 0xbfa72c80 in ?? ()
#56 0xbfa72c84 in ?? ()
#57 0xbfa72c8c in ?? ()
#58 0x00320032 in ?? ()
#59 0x00000003 in ?? ()
#60 0xb3db7640 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#61 0x086c0e80 in ?? ()
#62 0x086c0e80 in ?? ()
#63 0x086c0e7c in ?? ()
#64 0x086c0e7c in ?? ()
#65 0x086c0e88 in ?? ()
#66 0xbfa72ce8 in ?? ()
#67 0xb3db3d9b in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#68 0xb3db83b0 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#69 0xbfa72cf4 in ?? ()
#70 0xbfa72ce8 in ?? ()
#71 0xbfa72d08 in ?? ()
#72 0xb3db4069 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#73 0xbfa72cf4 in ?? ()
#74 0xbfa72cf0 in ?? ()
#75 0x086c0e7c in ?? ()
#76 0xb3db75a0 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#77 0xbfa72cd6 in ?? ()
#78 0x00000001 in ?? ()
#79 0xbfa72ce0 in ?? ()
#80 0xbfa72ce4 in ?? ()
#81 0xbfa72cec in ?? ()
#82 0xbfa72cf0 in ?? ()
#83 0x00000006 in ?? ()
#84 0xb3db7640 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#85 0x086c0e88 in ?? ()
#86 0x086c0e88 in ?? ()
#87 0x086c0e88 in ?? ()
#88 0x086c0e7c in ?? ()
#89 0x086c0e84 in ?? ()
#90 0x086c0e7c in ?? ()
#91 0xb3db3d9b in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#92 0xb3db83b0 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#93 0xbfa72d54 in ?? ()
#94 0xbfa72d48 in ?? ()
#95 0xbfa72d68 in ?? ()
#96 0xb3db4069 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#97 0xbfa72d54 in ?? ()
#98 0xbfa72d50 in ?? ()
#99 0x086c0e7c in ?? ()
#100 0xb3db75a0 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#101 0xbfa72d36 in ?? ()
#102 0x00000001 in ?? ()
#103 0xbfa72d40 in ?? ()
#104 0xbfa72d44 in ?? ()
#105 0xbfa72d4c in ?? ()
#106 0xbfa72d50 in ?? ()
#107 0x0000000d in ?? ()
#108 0xb3db7640 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#109 0x086c0e94 in ?? ()
#110 0x086c0e94 in ?? ()
#111 0x086c0e94 in ?? ()
#112 0x086c0e7c in ?? ()
#113 0x086c0e90 in ?? ()
#114 0x086c0e7c in ?? ()
#115 0xb3db3d9b in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#116 0xb3db83b0 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#117 0xbfa72db4 in ?? ()
#118 0xbfa72da8 in ?? ()
#119 0xbfa72dc8 in ?? ()
#120 0xb3db4069 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#121 0xbfa72db4 in ?? ()
#122 0xbfa72db0 in ?? ()
#123 0x086c0e7c in ?? ()
#124 0xb3db75a0 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#125 0xbfa72d96 in ?? ()
#126 0x00000101 in ?? ()
#127 0xbfa72da0 in ?? ()
#128 0xbfa72da4 in ?? ()
#129 0xbfa72dac in ?? ()
#130 0xbfa72db0 in ?? ()
#131 0x0000001b in ?? ()
#132 0xbfa72db8 in ?? ()
#133 0x086c0eb0 in ?? ()
#134 0x086c0eb0 in ?? ()
#135 0x086c0eb0 in ?? ()
#136 0x086c0e7c in ?? ()
#137 0x086c0eac in ?? ()
#138 0x086c0e7c in ?? ()
#139 0xb3db3d9b in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#140 0xb3db83b0 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#141 0xbfa72e14 in ?? ()
#142 0xbfa72e08 in ?? ()
#143 0xbfa72e28 in ?? ()
#144 0xb3db4069 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#145 0xbfa72e14 in ?? ()
#146 0xbfa72e10 in ?? ()
#147 0x086c0e7c in ?? ()
#148 0xb3db75a0 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#149 0x086c0f50 in ?? ()
#150 0x086ae5b8 in ?? ()
#151 0xbfa72e00 in ?? ()
#152 0xbfa72e04 in ?? ()
#153 0xbfa72e0c in ?? ()
#154 0xbfa72e10 in ?? ()
#155 0x00000036 in ?? ()
#156 0xb3db457f in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#157 0x086c0ee8 in ?? ()
#158 0x086c0ee8 in ?? ()
#159 0x086c0ee8 in ?? ()
#160 0x086c0e7c in ?? ()
#161 0x086c0ee4 in ?? ()
#162 0x086c0e7c in ?? ()
#163 0xb3db3d9b in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#164 0xb3db83b0 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#165 0xbfa72e58 in ?? ()
#166 0xbfa72e54 in ?? ()
#167 0xbfa72e68 in ?? ()
#168 0xb3db41b3 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#169 0xbfa72e58 in ?? ()
#170 0xbfa72e54 in ?? ()
#171 0x086c0e7c in ?? ()
#172 0xb3db75a0 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#173 0xb3db83b0 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#174 0xbfa72ea0 in ?? ()
#175 0x086c0e7c in ?? ()
#176 0xb3db468c in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#177 0xbfa72ea8 in ?? ()
#178 0x086c0f50 in ?? ()
#179 0x086c0e7c in ?? ()
#180 0xb3db83b0 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#181 0x00000000 in ?? ()
#0  0xffffe410 in __kernel_vsyscall ()
Comment 5 Pino Toscano 2008-01-14 17:52:36 UTC
Fernando,

do you still have this crash with a more recent version of Okular? (like 0.6)
Comment 6 Tobias Koenig 2008-03-06 15:15:23 UTC
Hej Fernando,

could you send me the console output of okular please, or
the comic book that causes the crash?
Otherwise I see no chance to fix the bug.

Ciao,
Tobias
Comment 7 Brian Beck 2008-04-17 20:07:32 UTC
I too am getting a crash on opening some comic book files (.cbr).  However, the crashes do not seem to have anything to do with the capitalization of the file name.  I am using version 0.6.3, and it only occurs on certain files.  It is reproducible so if someone would like I can send them the file that it is crashing on.  Also the same file will open in qcomicbook, so I am fairly certain the issue is not with the file itself.

Here is what the command line looks like:

$ okular file.cbr
okular(11988) UnrarHelper::UnrarHelper: detected: "unrar-nonfree"
ASSERT: "i >= 0 && i < size()" in file /usr/include/qt4/QtCore/qstring.h, line 640
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = okular path = <unknown> pid = 11988
sock_file=/home/bbeck/.kde4/socket-tardis/kdeinit4__0


Here is the backtrace:

(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1236461168 (LWP 11988)]
[New Thread -1285444720 (LWP 11989)]
[KCrash handler]
#6  0xffffe410 in __kernel_vsyscall ()
#7  0xb6c8c875 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb6c8e201 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb7d9c01d in qt_message_output (msgType=QtFatalMsg, 
    buf=0xbf8118c0 "ASSERT: \"i >= 0 && i < size()\" in file /usr/include/qt4/QtCore/qstring.h, line 640") at global/qglobal.cpp:2162
#10 0xb7d9c0a1 in qFatal (msg=0xb7e92fb0 "ASSERT: \"%s\" in file %s, line %d")
    at global/qglobal.cpp:2393
#11 0xb7d9c20d in qt_assert (assertion=0xb36ca794 "i >= 0 && i < size()", 
    file=0xb36ca2e0 "/usr/include/qt4/QtCore/qstring.h", line=640)
    at global/qglobal.cpp:1919
#12 0xb36c9ba0 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#13 0xb36ca794 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#14 0xb36ca2e0 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#15 0x00000280 in ?? ()
#16 0xb36cbb78 in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#17 0x00000005 in ?? ()
#18 0x00000005 in ?? ()
#19 0xbf813968 in ?? ()
#20 0xb36c972e in ?? ()
   from /usr/lib/kde4/lib/kde4/okularGenerator_comicbook.so
#21 0xbf81394a in ?? ()
#22 0x08518ba0 in ?? ()
#23 0x00000005 in ?? ()
#24 0xbf81394a in ?? ()
#25 0xbf813948 in ?? ()
#26 0xbf813956 in ?? ()
#27 0xbf813954 in ?? ()
#28 0xbf813944 in ?? ()
#29 0xbf813946 in ?? ()
#30 0x00000101 in ?? ()
#31 0x08518b24 in ?? ()
#32 0x08518ba0 in ?? ()
#33 0xb6da7ff4 in ?? () from /lib/tls/i686/cmov/libc.so.6
#34 0xbf813a50 in ?? ()
#35 0x00740074 in ?? ()
#36 0xbf813968 in ?? ()
#37 0xb6ccdf65 in malloc () from /lib/tls/i686/cmov/libc.so.6
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
#0  0xffffe410 in __kernel_vsyscall ()
Comment 8 Pino Toscano 2008-04-17 20:22:06 UTC
If any of the documents can be freely distributed, could you please attach it to this bug?

Otherwise, just email it to me..
Comment 9 Pino Toscano 2008-06-11 17:38:10 UTC
Any news about this bug with KDE 4.0.5?
Comment 10 Pino Toscano 2008-08-05 20:03:22 UTC
Hello Fernando,

can you reproduce the problem with a more recent Okular version (for example Okular 0.7 in KDE 4.1)?
Comment 11 Pino Toscano 2008-12-21 17:56:09 UTC
No more feedback in basically one year from the reporter, and more than eight months for the other comment.
No testcase for the problem, so assuming it was not there or that was fixed in the meanwhile.
Comment 12 Brandon Myers 2009-01-05 03:24:03 UTC
I'm having a similar problem, but I don't think it's the exact same issue.

I'm using Okular 0.7.3 with KDE 4.1.3, installed using Ubuntu Packages.  I don't know what's causing the crash.  The file did open in cbrpager.

The console output is as such:

darthbrandon@darthbrandon-desktop:/media/sda3$ okular file.cbr
okular(3371) UnrarHelper::UnrarHelper: detected: "/usr/bin/unrar-nonfree" ( "unrar-nonfree" )
ASSERT: "i >= 0 && i < size()" in file /usr/include/qt4/QtCore/qstring.h, line 646
KCrash: Application 'okular' crashing...
sock_file=/home/darthbrandon/.kde/socket-darthbrandon-desktop/kdeinit4__0
darthbrandon@darthbrandon-desktop:/media/sda3$

The backtrace (from the KDE Crash Handler) is:

Application: Okular (okular), signal SIGABRT
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb60746c0 (LWP 7024)]
[New Thread 0xb3061b90 (LWP 7027)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#6  0xb7f04430 in __kernel_vsyscall ()
#7  0xb6936880 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb6938248 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb74e8795 in qt_message_output () from /usr/lib/libQtCore.so.4
#10 0xb74e8872 in qFatal () from /usr/lib/libQtCore.so.4
#11 0xb74e8915 in qt_assert () from /usr/lib/libQtCore.so.4
#12 0xb33d8846 in ?? () from /usr/lib/kde4/okularGenerator_comicbook.so
#13 0xb33d8ff8 in ?? () from /usr/lib/kde4/okularGenerator_comicbook.so
#14 0xb33d49fd in ?? () from /usr/lib/kde4/okularGenerator_comicbook.so
#15 0xb33d40a4 in ?? () from /usr/lib/kde4/okularGenerator_comicbook.so
#16 0xb33d48a1 in ?? () from /usr/lib/kde4/okularGenerator_comicbook.so
#17 0xb33d52ff in ?? () from /usr/lib/kde4/okularGenerator_comicbook.so
#18 0xb4994914 in Okular::Document::openDocument ()
   from /usr/lib/libokularcore.so.1
#19 0xb4a1aec7 in ?? () from /usr/lib/kde4/okularpart.so
#20 0xb74737b3 in KParts::ReadOnlyPart::openUrl ()
   from /usr/lib/libkparts.so.4
#21 0xb4a1592c in ?? () from /usr/lib/kde4/okularpart.so
#22 0x0804efc7 in _start ()
#0  0xb7f04430 in __kernel_vsyscall ()

I don't know what the crash is or how to go about creating a test case.
Comment 13 Pino Toscano 2009-01-05 12:56:55 UTC
@Brandon Myers:
> I'm using Okular 0.7.3 with KDE 4.1.3, installed using Ubuntu Packages.  I
> don't know what's causing the crash.  The file did open in cbrpager.

Could you please sent to me the archive that makes Okular crash for you?
Comment 14 Brandon Myers 2009-01-14 04:45:27 UTC
(In reply to comment #13)
> @Brandon Myers:
> > I'm using Okular 0.7.3 with KDE 4.1.3, installed using Ubuntu Packages.  I
> > don't know what's causing the crash.  The file did open in cbrpager.
> 
> Could you please sent to me the archive that makes Okular crash for you?
> 

I sent you a file that causes the crash on the 6th.  I sent it directly to your email address.  So while I'm late at mentioning it here, I hope you received it.
Comment 15 Pino Toscano 2009-01-14 11:34:42 UTC
(In reply to comment #14)
> (In reply to comment #13)
> > Could you please sent to me the archive that makes Okular crash for you?
> 
> I sent you a file that causes the crash on the 6th.  I sent it directly to your
> email address.  So while I'm late at mentioning it here, I hope you received
> it.

Sorry, forgot to hacknowledge it.
I just fixed the problem, will be in final KDE 4.2.
(PS: in the future, please open new bug reports, so they can be tracked better.)
Thanks!