Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
None
-
6.8.0 Beta2
-
None
Description
When trying to run my code, I get this error in the chrome browser:
Cannot read properties of undefined (reading 'requestPermission')
In safari/firefox it says:
undefined is not an object (evaluating 'handle[key]')
Previously I'd see a black canvas at least, but now it breaks even before rendering that, so it looks like a regression.
The full stacktrace is:
QMapLibreExampleWidgets.html:71 TypeError: Cannot read properties of undefined (reading 'requestPermission') at __emval_get_property (http://localhost:6931/QMapLibreExampleWidgets.js:6730:30) at QMapLibreExampleWidgets.wasm.(anonymous namespace)::getLocalFontsConfigProperty(char const*) (http://localhost:6931/QMapLibreExampleWidgets.wasm:wasm-function[10332]:0x3f523a) at QMapLibreExampleWidgets.wasm.QWasmFontDatabase::populateFontDatabase() (http://localhost:6931/QMapLibreExampleWidgets.wasm:wasm-function[10331]:0x3f4556) at QMapLibreExampleWidgets.wasm.QFontDatabasePrivate::ensureFontDatabase() (http://localhost:6931/QMapLibreExampleWidgets.wasm:wasm-function[41877]:0xd652d8) at QMapLibreExampleWidgets.wasm.QFontDatabase::families(QFontDatabase::WritingSystem) (http://localhost:6931/QMapLibreExampleWidgets.wasm:wasm-function[41889]:0xd6835b) at QMapLibreExampleWidgets.wasm.QWasmTheme::QWasmTheme() (http://localhost:6931/QMapLibreExampleWidgets.wasm:wasm-function[10601]:0x40183b) at QMapLibreExampleWidgets.wasm.non-virtual thunk to QWasmIntegration::createPlatformTheme(QString const&) const (http://localhost:6931/QMapLibreExampleWidgets.wasm:wasm-function[10471]:0x3fabc4) at QMapLibreExampleWidgets.wasm.init_platform(QString const&, QString const&, QString const&, int&, char**) (http://localhost:6931/QMapLibreExampleWidgets.wasm:wasm-function[37889]:0xbf67bb) at QMapLibreExampleWidgets.wasm.QGuiApplicationPrivate::createPlatformIntegration() (http://localhost:6931/QMapLibreExampleWidgets.wasm:wasm-function[37845]:0xbf0d5f) at QMapLibreExampleWidgets.wasm.QGuiApplicationPrivate::createEventDispatcher() (http://localhost:6931/QMapLibreExampleWidgets.wasm:wasm-function[37892]:0xbf6f54)
There are full repro details here: https://github.com/maplibre/maplibre-native-qt/issues/49#issue-1943565551