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

QGIS 3.4.4 crash when using dynamic image in html textfield in print layout #28996

Closed
qgib opened this issue Feb 5, 2019 · 3 comments · Fixed by #31880
Closed

QGIS 3.4.4 crash when using dynamic image in html textfield in print layout #28996

qgib opened this issue Feb 5, 2019 · 3 comments · Fixed by #31880
Assignees
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

Comments

@qgib
Copy link
Contributor

qgib commented Feb 5, 2019

Author Name: Dennis Real (Dennis Real)
Original Redmine Issue: 21178
Affected QGIS version: 3.6.0
Redmine category:map_composer/printing


Steps to reproduce:

Note: Steps 1-8 already done in attached file. Unzip in /tmp to get right path to images.

  1. Create new qgis project with some layers (OSM Standard as background, 1 KML with some points, 1 .ods table with additional information)
  2. Connect KML (waypoint name) with table (column "ID")
  3. Create new print layout
  4. Create atlas over kml waypoints
  5. insert text field with html source
  6. include dynamic image in html using atlas feature id:

7. Click through atlas. Image will change as expected 8. Save project and close qgis 9. Start qgis and open project again 10. Open print layout -> CRASH!

Reproducability: Always.

Trace:

qgis
/usr/lib/python3/dist-packages/qgis/core/additions/qgsfunction.py:107: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() or inspect.getfullargspec()
args = inspect.getargspec(function).args
Warning: QObject::connect: signal not found in QgisAppInterface
2019-02-05 19:39:52,508 - QuickOSM - INFO - Translation to de
Gtk-Message: 19:39:57.780: GtkDialog mapped without a transient parent. This is discouraged.
Warning: QBackingStore::endPaint() called with active painter on backingstore paint device
QGIS died on signal 11[New LWP 22884]
[New LWP 22885]
[New LWP 22886]
[New LWP 22887]
[New LWP 22888]
[New LWP 22889]
[New LWP 22892]
[New LWP 22893]
[New LWP 22895]
[New LWP 22903]
[New LWP 22911]
[New LWP 22915]
[New LWP 22916]
[New LWP 22917]
[New LWP 22918]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f6fa9bbd6c2 in __GI___waitpid (pid=23519, stat_loc=0x7ffe59927cec, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
30 ../sysdeps/unix/sysv/linux/waitpid.c: Datei oder Verzeichnis nicht gefunden.
[Current thread is 1 (Thread 0x7f6fada78380 (LWP 22878))]
#_0 0x00007f6fa9bbd6c2 in __GI___waitpid (pid=23519, stat_loc=0x7ffe59927cec, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
resultvar = 18446744073709551104
sc_cancel_oldtype = 0
#_1 0x00005618b38e18ee in ()
#_2 0x00007f6fa9b17f20 in () at /lib/x86_64-linux-gnu/libc.so.6
#_3 0x00007f6faaf108c8 in QRasterPaintEngine::transformChanged() () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#_4 0x00007f6faaf2a546 in QPainter::setWorldTransform(QTransform const&, bool) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#_5 0x00007f6fab77d72b in () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_6 0x00007f6fab77e327 in () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_7 0x00007f6fab743a41 in () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_8 0x00007f6fab7e1a48 in QGraphicsEffectSource::draw(QPainter*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_9 0x00007f6fac580e29 in QgsLayoutEffect::draw(QPainter*) () at /usr/lib/libqgis_core.so.3.4.4
#_10 0x00007f6fab77eb5f in () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_11 0x00007f6fab77f3aa in () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_12 0x00007f6fab7a20c6 in QGraphicsView::paintEvent(QPaintEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_13 0x00007f6fa7dc7899 in QgsLayoutView::paintEvent(QPaintEvent*) () at /usr/lib/libqgis_gui.so.3.4.4
#_14 0x00007f6fab4b2038 in QWidget::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_15 0x00007f6fab5534be in QFrame::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_16 0x00007f6fab7a0bfb in QGraphicsView::viewportEvent(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_17 0x00007f6faa6f568c in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#_18 0x00007f6fab473805 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_19 0x00007f6fab47b0f4 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_20 0x00007f6fac20496b in QgsApplication::notify(QObject*, QEvent*) () at /usr/lib/libqgis_core.so.3.4.4
#_21 0x00007f6faa6f59a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#_22 0x00007f6fab4ab18a in QWidgetPrivate::sendPaintEvent(QRegion const&) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_23 0x00007f6fab4ab74a in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_24 0x00007f6fab4ac3b0 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_25 0x00007f6fab4ab356 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_26 0x00007f6fab4ac3b0 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_27 0x00007f6fab4ab356 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_28 0x00007f6fab4ac3b0 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_29 0x00007f6fab4ab356 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_30 0x00007f6fab4ac3b0 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_31 0x00007f6fab4ab356 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_32 0x00007f6fab482e54 in () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_33 0x00007f6fab4835f2 in () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_34 0x00007f6fab4ced2e in () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_35 0x00007f6fab4cf64d in () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_36 0x00007f6fab47382c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_37 0x00007f6fab47b0f4 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#_38 0x00007f6fac20496b in QgsApplication::notify(QObject*, QEvent*) () at /usr/lib/libqgis_core.so.3.4.4
#_39 0x00007f6faa6f59a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#_40 0x00007f6faacb843f in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#_41 0x00007f6faacb907d in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#_42 0x00007f6faac902eb in QWindowSystemInterface::sendWindowSystemEvents(QFlagsQEventLoop::ProcessEventsFlag) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#_43 0x00007f6f7bc611c0 in () at /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#_44 0x00007f6f9e3f2387 in g_main_context_dispatch () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#_45 0x00007f6f9e3f25c0 in () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#_46 0x00007f6f9e3f264c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#_47 0x00007f6faa74e8ef in QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#_48 0x00007f6faa6f39ea in QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#_49 0x00007f6faa6fca84 in QCoreApplication::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#_50 0x00005618b38ddf3e in ()
#_51 0x00007f6fa9afab97 in __libc_start_main (main=0x5618b38db760, argc=1, argv=0x7ffe5992b608, init=, fini=, rtld_fini=, stack_end=0x7ffe5992b5f8) at ../csu/libc-start.c:310
result =
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, 7306974803453696498, 94664091636432, 140730401207808, 0, 0, 3939034383248677362, 4001908538810587634}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x7f6fad918733 <_dl_init+259>, 0x7f6fad8d6538}, data = {prev = 0x0, cleanup = 0x0, canceltype = -1382971597}}}
not_first_call =
#_52 0x00005618b38e12fa in _start ()
gdb returned 0


@qgib
Copy link
Contributor Author

qgib commented Feb 7, 2019

Author Name: Giovanni Manghi (@gioman)


confirmed here also on Windows.


  • operating_system was changed from Ubuntu 18.04.1 LTS to
  • priority_id was changed from Normal to High
  • category_id was changed from Unknown to Map Composer/Printing

@qgib
Copy link
Contributor Author

qgib commented Feb 23, 2019

Author Name: Dennis Real (Dennis Real)


Note: Bug still reproduceable in QGIS-Version 3.6.0-Noosa

QGIS-Codeversion 5873452
Kompiliert gegen Qt 5.9.5
Laufendes Qt 5.9.5
Kompiliert mit GDAL/OGR 2.2.3
Läuft mit GDAL/OGR 2.2.3
Kompiliert mit GEOS 3.6.2-CAPI-1.10.2
Läuft mit GEOS 3.6.2-CAPI-1.10.2 4d2925d6
PostgreSQL-Client-Version 10.6 (Ubuntu 10.6-0ubuntu0.18.04.1)
SpatiaLite-Version 4.3.0a
QWT-Version 6.1.3
QScintilla2-Version 2.10.2
PROJ.4-Version 493

@qgib
Copy link
Contributor Author

qgib commented Feb 23, 2019

Author Name: Giovanni Manghi (@gioman)


  • version was changed from 3.4.4 to 3.6.0

@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 labels May 25, 2019
@nyalldawson nyalldawson self-assigned this Sep 19, 2019
nyalldawson added a commit to nyalldawson/QGIS that referenced this issue Sep 19, 2019
nyalldawson added a commit that referenced this issue Sep 21, 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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants