Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-127537

undefined is not an object (evaluating 'handle[key]') / Cannot read properties of undefined (reading 'requestPermission')

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • 6.8.0 Beta2
    • GUI: Font handling
    • None
    • WebAssembly

    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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.webassembly qt.webassembly
            birkskyum birkskyum
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes