Qt 6.6: Application exit (Module.preRun.push is not a function)
-
wrote on 15 Oct 2023, 13:41 last edited by ZoltanKovacs
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/. -
wrote on 15 Oct 2023, 18:41 last edited by
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.
wrote on 15 Oct 2023, 19:18 last edited byAlso, this trick does not work in Qt 6.7 (dev).
-
Also, this trick does not work in Qt 6.7 (dev).
wrote on 28 Dec 2023, 12:01 last edited byThe same issue on 6.6.1. Very demotivating. :-(
-
The same issue on 6.6.1. Very demotivating. :-(
wrote on 7 Mar 2024, 17:03 last edited by@ZoltanKovacs Looks like this might be fixed in 6.6.2 and 6.7: https://codereview.qt-project.org/c/qt/qtbase/+/524848
-
wrote on 20 Oct 2024, 20:02 last edited by
Now I checked under 6.8 and it works again. :-)
-