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

Composer Crashes QGIS when memory required is somewhat above 1500 MB #29064

Closed
qgib opened this issue Feb 12, 2019 · 6 comments
Closed

Composer Crashes QGIS when memory required is somewhat above 1500 MB #29064

qgib opened this issue Feb 12, 2019 · 6 comments
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 Feb 12, 2019

Author Name: Pedro Venâncio (Pedro Venâncio)
Original Redmine Issue: 21246
Affected QGIS version: 3.5(master)
Redmine category:map_composer/printing


Please see the screencast: https://cld.pt/dl/download/e89f376a-94f5-4c1a-9303-d09142b2a000/Composer_Crash_Memory_Allocation.gif

I've tested with several combinations of page size and export resolution, using Atlas or not, and the pattern is always the same. It seems that when the memory required is below 1500 MB, everything runs smoothly. When memory required is somewhat above 1500 MB, QGIS crashes.

Crash ID: 00226ca5e38762d367246255f3534bd55ed3d875

Stack Trace

memmove :
QVectorPath::convertToPainterPath :
QVectorPath::convertToPainterPath :
QVectorPath::convertToPainterPath :
QVectorPath::convertToPainterPath :
QVectorPath::convertToPainterPath :
QRasterPaintEngine::rasterBuffer :
QRasterPaintEngine::rasterBuffer :
QRasterPaintEngine::fill :
QPaintEngineEx::draw :
QPaintEngineEx::drawPath :
QgsGraduatedSymbolRenderer::addClass :
QgsGraduatedSymbolRenderer::addClass :
QgsGraduatedSymbolRenderer::addClass :
QgsGraduatedSymbolRenderer::addClass :
QgsGraduatedSymbolRenderer::addClass :
QgsGraduatedSymbolRenderer::addClass :
QGraphicsScene::dragMoveEvent :
QGraphicsItem::dragMoveEvent :
QGraphicsEffectSource::draw :
QgsGraduatedSymbolRenderer::addClass :
QGraphicsScene::drawItems :
QGraphicsScene::drawItems :
QGraphicsScene::render :
QgsGraduatedSymbolRenderer::addClass :
QgsGraduatedSymbolRenderer::addClass :
QgsGraduatedSymbolRenderer::addClass :
QgsGraduatedSymbolRenderer::addClass :
QgsGraduatedSymbolRenderer::addClass :
QgisAppInterface::actionPan :
QgisAppInterface::actionPan :
QgisAppInterface::actionPan :
QgisAppInterface::actionPan :
QMetaObject::activate :
QAction::activate :
QAbstractButton::click :
QAbstractButton::mouseReleaseEvent :
QToolButton::mouseReleaseEvent :
QWidget::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsGraduatedSymbolRenderer::addClass :
QCoreApplication::notifyInternal2 :
QApplicationPrivate::sendMouseEvent :
QSizePolicy::QSizePolicy :
QSizePolicy::QSizePolicy :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsGraduatedSymbolRenderer::addClass :
QCoreApplication::notifyInternal2 :
QGuiApplicationPrivate::processMouseEvent :
QWindowSystemInterface::sendWindowSystemEvents :
QEventDispatcherWin32::processEvents :
DispatchMessageW :
DispatchMessageW :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QCoreApplication::exec :
QgisAppInterface::actionPan :
BaseThreadInitThunk :
RtlUserThreadStart :

QGIS Info
QGIS Version: 3.4.4-Madeira
QGIS code revision: c327dec672
Compiled against Qt: 5.11.2
Running against Qt: 5.11.2
Compiled against GDAL: 2.4.0
Running against GDAL: 2.4.0

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

QGIS 2.18 seems to support a few more memory requirement without crash. Above some limit, it shows the memory allocation error message attached, and do not crash.

Tested in Windows 10 with QGIS 3.4.4, Master and 2.18.28 (OSGeo4W 64bits). This machine has 16GB of RAM.


@qgib
Copy link
Contributor Author

qgib commented Feb 12, 2019

Author Name: Giovanni Manghi (@gioman)


Is this a regression compared to 2.18?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Feb 12, 2019

Author Name: Adje Prado (@adjeprado)


This looks very similar to the issue that I've been having (#29065). I thought it was a layout size, but it's probably more closely related to memory.

@qgib
Copy link
Contributor Author

qgib commented Feb 12, 2019

Author Name: Pedro Venâncio (Pedro Venâncio)


Giovanni Manghi wrote:

Is this a regression compared to 2.18?

I think so Giovanni.

I've tested now in Linux, and here QGIS 3.4.4 has a similar behavior to QGIS 2.18.28 in Windows, that is, it throws a window with a warning

Trying to create image of 27165×27165 @ 300dpi resulted in a memory overflow.

Please try a lower resolution or a smaller paper size.

and QGIS does not crash.

So, the crash and regression seems circumscribed to QGIS 3.4.4 and Master, in Windows machines.

Also in Linux, the warning message is showed when Composer needs somewhat above 1500 MB of memory. Could this limit be increased in 64bits versions?


  • 14297 was configured as linux_image_export_error_memory_overflow.jpg
  • 14296 was configured as linux_atlas_export_error_memory_overflow.jpg

@qgib
Copy link
Contributor Author

qgib commented Feb 13, 2019

Author Name: Giovanni Manghi (@gioman)


  • regression was changed from 0 to 1

@qgib
Copy link
Contributor Author

qgib commented Mar 8, 2019

Author Name: Giovanni Manghi (@gioman)


  • status_id was changed from Feedback to Open

@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
@nyalldawson
Copy link
Collaborator

Fixed upstream in Qt 5.12.4

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

2 participants