Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jgrocha opened this issue Jun 7, 2019 · 0 comments
Open

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

jgrocha opened this issue Jun 7, 2019 · 0 comments

Comments

@jgrocha
Copy link
Owner

jgrocha commented Jun 7, 2019

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


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant