Skip to content
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

Exporting GRASS vector (save as...) crashes QGIS #37508

Closed
gioman opened this issue Jun 30, 2020 · 3 comments · Fixed by #39284
Closed

Exporting GRASS vector (save as...) crashes QGIS #37508

gioman opened this issue Jun 30, 2020 · 3 comments · Fixed by #39284
Assignees
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption GRASS Regression Something which used to work, but doesn't anymore

Comments

@gioman
Copy link
Contributor

gioman commented Jun 30, 2020

QGIS 3.10/14/master on Windows and Linux:

Add a GRASS vector (i.e. from the GRASS sample dataset) to the project and try to export it via "save as...", QGIS crashes.

@gioman gioman added Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption labels Jun 30, 2020
@Posillo1812
Copy link

Posillo1812 commented Aug 1, 2020

Same problem with 3.10.8 on Windows 10

Crash ID: 379510646eceecd65d21dd316151f69b9b573145

Stack Trace

QTextCodec::toUnicode :
QgsGrassFeatureIterator::setFeatureAttributes qgsgrassfeatureiterator.cpp:711
QgsGrassFeatureIterator::fetchFeature qgsgrassfeatureiterator.cpp:504
QgsAbstractFeatureIterator::nextFeature qgsfeatureiterator.cpp:63
QgsVectorLayerFeatureIterator::fetchFeature qgsvectorlayerfeatureiterator.cpp:416
QgsAbstractFeatureIterator::nextFeature qgsfeatureiterator.cpp:63
QgsVectorFileWriter::writeAsVectorFormatV2 qgsvectorfilewriter.cpp:3051
QgsVectorFileWriterTask::run qgsvectorfilewritertask.cpp:61
QgsTask::start qgstaskmanager.cpp:78
QThreadPoolPrivate::reset :
QThread::start :
BaseThreadInitThunk :
RtlUserThreadStart :




QGIS Info
QGIS Version: 3.10.8-A Coru�a
QGIS code revision: d09a4f2388
Compiled against Qt: 5.11.2
Running against Qt: 5.11.2
Compiled against GDAL: 3.0.4
Running against GDAL: 3.0.4



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

@gioman gioman added the Regression Something which used to work, but doesn't anymore label Aug 2, 2020
@PeterPetrik
Copy link
Contributor

crashes on MacOS too

@PeterPetrik
Copy link
Contributor

looks like QgsGrassProvider::textEncoding() returns 0x0 and I cannot find a place where it is ever set.

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! Crash/Data Corruption GRASS Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants