Bug 109233 - [Qt] QWebView in OS X SEGV on particular URL
Summary: [Qt] QWebView in OS X SEGV on particular URL
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 420+
Hardware: Mac (Intel) OS X 10.6
: P3 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-07 14:39 PST by Dave Cortesi
Modified: 2014-02-03 03:24 PST (History)
0 users

See Also:


Attachments
Apple crash report from Snow Leopard (54.54 KB, text/plain)
2013-02-07 14:39 PST, Dave Cortesi
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Cortesi 2013-02-07 14:39:52 PST
Created attachment 187178 [details]
Apple crash report from Snow Leopard

NOTE: I am confused about what level of webkit I am using: it was installed with Qt 4.8.4. In the file qwebkitglobal.h it says #define QTWEBKIT_VERSION_STR "2.2.3" however the string returned by QWebPage.userAgentForUrl() contains "AppleWebKit/534.34" -- none of these numbers are in the Version list on this form.

This crash happens only on Mac OS X, both on 10.6 Snow Leopard and on 10.8 Mountain Lion.

It will not fail on Ubuntu or on Windows XP.

The very simple test program follows. Run it and follow the directions it displays. 
Upon clicking the first link it produces this message on the console:

QFont::setPixelSize: Pixel size <= 0 (0)

Further clicking will produce a crash. The full crash report is attached (dorktoes-crash-report.txt). The problem appears to relate to font rendering (as suggested by the above message), the first dozen modules in the stack trace are font-related.

	from PyQt4.QtCore import ( Qt, QUrl )
	from PyQt4.QtGui import ( QApplication, QMainWindow )
	from PyQt4.QtWebKit import QWebView  
	import sys
	app = QApplication(sys.argv)
	main = QMainWindow()
	view = QWebView()
	main.setCentralWidget(view)
	main.show()
	html = u'''
	<p>Click <a href='http://dorktoescomic.com/?p=819'>this link</a><br />
	After it renders, alternate clicking the "Previous"
	and "Next" links and soon the app will crash.</p>
	'''
	view.setHtml(html)
	app.exec_()
Comment 1 Jocelyn Turcotte 2014-02-03 03:24:56 PST
=== Bulk closing of Qt bugs ===

If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary.

If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.