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

Crash when in DB Manager, trying to browse a PostgreSQL DB #28583

Closed
qgib opened this issue Dec 10, 2018 · 10 comments
Closed

Crash when in DB Manager, trying to browse a PostgreSQL DB #28583

qgib opened this issue Dec 10, 2018 · 10 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption DB Manager Relating to the DB Manager core plugin High Priority

Comments

@qgib
Copy link
Contributor

qgib commented Dec 10, 2018

Author Name: Frode Wiseth Jørgensen (@frodewj)
Original Redmine Issue: 20763
Affected QGIS version: 3.4.2
Redmine category:db_manager


User Feedback

Crash when in DB Manager, trying to browse a PostgreSQL DB

Report Details

Crash ID: e61981e0d953eba111ea0db98b5ac3c95a10dca1

Stack Trace

QgsBrowserModel::flags :
QSortFilterProxyModel::flags :
QModelIndex::flags :
QTreeViewPrivate::isIndexExpanded :
QgsBrowserTreeView::hasExpandedDescendant :
QgsBrowserDockWidget::refreshModel :
QgsBrowserDockWidget::refreshModel :
QgsBrowserDockWidget::refreshModel :
QgsBrowserDockWidget::refresh :
QMetaObject::activate :
QgisInterface::qt_static_metacall :
QMetaObject::activate :
QAbstractItemModel::dataChanged :
PyInit_QtCore :
PyMethodDef_RawFastCallKeywords :
PyMethodDef_RawFastCallKeywords :
PyEval_EvalFrameDefault :
PyEval_EvalCodeWithName :
PyMethodDef_RawFastCallKeywords :
PyEval_EvalFrameDefault :
PyEval_EvalCodeWithName :
PyMethodDef_RawFastCallKeywords :
PyEval_EvalFrameDefault :
PyFunction_FastCallDict :
PyMethodDef_RawFastCallDict :
PyObject_Call :
PyInit_sip :
QTreeViewPrivate::layout :
QTreeViewPrivate::expand :
QTreeViewPrivate::expandOrCollapseItemAtPos :
QTreeView::mousePressEvent :
QWidget::event :
QFrame::event :
QAbstractItemView::viewportEvent :
QCoreApplicationPrivate::sendThroughObjectEventFilters :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QApplicationPrivate::sendMouseEvent :
QSizePolicy::QSizePolicy :
QSizePolicy::QSizePolicy :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QGuiApplicationPrivate::processMouseEvent :
QWindowSystemInterface::sendWindowSystemEvents :
QEventDispatcherWin32::processEvents :
CallWindowProcW :
DispatchMessageW :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QCoreApplication::exec :
main :
BaseThreadInitThunk :
RtlUserThreadStart :

QGIS Info
QGIS Version: 3.4.2-Madeira
QGIS code revision: 22034aa
Compiled against Qt: 5.11.2
Running against Qt: 5.11.2
Compiled against GDAL: 2.3.2
Running against GDAL: 2.3.2

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


@qgib
Copy link
Contributor Author

qgib commented Dec 10, 2018

Author Name: Giovanni Manghi (@gioman)


Any db on any server? I cannot replicate here on both Linux and Windows.


  • status_id was changed from Open to Feedback
  • priority_id was changed from Normal to High
  • crashes_corrupts_data was changed from 0 to 1

@qgib
Copy link
Contributor Author

qgib commented Dec 10, 2018

Author Name: Frode Wiseth Jørgensen (@frodewj)


Local Postgre v9.6 on Windows 10.
Seems like it only crashes when I have a WMTS layer in addition to a shapefile layer in the TOC. If only the shapefile layer is present it works

@qgib
Copy link
Contributor Author

qgib commented Dec 11, 2018

Author Name: Giovanni Manghi (@gioman)


Frode Wiseth Jørgensen wrote:

Local Postgre v9.6 on Windows 10.
Seems like it only crashes when I have a WMTS layer in addition to a shapefile layer in the TOC. If only the shapefile layer is present it works

so to e clear:

  1. you create a project and add a WMTS layer and a shapefile

  2. then you open the DB Manager and try to browse a connection, at this point QGIS crashes

but if you only add the shapefile in (1) then it does not crash?

@qgib
Copy link
Contributor Author

qgib commented Dec 11, 2018

Author Name: Frode Wiseth Jørgensen (@frodewj)


Correct

@qgib
Copy link
Contributor Author

qgib commented Dec 11, 2018

Author Name: Giovanni Manghi (@gioman)


Frode Wiseth Jørgensen wrote:

Correct

provide the wmts url and the shapefile (even better a project with the necessary data), thanks.

@qgib
Copy link
Contributor Author

qgib commented Dec 11, 2018

Author Name: Giovanni Manghi (@gioman)


Frode Wiseth Jørgensen wrote:

Correct

also try on a new/clean profile.

@qgib
Copy link
Contributor Author

qgib commented Dec 13, 2018

Author Name: Frode Wiseth Jørgensen (@frodewj)


Example shape file and a project with a wmts layer


  • 13955 was configured as example_bug_report_20763.7z

@qgib
Copy link
Contributor Author

qgib commented Dec 13, 2018

Author Name: Giovanni Manghi (@gioman)


I cannot really replicate in any way, on both Linux or Windows.
Please try using a new/clean profile (no 3rd party plugins installed).

@qgib
Copy link
Contributor Author

qgib commented Jan 9, 2019

Author Name: Frode Wiseth Jørgensen (@frodewj)


Thanks for the effort, new/clean profile fixed it.
Please close this one.

@qgib
Copy link
Contributor Author

qgib commented Jan 9, 2019

Author Name: Giovanni Manghi (@gioman)


  • resolution was changed from to invalid
  • status_id was changed from Feedback to Closed

@qgib qgib closed this as completed Jan 9, 2019
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority DB Manager Relating to the DB Manager core plugin Crash/Data Corruption labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption DB Manager Relating to the DB Manager core plugin High Priority
Projects
None yet
Development

No branches or pull requests

1 participant