Bug 109233

Summary: [Qt] QWebView in OS X SEGV on particular URL
Product: WebKit Reporter: Dave Cortesi <davecortesi>
Component: WebKit QtAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal    
Priority: P3    
Version: 420+   
Hardware: Mac (Intel)   
OS: OS X 10.6   
Attachments:
Description Flags
Apple crash report from Snow Leopard none

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.