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

qgis standalone crashes when opening a vector layer with "Shift-JIS" encoding #12479

Closed
qgib opened this issue Feb 8, 2010 · 9 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Build/Install Related to compiling or installing QGIS
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Feb 8, 2010

Author Name: toltec77 - (toltec77 -)
Original Redmine Issue: 2419

Redmine category:build/install
Assignee: nobody -


Downloaded QGIS-1.4.0-1-No-GrassSetup.exe today. After installed and started the QGIS, A raster layer of Alaska sample data (landcover.img) opened OK, but the program shut down every time I tried to open a vector (lake.gml). Same thing happens when I tried to open my vector shapefiles.

@qgib
Copy link
Contributor Author

qgib commented Feb 8, 2010

Author Name: toltec77 - (toltec77 -)


Update: it was related to encoding. The program works fine when encoding is "UTF-8," but fails when it is "Shift-JIS."

@qgib
Copy link
Contributor Author

qgib commented Feb 9, 2010

Author Name: Giovanni Manghi (@gioman)


Hi, this is replicable with the standalone installer but not with the osego4w one.

@qgib
Copy link
Contributor Author

qgib commented Feb 17, 2010

Author Name: Giovanni Manghi (@gioman)


see also #12508

@qgib
Copy link
Contributor Author

qgib commented May 26, 2010

Author Name: Charles Timko - (Charles Timko -)


I was able to reproduce this on Mac OS X. I think it would be best if this was definitely fixed for the 1.5 release. I am looking at a crash dump though, and it is pointing at [[QtCore]] as the culprit of the crashing [QTextCodec::toUnicode(char const*) to be more specific].

@qgib
Copy link
Contributor Author

qgib commented May 27, 2010

Author Name: Charles Timko - (Charles Timko -)


Looks like a general protection fault in QTextCodec::toUnicode.

@qgib
Copy link
Contributor Author

qgib commented May 27, 2010

Author Name: Charles Timko - (Charles Timko -)


I am unable to reproduce this error when using "System" encoding on a Mac. I can only reproduce when I change the encoding from System to Shift-JIS. toltec77, does that work for you using System over Shift-JIS?

@qgib
Copy link
Contributor Author

qgib commented May 27, 2010

Author Name: Charles Timko - (Charles Timko -)


Ok, I have some more data:

Debug: /Users/ctimko/Documents/workspace/qgis/src/core/qgsvectordataprovider.cpp: 144: (setEncoding) error finding QTextCodec for SHIFT-JIS

Doesn't look like QTextCodec supports Japanese. This error was created when I set the encoding within xml as shift-jis.

Now, loading the file again with the shift-jis as the XML encoding, and I told the dialog to use System, this removed the error (of course), but it's attempt at parsing the file resulted in a crash. I will try with other foreign encodings.

@qgib
Copy link
Contributor Author

qgib commented Jun 12, 2010

Author Name: yoichi Kayama (@yoichigmf)


This problem was talked in Japanese community.
This issue is due to lack of Qt codec plug-in.
OSGeo4w version has qt codec plugins at {OSGeo4w}/apps/qt4/plugins/codecs.
But standalone version has no qt plugin about codecs.
We addressed this issue by set the Qt codec plugins at the folder {QGIS}/bin/qtplugins/codecs.

To packeger, please include Qt plugins of codec to 1.5 new package.

@qgib
Copy link
Contributor Author

qgib commented Jun 19, 2010

Author Name: Jürgen Fischer (@jef-n)


Qt packaging issue - not a QGIS problem.


  • resolution was configured as worksforme
  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Build/Install Related to compiling or installing QGIS labels May 24, 2019
@qgib qgib added this to the Version 1.5.0 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
This was referenced May 25, 2019
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! Build/Install Related to compiling or installing QGIS
Projects
None yet
Development

No branches or pull requests

1 participant