Opened 18 years ago

Closed 18 years ago

Last modified 15 years ago

#214 closed bug (fixed)

qgis 0.8 - unable to open database crash

Reported by: anonymous Owned by: gsherman
Priority: critical: causes crash or data corruption Milestone:
Component: Projection Support Version: 0.8
Keywords: Cc:
Must Fix for Release: No Platform: Windows
Platform Version: Awaiting user input: no

Description

Doing anything related to projection selection results in crash. OS: WinXP Home QGIS: 0.8 preview 1 and 060724.

E:\qgis-0.8.0-win32-060724>qgis Can't open database: unable to open database file Assertion failed: myResult == 0, file qgsprojectionselector.cpp, line 533

This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.

E:\qgis-0.8.0-win32-060724>qgis Can't open database: unable to open database file Assertion failed: myResult == 0, file qgsoptions.cpp, line 303

E:\qgis-0.8.0-win32-060724>qgis mPixmap.isNull() = 0 Can't open database: unable to open database file Assertion failed: myResult == 0, file qgsprojectionselector.cpp, line 533

Change History (5)

comment:1 by g_j_m, 18 years ago

I tried the windows release and it doesn't seem to install the srs.db database in a place where qgis can find it, which may lead to this problem. Perhaps Gary can comment...

comment:2 by anonymous, 18 years ago

Version: 0.8

comment:3 by gsherman, 18 years ago

Status: newassigned

The srs.db is installed in the proper place, however the path to it is not being set right in code. This results in an attempt to open /resources/srs.db rather than the appropriate $PREFIX/resources/srs.db. Offending code appears to be in src/core/qgsapplication.cpp, starting at line 42. mPrefixPath is not being set properly (i.e. its blank) and this affects all parts of the code base that atempt to find resources.

comment:4 by gsherman, 18 years ago

Resolution: fixed
Status: assignedclosed

Fixed by Radim

comment:5 by (none), 15 years ago

Milestone: Version 0.8

Milestone Version 0.8 deleted

Note: See TracTickets for help on using tickets.