Bug report #17489

[Data Source Manager] Click the Test button in the virtual layer tab without a query entered crashes QGIS

Added by Harrissou Santanna about 7 years ago. Updated almost 7 years ago.

Status:Closed
Priority:High
Assignee:Alessandro Pasotti
Category:Virtual Layers
Affected QGIS version:master Regression?:Yes
Operating System: Easy fix?:Yes
Pull Request or Patch supplied:Yes Resolution:fixed/implemented
Crashes QGIS or corrupts data:Yes Copied to github as #:25386

Description

Open the Data source Manager --> Virtual layer tab
Click the Test button (I know, it doesn't make sense but...)
kaboom!!! QGIS crashes with the following report (note than in 2.18, you get a "Malformed URL" message box which could be better formulated.)

User Feedback

Report Details

Crash ID: 91c0bc17f00fa3250de00aee2fa114301bbf621c

Stack Trace

isProvider :
isProvider :
isProvider :
isProvider :
QMetaObject::activate :
QAbstractButton::clicked :
QAbstractButton::click :
QAbstractButton::mouseReleaseEvent :
QWidget::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsOgcUtils::geometryFromGMLMultiLineString :
QCoreApplication::notifyInternal2 :
QApplicationPrivate::sendMouseEvent :
QSizePolicy::QSizePolicy :
QSizePolicy::QSizePolicy :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsOgcUtils::geometryFromGMLMultiLineString :
QCoreApplication::notifyInternal2 :
QGuiApplicationPrivate::processMouseEvent :
QWindowSystemInterface::sendWindowSystemEvents :
QEventDispatcherWin32::processEvents :
CallWindowProcW :
DispatchMessageW :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QDialog::exec :
QgsDecorationCopyright::qt_metacast :
QgsDecorationCopyright::qt_metacast :
QgsDecorationCopyright::qt_metacast :
QgsDecorationCopyright::qt_metacast :
QgsDecorationCopyright::qt_metacast :
QMetaObject::activate :
QAction::activate :
QAbstractButton::click :
QAbstractButton::mouseReleaseEvent :
QToolButton::mouseReleaseEvent :
QWidget::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsOgcUtils::geometryFromGMLMultiLineString :
QCoreApplication::notifyInternal2 :
QApplicationPrivate::sendMouseEvent :
QSizePolicy::QSizePolicy :
QSizePolicy::QSizePolicy :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsOgcUtils::geometryFromGMLMultiLineString :
QCoreApplication::notifyInternal2 :
QGuiApplicationPrivate::processMouseEvent :
QWindowSystemInterface::sendWindowSystemEvents :
QEventDispatcherWin32::processEvents :
CallWindowProcW :
DispatchMessageW :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QCoreApplication::exec :
QgsDecorationCopyright::qt_metacast :
BaseThreadInitThunk :
RtlUserThreadStart :

QGIS Info
QGIS Version: 2.99.0-Master
QGIS code revision: c321700ada
Compiled against Qt: 5.9.2
Running against Qt: 5.9.2
Compiled against GDAL: 2.2.2
Running against GDAL: 2.2.2

System Info
CPU Type: x86_64
Kernel Type: winnt
Kernel Version: 10.0.15063

Associated revisions

Revision 4272f5d8
Added by Alessandro Pasotti about 7 years ago

[bugfix] Do not crash when testing empty virtual layers

Fixes #17489

Require backporting

Revision ac109e43
Added by Alessandro Pasotti about 7 years ago

[bugfix] Do not crash when testing empty virtual layers

Fixes #17489

Backported from master

History

#1 Updated by Alessandro Pasotti about 7 years ago

  • Assignee set to Alessandro Pasotti

#2 Updated by Alessandro Pasotti about 7 years ago

  • Easy fix? changed from No to Yes
  • Pull Request or Patch supplied changed from No to Yes
  • Status changed from Open to In Progress

#3 Updated by Anonymous about 7 years ago

  • % Done changed from 0 to 100
  • Status changed from In Progress to Closed

#4 Updated by Giovanni Manghi almost 7 years ago

  • Resolution set to fixed/implemented

Also available in: Atom PDF