qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.66k stars 3.01k forks source link

Changing styling of Mesh, throws: CRITICAL Qt : Cannot create accessible child interface for object: QTreeWidget(0x55f81daded20, name = "mColormapTreeWidget") index: 8 #50949

Open rduivenvoorde opened 2 years ago

rduivenvoorde commented 2 years ago

What is the bug or the crash?

When loading a netcdf in current Master (self compiled) and playing with styling, I get the following Qt errors:

CRITICAL    Qt : Cannot create accessible child interface for object: QTreeWidget(0x55f81daded20, name = "mColormapTreeWidget") index: 8

See image

image

Steps to reproduce the issue

Load the nc.test from this nc.zip:

test.zip

Enable the Temporal Controller:

Try out some different interpolation and color ramps. And THEN click in one of the classes in the list (below I clicked in the first/orange symbol):

Screenshot from 2022-11-21 10-58-49

Versions

QGIS version 3.29.0-Master QGIS code revision 5c604061bce
Qt version 5.15.6
Python version 3.10.8
GDAL/OGR version 3.5.3
PROJ version 9.1.0
EPSG Registry database version v10.074 (2022-08-01)
GEOS version 3.11.0-CAPI-1.17.0
SQLite version 3.39.4
PostgreSQL client version unknown
SpatiaLite version 5.0.1
QWT version 6.1.4
QScintilla2 version 2.11.6
OS version Debian GNU/Linux bookworm/sid

Supported QGIS version

New profile

Additional context

No response

alexbruy commented 1 year ago

Can't reproduce with the master (b4c24c72e986c6de621bba0a6201466e27401bcf), is this still valid?

rduivenvoorde commented 1 year ago

@alexbruy yes, I just compiled master of today. Note that this is a Qt warning so only visible if you build DEBUG version.

This is what I see in my terminal

/home/richard/bin/qgis_/master/debug/bin/qgis(+0xe32a)[0x55937480632a]
/home/richard/bin/qgis_/master/debug/bin/qgis(+0xeb2b)[0x559374806b2b]
/lib/x86_64-linux-gnu/libQt5Core.so.5(+0xc3b50)[0x7efd3dec3b50]
/lib/x86_64-linux-gnu/libQt5Core.so.5(qt_message_output(QtMsgType, QMessageLogContext const&, QString const&)+0xd)[0x7efd3dec50fd]
/lib/x86_64-linux-gnu/libQt5Core.so.5(QDebug::~QDebug()+0x68)[0x7efd3dfc6fa8]
/lib/x86_64-linux-gnu/libQt5Gui.so.5(QAccessibleEvent::accessibleInterface() const+0x23b)[0x7efd3e506a3b]
/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5(+0xed0b9)[0x7efca617b0b9]
/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QTreeView::selectionChanged(QItemSelection const&, QItemSelection const&)+0xe1)[0x7efd3f04f5f1]
/lib/x86_64-linux-gnu/libQt5Core.so.5(+0x2e8f7c)[0x7efd3e0e8f7c]
/lib/x86_64-linux-gnu/libQt5Core.so.5(QItemSelectionModel::selectionChanged(QItemSelection const&, QItemSelection const&)+0x37)[0x7efd3e05bc47]
/lib/x86_64-linux-gnu/libQt5Core.so.5(QItemSelectionModel::select(QItemSelection const&, QFlags<QItemSelectionModel::SelectionFlag>)+0x216)[0x7efd3e064716]
/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QTreeViewPrivate::select(QModelIndex const&, QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>)+0x6a2)[0x7efd3f049112]
/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QTreeView::setSelection(QRect const&, QFlags<QItemSelectionModel::SelectionFlag>)+0x17f)[0x7efd3f049a3f]
/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QAbstractItemView::mousePressEvent(QMouseEvent*)+0x2f3)[0x7efd3efd50c3]
/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QWidget::event(QEvent*)+0x1a8)[0x7efd3eda4db8]
/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QFrame::event(QEvent*)+0x1e)[0x7efd3ee5048e]
/lib/x86_64-linux-gnu/libQt5Core.so.5(QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*)+0x8b)[0x7efd3e0b147b]
/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QApplicationPrivate::notify_helper(QObject*, QEvent*)+0x6e)[0x7efd3ed62f9e]
/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QApplication::notify(QObject*, QEvent*)+0x13c2)[0x7efd3ed6b552]

And this in QGIS:

Screenshot from 2023-11-03 12-44-19

Note that you have to click on one of the color classes.

But maybe it is a Qt(version?) hickup and not important?

These are my versions

QGIS version 3.35.0-Master QGIS code revision 36c53ea14ce
Qt version 5.15.8
Python version 3.11.2
GDAL/OGR version 3.6.2
PROJ version 9.1.1
EPSG Registry database version v10.076 (2022-08-31)
GEOS version 3.11.1-CAPI-1.17.1
SQLite version 3.40.1
PDAL version 2.5.6
PostgreSQL client version 15.3 (Debian 15.3-0+deb12u1)
SpatiaLite version 5.0.1
QWT version 6.1.4
QScintilla2 version 2.13.3
OS version Debian GNU/Linux 12 (bookworm)