Skip to content

External URL access via PyQt crashes QGIS on Mac OS X #17

@jgrocha

Description

@jgrocha

Author Name: Larry Shaffer (Larry Shaffer)
Original Redmine Issue: 5597
Affected QGIS version: master
Redmine category:python_plugins


After typing the following commands at the Python Console, QGIS crashes (after entering last command):

from PyQt4.QtWebKit import QWebView
from PyQt4.QtCore import QUrl
webview = QWebView()
webview.load(QUrl('http://qgis.org/api'))

If the QUrl is local (i.e. file:// scheme) then there is no crash. Attached is the debug of the startup of QGIS (no debug info on crash, excepting notification of segfault). Between end of debug info and segfault is where Python Console commands were entered.

When testing this with a help browser, the base HTML of the page appears to render, then QGIS crashes. Possibly when loading additional resources. Pages with no images, only HTML (like above) cause the crash, as well.

This did not happen with 1.7.4-4 (Kyngchaos.com release), though he reports the same crash (on entering the above) with his 1.8 builds, too.

QGIS version: 1.8.0-Lisboa
QGIS code revision: a1255fc
Compiled against Qt: 4.8.1
Running against Qt: 4.8.1
Compiled against GDAL/OGR: 1.9.0
Running against GDAL/OGR: 1.9.0
GEOS Version: 3.3.2dev
PostgreSQL Client Version: 9.1.1
SpatiaLite Version: 2.4.0
QWT Version: 5.2.2
This copy of QGIS writes debugging output.

This bug may be related to #15038

This is fairly serious, as it may affect any plugin that has an HTML file that loads remotely into a QWebView, like help, etc.

Larry



Related issue(s): #15038 (relates)
Redmine related issue(s): 5338


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions