#676 closed bug (fixed)
Could not open SRS database on 0.8.1-pr3 results in segfault
Reported by: | Owned by: | homann | |
---|---|---|---|
Priority: | critical: causes crash or data corruption | Milestone: | |
Component: | Internationalisation | Version: | 0.8.1 |
Keywords: | Cc: | ||
Must Fix for Release: | Yes | Platform: | Windows |
Platform Version: | Awaiting user input: | no |
Description
When I try to add any vector layer to newly installed QGIS 0.8.1-pr3 on Windows XP, it pops-up multiple sequential error messages: "Could not open SRS database C:/Documents and Settings/Māris Nartišs/.qgis/qgis.db Error(14): unable to open database file" File exists and is readable in specified location.
Trying to do anything related to projections (open project properties etc.), qgis segfaults with message:
--------------------------- Microsoft Visual C++ Runtime Library --------------------------- Assertion failed! Program: C:\Program Files\Quantum GIS\qgis.exe File: C:\dev\cpp\qgis0.8branch\src\wid...\qgspro...tor.cpp Line: 532 Expression: myResult == 0 For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts (Press Retry to debug the application - JIT must be enabled)
Change History (6)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
Awaiting user input: | set |
---|
comment:3 by , 17 years ago
Awaiting user input: | unset |
---|
Uninstalled pr3, "Program filez/qgis" was removed properly, also rmed user/.qgis dir (with that .db file). Installed qgis into different directory but still same - cannot read SRS db file and anything projection related results in segfault.
comment:4 by , 17 years ago
Component: | Projection Support → Internationalisation |
---|---|
Owner: | changed from | to
Priority: | blocker → critical |
Status: | new → assigned |
It's due to having i18n characters in your home directory path. Interesting problem, I haven't been able to solve it yet.
comment:5 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
It was a bug in Qgis. The file name sent to sqlite3_open() must be in UTF-8, and not the local charset. Most Unix and Mac computers uses Utf-8 as default, but not Windows.
Fixed in r6827.
Good catch Māris!
Completely uninstall old version, and try to re-install pre3 into an empty directory.