Bug report #20465

[Layout] Crash when aborting items pasting during map rendering

Added by Harrissou Santanna about 6 years ago.

Status:Open
Priority:High
Assignee:-
Category:Map Composer/Printing
Affected QGIS version:3.4.1 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:Yes Copied to github as #:28285

Description

User Feedback

I copied a set of map items (map, labels, north arrow, scalebar) that I wanted to paste on another page of the same layout. I pasted the items on the wrong page, and while the rendering of the map was ongoing, i pressed ctrl-Z and got the crash.

Report Details

Crash ID: fc812b392da954599e7261f95b05253ef7de34cd

Stack Trace

QgsLayoutItem::writeXml :
QgsLayoutItemUndoCommand::saveState :
QgsLayoutUndoStack::beginCommand :
QgsLayoutItem::beginCommand :
QgsAttributeTypeDialog::setConstraintExpressionEnforced :
QMetaObject::activate :
QgsLayoutItemComboBox::itemChanged :
QMetaObject::activate :
QWidgetLineControl::`default constructor closure' :
QComboBox::setCurrentIndex :
QComboBox::setCurrentIndex :
QWidgetLineControl::`default constructor closure' :
QMetaObject::activate :
QAbstractItemModel::endRemoveRows :
QSortFilterProxyModel::removeRows :
QSortFilterProxyModel::sortRole :
QSortFilterProxyModel::`default constructor closure' :
QMetaObject::activate :
QAbstractItemModel::beginRemoveRows :
QgsLayoutModel::setItemRemoved :
QgsLayout::removeLayoutItemPrivate :
QgsLayoutItemAddItemCommand::undo :
QUndoCommand::undo :
QUndoStack::undo :
QMetaObject::activate :
QAction::activate :
QAction::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QShortcutMap::dispatchEvent :
QShortcutMap::tryShortcut :
QWindowSystemInterface::handleShortcutEvent :
QGuiApplicationPrivate::processKeyEvent :
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.1-Madeira
QGIS code revision: 383851c597
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

Also available in: Atom PDF