mapbox / mapbox-gl-native

Interactive, thoroughly customizable maps in native Android, iOS, macOS, Node.js, and Qt applications, powered by vector tiles and OpenGL
https://mapbox.com/mobile
Other
4.35k stars 1.33k forks source link

mapbox::sqlite::Exception in Qt #16500

Open kdeoliveira opened 4 years ago

kdeoliveira commented 4 years ago

I have recently tried to implement mapboxgl plugin in Qt which worked fine at first. However, after a certain time I started getting an SQLite exception error, even when I try running the any set of examples.

PC: ubuntu x86 Qt: 5.14.2

Error: terminate called after throwing an instance of 'mapbox::sqlite::Exception' what(): database disk image is malformed Unable to fetch row

Sample code with QML:

import QtQuick 2.10 import QtPositioning 5.0 import QtLocation 5.12

Map{
    id: map
    plugin: Plugin{
        name: "mapboxgl"

        PluginParameter{
            name: "mapboxgl.mapping.use_fbo"
            value: true
        }
    }
}