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

regression: exporting atlas as image crashes QGIS #24523

Closed
qgib opened this issue May 26, 2017 · 1 comment
Closed

regression: exporting atlas as image crashes QGIS #24523

qgib opened this issue May 26, 2017 · 1 comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption High Priority Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks Regression Something which used to work, but doesn't anymore

Comments

@qgib
Copy link
Contributor

qgib commented May 26, 2017

Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV)
Original Redmine Issue: 16623
Affected QGIS version: master
Redmine category:map_composer/printing


Under QGIS master, attempting to export an atlas as a set of images crashes QGIS. The crash occurs prior to displaying the "pick a directory" dialog.

Steps to reproduce

  1. Open an atlas-enabled project, and open its composer
  2. Export the atlas-enabled composer as image
  3. boom

gdb where output

#_0  0x00007ffff49af124 in QLayout::parentWidget() const () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_1  0x00007ffff49b008c in QLayout::addChildWidget(QWidget*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_2  0x00007ffff49b01ff in QLayout::addWidget(QWidget*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_3  0x00007ffff757311c in QgsComposer::exportCompositionAsImage(QgsComposer::OutputMode) (this=0x555556210630, mode=QgsComposer::Atlas) at /home/webmaster/dev/cpp/QGIS/src/app/composer/qgscomposer.cpp:2164
#_4  0x00007ffff7570595 in QgsComposer::on_mActionExportAtlasAsImage_triggered() (this=0x555556210630) at /home/webmaster/dev/cpp/QGIS/src/app/composer/qgscomposer.cpp:1911
#_5  0x00007ffff773bd52 in QgsComposer::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0x555556210630, _c=QMetaObject::InvokeMetaMethod, _id=82, _a=0x7fffffffb230)
    at /home/webmaster/dev/cpp/QGIS/bm-qt5/src/app/composer/moc_qgscomposer.cpp:688
#_6  0x00007ffff773c334 in QgsComposer::qt_metacall(QMetaObject::Call, int, void**) (this=0x555556210630, _c=QMetaObject::InvokeMetaMethod, _id=82, _a=0x7fffffffb230)
    at /home/webmaster/dev/cpp/QGIS/bm-qt5/src/app/composer/moc_qgscomposer.cpp:785
#_7  0x00007ffff3ce1644 in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#_8  0x00007ffff4986992 in QAction::triggered(bool) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_9  0x00007ffff4989380 in QAction::activate(QAction::ActionEvent) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_10 0x00007ffff4af89ba in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_11 0x00007ffff4b00044 in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_12 0x00007ffff4b01016 in QMenu::mouseReleaseEvent(QMouseEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_13 0x00007ffff49d4a78 in QWidget::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_14 0x00007ffff4b03343 in QMenu::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_15 0x00007ffff498d35c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_16 0x00007ffff49959cd in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_17 0x00007ffff55c7691 in QgsApplication::notify(QObject*, QEvent*) (this=0x7fffffffda10, receiver=0x555555b555e0, event=0x7fffffffb900) at /home/webmaster/dev/cpp/QGIS/src/core/qgsapplication.cpp:295
#_18 0x00007ffff3cb58a0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#_19 0x00007ffff499407d in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_20 0x00007ffff49ef506 in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_21 0x00007ffff49f1b03 in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_22 0x00007ffff498d35c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_23 0x00007ffff4994b11 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_24 0x00007ffff55c7691 in QgsApplication::notify(QObject*, QEvent*) (this=0x7fffffffda10, receiver=0x5555598849e0, event=0x7fffffffbda0) at /home/webmaster/dev/cpp/QGIS/src/core/qgsapplication.cpp:295
#_25 0x00007ffff3cb58a0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#_26 0x00007ffff41f9723 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#_27 0x00007ffff41fb2a5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#_28 0x00007ffff41d923b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#_29 0x00007fffd1be4830 in  () at /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#_30 0x00007fffea1f0377 in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#_31 0x00007fffea1f05e0 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#_32 0x00007fffea1f068c in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#_33 0x00007ffff3d09f0f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#_34 0x00007ffff3cb388a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#_35 0x00007ffff4afdb0d in QMenu::exec(QPoint const&, QAction*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_36 0x00007ffff4b427a5 in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_37 0x00007ffff3ce14a9 in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#_38 0x00007ffff4a75f17 in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_39 0x00007ffff4a765e1 in QAbstractButton::mousePressEvent(QMouseEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_40 0x00007ffff4b4349f in QToolButton::mousePressEvent(QMouseEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_41 0x00007ffff49d53ef in QWidget::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_42 0x00007ffff4b43749 in QToolButton::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_43 0x00007ffff498d35c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_44 0x00007ffff49959cd in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_45 0x00007ffff55c7691 in QgsApplication::notify(QObject*, QEvent*) (this=0x7fffffffda10, receiver=0x555556117dd0, event=0x7fffffffc950) at /home/webmaster/dev/cpp/QGIS/src/core/qgsapplication.cpp:295
#_46 0x00007ffff3cb58a0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#_47 0x00007ffff499407d in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_48 0x00007ffff49ef0f6 in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_49 0x00007ffff49f1b03 in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_50 0x00007ffff498d35c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_51 0x00007ffff4994b11 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_52 0x00007ffff55c7691 in QgsApplication::notify(QObject*, QEvent*) (this=0x7fffffffda10, receiver=0x555556064600, event=0x7fffffffcdf0) at /home/webmaster/dev/cpp/QGIS/src/core/qgsapplication.cpp:295
#_53 0x00007ffff3cb58a0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

@qgib
Copy link
Contributor Author

qgib commented May 26, 2017

Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV)


Applied in changeset e0cad1f.


  • done_ratio was changed from 0 to 100
  • status_id was changed from Open to Closed

@qgib qgib closed this as completed May 26, 2017
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks Crash/Data Corruption Regression Something which used to work, but doesn't anymore 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 High Priority Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

No branches or pull requests

1 participant