Bug 283277 - rekonq crashes when opening a pdf file
Summary: rekonq crashes when opening a pdf file
Status: RESOLVED UPSTREAM
Alias: None
Product: rekonq
Classification: Applications
Component: general (show other bugs)
Version: 0.7.92
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Andrea Diamantini
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-03 21:38 UTC by avlas
Modified: 2011-12-01 06:51 UTC (History)
0 users

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 avlas 2011-10-03 21:38:09 UTC
Application: rekonq (0.7.92)
KDE Platform Version: 4.7.1 (4.7.1)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-11-generic-phc x86_64
Distribution: Ubuntu 11.04

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

After I compiled okularplugin (an okular plugin for firefox that allows text search in pdf files. https://github.com/jeremysanders/okularplugin#readme) and copied libokularplugin.so to $HOME/.mozilla/plugins, rekonq crashed whenever I tried to open a pdf file. Somehow rekonq is aware of the firefox plugins and doesn't like this one. This in my opinion should not happen, what does rekonq have to do with firefox plugins at all?

- Custom settings of the application:

I use the okularplugin in firefox because it is the only way I know to open and search text in pdf files in a browser (as far as I know search text in pdf files is not supported in rekonq right now, that's why I use firefox and this plugin).

The crash can be reproduced every time.

-- Backtrace:
Application: rekonq (rekonq), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fd8a8d9e780 (LWP 32689))]

Thread 4 (Thread 0x7fd889b66700 (LWP 32690)):
#0  0x00007fd8a1b29bac in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007fd8a7985832 in ?? () from /usr/lib/libQtWebKit.so.4
#2  0x00007fd8a1b24d8c in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#3  0x00007fd8a1e2204d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fd88859b700 (LWP 32691)):
#0  0x00007fd8a1b29bac in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007fd8a85832a2 in ?? () from /usr/lib/libQtScript.so.4
#2  0x00007fd8a85832d9 in ?? () from /usr/lib/libQtScript.so.4
#3  0x00007fd8a1b24d8c in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#4  0x00007fd8a1e2204d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fd886088700 (LWP 32693)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007fd886087ae0 in ?? ()
#2  0x00007fffb0bff7b2 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 1 (Thread 0x7fd8a8d9e780 (LWP 32689)):
[KCrash Handler]
#6  0x00007fd87a3e5a60 in pixman_image_composite32 () from /usr/lib/libpixman-1.so.0
#7  0x00007fd87b79298a in ?? () from /usr/lib/libcairo.so.2
#8  0x00007fd87b793bc7 in ?? () from /usr/lib/libcairo.so.2
#9  0x00007fd87b7c183c in ?? () from /usr/lib/libcairo.so.2
#10 0x00007fd87b79fb00 in ?? () from /usr/lib/libcairo.so.2
#11 0x00007fd87b7a3515 in ?? () from /usr/lib/libcairo.so.2
#12 0x00007fd87b7a3866 in ?? () from /usr/lib/libcairo.so.2
#13 0x00007fd87b7a0181 in ?? () from /usr/lib/libcairo.so.2
#14 0x00007fd87b779ec0 in ?? () from /usr/lib/libcairo.so.2
#15 0x00007fd87b770c50 in cairo_fill_preserve () from /usr/lib/libcairo.so.2
#16 0x00007fd87b770c69 in cairo_fill () from /usr/lib/libcairo.so.2
#17 0x00007fd877d1bf28 in Oxygen::WindowShadow::renderGradient(_cairo*, _GdkRectangle const&, _cairo_pattern*, bool, bool) const () from /usr/lib/gtk-2.0/2.10.0/engines/liboxygen-gtk.so
#18 0x00007fd877d1c9b4 in Oxygen::WindowShadow::shadowPixmap(Oxygen::ColorUtils::Rgba const&, Oxygen::WindowShadowKey const&) const () from /usr/lib/gtk-2.0/2.10.0/engines/liboxygen-gtk.so
#19 0x00007fd877d1d0ba in Oxygen::WindowShadow::tileSet(Oxygen::ColorUtils::Rgba const&, Oxygen::WindowShadowKey) const () from /usr/lib/gtk-2.0/2.10.0/engines/liboxygen-gtk.so
#20 0x00007fd877cbb215 in Oxygen::ShadowHelper::initialize(Oxygen::ColorUtils::Rgba const&, Oxygen::WindowShadow const&) () from /usr/lib/gtk-2.0/2.10.0/engines/liboxygen-gtk.so
#21 0x00007fd877cc83a9 in Oxygen::Style::initialize(unsigned int) () from /usr/lib/gtk-2.0/2.10.0/engines/liboxygen-gtk.so
#22 0x00007fd877cd3c94 in Oxygen::Style::instance() () from /usr/lib/gtk-2.0/2.10.0/engines/liboxygen-gtk.so
#23 0x00007fd877d15e16 in theme_init () from /usr/lib/gtk-2.0/2.10.0/engines/liboxygen-gtk.so
#24 0x00007fd87b311026 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#25 0x00007fd89e581800 in g_type_module_use () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#26 0x00007fd87b311135 in gtk_theme_engine_get () from /usr/lib/libgtk-x11-2.0.so.0
#27 0x00007fd87b29955e in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#28 0x00007fd87b29a360 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#29 0x00007fd87b29a4f1 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#30 0x00007fd87b298d98 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#31 0x00007fd87b29a360 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#32 0x00007fd87b29a4f1 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#33 0x00007fd87b29a98f in gtk_rc_reparse_all_for_settings () from /usr/lib/libgtk-x11-2.0.so.0
#34 0x00007fd87b2b7ce5 in gtk_settings_get_for_screen () from /usr/lib/libgtk-x11-2.0.so.0
#35 0x00007fd87898d035 in ?? () from /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so
#36 0x00007fd87898ebec in gtk_module_init () from /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so
#37 0x00007fd87b264f81 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#38 0x00007fd89e55a81c in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#39 0x00007fd89e56c019 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#40 0x00007fd89e575258 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#41 0x00007fd89e57541f in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#42 0x00007fd89e55c259 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#43 0x00007fd89e55e20c in g_object_notify () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#44 0x00007fd87ae7ef25 in gdk_display_open_default_libgtk_only () from /usr/lib/libgdk-x11-2.0.so.0
#45 0x00007fd87b249986 in gtk_init_check () from /usr/lib/libgtk-x11-2.0.so.0
#46 0x00007fd87b2499a9 in gtk_init () from /usr/lib/libgtk-x11-2.0.so.0
#47 0x00007fd8a7703193 in ?? () from /usr/lib/libQtWebKit.so.4
#48 0x00007fd8a77038fb in ?? () from /usr/lib/libQtWebKit.so.4
#49 0x00007fd8a75a92a4 in ?? () from /usr/lib/libQtWebKit.so.4
#50 0x00007fd8a75a7428 in ?? () from /usr/lib/libQtWebKit.so.4
#51 0x00007fd8a75a7eee in ?? () from /usr/lib/libQtWebKit.so.4
#52 0x00007fd8a76ccc86 in ?? () from /usr/lib/libQtWebKit.so.4
#53 0x00007fd8a76ce6e4 in ?? () from /usr/lib/libQtWebKit.so.4
#54 0x00007fd8a74e38be in ?? () from /usr/lib/libQtWebKit.so.4
#55 0x00007fd8a74de498 in ?? () from /usr/lib/libQtWebKit.so.4
#56 0x00007fd8a74eb25f in ?? () from /usr/lib/libQtWebKit.so.4
#57 0x00007fd8a76acf5e in ?? () from /usr/lib/libQtWebKit.so.4
#58 0x00007fd8a76ae88c in ?? () from /usr/lib/libQtWebKit.so.4
#59 0x00007fd8a29e15f8 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#60 0x00007fd8a59c1672 in ?? () from /usr/lib/libkio.so.5
#61 0x00007fd8a59c1ccf in ?? () from /usr/lib/libkio.so.5
#62 0x00007fd8a59c1ed7 in ?? () from /usr/lib/libkio.so.5
#63 0x00007fd8a29e15f8 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#64 0x00007fd8a59fbc77 in KIO::TransferJob::mimetype(KIO::Job*, QString const&) () from /usr/lib/libkio.so.5
#65 0x00007fd8a59fbccc in KIO::TransferJob::slotMimetype(QString const&) () from /usr/lib/libkio.so.5
#66 0x00007fd8a5a01e06 in KIO::TransferJob::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkio.so.5
#67 0x00007fd8a29e15f8 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#68 0x00007fd8a5a9ee45 in KIO::SlaveInterface::mimeType(QString const&) () from /usr/lib/libkio.so.5
#69 0x00007fd8a5aa15a7 in KIO::SlaveInterface::dispatch(int, QByteArray const&) () from /usr/lib/libkio.so.5
#70 0x00007fd8a5a9e405 in KIO::SlaveInterface::dispatch() () from /usr/lib/libkio.so.5
#71 0x00007fd8a5a9171e in KIO::Slave::gotInput() () from /usr/lib/libkio.so.5
#72 0x00007fd8a5a91e6c in KIO::Slave::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkio.so.5
#73 0x00007fd8a29e15f8 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#74 0x00007fd8a59ca9c7 in ?? () from /usr/lib/libkio.so.5
#75 0x00007fd8a59caa6d in KIO::Connection::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkio.so.5
#76 0x00007fd8a29e049a in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#77 0x00007fd8a3d589f4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#78 0x00007fd8a3d5d3ba in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#79 0x00007fd8a4a68b86 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#80 0x00007fd8a29cc49c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#81 0x00007fd8a29cfc25 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#82 0x00007fd8a29f7253 in ?? () from /usr/lib/libQtCore.so.4
#83 0x00007fd89ec9fbcd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#84 0x00007fd89eca03a8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#85 0x00007fd89eca0639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#86 0x00007fd8a29f73ef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#87 0x00007fd8a3e024de in ?? () from /usr/lib/libQtGui.so.4
#88 0x00007fd8a29cb882 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#89 0x00007fd8a29cbabc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#90 0x00007fd8a29cfecb in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#91 0x00007fd8a899a424 in kdemain () from /usr/lib/kde4/libkdeinit/libkdeinit4_rekonq.so
#92 0x00007fd8a1d5aeff in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#93 0x00000000004007f9 in _start ()

Possible duplicates by query: bug 281702, bug 280692, bug 280504, bug 280452, bug 279630.

Reported using DrKonqi
Comment 1 avlas 2011-10-03 21:39:48 UTC
I filled a bug also in launchpad:

https://bugs.launchpad.net/ubuntu/+source/rekonq/+bug/865729
Comment 2 avlas 2011-10-03 21:41:35 UTC
by the way, I tried to make a better backtrace but I couldn't install required kubuntu packages
Comment 3 Andrea Diamantini 2011-10-04 07:23:22 UTC
(In reply to comment #0)
> After I compiled okularplugin (an okular plugin for firefox that allows text
> search in pdf files. https://github.com/jeremysanders/okularplugin#readme) and
> copied libokularplugin.so to $HOME/.mozilla/plugins, rekonq crashed whenever I
> tried to open a pdf file. Somehow rekonq is aware of the firefox plugins and
> doesn't like this one. This in my opinion should not happen, what does rekonq
> have to do with firefox plugins at all?

Just for clearness, okularplugin is just one of the plugin supporting NPAPI specs. You call it a "firefox" plugin, because you probably use firefox with it, but it should work in firefox, chrome, opera, rekonq, konqueror... the same rules with flash and so on.


> I use the okularplugin in firefox because it is the only way I know to open and
> search text in pdf files in a browser (as far as I know search text in pdf
> files is not supported in rekonq right now, that's why I use firefox and this
> plugin).

Just CTRL + F (or find from tools menu) inside a pdf opened inside rekonq view.
Comment 4 avlas 2011-10-04 11:46:17 UTC
(In reply to comment #3)
 
> Just for clearness, okularplugin is just one of the plugin supporting NPAPI
> specs. You call it a "firefox" plugin, because you probably use firefox with
> it, but it should work in firefox, chrome, opera, rekonq, konqueror... the same
> rules with flash and so on.

I didn't know that, thanks for telling :)

However, if rekonq uses some plugins from firefox's folders, it's possible that they don't behave properly and interfere, as in this case, making rekonq to crash. Shouldn't it be an specific folder for rekonq or a way to specify which of the plugins in firefox's folders you really want to use? 

> Just CTRL + F (or find from tools menu) inside a pdf opened inside rekonq view.

This is the way it works also in firefox. With default kpartsplugin in okular within rekonq (and firefox), ctrl+f opens browser's search box, so it's impossible to search inside the pdf file (at least in my case, does it work for you?)

With okularplugin, ctrl+f in firefox works perfectly with the above procedure. Would be great to have okularplugin working also in rekonq (or a kpartsplugin that alllows the text search), so I would not have to use firefox for this purpose.

By the way, thanks for your rapid response! And please don't take my point wrong, I love rekonq and would like to use it also to search inside pdf files :)
Comment 5 avlas 2011-10-04 20:21:13 UTC
I just wanted to add that I am willing to help to have okularplugin working properly also in rekonq, so if you would like me to test something or collaborate in any way, please tell me...

At this time I don't know much about rekonq or okularplugin/kpartsplugin codes, but I think there is some few people out there that would really like being able to search in their pdfs while in rekonq.

This would be a very nice feature to have, and if you would guide me a bit, I could try to work on it!
Comment 6 Andrea Diamantini 2011-12-01 06:51:02 UTC
This crash does not come from our code, as you can see in the backtrace.