Crash After Opening Field Calculator
Introduction
QGIS is a powerful and widely-used Geographic Information System (GIS) that provides a range of tools for data analysis, visualization, and editing. However, like any software, it is not immune to bugs and crashes. In this article, we will explore a specific issue where QGIS crashes after opening the Field Calculator.
User Feedback
Several users have reported experiencing a crash after opening the Field Calculator in QGIS. The issue is not limited to a specific version of QGIS, but rather seems to be related to the Field Calculator itself. One user reported that they had been working with QGIS 3.40 for over a year without any issues, but after adding a new Python function to the Field Calculator, the software began to crash.
Report Details
Python Stack Trace
The Python stack trace provides valuable information about the error that occurred. In this case, the stack trace indicates a fatal exception due to an access violation.
Windows fatal exception: access violation
Current thread 0x0000149c (most recent call first):
<no Python frame>
Stack Trace
The stack trace provides a detailed list of the functions that were called leading up to the crash. In this case, the stack trace indicates that the crash occurred in the QgsExpressionTreeView
class.
QBitArray::QBitArray :
QgsSqlExpressionCompiler::result :
QgsExpressionTreeView::updateFunctionTree :
QgsExpressionTreeView::QgsExpressionTreeView :
QgsExpressionBuilderWidget::setProject :
QgsExpressionBuilderWidget::QgsExpressionBuilderWidget :
QgsFieldCalculator::setPrecisionMinMax :
QgsFieldCalculator::QgsFieldCalculator :
QgisApp::fieldCalculator :
QObject::qt_static_metacall :
QAction::activate :
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 :
QCoreApplication::exec :
main :
BaseThreadInitThunk :
RtlUserThreadStart :
QGIS Info
The QGIS info section provides details about the version of QGIS being used, as well as the libraries and plugins that are installed.
QGIS Version: 3.40.4-Bratislava
QGIS code revision: 4dd7d7e969
Compiled against Qt: 5.15.13
Running against Qt: 5.15.13
Compiled against GDAL: 3.10.2
Running against GDAL: 3.10.2
System Info
The system info section provides details about the operating system and hardware being used.
CPU Type: x86_64
Kernel Type: winnt
Kernel Version: 10.0.19045
Steps to Reproduce the Issue
To reproduce the issue, follow these steps:
- Open QGIS.
- Add any geometric layer.
- Toggle editing of the layer.
- Click on the Field Calculator widget.
Versions
The following versions of QGIS and its dependencies are being used:
QGIS Version | QGIS Code Revision | Qt Version | Python Version | GDAL Version | PROJ Version | GEOS Version | SQLite Version | PDAL Version | PostgreSQL Client Version | SpatiaLite Version | QWT Version | QScintilla2 Version | OS Version |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3.40.4-Bratislava | 4dd7d7e969 | 5.15.13 | 3.12.9 | 3.10.2 | 9.5.1 | 3.13.0-CAPI-1.19.0 | 3.46.1 | 2.8.3 | unknown | 5.1.0 | 6.3.0 | 2.14.1 | Windows 10 Version 2009 |
Supported QGIS Version
The QGIS version being used is not a supported version according to the QGIS roadmap.
New Profile
The issue has been tried with a new QGIS profile, but the problem persists.
Additional Context
No additional context is available.
Conclusion
Q: What is the Field Calculator in QGIS?
A: The Field Calculator in QGIS is a tool that allows users to perform calculations on fields in a dataset. It provides a range of functions and expressions that can be used to manipulate and analyze data.
Q: What is the cause of the crash after opening the Field Calculator?
A: The cause of the crash after opening the Field Calculator is still unknown. However, based on the Python stack trace and stack trace, it appears that the issue may be related to a problem with the QgsExpressionTreeView
class.
Q: What are the symptoms of the crash?
A: The symptoms of the crash include:
- QGIS crashes immediately after opening the Field Calculator
- The crash occurs when trying to perform calculations on fields in a dataset
- The crash is not limited to a specific version of QGIS, but rather seems to be related to the Field Calculator itself
Q: How can I reproduce the issue?
A: To reproduce the issue, follow these steps:
- Open QGIS.
- Add any geometric layer.
- Toggle editing of the layer.
- Click on the Field Calculator widget.
Q: What versions of QGIS and its dependencies are being used?
A: The following versions of QGIS and its dependencies are being used:
QGIS Version | QGIS Code Revision | Qt Version | Python Version | GDAL Version | PROJ Version | GEOS Version | SQLite Version | PDAL Version | PostgreSQL Client Version | SpatiaLite Version | QWT Version | QScintilla2 Version | OS Version |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3.40.4-Bratislava | 4dd7d7e969 | 5.15.13 | 3.12.9 | 3.10.2 | 9.5.1 | 3.13.0-CAPI-1.19.0 | 3.46.1 | 2.8.3 | unknown | 5.1.0 | 6.3.0 | 2.14.1 | Windows 10 Version 2009 |
Q: Is the QGIS version being used a supported version?
A: No, the QGIS version being used is not a supported version according to the QGIS roadmap.
Q: Have you tried using a new QGIS profile?
A: Yes, the issue has been tried with a new QGIS profile, but the problem persists.
Q: What is the next step in troubleshooting the issue?
A: The next step in troubleshooting the issue is to further investigate the QgsExpressionTreeView
class and determine the root cause of the problem.
Q: Can I expect a solution to the issue soon?
A: Unfortunately, it is difficult to predict when a solution to the issue will be available. However, the QGIS development team is actively working on resolving the issue and providing a solution.
Q: How can I stay up-to-date with the latest developments on the issue?
A: You can stay up-to-date with the latest developments on the issue by following the QGIS development team on social media or by subscribing to the QGIS mailing list.