RESOLVED FIXED 31765
Qt WebKit crashes when clicking on/selecting text on certain websites
https://bugs.webkit.org/show_bug.cgi?id=31765
Summary Qt WebKit crashes when clicking on/selecting text on certain websites
pgeorges
Reported 2009-11-21 02:47:58 PST
I can reproduce this bug with Qt 4.5.3 and Qt 4.6.0rc1 on multiple machines running both ubuntu 9.10 and CentOS 5.2 with plugins enabled or disabled. I have created a simple Qt webkit app which guarantees a segfault when clicking on the main body text on the sample page ("http://www.smh.com.au/news/entertainment/articles/2009/11/20/1258219954593.html" so far this is the only page I have seen which crashes webkit in this way, but there may be other pages also). Basically, just load the page and click on or select the main article text a few times (sometimes it happens after a single click, other times it requires a few clicks on the text). Log: ** (<unknown>:2559): CRITICAL **: atk_object_set_name: assertion `name != NULL' failed Segmentation fault Basic webkit app which guarantees segfault for me: #include <QtGui/QApplication> #include <QtWebKit/QWebView> int main(int argc, char *argv[]) { QApplication app(argc, argv); QWebView webView; webView.settings()->setAttribute(QWebSettings::PluginsEnabled,true); webView.setUrl(QUrl::fromEncoded("http://www.smh.com.au/news/entertainment/articles/2009/11/20/1258219954593.html")); webView.show(); return app.exec(); }
Attachments
backtrace 1 (7.01 KB, text/plain)
2009-11-27 06:28 PST, Antonio Gomes
no flags
Reduced Qt-only testcase (243 bytes, text/x-c++src)
2010-01-27 13:36 PST, Andreas Kling
no flags
pgeorges
Comment 1 2009-11-21 02:51:28 PST
BTW the log message: ** (<unknown>:2559): CRITICAL **: atk_object_set_name: assertion `name != NULL' failed Comes up as soon as the application is launched and is most likely unrelated to the crash.
Girish Ramakrishnan
Comment 2 2009-11-24 21:59:43 PST
Works with r51026. Page seems to be using windowless plugins which is supported only in 4.6.
Girish Ramakrishnan
Comment 3 2009-11-24 22:01:47 PST
Sorry, I should have read the complete description :-) I am able to reproduce the crash with r51026. I don't have a debug build to get a backtrace.
Antonio Gomes
Comment 4 2009-11-27 06:26:12 PST
totally reproducible here too. backtrace coming ...
Antonio Gomes
Comment 5 2009-11-27 06:28:05 PST
Created attachment 43950 [details] backtrace 1 backtrace from QtLauncher (r51397) debug build
Simon Hausmann
Comment 6 2009-11-27 06:38:13 PST
Hmm, interesting! Is the crash reproducible when recording this paint sequence using the trace graphics system and replaying it? Such a trace would make it a lot easier to fix inside of Qt.
Andreas Kling
Comment 7 2010-01-27 13:36:26 PST
Created attachment 47561 [details] Reduced Qt-only testcase The QRegion-from-a-QPolygon constructor reliably crashes with certain input data.
Andreas Kling
Comment 8 2010-01-29 01:46:22 PST
This issue is now being tracked in the Qt bug tracker: http://bugreports.qt.nokia.com/browse/QTBUG-7699
Tor Arne Vestbø
Comment 9 2010-03-05 09:39:32 PST
Please follow the QtWebKit bug reporting guidelines when reporting bugs. See http://trac.webkit.org/wiki/QtWebKitBugs Specifically: - The 'QtWebKit' component should be used for bugs/features in the public QtWebKit API layer, not to signify that the bug is specific to the Qt port of WebKit http://trac.webkit.org/wiki/QtWebKitBugs#Component
Tor Arne Vestbø
Comment 10 2010-03-11 05:34:38 PST
Fix should be available in Qt soonish (it's in staging). Please close when verified.
Andreas Kling
Comment 11 2010-03-15 05:04:18 PDT
Note You need to log in before you can comment on or make changes to this bug.