Skip to content

Error when executing any type of expression in a QGIS layer. #62009

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

Open
2 tasks
Vegametrica opened this issue May 27, 2025 · 1 comment
Open
2 tasks

Error when executing any type of expression in a QGIS layer. #62009

Vegametrica opened this issue May 27, 2025 · 1 comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers

Comments

@Vegametrica
Copy link

What is the bug or the crash?

Python Stack Trace
Windows fatal exception: access violation

Current thread 0x000032a0 (most recent call first):

Stack Trace

QBitArray::QBitArray :QgsSQLStatement::NodeFunction::name :QgsExpressionTreeView::updateFunctionTree :QgsExpressionTreeView::QgsExpressionTreeView :QgsExpressionBuilderWidget::setProject :QgsExpressionBuilderWidget::QgsExpressionBuilderWidget :QgsExpressionBuilderDialog::setGeomCalculator :QgsExpressionBuilderDialog::QgsExpressionBuilderDialog :QgsFieldExpressionWidget::editExpression :QObject::qt_static_metacall :QAbstractButton::clicked :QAbstractButton::click :QAbstractButton::mouseReleaseEvent :QToolButton::mouseReleaseEvent :QWidget::event :QApplicationPrivate::notify_helper :QApplication::notify :QgsApplication::notify :QCoreApplication::notifyInternal2 :QApplicationPrivate::sendMouseEvent :QSizePolicy::QSizePolicy :QSizePolicy::QSizePolicy :QApplicationPrivate::notify_helper :QApplication::notify :QgsApplication::notify :QCoreApplication::notifyInternal2 :QGuiApplicationPrivate::processMouseEvent :QWindowSystemInterface::sendWindowSystemEvents :QEventDispatcherWin32::processEvents :qt_plugin_query_metadata :QEventLoop::exec :QDialog::exec :QgisApp::showLayerProperties :QgisApp::layerProperties :QObject::qt_static_metacall :QAction::activate :QMenu::actionGeometry :QMenu::actionGeometry :QMenu::mouseReleaseEvent :QWidget::event :QMenu::event :QApplicationPrivate::notify_helper :QApplication::notify :QgsApplication::notify :QCoreApplication::notifyInternal2 :QApplicationPrivate::sendMouseEvent :QSizePolicy::QSizePolicy :QSizePolicy::QSizePolicy :QApplicationPrivate::notify_helper :QApplication::notify :QgsApplication::notify :QCoreApplication::notifyInternal2 :QGuiApplicationPrivate::processMouseEvent :QWindowSystemInterface::sendWindowSystemEvents :QEventDispatcherWin32::processEvents :qt_plugin_query_metadata :QEventLoop::exec :QMenu::exec :QMenu::exec :QgsLayerTreeView::contextMenuEvent :QWidget::event :QFrame::event :QAbstractItemView::viewportEvent :QCoreApplicationPrivate::sendThroughObjectEventFilters :QApplicationPrivate::notify_helper :QApplication::notify :QgsApplication::notify :QCoreApplication::notifyInternal2 :QSizePolicy::QSizePolicy :QSizePolicy::QSizePolicy :QApplicationPrivate::notify_helper :QApplication::notify :QgsApplication::notify :QCoreApplication::notifyInternal2 :QGuiApplicationPrivate::processMouseEvent :QWindowSystemInterface::sendWindowSystemEvents :QEventDispatcherWin32::processEvents :qt_plugin_query_metadata :QEventLoop::exec :QCoreApplication::exec :main :BaseThreadInitThunk :RtlUserThreadStart :

QGIS Info
QGIS Version: 3.40.7-Bratislava
QGIS code revision: 91d544f
Compiled against Qt: 5.15.13
Running against Qt: 5.15.13
Compiled against GDAL: 3.10.3
Running against GDAL: 3.10.3

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

Steps to reproduce the issue

  1. Go to the layers Property
  2. Open the expression operator in the symbology or labeling module
  3. Popup informing about the error

Versions

3.40.7 but I had installed others

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

No response

@Vegametrica Vegametrica added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label May 27, 2025
@agiudiceandrea
Copy link
Member

@Vegametrica, does the crash occur when "executing any expression" or when "opening the expression operator"? Please try if the issue occurs also using a new QGIS user profile without any external third-party plugin installed. If it does, please provide the QGIS project's file and the layer's file.

@agiudiceandrea agiudiceandrea added the Feedback Waiting on the submitter for answers label May 27, 2025
nyalldawson added a commit to nyalldawson/QGIS that referenced this issue May 29, 2025
Likely cause of QgsExpression::initFunctionHelp crashes on Windows
builds

Refs qgis#61956
Refs qgis#62009
Refs qgis#59003
Refs qgis#61910
Refs qgis#61644
Refs qgis#60434
Refs qgis#61452
Refs qgis#60922
Refs qgis#60429
nyalldawson added a commit that referenced this issue May 30, 2025
Likely cause of QgsExpression::initFunctionHelp crashes on Windows
builds

Refs #61956
Refs #62009
Refs #59003
Refs #61910
Refs #61644
Refs #60434
Refs #61452
Refs #60922
Refs #60429
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! Feedback Waiting on the submitter for answers
Projects
None yet
Development

No branches or pull requests

2 participants