[QGIS-Developer] debug build - DPI assertion fails in qgsmaprenderercustompainterjob.cpp

Jonas qgis at ag99.de
Thu Dec 20 05:38:37 PST 2018


Hi,

leaving this here, because it happens just in Debug builds:

the assertion in qgsmaprenderercustompainterjob.cpp/line 73 fails on my non-retina Mac Book Air when i change the magnification by locking the scale and using the trackpad to zoom. changing magnification via the spinner-box is just fine.

the assertion check is only enabled in debug builds ( #ifndef QT_NO_DEBUG ) so i didn’t want to file a bug report, just FYI.

log output is:
src/gui/qgsmapcanvas.cpp: 1588: (wheelEvent) [3ms] Wheel event delta 2
src/core/qgsmapsettings.cpp: 63: (setMagnificationFactor) [0ms] Magnification factor: 1.52486 dpi: 109.79 ratio: 0.983607
src/gui/qgsmapcanvas.cpp: 514: (refresh) [0ms] CANVAS refresh scheduling
src/gui/qgsmapcanvas.cpp: 732: (stopRendering) [11ms] CANVAS stop rendering!
src/core/qgsmaprendererparalleljob.cpp: 115: (cancelWithoutBlocking) [0ms] PARALLEL cancel at status 1
src/core/qgsvectorlayerrenderer.cpp: 270: (drawRenderer) [0ms] [thread:0x7fe3ab038820] Drawing of vector layer Ortsteile_Berlin_3808bce3_0433_4bd1_ab94_24c1a4c2b617 canceled.
src/core/qgsmaprendererparalleljob.cpp: 64: (start) [2ms] QThreadPool max thread count is 4
src/core/qgsmaprendererparalleljob.cpp: 222: (renderingFinished) [0ms] PARALLEL finished
src/gui/qgsmapcanvas.cpp: 1588: (wheelEvent) [18ms] Wheel event delta 2
src/core/qgsmapsettings.cpp: 63: (setMagnificationFactor) [0ms] Magnification factor: 1.55027 dpi: 111.62 ratio: 0.983607
src/gui/qgsmapcanvas.cpp: 514: (refresh) [0ms] CANVAS refresh scheduling
src/gui/qgsmapcanvas.cpp: 732: (stopRendering) [2ms] CANVAS stop rendering!
src/core/qgsmaprendererparalleljob.cpp: 115: (cancelWithoutBlocking) [0ms] PARALLEL cancel at status 1
src/core/qgsvectorlayerrenderer.cpp: 270: (drawRenderer) [0ms] [thread:0x7fe3ab22a850] Drawing of vector layer Ortsteile_Berlin_3808bce3_0433_4bd1_ab94_24c1a4c2b617 canceled.
src/core/qgsmaprendererparalleljob.cpp: 64: (start) [3ms] QThreadPool max thread count is 4
src/core/qgsmaprendererparalleljob.cpp: 222: (renderingFinished) [0ms] PARALLEL finished
src/core/qgsmaprendererparalleljob.cpp: 201: (renderLayersFinished) [67ms] PARALLEL layers finished
src/core/qgsmaprenderercustompainterjob.cpp: 345: (drawLabeling) [1ms] [thread:0x7fe3ab263850] Draw labeling took (seconds): 0
src/core/qgsmaprendererparalleljob.cpp: 222: (renderingFinished) [2ms] PARALLEL finished
src/core/qgsmaprendererjob.cpp: 439: (cleanupLabelJob) [0ms] caching label result image
src/gui/qgsmapcanvas.cpp: 600: (rendererJobFinished) [0ms] CANVAS finish! 1
src/gui/qgsmapcanvas.cpp: 1588: (wheelEvent) [30ms] Wheel event delta 2
src/gui/qgsmapcanvas.cpp: 1588: (wheelEvent) [8ms] Wheel event delta 0
src/gui/qgsmapcanvas.cpp: 1588: (wheelEvent) [0ms] Wheel event delta 0
Fatal: ASSERT failure in Job::startRender(): "pre-set DPI not equal to painter's DPI (112 vs 111.62)", file src/core/qgsmaprenderercustompainterjob.cpp, line 73
14:24:25: The program has unexpectedly finished.


thanks
Jonas


More information about the QGIS-Developer mailing list