Created attachment 55632 [details] crashes file Version: SVN (using Devel) OS: Linux Just see this attachment Kchmviewer outputs: Could not detect text encoding by LCID Aborted Reproducible: Couldn't Reproduce
Application: Konqueror (kdeinit4), signal: Aborted [Current thread is 1 (Thread 0xb57b2710 (LWP 18205))] Thread 3 (Thread 0xacfa4b70 (LWP 18273)): #0 0xffffe424 in __kernel_vsyscall () #1 0xb5eb20b1 in select () from /lib/libc.so.6 #2 0xb6ebd2ef in QProcessManager::run (this=0xb70668d4) at /local/git/Qt/qt/src/corelib/io/qprocess_unix.cpp:245 #3 0xb6dd8ce8 in QThreadPrivate::start (arg=0xb70668d4) at /local/git/Qt/qt/src/corelib/thread/qthread_unix.cpp:320 #4 0xb6d50b25 in start_thread () from /lib/libpthread.so.0 #5 0xb5eb946e in clone () from /lib/libc.so.6 Thread 2 (Thread 0xababcb70 (LWP 18917)): #0 0xffffe424 in __kernel_vsyscall () #1 0xb6d55452 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #2 0xb6dda027 in QWaitConditionPrivate::wait (this=0x85f8860, time=30000) at /local/git/Qt/qt/src/corelib/thread/qwaitcondition_unix.cpp:86 #3 0xb6dd9e45 in QWaitCondition::wait (this=0x85f25bc, mutex=0x85f25b8, time=30000) at /local/git/Qt/qt/src/corelib/thread/qwaitcondition_unix.cpp:160 #4 0xb6dc95de in QThreadPoolThread::run (this=0x8470ff0) at /local/git/Qt/qt/src/corelib/concurrent/qthreadpool.cpp:140 #5 0xb6dd8ce8 in QThreadPrivate::start (arg=0x8470ff0) at /local/git/Qt/qt/src/corelib/thread/qthread_unix.cpp:320 #6 0xb6d50b25 in start_thread () from /lib/libpthread.so.0 #7 0xb5eb946e in clone () from /lib/libc.so.6 Thread 1 (Thread 0xb57b2710 (LWP 18205)): [KCrash Handler] #7 0xffffe424 in __kernel_vsyscall () #8 0xb5e117ff in raise () from /lib/libc.so.6 #9 0xb5e13140 in abort () from /lib/libc.so.6 #10 0xb6dcc8d3 in qt_message_output (msgType=QtFatalMsg, buf=0x8927820 "Could not detect text encoding by LCID") at /local/git/Qt/qt/src/corelib/global/qglobal.cpp:2282 #11 0xb6dcca3e in qt_message (msgType=QtFatalMsg, msg=0xaad20264 "Could not detect text encoding by LCID", ap=0xbf9defb4 "\001") at /local/git/Qt/qt/src/corelib/global/qglobal.cpp:2328 #12 0xb6dcce6a in qFatal (msg=0xaad20264 "Could not detect text encoding by LCID") at /local/git/Qt/qt/src/corelib/global/qglobal.cpp:2511 #13 0xaad13782 in LCHMFileImpl::guessTextEncoding (this=0x885c210) at /local/svn/kde/trunk/KDE/kdegraphics/okular/generators/chm/lib/libchmfileimpl.cpp:1195 #14 0xaad0c1bd in LCHMFileImpl::loadFile (this=0x885c210, archiveName=...) at /local/svn/kde/trunk/KDE/kdegraphics/okular/generators/chm/lib/libchmfileimpl.cpp:104 #15 0xaad0b2dc in LCHMFile::loadFile (this=0x87bbce8, archiveName=...) at /local/svn/kde/trunk/KDE/kdegraphics/okular/generators/chm/lib/libchmfile.cpp:40 #16 0xaad1aad2 in CHMGenerator::loadDocument (this=0x812ba80, fileName=..., pagesVector=...) at /local/svn/kde/trunk/KDE/kdegraphics/okular/generators/chm/generator_chm.cpp:88 #17 0xaadeaa90 in Okular::DocumentPrivate::openDocumentInternal (this=0x9d770f0, offer=..., isstdin=false, docFile=..., filedata=...) at /local/svn/kde/trunk/KDE/kdegraphics/okular/core/document.cpp:674 #18 0xaadf048f in Okular::Document::openDocument (this=0x94418d8, docFile=..., url=..., _mime=...) at /local/svn/kde/trunk/KDE/kdegraphics/okular/core/document.cpp:1632 #19 0xaae85892 in Okular::Part::openFile (this=0x88c05d0) at /local/svn/kde/trunk/KDE/kdegraphics/okular/part.cpp:955 #20 0xb4d646c1 in KParts::ReadOnlyPartPrivate::_k_slotJobFinished (this=0x99c10b0, job=0x9b08358) at /local/svn/kde/trunk/KDE/kdelibs/kparts/part.cpp:695 #21 0xb4d664d8 in KParts::ReadOnlyPart::qt_metacall (this=0x88c05d0, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0xbf9df9b8) at /local/build/KDE/kdelibs/kparts/part.moc:179 #22 0xaae8b606 in Okular::Part::qt_metacall (this=0x88c05d0, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0xbf9df9b8) at /local/build/KDE/kdegraphics/okular/part.moc:176 #23 0xb6eea416 in QMetaObject::metacall (object=0x88c05d0, cl=QMetaObject::InvokeMetaMethod, idx=12, argv=0xbf9df9b8) at /local/git/Qt/qt/src/corelib/kernel/qmetaobject.cpp:237 #24 0xb6efd3b7 in QMetaObject::activate (sender=0x9b08358, m=0xb736b4c8, local_signal_index=3, argv=0xbf9df9b8) at /local/git/Qt/qt/src/corelib/kernel/qobject.cpp:3278 #25 0xb721da46 in KJob::result (this=0x9b08358, _t1=0x9b08358) at /local/build/KDE/kdelibs/kdecore/kjob.moc:194 #26 0xb721d055 in KJob::emitResult (this=0x9b08358) at /local/svn/kde/trunk/KDE/kdelibs/kdecore/jobs/kjob.cpp:312 #27 0xb54c578b in KIO::FileCopyJob::slotResult (this=0x9b08358, job=0x9b08848) at /local/svn/kde/trunk/KDE/kdelibs/kio/kio/job.cpp:2302 #28 0xb54c8e42 in KIO::FileCopyJob::qt_metacall (this=0x9b08358, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbf9dfb38) at /local/build/KDE/kdelibs/kio/jobclasses.moc:721 #29 0xb6eea416 in QMetaObject::metacall (object=0x9b08358, cl=QMetaObject::InvokeMetaMethod, idx=32, argv=0xbf9dfb38) at /local/git/Qt/qt/src/corelib/kernel/qmetaobject.cpp:237 #30 0xb6efd3b7 in QMetaObject::activate (sender=0x9b08848, m=0xb736b4c8, local_signal_index=3, argv=0xbf9dfb38) at /local/git/Qt/qt/src/corelib/kernel/qobject.cpp:3278 #31 0xb721da46 in KJob::result (this=0x9b08848, _t1=0x9b08848) at /local/build/KDE/kdelibs/kdecore/kjob.moc:194 #32 0xb721d055 in KJob::emitResult (this=0x9b08848) at /local/svn/kde/trunk/KDE/kdelibs/kdecore/jobs/kjob.cpp:312 #33 0xb54be1ed in KIO::SimpleJob::slotFinished (this=0x9b08848) at /local/svn/kde/trunk/KDE/kdelibs/kio/kio/job.cpp:494 #34 0xb54c1285 in KIO::TransferJob::slotFinished (this=0x9b08848) at /local/svn/kde/trunk/KDE/kdelibs/kio/kio/job.cpp:1079 #35 0xb54c8404 in KIO::TransferJob::qt_metacall (this=0x9b08848, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0xbf9dfddc) at /local/build/KDE/kdelibs/kio/jobclasses.moc:367 #36 0xb6eea416 in QMetaObject::metacall (object=0x9b08848, cl=QMetaObject::InvokeMetaMethod, idx=47, argv=0xbf9dfddc) at /local/git/Qt/qt/src/corelib/kernel/qmetaobject.cpp:237 #37 0xb6efd3b7 in QMetaObject::activate (sender=0x970e340, m=0xb564b644, local_signal_index=4, argv=0x0) at /local/git/Qt/qt/src/corelib/kernel/qobject.cpp:3278 #38 0xb556922d in KIO::SlaveInterface::finished (this=0x970e340) at /local/build/KDE/kdelibs/kio/slaveinterface.moc:171 #39 0xb55667f8 in KIO::SlaveInterface::dispatch (this=0x970e340, _cmd=104, rawdata=...) at /local/svn/kde/trunk/KDE/kdelibs/kio/kio/slaveinterface.cpp:173 #40 0xb556649a in KIO::SlaveInterface::dispatch (this=0x970e340) at /local/svn/kde/trunk/KDE/kdelibs/kio/kio/slaveinterface.cpp:89 #41 0xb555c740 in KIO::Slave::gotInput (this=0x970e340) at /local/svn/kde/trunk/KDE/kdelibs/kio/kio/slave.cpp:348 #42 0xb555d856 in KIO::Slave::qt_metacall (this=0x970e340, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbf9e00ac) at /local/build/KDE/kdelibs/kio/slave.moc:82 #43 0xb6eea416 in QMetaObject::metacall (object=0x970e340, cl=QMetaObject::InvokeMetaMethod, idx=30, argv=0xbf9e00ac) at /local/git/Qt/qt/src/corelib/kernel/qmetaobject.cpp:237 #44 0xb6efd3b7 in QMetaObject::activate (sender=0x88d3d20, m=0xb5648424, local_signal_index=0, argv=0x0) at /local/git/Qt/qt/src/corelib/kernel/qobject.cpp:3278 #45 0xb54904af in KIO::Connection::readyRead (this=0x88d3d20) at /local/build/KDE/kdelibs/kio/connection.moc:92 #46 0xb548d250 in KIO::ConnectionPrivate::dequeue (this=0x96e9a20) at /local/svn/kde/trunk/KDE/kdelibs/kio/kio/connection.cpp:82 #47 0xb549043c in KIO::Connection::qt_metacall (this=0x88d3d20, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x87369f8) at /local/build/KDE/kdelibs/kio/connection.moc:79 #48 0xb6eea416 in QMetaObject::metacall (object=0x88d3d20, cl=QMetaObject::InvokeMetaMethod, idx=5, argv=0x87369f8) at /local/git/Qt/qt/src/corelib/kernel/qmetaobject.cpp:237 #49 0xb6ef8475 in QMetaCallEvent::placeMetaCall (this=0x9b73bf8, object=0x88d3d20) at /local/git/Qt/qt/src/corelib/kernel/qobject.cpp:535 #50 0xb6ef954b in QObject::event (this=0x88d3d20, e=0x9b73bf8) at /local/git/Qt/qt/src/corelib/kernel/qobject.cpp:1217 #51 0xb626826a in QApplicationPrivate::notify_helper (this=0x80f2998, receiver=0x88d3d20, e=0x9b73bf8) at /local/git/Qt/qt/src/gui/kernel/qapplication.cpp:4462 #52 0xb6265b66 in QApplication::notify (this=0xbf9e0b38, receiver=0x88d3d20, e=0x9b73bf8) at /local/git/Qt/qt/src/gui/kernel/qapplication.cpp:3862 #53 0xb76c5382 in KApplication::notify (this=0xbf9e0b38, receiver=0x88d3d20, event=0x9b73bf8) at /local/svn/kde/trunk/KDE/kdelibs/kdeui/kernel/kapplication.cpp:311 #54 0xb6ee2d6b in QCoreApplication::notifyInternal (this=0xbf9e0b38, receiver=0x88d3d20, event=0x9b73bf8) at /local/git/Qt/qt/src/corelib/kernel/qcoreapplication.cpp:731 #55 0xb6ee666d in QCoreApplication::sendEvent (receiver=0x88d3d20, event=0x9b73bf8) at ../../include/QtCore/../../../../git/Qt/qt/src/corelib/kernel/qcoreapplication.h:215 #56 0xb6ee3e04 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x8058348) at /local/git/Qt/qt/src/corelib/kernel/qcoreapplication.cpp:1372 #57 0xb6ee3ac1 in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at /local/git/Qt/qt/src/corelib/kernel/qcoreapplication.cpp:1265 #58 0xb6f17a70 in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../../../git/Qt/qt/src/corelib/kernel/qcoreapplication.h:220 #59 0xb6f16bd2 in postEventSourceDispatch (s=0x80f4b88) at /local/git/Qt/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:277 #60 0xb5985b49 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #61 0xb5986350 in ?? () from /usr/lib/libglib-2.0.so.0 #62 0xb598660e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #63 0xb6f17398 in QEventDispatcherGlib::processEvents (this=0x80f2958, flags=...) at /local/git/Qt/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:422 #64 0xb63310a0 in QGuiEventDispatcherGlib::processEvents (this=0x80f2958, flags=...) at /local/git/Qt/qt/src/gui/kernel/qguieventdispatcher_glib.cpp:204 #65 0xb6ee0ac9 in QEventLoop::processEvents (this=0xbf9e0a2c, flags=...) at /local/git/Qt/qt/src/corelib/kernel/qeventloop.cpp:149 #66 0xb6ee0c0d in QEventLoop::exec (this=0xbf9e0a2c, flags=...) at /local/git/Qt/qt/src/corelib/kernel/qeventloop.cpp:201 #67 0xb6ee3456 in QCoreApplication::exec () at /local/git/Qt/qt/src/corelib/kernel/qcoreapplication.cpp:1008 #68 0xb6265798 in QApplication::exec () at /local/git/Qt/qt/src/gui/kernel/qapplication.cpp:3736 #69 0xb1e81552 in kdemain (argc=2, argv=0x80db038) at /local/svn/kde/trunk/KDE/kdebase/apps/konqueror/src/konqmain.cpp:227 #70 0x0804de40 in launch (argc=2, _name=0x80cc05c "/local/kde4/bin/konqueror", args=0x80cc07f "", cwd=0x0, envc=0, envs=0x80cc083 "", reset_env=false, tty=0x0, avoid_loops=false, startup_id_str= 0x80cc087 "duo;1294281299;683997;16705_TIME869260445") at /local/svn/kde/trunk/KDE/kdelibs/kinit/kinit.cpp:730 #71 0x0804eed5 in handle_launcher_request (sock=7, who=0x8053378 "launcher") at /local/svn/kde/trunk/KDE/kdelibs/kinit/kinit.cpp:1222 #72 0x0804f616 in handle_requests (waitForPid=0) at /local/svn/kde/trunk/KDE/kdelibs/kinit/kinit.cpp:1415 #73 0x08050f38 in main (argc=1, argv=0xbf9e1384, envp=0xbf9e138c) at /local/svn/kde/trunk/KDE/kdelibs/kinit/kinit.cpp:1903
Sorry, the text got lost. Backtrace in comment #1 is from today's trunk when trying to view the attached file in Okular KPart inside Konqueror.
The attached file has no coding specified. This causes Okular to crash. You can only open this file, if you force Okular to use utf8 (only possible in code), but it stills looks broken. And I don't think it is a good idea to assume utf8 if no encoding is provided. I tried to open this file on Windows, but Microsofts own chm viewer only shows garbage and doesn't display any content.
Okular sends a 'qFatal()', if no encoding could be guessed. This will also create a core dump crashing Okular and all open document in this instance. Reviewed at https://git.reviewboard.kde.org/r/130106/