Bug 229247 - Crash on clicking pdf links
Summary: Crash on clicking pdf links
Status: RESOLVED NOT A BUG
Alias: None
Product: kwebkitpart
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: webkit-devel
URL:
Keywords:
: 234063 236164 238165 246853 250634 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-03 14:11 UTC by Rahul Jain
Modified: 2010-09-09 10:40 UTC (History)
8 users (show)

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 Rahul Jain 2010-03-03 14:11:45 UTC
Version:           SVN Rev. 1098299 (using KDE 4.4.0)
Compiler:          gcc-4.4.3 
OS:                Linux
Installed from:    Gentoo Packages

If I click on a pdf link I expect to see a option box telling me whether I want to open the file (in Okular) or save it. This is exactly what happens when I use KHTML as the rendering engine. However, when I use webkit to render the page, konqueror crashes.
Comment 1 Rahul Jain 2010-03-03 14:12:19 UTC
One more thing, I am using KDE-4.4.1 but that was not an option in the wizard, so I went with 4.4.0.
Comment 2 Rahul Jain 2010-03-03 18:19:50 UTC
Crash is there on opening mp3 files as well. Therefore I am assuming that this crash simply occurs when the dialogue which gives us the preference what do with a particular mimetype pops up.
Comment 3 Dawit Alemayehu 2010-03-04 17:29:56 UTC
It works fine here. Though I do not understand what it meant, I suspect your second comment above has something to do with your problem. If you get the crash dialog, you need to post the backtrace from that dialog here.
Comment 4 Rahul Jain 2010-03-04 20:32:44 UTC
Application: Konqueror (kdeinit4), signal: Segmentation fault
[Current thread is 1 (Thread 0xb55a5700 (LWP 22111))]

Thread 3 (Thread 0xafb3cb70 (LWP 22160)):
#0  0xb770e424 in __kernel_vsyscall ()
#1  0xb6863fa5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb41fb7e7 in ?? () from /usr/lib/qt4/libQtWebKit.so.4
#3  0xb41fb82f in ?? () from /usr/lib/qt4/libQtWebKit.so.4
#4  0xb685f8ff in start_thread () from /lib/libpthread.so.0
#5  0xb5bf838e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xb09d7b70 (LWP 22187)):
#0  0xb770e424 in __kernel_vsyscall ()
#1  0xb68642d2 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb68fbb1c in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/qt4/libQtCore.so.4
#3  0xb68f03be in ?? () from /usr/lib/qt4/libQtCore.so.4
#4  0xb68fab5f in ?? () from /usr/lib/qt4/libQtCore.so.4
#5  0xb685f8ff in start_thread () from /lib/libpthread.so.0
#6  0xb5bf838e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb55a5700 (LWP 22111)):
#0  0xb770e424 in __kernel_vsyscall ()
#1  0xb5bc2796 in nanosleep () from /lib/libc.so.6
#2  0xb5bc25a9 in sleep () from /lib/libc.so.6
#3  0xb6df2d9c in ?? () from /usr/lib/libkdeui.so.5
#4  0x00000001 in ?? ()
#5  0x00000000 in ?? ()

This is what I get in the crash window. I do not know whether this is useful or not.
Comment 5 Dawit Alemayehu 2010-03-04 21:52:54 UTC
That backtrace is not useful, but I suspect the issue is what you alluded to in comment #2.

My suggestion is you check and make sure you have only one kwebkitpart library whose version is "libkwebkitpart.so.0.9.0" and also one kwebkit library with the same version, i.e. "libkwebkit.so.0.9.0".  If the version number on those two libraries is something other than that or there are older versions of the library laying around, you can encounter the type of random crash unduplicatable crash like this one. 

** Note that the version of the older libraries was 1.0.0 **
Comment 6 Rahul Jain 2010-03-04 23:15:09 UTC
I have the following inside /usr/lib:
lrwxrwxrwx 1 root root   15 Mar  4 23:07 libkwebkit.so -> libkwebkit.so.1
-rwxr-xr-x 1 root root 284K Mar  4 23:07 libkwebkit.so.0.9.0
lrwxrwxrwx 1 root root   19 Mar  4 23:07 libkwebkit.so.1 -> libkwebkit.so.0.9.0

So, in effect there is only libkwebkit.so.0.9.0. There is no libkwebkitpart.so.* though. Do you think this might be a problem?
Comment 7 Dawit Alemayehu 2010-03-04 23:21:14 UTC
On Thursday 04 March 2010 17:15:19 Rahul Jain wrote:
> https://bugs.kde.org/show_bug.cgi?id=229247
> 
> 
> 
> 
> 
> --- Comment #6 from Rahul Jain <rahul schmizz net>  2010-03-04 23:15:09 ---
> I have the following inside /usr/lib:
> lrwxrwxrwx 1 root root   15 Mar  4 23:07 libkwebkit.so -> libkwebkit.so.1
> -rwxr-xr-x 1 root root 284K Mar  4 23:07 libkwebkit.so.0.9.0
> lrwxrwxrwx 1 root root   19 Mar  4 23:07 libkwebkit.so.1 ->
> libkwebkit.so.0.9.0
> 
> So, in effect there is only libkwebkit.so.0.9.0. There is no
> libkwebkitpart.so.* though. Do you think this might be a problem?

libkwebkitpart.so.0.9.0 should be under /usr/lib/kde4
Comment 8 Rahul Jain 2010-03-04 23:26:14 UTC
googly rahul # find / -iname "libkwebkit*"
/usr/lib/libkwebkit.so
/usr/lib/libkwebkit.so.1
/usr/lib/libkwebkit.so.0.9.0
googly rahul # 

There is no libkwebkitpart.so anywhere on my system.
Comment 9 Dawit Alemayehu 2010-03-04 23:58:13 UTC
On Thursday 04 March 2010 17:26:15 Rahul Jain wrote:
> https://bugs.kde.org/show_bug.cgi?id=229247
> 
> 
> 
> 
> 
> --- Comment #8 from Rahul Jain <rahul schmizz net>  2010-03-04 23:26:14 ---
> googly rahul # find / -iname "libkwebkit*"
> /usr/lib/libkwebkit.so
> /usr/lib/libkwebkit.so.1
> /usr/lib/libkwebkit.so.0.9.0
> googly rahul #
> 
> There is no libkwebkitpart.so anywhere on my system.

Then I do not know how konqueror is loading the kwebkitpart. If as you say 
this is missing from your system, you need to find out why that is with your 
distro packages/build system...
Comment 10 Rahul Jain 2010-03-05 00:23:42 UTC
Reported the issue with the gentoo bugzilla.
Comment 11 Rahul Jain 2010-03-12 01:08:33 UTC
rahul@googly ~ $ ls -lh /usr/lib/libkwebkit.so*
lrwxrwxrwx 1 root root   15 Mar 11 23:34 /usr/lib/libkwebkit.so -> libkwebkit.so.1
-rwxr-xr-x 1 root root 284K Mar 11 23:34 /usr/lib/libkwebkit.so.0.9.0
lrwxrwxrwx 1 root root   19 Mar 11 23:34 /usr/lib/libkwebkit.so.1 -> libkwebkit.so.0.9.0
rahul@googly ~ $ ls -lh /usr/lib/kde4/kwebkitpart.so* 
lrwxrwxrwx 1 root root   16 Mar 11 23:34 /usr/lib/kde4/kwebkitpart.so -> kwebkitpart.so.1
-rwxr-xr-x 1 root root 9.3K Mar 11 23:34 /usr/lib/kde4/kwebkitpart.so.0.9.0
lrwxrwxrwx 1 root root   20 Mar 11 23:34 /usr/lib/kde4/kwebkitpart.so.1 -> kwebkitpart.so.0.9.0
rahul@googly ~ $ 

Problem still exists though. :( I deleted .kde4/share/apps/konqueror and tried again. If there are more settings that I can delete tell me, I am willing to try it with a clean profile.
Comment 12 Simon Hausmann 2010-04-08 12:54:30 UTC
Could this be related to https://bugs.webkit.org/show_bug.cgi?id=29450 ?
Comment 13 Dawit Alemayehu 2010-04-08 13:50:48 UTC
(In reply to comment #12)
> Could this be related to https://bugs.webkit.org/show_bug.cgi?id=29450 ?

I doubt it because I am unable to duplicate the issue even before the fix for that bug was applied. It works perfectly fine for me and I get the same prompt the user alluded to when using KHTML ; so no idea why it crashes for him.
Comment 14 Rahul Jain 2010-04-09 03:03:50 UTC
Seems to be working now - I click on a pdf link and it opens in Okular. I still don't know what the problem was though.

Marking as Resolved - Invalid. Seems likely that the problem was somewhere else.
Comment 15 Rahul Jain 2010-04-09 03:04:40 UTC
And no, I did not rebuild any webkit stuff recently.
Comment 16 Urs Wolfer 2010-04-11 17:08:29 UTC
*** Bug 234063 has been marked as a duplicate of this bug. ***
Comment 17 beojan 2010-04-11 17:15:38 UTC
I get the same bug, but in my case, it appears with rekonq which does not use the kpart.
Comment 18 Dawit Alemayehu 2010-04-12 05:43:14 UTC
(In reply to comment #17)
> I get the same bug, but in my case, it appears with rekonq which does not use
> the kpart.

Your platform and kdelibs version ? Anyhow, both kwebkitpart and rekonq use kdewebkit, though they do not yet share universal handler for unsupported/unhandled content. I suspect however, rekonq copied exactly what the part does in this case. Specially, if you got the same results as originally described in this report. Regardless, this issue cannot be duplicated. Neither by the original reporter now and by me at any time... I honestly suggest checking your installation and version of the libraries mentioned above.
Comment 19 beojan 2010-04-12 08:08:28 UTC
I am running kde 4.4.2 on Debian Sid. Rekonq from git.

Solved the issue: the crash arises in libnsplugin.so which is called because I had mozplugger installed.
Comment 20 Dawit Alemayehu 2010-05-03 18:28:44 UTC
*** Bug 236164 has been marked as a duplicate of this bug. ***
Comment 21 Dawit Alemayehu 2010-05-19 15:37:17 UTC
*** Bug 238165 has been marked as a duplicate of this bug. ***
Comment 22 Alvise 2010-08-19 13:27:48 UTC
Same as bug 246853?
Comment 23 Dawit Alemayehu 2010-08-20 07:00:35 UTC
*** Bug 246853 has been marked as a duplicate of this bug. ***
Comment 24 Pino Toscano 2010-09-09 10:40:11 UTC
*** Bug 250634 has been marked as a duplicate of this bug. ***