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

assertion failure on libqgis #12730

Closed
qgib opened this issue Apr 22, 2010 · 1 comment
Closed

assertion failure on libqgis #12730

qgib opened this issue Apr 22, 2010 · 1 comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Map and Legend Related to map or legend rendering
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Apr 22, 2010

Author Name: orgads - (orgads -)
Original Redmine Issue: 2670

Redmine category:map_canvas
Assignee: nobody -


Hello,

I tried to run an application using libqgis, and I received the following message:

/build/buildd/qgis-1.4.0/src/core/qgscoordinatereferencesystem.cpp:1268: long int [[QgsCoordinateReferenceSystem]]::getRecordCount(): Assertion @myResult == 0' failed.

I figured out that if ~/.qgis directory doesn't exist, this assertion fails.
Looking at qgscoordinatereferencesystem.cpp:1268 I found a comment regarding this situation:

  myResult = sqlite3_open( [[QgsApplication]]::qgisUserDbFilePath().toUtf8().data(), &myDatabase );
  if ( myResult != SQLITE_OK )
  {
    [[QgsDebugMsg]]( QString( "Can't open database: %1" ).arg( sqlite3_errmsg( myDatabase ) ) );
    // XXX This will likely never happen since on open, sqlite creates the
    //     database if it does not exist.
    assert( myResult == SQLITE_OK );
  }

Well, apparently if the directory doesn't exist, sqlite doesn't create it. It only creates the db file...

@qgib
Copy link
Contributor Author

qgib commented May 16, 2010

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


fixed in f12eb06 (SVN r13509).


  • resolution was changed from to fixed
  • 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! Map and Legend Related to map or legend rendering 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
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! Map and Legend Related to map or legend rendering
Projects
None yet
Development

No branches or pull requests

1 participant