Closed luipir closed 4 years ago
Works for me on master.
Could it be a Qt 5.9 specific issue?
@luipir duplicate of https://github.com/qgis/QGIS/issues/39628 ?
Could it be a Qt 5.9 specific issue?
I have QT5.11.2 and look at #39692
I have QT5.11.2 and look at #39692
@Antoviscomi cannot replicate that.
I have QT5.11.2 and look at #39692
@Antoviscomi cannot replicate that.
ok @gioman with a new clean profile it works fine, thank you
I put my bets on the outdated QT.
This is happening here also, but not everytime, it's some kind of random.
And it happens just after double clicking in TOC.
Here is a crash report:
Crash ID: 4d5b893bfad5cc6351cf25c2890b2cd2bf3656a7
Stack Trace
QCoreApplicationPrivate::sendThroughObjectEventFilters :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify qgsapplication.cpp:458
QCoreApplication::notifyInternal2 :
QMainWindow::trUtf8 :
QHeaderView::logicalIndexAt :
QWidget::setStyleSheet :
QgsCollapsibleGroupBoxBasic::updateStyle qgscollapsiblegroupbox.cpp:386
QgsCollapsibleGroupBoxBasic::showEvent qgscollapsiblegroupbox.cpp:115
QWidget::event :
QGroupBox::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify qgsapplication.cpp:458
QCoreApplication::notifyInternal2 :
QWidgetPrivate::show_helper :
QWidget::setVisible :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidget::setVisible :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidget::setVisible :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidget::setVisible :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidget::setVisible :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidget::setVisible :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidget::setVisible :
QDialog::setVisible :
QgisApp::showLayerProperties qgisapp.cpp:15943
QgisApp::layerProperties qgisapp.cpp:9163
QgisApp::layerTreeViewDoubleClicked qgisapp.cpp:658
QMetaObject::activate :
QAbstractItemView::doubleClicked :
QTreeView::mouseDoubleClickEvent :
QWidget::event :
QFrame::event :
QAbstractItemView::viewportEvent :
QCoreApplicationPrivate::sendThroughObjectEventFilters :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify qgsapplication.cpp:458
QCoreApplication::notifyInternal2 :
QApplicationPrivate::sendMouseEvent :
QSizePolicy::QSizePolicy :
QSizePolicy::QSizePolicy :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify qgsapplication.cpp:458
QCoreApplication::notifyInternal2 :
QGuiApplicationPrivate::processMouseEvent :
QWindowSystemInterface::sendWindowSystemEvents :
QEventDispatcherWin32::processEvents :
UserCallWinProcCheckWow :
DispatchMessageWorker :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QCoreApplication::exec :
main main.cpp:1637
BaseThreadInitThunk :
RtlUserThreadStart :
QGIS Info
QGIS Version: 3.16.0-Hannover
QGIS code revision: 43b64b13f3
Compiled against Qt: 5.11.2
Running against Qt: 5.11.2
Compiled against GDAL: 3.1.4
Running against GDAL: 3.1.4
System Info
CPU Type: x86_64
Kernel Type: winnt
Kernel Version: 10.0.19041
but not everytime
@PedroVenancio can you test a new QGIS profile?
@PedroVenancio can you test a new QGIS profile?
I've just tested in a clean profile and I've got the crash after double clicking in 3 rasters.
Crash ID: b27b1ccd778933ff25ecaacdb6fcfe38b7df74db
Stack Trace
QObject::isWidgetType :
QMainWindow::trUtf8 :
QHeaderView::logicalIndexAt :
QWidget::setStyleSheet :
QgsCollapsibleGroupBoxBasic::updateStyle qgscollapsiblegroupbox.cpp:386
QgsCollapsibleGroupBoxBasic::showEvent qgscollapsiblegroupbox.cpp:115
QWidget::event :
QGroupBox::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify qgsapplication.cpp:458
QCoreApplication::notifyInternal2 :
QWidgetPrivate::show_helper :
QWidget::setVisible :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidget::setVisible :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidget::setVisible :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidget::setVisible :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidget::setVisible :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidget::setVisible :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidget::setVisible :
QDialog::setVisible :
QgisApp::showLayerProperties qgisapp.cpp:15943
QgisApp::layerProperties qgisapp.cpp:9163
QgisApp::layerTreeViewDoubleClicked qgisapp.cpp:658
QMetaObject::activate :
QAbstractItemView::doubleClicked :
QTreeView::mouseDoubleClickEvent :
QWidget::event :
QFrame::event :
QAbstractItemView::viewportEvent :
QCoreApplicationPrivate::sendThroughObjectEventFilters :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify qgsapplication.cpp:458
QCoreApplication::notifyInternal2 :
QApplicationPrivate::sendMouseEvent :
QSizePolicy::QSizePolicy :
QSizePolicy::QSizePolicy :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify qgsapplication.cpp:458
QCoreApplication::notifyInternal2 :
QGuiApplicationPrivate::processMouseEvent :
QWindowSystemInterface::sendWindowSystemEvents :
QEventDispatcherWin32::processEvents :
UserCallWinProcCheckWow :
DispatchMessageWorker :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QCoreApplication::exec :
main main.cpp:1637
BaseThreadInitThunk :
RtlUserThreadStart :
QGIS Info
QGIS Version: 3.16.0-Hannover
QGIS code revision: 43b64b13f3
Compiled against Qt: 5.11.2
Running against Qt: 5.11.2
Compiled against GDAL: 3.1.4
Running against GDAL: 3.1.4
System Info
CPU Type: x86_64
Kernel Type: winnt
Kernel Version: 10.0.19041
I've just tested in a clean profile and I've got the crash after double clicking in 3 rasters.
@PedroVenancio so your issue is more similar to https://github.com/qgis/QGIS/issues/39692 (?).
@PedroVenancio so your issue is more similar to #39692 (?).
Yes, I think so, but sometimes it crashes just after 3, 4, 5 ... double clicks, not at the first.
I've tried it again, in a clean profile, clean project, just added a raster layer and it crashed after 15 double clicks. It's some kind of random...
@PedroVenancio i've the crash in the same codeline
@PedroVenancio can you test a new QGIS profile?
I've just tested in a clean profile and I've got the crash after double clicking in 3 rasters.
Aftetr a wile dscovered this issue, started also to crash just double-cliking to open properties... I didn0t check if qgis try to open the previus tab e.g. symbology => crash in the same line
@luipir @PedroVenancio @gioman In addition I've noticed that if I delete C:...AppData\Roaming\QGIS\QGIS3\profiles\default\QGIS\ QGIS3.ini, then I open a clean project with default profile, double click it works fine (I double click for about 15-20times)
trUtf8 is tr from what I understand. was there any important changes to the translation data recently?
Ref in QObject
[static]QString QObject::tr(const char *sourceText, const char *disambiguation = Q_NULLPTR, int n = -1) Returns a translated version of sourceText, optionally based on a disambiguation string and value of n for strings containing plurals; otherwise returns QString::fromUtf8(sourceText) if no appropriate translated string is available.
Could someone check if the bug occurs before the latest translation at https://github.com/qgis/QGIS/commit/a759ca227176f336fde7a2c2fe340d5c3626ee4c and if it occurs after? I'm not sure what other changes might have affected the translation. I may be off the mark also.
This seems a pretty severe regression, is anyone having a look at?
It is in fact. I'm seeing it reported at several local mailing lists, Facebook groups, etc.
I did have a look but couldn't reproduce.
Is everyone using Italian or spanish translation?
Is everyone using Italian or spanish translation?
No, I'm using QGIS in English, but my windows OS is Portuguese
I confirm windows 10 QGIS 3.16 (standalone y OSGEO) I use QGIS in English, but my windows OS is Español
@luipir @PedroVenancio @gioman In addition I've noticed that if I delete C:...AppData\Roaming\QGIS\QGIS3\profiles\default\QGIS\ QGIS3.ini, then I open a clean project with default profile, double click it works fine (I double click for about 15-20times)
@Antoviscomi no, in my case doe not change and continue to crash also after removing QGIS.ini before starting qgis in a clean profile. Crash happen always in the same codeline... here the complete traceback:
Thread 1 "qgis" received signal SIGSEGV, Segmentation fault. 0x00007ffff232b6bd in QWidget::style() const () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 (gdb) where
at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:136
(void (QgisApp::*)(QgisApp * const, const QModelIndex &)) 0x7ffff6f4ab80 <QgisApp::layerTreeViewDoubleClicked(QModelIndex const&)>, o=0x555555e54990, arg=0x7fffffffbe40)
at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:169
---Type
Is everyone using Italian or spanish translation?
no, I'm using a compiled version with english translation
passed parameters to the call QgsCollapsibleGroupBoxBasic::updateStyle() (this=0x555558a708e0) at ../src/gui/qgscollapsiblegroupbox.cpp:386 are correct This part of code is executed variius times, from loading the layer and when opening properties... crash happen when this call belongs to a this->mColorRenderingGrpBox where probably have to be look for the issue.
Removing the applied style crash does not happen => something seems related with applying style QString ss; if ( QApplication::style()->objectName().contains( QLatin1String( "macintosh" ) ) ) { ss += QLatin1String( "QgsCollapsibleGroupBoxBasic, QgsCollapsibleGroupBox {" ); ss += QStringLiteral( " margin-top: %1px;" ).arg( topBuffer + rectFrame.top() ); ss += '}'; } ss += QLatin1String( "QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title {" ); ss += QLatin1String( " subcontrol-origin: margin;" ); ss += QLatin1String( " subcontrol-position: top left;" ); ss += QStringLiteral( " margin-left: %1px;" ).arg( marginLeft ); ss += QStringLiteral( " margin-right: %1px;" ).arg( marginRight ); ss += QStringLiteral( " left: %1px;" ).arg( offsetLeft ); ss += QStringLiteral( " top: %1px;" ).arg( offsetTop ); if ( QApplication::style()->objectName().contains( QLatin1String( "macintosh" ) ) ) { ss += QLatin1String( " background-color: rgba(0,0,0,0)" ); } ss += '}'; to the widget
Removing the applied style crash does not happen => something seems related with applying style QString ss; if ( QApplication::style()->objectName().contains( QLatin1String( "macintosh" ) ) ) { ss += QLatin1String( "QgsCollapsibleGroupBoxBasic, QgsCollapsibleGroupBox {" ); ss += QStringLiteral( " margin-top: %1px;" ).arg( topBuffer + rectFrame.top() ); ss += '}'; } ss += QLatin1String( "QgsCollapsibleGroupBoxBasic::title, QgsCollapsibleGroupBox::title {" ); ss += QLatin1String( " subcontrol-origin: margin;" ); ss += QLatin1String( " subcontrol-position: top left;" ); ss += QStringLiteral( " margin-left: %1px;" ).arg( marginLeft ); ss += QStringLiteral( " margin-right: %1px;" ).arg( marginRight ); ss += QStringLiteral( " left: %1px;" ).arg( offsetLeft ); ss += QStringLiteral( " top: %1px;" ).arg( offsetTop ); if ( QApplication::style()->objectName().contains( QLatin1String( "macintosh" ) ) ) { ss += QLatin1String( " background-color: rgba(0,0,0,0)" ); } ss += '}'; to the widget
and Qt version is 5.9.5?
I confirm windows 10 QGIS 3.16 (standalone y OSGEO) I use QGIS in English, but my windows OS is Español
@bellanz80 Which Qt version?
and Qt version is 5.9.5?
@slarosa I'm with 5.11.2
QGIS version | 3.16.0-Hannover | QGIS code revision | 43b64b13f3 |
---|---|---|---|
Compiled against Qt | 5.11.2 | Running against Qt | 5.11.2 |
Compiled against GDAL/OGR | 3.1.4 | Running against GDAL/OGR | 3.1.4 |
Compiled against GEOS | 3.8.1-CAPI-1.13.3 | Running against GEOS | 3.8.1-CAPI-1.13.3 |
Compiled against SQLite | 3.29.0 | Running against SQLite | 3.29.0 |
PostgreSQL Client Version | 11.5 | SpatiaLite Version | 4.3.0 |
QWT Version | 6.1.3 | QScintilla2 Version | 2.10.8 |
Compiled against PROJ | 6.3.2 | Running against PROJ | Rel. 6.3.2, May 1st, 2020 |
OS Version | Windows 10 (10.0) |
with valgrind crash does not happen, btw there are many report of invalid read as: ==29285== Invalid read of size 8 ==29285== at 0xB45C69B: QMetaObject::cast(QObject const) const (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.9.5) ==29285== by 0xA44C132: ??? (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.9.5) ==29285== by 0xA40FA2E: ??? (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.9.5) ==29285== by 0xA40FB57: ??? (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.9.5) ==29285== by 0x6E31852: QgsCollapsibleGroupBoxBasic::updateStyle() (qgscollapsiblegroupbox.cpp:386) ==29285== by 0x6E2FA2F: QgsCollapsibleGroupBoxBasic::showEvent(QShowEvent) (qgscollapsiblegroupbox.cpp:112) ==29285== by 0x6E3284E: QgsCollapsibleGroupBox::showEvent(QShowEvent) (qgscollapsiblegroupbox.cpp:560) ==29285== by 0xA3AC047: QWidget::event(QEvent) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.9.5) ==29285== by 0xA4A270A: QGroupBox::event(QEvent) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.9.5) ==29285== by 0xA36D83B: QApplicationPrivate::notify_helper(QObject, QEvent) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.9.5) ==29285== by 0xA375103: QApplication::notify(QObject, QEvent) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.9.5) ==29285== by 0x86CA10A: QgsApplication::notify(QObject, QEvent*) (qgsapplication.cpp:458)
could be the same nature of instability as in https://github.com/qgis/QGIS/pull/6301 ?
@bellanz80 Which Qt version?
QGIS version 3.16.0-Hannover
Compiled against Qt 5.11.2
hmmmm... seems the workflow followed in issue #39775 is different! "Duplicated raster LiDAR layer; renamed duplicate layer; moved original layer below duplicate - crash!" e.g. the crash happen in the same codeline of this issue, but applying to a different GUI where a collapsible stuff is used.
Same problem for my even when I try to open Settings>Options (to paste here the info of my configuration).
Same problem for my even when I try to open Settings>Options (to paste here the info of my configuration).
confirmed that the crash happen in the same code line... mee too! btw configuration is from Help->about
in this case the parent of the collapsible is "groupBox"
Here I attached my configuration
Shouldn't this issue trigger a project emergency bug fix and new release?
I don'know if it help you... but on LTR with the same default profile and configuration (the same QGIS.ini, the same QT version which cause crash in 3.16 an Master for me) I dont Have crash until 35 double clicks
Opening properties of WMS, XYZ leads to crash
QGIS-Version | 3.16.0-Hannover | QGIS-Codeversion | 43b64b13f3 |
---|---|---|---|
Kompiliert gegen Qt | 5.9.5 | Laufendes Qt | 5.9.5 |
Kompiliert mit GDAL/OGR | 3.0.4 | Läuft mit GDAL/OGR | 3.0.4 |
Kompiliert mit GEOS | 3.8.0-CAPI-1.13.1 | Läuft mit GEOS | 3.8.0-CAPI-1.13.1 |
Kompiliert mit SQLite | 3.22.0 | Läuft mit SQLite | 3.22.0 |
PostgreSQL-Client-Version | 10.14 (Ubuntu 10.14-0ubuntu0.18.04.1) | SpatiaLite-Version | 4.3.0a |
QWT-Version | 6.1.3 | QScintilla2-Version | 2.10.2 |
Kompiliert mit PROJ | 7.0.0 | Läuft mit PROJ | Rel. 7.0.0, March 1st, 2020 |
BS-Version | Linux Mint 19.3 | ||
Aktive Python-Erweiterungen | quick_map_services; MetaSearch; db_manager; processing |
My cases: Old profile language set to english on german OS: Double click on properties immedeately crashes QGIS New profile german on german: It is possible to open the properties, but on first attempt to change anything there -> Crash
Terminal output on crash:
QGIS died on signal 11Could not attach to process. If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Vorgang nicht zulässig.
No thread selected
No stack.
gdb returned 0
Abgebrochen (Speicherabzug geschrieben)
Tested with old and brand new projects on both profiles
I don'know if it help you... but on LTR with the same default profile and configuration (the same QGIS.ini, the same QT version which cause crash in 3.16 an Master for me) I dont Have crash until 35 double clicks
Hi. I confirm. With the same equipment of my previous point, QGIS profile (new or old) and the same plugs, in QGIS 3.10.11A, I have no problem. But, not with 3.14.0 either it's only with 3.16.
Hi there. I have tested in two different OS so far and i couldn't reproduce the bug.
Hi there. I have tested in two different OS so far and i couldn't reproduce the bug.
QGIS 3.16 compiled with recent dependencies on Linux seems not affected. It is if compiled with old dependencies and also seems Windows is affected.
Well, it seems it's related with the Qt version. I run a personal docker container based on Ubuntu 20.04 (Qt 5.12) and looks that all it's Ok.
Here the configuration:
Dockerfile and some notes (in Spanish I'm afraid) in my gitlab repository.
This confirms that forcing QT to be at least 5.12 should improve those type of issues.
Hi all, on Debian Buster with QT 5.11.3 this issues seems disappeared until 30 double click
This confirms that forcing QT to be at least 5.12 should improve those type of issues.
FYI I tried to compile 3.14.15 version in the same library ecosystem and does not generate the issue => seems some side effect of some commit I'm looking for.
@luipir when you get the crash under gdb, are you able to determine the object name of the group box instance which is causing the crash?
@luipir when you get the crash under gdb, are you able to determine the object name of the group box instance which is causing the crash?
yes, I aready wrote in this tread... and seems happen in different object, so I suppose it does not (strictly?) depend on this...
crash happen applying some commit between 7854c61189 and 8a8fd55611 ... looking for it
Is the standalone installer coming with the outdated QT or is this only the osgeo install? I assume its only the osgeo one.
Describe the bug QGIS crash showing raster symbology in layer properties
How to Reproduce
Not F7 works correctly
QGIS and OS versions
Additional context