Bug 368269

Summary: qch file cannot be added because QSQLITE driver not loaded (AppImage)
Product: [Applications] kdevelop Reporter: Gregor Mi <codestruct>
Component: Documentation viewerAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal CC: mail, mfuhrer
Priority: NOR    
Version First Reported In: 5.0.0   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.3.0
Sentry Crash Report:

Description Gregor Mi 2016-09-05 10:31:47 UTC
I am using the latest AppImage kdevelop.

What I did as workaround for https://bugs.kde.org/show_bug.cgi?id=368268:

        1. Go to cppreference.com

        2. Download Offline Version -> Qt Help Book -> qch file

        3. KDevelop: QtHelp Documentation -> Add -> select the qch file

        4. Error: "Qt Compressed Help file is not valid."

           On the console these lines appear:

QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
QSqlDatabasePrivate::removeDatabase: connection 'GetNamespaceName-33680608-2' is still in use, all queries will cease to work.

Milian suggested an AppImage package error.
Comment 1 Martin Fuhrer 2018-05-21 11:06:22 UTC
I'm getting the exact same errors reported by Gregor in recent kdevelop AppImage distributions (currently 5.2.3). When I first start kdevelop, the following lines are printed to the console:

QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers: 
kdevelop.plugins.qthelp: Couldn't setup QtHelp Collection file

and whenever I try to load a qch Qt documentation file I get:

QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers: 
QSqlDatabasePrivate::removeDatabase: connection 'GetNamespaceName-6723712-1' is still in use, all queries will cease to work.


implying that no sql drivers are available. The following library does exist in the AppImage, but for some reason it doesn't appear to get recognized by QSqlDatabase:

usr/lib/libsqlite3.so.0
Comment 2 Kevin Funk 2018-09-20 13:40:39 UTC
Fixed by:

commit 6c439f751b95e8bb1e657fe4c136b5ab19caa706 (HEAD -> 5.3, origin/5.3)
Author: Kevin Funk <kfunk@kde.org>
Date:   Thu Sep 20 15:04:44 2018 +0200

    appimage: Include qsqlite plugin in AppImage



Just checked, and using the cppreference offline documentation works fine now.

Thanks for your report!