Qt 6.6: Application exit (Module.preRun.push is not a function)
-
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/. -
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.
-
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.
Also, this trick does not work in Qt 6.7 (dev).
-
Also, this trick does not work in Qt 6.7 (dev).
The same issue on 6.6.1. Very demotivating. :-(
-
The same issue on 6.6.1. Very demotivating. :-(
@ZoltanKovacs Looks like this might be fixed in 6.6.2 and 6.7: https://codereview.qt-project.org/c/qt/qtbase/+/524848
-
Now I checked under 6.8 and it works again. :-)
-