Bug report #16598

Adding PostGIS layers from the browser or DB-Manager crashes QGIS (mini-dump)

Added by Jérôme Guélat over 7 years ago. Updated over 7 years ago.

Status:Closed
Priority:High
Assignee:Alexander Bruy
Category:Browser
Affected QGIS version:2.18.8 Regression?:Yes
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:Yes Copied to github as #:24500

Description

QGIS 2.18.8 (and also master) crashes when one adds PostGIS layers from the browser or from DB-Manager. Everything is OK if one uses the "Add PostGIS layers" button.

This is a regression since it didn't happen with 2.18.7. Several PostgreSQL servers were tested.

Stack Trace:

(Qt5Core) QSizeF::transpose (unknown file):(unknown line)
(Qt5Core) QString::split (unknown file):(unknown line)
((unknown module)) QgsMapToolDeleteRing::ringNumInPolygon (unknown file):(unknown line)
((unknown module)) QgsMapToolDeleteRing::ringNumInPolygon (unknown file):(unknown line)
((unknown module)) QgsMapToolDeleteRing::ringNumInPolygon (unknown file):(unknown line)
((unknown module)) QgsMapToolDeleteRing::ringNumInPolygon (unknown file):(unknown line)
((unknown module)) QgsMapToolDeleteRing::ringNumInPolygon (unknown file):(unknown line)
((unknown module)) QgsMapToolDeleteRing::ringNumInPolygon (unknown file):(unknown line)
(Qt5Core) QMetaObject::activate (unknown file):(unknown line)
(Qt5Core) QTimer::timeout (unknown file):(unknown line)
(Qt5Core) QObject::event (unknown file):(unknown line)
(Qt5Widgets) QApplicationPrivate::notify_helper (unknown file):(unknown line)
(Qt5Widgets) QApplication::notify (unknown file):(unknown line)
((unknown module)) QgsMapLayerStore::metaObject (unknown file):(unknown line)
(Qt5Core) QCoreApplication::notifyInternal2 (unknown file):(unknown line)
(Qt5Core) QEventDispatcherWin32Private::sendTimerEvent (unknown file):(unknown line)
(Qt5Core) QEventDispatcherWin32::processEvents (unknown file):(unknown line)
(USER32) TranslateMessageEx (unknown file):(unknown line)
(USER32) TranslateMessage (unknown file):(unknown line)
(Qt5Core) QEventDispatcherWin32::processEvents (unknown file):(unknown line)
((unknown module)) qt_plugin_query_metadata (unknown file):(unknown line)
(Qt5Core) QEventLoop::exec (unknown file):(unknown line)
(Qt5Core) QCoreApplication::exec (unknown file):(unknown line)
((unknown module)) QgsMapToolDeleteRing::ringNumInPolygon (unknown file):(unknown line)
(kernel32) BaseThreadInitThunk (unknown file):(unknown line)
(ntdll) RtlUserThreadStart (unknown file):(unknown line)

QGIS Info:

QGIS Version: 2.99.0-Master
QGIS code revision: d55fa22
Compiled against Qt: 5.7.1
Running against Qt: 5.7.1
Compiled against GDAL: 2.2.0
Running against GDAL: 2.2.0

System Info:

CPU Type: x86_64
Kernel Type: winnt
Kernel Version: 6.1.7601

Related issues

Related to QGIS Application - Bug report #16614: Version 2.18.8 python loading vector layers - cannot name... Closed 2017-05-24
Related to QGIS Application - Bug report #16680: Layers Panel: adding a layer doesn't simply show its name Closed 2017-06-07
Duplicates QGIS Application - Bug report #16593: Segmentation fault when importing CSV file with coordinates Closed 2017-05-22

Associated revisions

Revision 403dc35d
Added by Jürgen Fischer over 7 years ago

don't set friendly name without sublayers (followup e0a2267; fixes #16593, #16594, #16598)

Revision b5cd5ee8
Added by Jürgen Fischer over 7 years ago

don't set friendly name without sublayers (followup e0a2267; fixes #16593, #16594, #16598)

(cherry picked from commit 403dc35dac30499c3954b732e4e8a642bfd475d8)

History

#1 Updated by Giovanni Manghi over 7 years ago

  • Priority changed from Normal to High
  • Affected QGIS version changed from master to 2.18.8

#2 Updated by Luigi Pirelli over 7 years ago

confirmed on Linux with latest 52a9c6d compiled... but only adding layer (doubleckick) from browser. Not confirmed from DbManager

#3 Updated by Giovanni Manghi over 7 years ago

  • Assignee set to Alexander Bruy

Alex, Luigi's analysis seems to point to some changes of yours, can you confirm?

#4 Updated by Raul Nanclares over 7 years ago

Confirmed on ubuntu budgie 16.04.02. Crashes when loading layer from browser, if layer is already loaded in a project qgis won't crash.

#6 Updated by Jürgen Fischer over 7 years ago

  • Description updated (diff)

#7 Updated by Jürgen Fischer over 7 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

#8 Updated by Jürgen Fischer over 7 years ago

  • Duplicates Bug report #16593: Segmentation fault when importing CSV file with coordinates added

#9 Updated by Jürgen Fischer over 7 years ago

  • Related to Bug report #16614: Version 2.18.8 python loading vector layers - cannot name vector layer added

#10 Updated by Jürgen Fischer over 7 years ago

  • Related to Bug report #16680: Layers Panel: adding a layer doesn't simply show its name added

Also available in: Atom PDF