Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. Qt 6.6: Application exit (Module.preRun.push is not a function)

Qt 6.6: Application exit (Module.preRun.push is not a function)

Scheduled Pinned Locked Moved Solved Qt for WebAssembly
6 Posts 2 Posters 729 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    ZoltanKovacs
    wrote on last edited by ZoltanKovacs
    #1

    I successfully compile and run an application by using Qt 6.5.3, but when changing to Qt 6.6, I get an error "Application exit (Module.preRun.push is not a function)" in the browser. The same happens with the latest snapshot of Qt 6.7.
    This is what I get in the JavaScript console after building and starting the application in Qt Creator 11.0.3:
    TypeError: Module.preRun.push is not a function
    loadPackage http://localhost:30000/xaos.js:240
    xaos_entry http://localhost:30000/xaos.js:243
    xaos_entry http://localhost:30000/xaos.js:1223
    qtLoad http://localhost:30000/qtloader.js:206
    xaos.html:66:25
    init http://localhost:30000/xaos.html:66

    For the reference, here is the source code of the application: https://github.com/xaos-project/XaoS, and this is the working application when compiled with Qt 6.5.3: https://matek.hu/zoltan/xaos/.

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      ZoltanKovacs
      wrote on last edited by
      #2

      This seems to be an issue with the new qtloader. If I copy the old .html and qtloader.js from the generated fileset produced by Qt 6.5.3, and use all other files genereated by Qt 6.6, things are working again.

      Z 1 Reply Last reply
      0
      • Z ZoltanKovacs

        This seems to be an issue with the new qtloader. If I copy the old .html and qtloader.js from the generated fileset produced by Qt 6.5.3, and use all other files genereated by Qt 6.6, things are working again.

        Z Offline
        Z Offline
        ZoltanKovacs
        wrote on last edited by
        #3

        Also, this trick does not work in Qt 6.7 (dev).

        Z 1 Reply Last reply
        0
        • Z ZoltanKovacs

          Also, this trick does not work in Qt 6.7 (dev).

          Z Offline
          Z Offline
          ZoltanKovacs
          wrote on last edited by
          #4

          The same issue on 6.6.1. Very demotivating. :-(

          F 1 Reply Last reply
          0
          • Z ZoltanKovacs

            The same issue on 6.6.1. Very demotivating. :-(

            F Offline
            F Offline
            fwcd
            wrote on last edited by
            #5

            @ZoltanKovacs Looks like this might be fixed in 6.6.2 and 6.7: https://codereview.qt-project.org/c/qt/qtbase/+/524848

            1 Reply Last reply
            0
            • Z Offline
              Z Offline
              ZoltanKovacs
              wrote on last edited by
              #6

              Now I checked under 6.8 and it works again. :-)

              1 Reply Last reply
              0
              • Z ZoltanKovacs has marked this topic as solved on

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved