qfieldsync icon indicating copy to clipboard operation
qfieldsync copied to clipboard

QGIS crash when syncing with cable and layer feature count enabled

Open meyerlor opened this issue 8 months ago • 8 comments

Last week the first project which always worked flawlessly suddenly stopped working - whenever i export the project to Qfield (via cable), QGIS crashes. Nothing major changed in the project file. This is the error stack of QGIS:

Maybe noteworthy: It is a QfieldCloud project - for testing new functions i wanted to export it via cable before rolling it out via cloud.

Report Details

Python Stack Trace

Windows fatal exception: code 0xc0000139

Thread 0x00001420 (most recent call first):
  <no Python frame>
Windows fatal exception: code 0xc0000139

Thread 0x00001420 (most recent call first):
  <no Python frame>
Windows fatal exception: access violation

Thread 0x00001420 (most recent call first):
  File "C:\Users/mey/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qfieldsync\gui\package_dialog.py", line 177 in package_project
    offline_convertor.convert()

Stack Trace


QgsVectorLayer::aggregate :
QgsExpression::cleanRegisteredFunctions :
QgsFieldFormatter::createCache :
QgsExpressionFunction::run :
QgsExpressionNodeFunction::evalNode :
QgsExpressionNode::eval :
QgsExpressionFunction::run :
QgsExpressionNodeFunction::evalNode :
QgsExpressionNode::eval :
QgsExpressionFunction::run :
QgsExpressionNodeFunction::evalNode :
QgsExpressionNode::eval :
QgsExpressionFunction::run :
QgsExpressionNodeFunction::evalNode :
QgsExpressionNode::eval :
QgsExpressionNodeBinaryOperator::evalNode :
QgsExpressionNode::eval :
QgsExpressionNodeBinaryOperator::evalNode :
QgsExpressionNode::eval :
QgsExpressionNodeCondition::evalNode :
QgsExpressionNode::eval :
QgsExpression::evaluate :
QgsCategorizedSymbolRenderer::valueForFeature :
QgsCategorizedSymbolRenderer::legendKeysForFeature :
QgsVectorLayerFeatureCounter::run :
QgsTask::start :
QThreadPoolPrivate::reset :
QThread::start :
BaseThreadInitThunk :
RtlUserThreadStart :

QGIS Info QGIS Version: 3.36.3-Maidenhead QGIS code revision: 2df96554 Compiled against Qt: 5.15.13 Running against Qt: 5.15.13 Compiled against GDAL: 3.9.0 Running against GDAL: 3.9.0

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

I tried to export the project into different directorys (where i definitely have write access) with no success. I'll gladly give you the non-working project fiel/data if you are interested (or provide more logs if you point me to where to collect them)

meyerlor avatar Jun 10 '24 07:06 meyerlor