[Qgis-developer] Magnifier causes crash

Raymond Nijssen r.nijssen at terglobo.nl
Wed Sep 14 10:57:31 PDT 2016


Confirmed, on debian 8, qgis-master.

QGIS crashes when i "unmagnify" (?) twice.

First time, no problem (100% -> 50%)

Second time, it shows 10% for a split second, and then QGIS crashes.


Here is the debug output:

src/core/qgsmapsettings.cpp: 75: (setMagnificationFactor) [10626ms] 
Magnification factor: 0.1  dpi: 9.6  ratio: 5
src/core/qgsscalecalculator.cpp: 86: (calculate) [1ms] scale = 
1.91195e+06 conversionFactor = 39.3701
src/core/qgsmapsettings.cpp: 219: (updateDerived) [0ms] Map units per 
pixel (x,y) : 5058.70428272919616575, 5058.70428272919707524
src/core/qgsmapsettings.cpp: 220: (updateDerived) [0ms] Pixmap 
dimensions (x,y) : 1144, 547
src/core/qgsmapsettings.cpp: 221: (updateDerived) [0ms] Extent 
dimensions (x,y) : 5787157.69944220036268234, 2767111.24265287071466446
src/core/qgsmapsettings.cpp: 222: (updateDerived) [0ms] 
-2748536.4141667569056153,-933981.4007317154901102 : 
3038621.2852754434570670,1833129.8419211553409696
src/core/qgsmapsettings.cpp: 223: (updateDerived) [0ms] Adjusted map 
units per pixel (x,y) : 5058.70428272919707524, 5058.70428272919707524
src/core/qgsmapsettings.cpp: 224: (updateDerived) [0ms] Recalced pixmap 
dimensions (x,y) : 1144, 547
src/core/qgsmapsettings.cpp: 225: (updateDerived) [0ms] Scale (assuming 
meters as map units) = 1:1911951.22301832516677678
src/core/qgsmapsettings.cpp: 226: (updateDerived) [0ms] Rotation: 0 degrees
src/gui/qgsmapcanvas.cpp: 694: (refresh) [0ms] CANVAS refresh scheduling
src/gui/qgsmapcanvas.cpp: 704: (refreshMap) [2ms] CANVAS refresh!
src/core/qgsmaprenderersequentialjob.cpp: 29: 
(QgsMapRendererSequentialJob) [1ms] SEQUENTIAL construct
src/core/qgsmaprenderersequentialjob.cpp: 63: (start) [1ms] SEQUENTIAL START
src/core/qgsmaprenderercustompainterjob.cpp: 36: 
(QgsMapRendererCustomPainterJob) [0ms] QPAINTER construct
src/core/qgsmaprenderercustompainterjob.cpp: 63: (start) [0ms] QPAINTER run!
src/core/qgsmaprenderercustompainterjob.cpp: 65: (start) [0ms] Preparing 
list of layer jobs for rendering
Fatal: ASSERT failure in Job::startRender(): "pre-set DPI not equal to 
painter's DPI (10 vs 9.6)", file 
/tmp/buildd/qgis-2.17.0+git20160806+cb02b9f+13jessie/src/core/qgsmaprenderercustompainterjob.cpp, 
line 77
Stacktrace (piped through c++filt):
/usr/bin/qgis.bin(+0x9514)[0x7f0e02ced514]
/usr/bin/qgis.bin(myMessageOutput(QtMsgType, char 
const*)+0x1e4)[0x7f0e02ced821]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(qt_message_output(QtMsgType, 
char const*)+0x31)[0x7f0dff5439a1]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x71e09)[0x7f0dff543e09]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(qFatal(char const*, 
...)+0xa1)[0x7f0dff5446f1]
/usr/lib/libqgis_core.so.2.17.0(QgsMapRendererCustomPainterJob::start()+0x3a5)[0x7f0e000d4b8d]
/usr/lib/libqgis_core.so.2.17.0(QgsMapRendererSequentialJob::start()+0x1cf)[0x7f0e000e0b2b]
/usr/lib/libqgis_gui.so.2.17.0(QgsMapCanvas::refreshMap()+0x410)[0x7f0e018b9c36]
/usr/lib/libqgis_gui.so.2.17.0(+0x5f6036)[0x7f0e01994036]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QMetaObject::activate(QObject*, 
QMetaObject const*, int, void**)+0x32c)[0x7f0dff66d71c]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x1a4a4a)[0x7f0dff676a4a]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QObject::event(QEvent*)+0xb3)[0x7f0dff671ce3]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplicationPrivate::notify_helper(QObject*, 
QEvent*)+0x8c)[0x7f0dfe9a948c]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplication::notify(QObject*, 
QEvent*)+0x2b8)[0x7f0dfe9affa8]
/usr/lib/libqgis_core.so.2.17.0(QgsApplication::notify(QObject*, 
QEvent*)+0x9b)[0x7f0dfff856b1]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QCoreApplication::notifyInternal(QObject*, 
QEvent*)+0x8d)[0x7f0dff65871d]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x1b838b)[0x7f0dff68a38b]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x1b53c1)[0x7f0dff6873c1]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x24d)[0x7f0df788cc5d]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x49f48)[0x7f0df788cf48]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2c)[0x7f0df788cffc]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x5d)[0x7f0dff687d1d]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x26bf96)[0x7f0dfea4df96]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x41)[0x7f0dff657271]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)+0x1a5)[0x7f0dff6575d5]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QCoreApplication::exec()+0x99)[0x7f0dff65d059]
/usr/bin/qgis.bin(main+0x42f5)[0x7f0e02cf1b8c]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7f0df8ca9b45]
/usr/bin/qgis.bin(+0x8e49)[0x7f0e02cece49]
Aborted


Regards,
Raymond




On 09/14/2016 06:48 PM, Paolo Cavallini wrote:
> Il 14/09/2016 13:39, Paolo Cavallini ha scritto:
>> Hi Denis,
>>
>> Il 14/09/2016 13:12, Denis Rouzaud ha scritto:
>>> The combobox in the status bar?
>>
>> Yes
>>
>>> Any chance to have a trace?
>>
>> Of course. I'm on a course now, I'd like to have confirmation it's not a
>> local issue before digging deeper.
>>
>>> I am not experiencing any troubles with 2.16.2 on fedora.
>>
>> Good to know. It mught be some lib misalignment then.
>
> Interesting: it does not crash when run normally, neither directly nor
> under gdb. It does when started with --configpath, even on a fresh,
> empty dir.
> Anyone confirms this?
> All the best.
>
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>



More information about the Qgis-developer mailing list