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 changing datasource #34231

Closed
jmacura opened this issue Feb 3, 2020 · 5 comments · Fixed by #34245
Closed

Crash when changing datasource #34231

jmacura opened this issue Feb 3, 2020 · 5 comments · Fixed by #34245
Assignees
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption

Comments

@jmacura
Copy link

jmacura commented Feb 3, 2020

User Feedback

I was changing a datasource for one layer for which I moved the source (GeoTIFF file) into another directory.
It took some time loading it, so I left QGIS running but switched my focus to a browser window for some time. After several minutes I wanted to check if the layer already reloaded the datasource, but instead I have seen this pretty crash window...

Report Details

Crash ID: b895f2e972085ce69e79887e6109a2117e415761

Stack Trace

::operator() qgisapp.cpp:7393
QgisApp::changeDataSource qgisapp.cpp:7451
QMetaObject::activate :
QAction::activate :
QMenu::actionGeometry :
QMenu::actionGeometry :
QMenu::mouseReleaseEvent :
QWidget::event :
QMenu::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify qgsapplication.cpp:418
QCoreApplication::notifyInternal2 :
QApplicationPrivate::sendMouseEvent :
QSizePolicy::QSizePolicy :
QSizePolicy::QSizePolicy :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify qgsapplication.cpp:418
QCoreApplication::notifyInternal2 :
QGuiApplicationPrivate::processMouseEvent :
QWindowSystemInterface::sendWindowSystemEvents :
QEventDispatcherWin32::processEvents :
UserCallWinProcCheckWow :
DispatchMessageWorker :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QMenu::exec :
QgsLayerTreeView::contextMenuEvent qgslayertreeview.cpp:152
QWidget::event :
QFrame::event :
QAbstractItemView::viewportEvent :
QCoreApplicationPrivate::sendThroughObjectEventFilters :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify qgsapplication.cpp:418
QCoreApplication::notifyInternal2 :
QSizePolicy::QSizePolicy :
QSizePolicy::QSizePolicy :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify qgsapplication.cpp:418
QCoreApplication::notifyInternal2 :
QGuiApplicationPrivate::processMouseEvent :
QWindowSystemInterface::sendWindowSystemEvents :
QEventDispatcherWin32::processEvents :
UserCallWinProcCheckWow :
DispatchMessageWorker :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QCoreApplication::exec :
main main.cpp:1598
BaseThreadInitThunk :
RtlUserThreadStart :

QGIS Info
QGIS Version: 3.10.2-A Coruna
QGIS code revision: d4cd3cf
Compiled against Qt: 5.11.2
Running against Qt: 5.11.2
Compiled against GDAL: 3.0.3
Running against GDAL: 3.0.3

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

@jmacura jmacura added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Feb 3, 2020
@jmacura
Copy link
Author

jmacura commented Feb 3, 2020

Just tested the same with empty user profile. Crashed again (I didn't even left QGIS as previously, just let it running in the front) after some 20 seconds.

User Feedback

--

Report Details

Crash ID: b895f2e972085ce69e79887e6109a2117e415761

Stack Trace

::operator() qgisapp.cpp:7393
QgisApp::changeDataSource qgisapp.cpp:7451
QMetaObject::activate :
QAction::activate :
QMenu::actionGeometry :
QMenu::actionGeometry :
QMenu::mouseReleaseEvent :
QWidget::event :
QMenu::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify qgsapplication.cpp:418
QCoreApplication::notifyInternal2 :
QApplicationPrivate::sendMouseEvent :
QSizePolicy::QSizePolicy :
QSizePolicy::QSizePolicy :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify qgsapplication.cpp:418
QCoreApplication::notifyInternal2 :
QGuiApplicationPrivate::processMouseEvent :
QWindowSystemInterface::sendWindowSystemEvents :
QEventDispatcherWin32::processEvents :
UserCallWinProcCheckWow :
DispatchMessageWorker :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QMenu::exec :
QgsLayerTreeView::contextMenuEvent qgslayertreeview.cpp:152
QWidget::event :
QFrame::event :
QAbstractItemView::viewportEvent :
QCoreApplicationPrivate::sendThroughObjectEventFilters :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify qgsapplication.cpp:418
QCoreApplication::notifyInternal2 :
QSizePolicy::QSizePolicy :
QSizePolicy::QSizePolicy :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify qgsapplication.cpp:418
QCoreApplication::notifyInternal2 :
QGuiApplicationPrivate::processMouseEvent :
QWindowSystemInterface::sendWindowSystemEvents :
QEventDispatcherWin32::processEvents :
UserCallWinProcCheckWow :
DispatchMessageWorker :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QCoreApplication::exec :
main main.cpp:1598
BaseThreadInitThunk :
RtlUserThreadStart :

QGIS Info
QGIS Version: 3.10.2-A Coruna
QGIS code revision: d4cd3cf
Compiled against Qt: 5.11.2
Running against Qt: 5.11.2
Compiled against GDAL: 3.0.3
Running against GDAL: 3.0.3

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

@gioman
Copy link
Contributor

gioman commented Feb 3, 2020

I was changing a datasource for one layer for which I moved the source (GeoTIFF file) into another directory.

@jmacura can you describe in detail the steps to replicate? thanks.

@gioman gioman added the Feedback Waiting on the submitter for answers label Feb 3, 2020
@jmacura
Copy link
Author

jmacura commented Feb 3, 2020

@gioman sure!

Steps to reproduce

  1. Open new project
  2. Load GeoTIFF as a new raster layer
  3. Save project
  4. Quit QGIS
  5. Go to your file system, move the .tiff file somewhere else
  6. Open QGIS and reopen the project
  7. The .tiff file won't be found (logically), hence the prompt dialog appears
    image
  8. In the prompt select option "Keep Unavailable Layers"
  9. Right click on the layer, choose "Change Data Source...." (it's in Czech in the image as it's a default language in an empty profile)
    image
  10. Find the new location of the file, click "OK", wait for the crash to happen

Is this sufficient? I can attach testing .qgz and testing .tiff files if needed.

@jmacura
Copy link
Author

jmacura commented Feb 3, 2020

And one more comment:
In step no. 7, if I choose "Browse" in the prompt dialog and relink the file from there, it works just fine.

@gioman gioman removed the Feedback Waiting on the submitter for answers label Feb 3, 2020
@gioman
Copy link
Contributor

gioman commented Feb 3, 2020

Confirmed also here.

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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants