https://bugs.winehq.org/show_bug.cgi?id=49071
Bug ID: 49071 Summary: QT creator 1.4-1.6 online installer fails with 'Exception while loading the component script: installscript.qs. ReferenceError: Can't find variable: systemInfo' Product: Wine Version: 5.7 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: focht@gmx.net Distribution: ---
Hello folks,
while checking/investigating bug 34624 ("Qt Creator 1.4.0 online setup fails to download some packages, reports 'Connection closed') which was identified as dupe of bug 31438 I've encountered another problem which is worth documenting.
The installer reports at one point 'Exception while loading the component script: '.../installscript.qs\n\nReferenceError: Can't find variable: systemInfo'
Apparently this problem exists on Windows as well for the Qt installer framework 1.4, 1.5, 1.6 based online installers, indicating an application bug.
* https://www.qtforum.de/viewtopic.php?t=18458 * https://forum.qt.io/post/525063
--- snip --- ... 00b0:Call KERNEL32.GetFullPathNameW(0448ec3a L"C:\users\focht\Temp\remoterepophe172meta\qt.tools.qtcreator\installscript.qs",00000104,0031cb04,0031caec) ret=00b86321 ... 00b0:Ret KERNEL32.GetFullPathNameW() retval=0000004c ret=00b86321 ... 00b0:Call KERNEL32.CreateFileW(0448a79a L"\\?\C:\users\focht\Temp\remoterepophe172meta\qt.tools.qtcreator\installscript.qs",80000000,00000003,0031cd7c,00000003,00000080,00000000) ret=00b759b8 ... 00b0:Ret KERNEL32.CreateFileW() retval=000002c0 ret=00b759b8 ... 00b0:Call KERNEL32.GetFileType(000002c0) ret=00b74cfa ... 00b0:Ret KERNEL32.GetFileType() retval=00000001 ret=00b74cfa 00b0:Call KERNEL32.SetErrorMode(00008001) ret=00b849dd ... 00b0:Ret KERNEL32.SetErrorMode() retval=00008001 ret=00b849dd 00b0:Call KERNEL32.GetFileInformationByHandle(000002c0,0031cd48) ret=00b849eb ... 00b0:Ret KERNEL32.GetFileInformationByHandle() retval=00000001 ret=00b849eb 00b0:Call KERNEL32.SetErrorMode(00008001) ret=00b849fe ... 00b0:Ret KERNEL32.SetErrorMode() retval=00008001 ret=00b849fe .... 00b0:Call KERNEL32.ReadFile(000002c0,04498250,00004000,0031cd28,00000000) ret=00b7526d ... 00b0:Ret KERNEL32.ReadFile() retval=00000001 ret=00b7526d 00b0:Call KERNEL32.ReadFile(000002c0,0449bbd6,0000067a,0031cd28,00000000) ret=00b7526d ... 00b0:Ret KERNEL32.ReadFile() retval=00000001 ret=00b7526d ... 00b0:Call KERNEL32.WideCharToMultiByte(00000000,00000000,04494cfa L"create Error-Exception: "Exception while loading the component script: 'C:/users/focht/Temp/remoterepophe172meta/qt.tools.qtcreator/installscript.qs\n\nReferenceError: Can't find variable: systemInfo\n\nBacktrace:\n\t<anonymous>()@C:/users/focht/Temp/remoterepophe172meta/qt.tools.qtcreat"...,00000133,04492cb0,00000fff,00000000,0031cd4c) ret=00b5bf62 00b0:Ret KERNEL32.WideCharToMultiByte() retval=00000133 ret=00b5bf62 ... 00b0:trace:seh:raise_exception code=e06d7363 flags=1 addr=0x7b00dbb1 ip=7b00dbb1 tid=00b0 00b0:trace:seh:raise_exception info[0]=19930520 00b0:trace:seh:raise_exception info[1]=0031ce24 00b0:trace:seh:raise_exception info[2]=00fb4368 00b0:trace:seh:raise_exception eax=0031cd24 ebx=03fcc305 ecx=0031cddc edx=0031cd24 esi=00000003 edi=0031cd90 00b0:trace:seh:raise_exception ebp=0031cd78 esp=0031cd24 cs=310023 ds=ffff002b es=002b fs=f7c00063 gs=006b flags=00200216 00b0:trace:seh:call_stack_handlers calling handler at 0xcc8ec1 code=e06d7363 flags=1 ... 00b0:Call KERNEL32.WideCharToMultiByte(00000000,00000000,03fa2832 L""created critical message box Error: 'Error', Exception while loading the component script: 'C:/users/focht/Temp/remoterepophe172meta/qt.tools.qtcreator/installscript.qs\n\nReferenceError: Can't find variable: systemInfo\n\nBacktrace:\n\t<anonymous>()@C:/users/focht/Temp/remoterepophe172"...,00000148,03fd6648,00000fff,00000000,0031c694) ret=00b5bf62 00b0:Ret KERNEL32.WideCharToMultiByte() retval=00000148 ret=00b5bf62 --- snip ---
--- snip --- $ grep -Hrni "systemInfo." .wine/drive_c/ ... .wine/drive_c/users/focht/Temp/remoterepohnVj32meta/preview.qt.tools.qtcreator/installscript.qs:39: if (systemInfo.currentCpuArchitecture == "x86_64") .wine/drive_c/users/focht/Temp/remoterepomoHS32meta/preview.qt.tools.qt3dstudio/installscript.qs:45: if (systemInfo.currentCpuArchitecture == "x86_64") .wine/drive_c/users/focht/Temp/remoterepooyhw32meta/qt.tools.qtcreator/installscript.qs:62: if (systemInfo.currentCpuArchitecture == "x86_64") { .wine/drive_c/users/focht/Temp/remoterepooyhw32meta/qt.tools.windows_kits_debuggers/installscript.qs:55: return systemInfo.currentCpuArchitecture == "x86_64"; .wine/drive_c/users/focht/Temp/remoterepophe172meta/qt.tools.qtcreator/installscript.qs:62: if (systemInfo.currentCpuArchitecture == "x86_64") { .wine/drive_c/users/focht/Temp/remoterepophe172meta/qt.tools.windows_kits_debuggers/installscript.qs:55: return systemInfo.currentCpuArchitecture == "x86_64"; .wine/drive_c/users/focht/Temp/remoterepobkk172meta/qt.tools.qt3dstudio/installscript.qs:45: if (systemInfo.currentCpuArchitecture == "x86_64") .wine/drive_c/users/focht/Temp/remoterepoEOg172meta/preview.qt.tools.qtcreator/installscript.qs:39: if (systemInfo.currentCpuArchitecture == "x86_64") .wine/drive_c/users/focht/Temp/remoterepoDKvF32meta/qt.tools.qt3dstudio/installscript.qs:45: if (systemInfo.currentCpuArchitecture == "x86_64") .wine/drive_c/users/focht/Temp/remoterepojbZE32meta/preview.qt.tools.qtcreator/installscript.qs:39: if (systemInfo.currentCpuArchitecture == "x86_64") .wine/drive_c/users/focht/Temp/remoterepoiLCy32meta/qt.tools.qt3dstudio/installscript.qs:45: if (systemInfo.currentCpuArchitecture == "x86_64") .wine/drive_c/users/focht/Temp/remoterepoFoAa32meta/preview.qt.tools.qt3dstudio/installscript.qs:45: if (systemInfo.currentCpuArchitecture == "x86_64") .wine/drive_c/users/focht/Temp/remoterepoZRk172meta/preview.qt.tools.qt3dstudio/installscript.qs:45: if (systemInfo.currentCpuArchitecture == "x86_64") .wine/drive_c/users/focht/Temp/remoterepodFwV32meta/qt.tools.qtcreator/installscript.qs:62: if (systemInfo.currentCpuArchitecture == "x86_64") { .wine/drive_c/users/focht/Temp/remoterepodFwV32meta/qt.tools.windows_kits_debuggers/installscript.qs:55: return systemInfo.currentCpuArchitecture == "x86_64"; --- snip ---
https://doc.qt.io/qtinstallerframework/qt-installer-framework-systeminfo-pac...
--- snip --- var native_path_separator = "/";
isStandaloneInstaller = function() { return installer.isOfflineOnly() && "%QTC_IS_STANDALONE_INSTALLER%" == "true"; }
// constructor function Component() { component.loaded.connect(this, Component.prototype.loaded); installer.installationFinished.connect(this, Component.prototype.installationFinishedPageIsShown); installer.finishButtonClicked.connect(this, Component.prototype.installationFinished); installer.valueChanged.connect(this, Component.prototype.reactOnTargetDirChange);
if (installer.value("os") == "win") { // Creator needs vcredist 32bit on windows component.addDependency("qt.tools.vcredist_msvc2017_x86"); // for OpenSSL component.addDependency("qt.tools.vcredist"); if (systemInfo.currentCpuArchitecture == "x86_64") { component.addDependency("qt.tools.vcredist_msvc2017_x64"); // for OpenSSL component.addDependency("qt.tools.vcredist_64"); } }
if (installer.value("os") == "x11") { // set installation directory installer.setValue("EmbeddedInstallationRootDir", "/usr/local/Trolltech"); installer.setValue("EmbeddedToolchainDir", "/usr/local/angstrom/arm"); }
// set the default values to SDKToolBinary and QtCreatorInstallerSettingsFile Component.prototype.reactOnTargetDirChange("TargetDir", installer.value("TargetDir")); } --- snip ---
Download links:
https://web.archive.org/web/20200501144031/https://mirrors-wan.geekpie.club/...
https://web.archive.org/web/20200501213428/https://mirrors-wan.geekpie.club/...
https://web.archive.org/web/20200501213623/https://mirrors-wan.geekpie.club/...
$ sha1sum qt-* b53d671e82cfe6042f4da845ce0e891ccfaa8d49 qt-opensource-windows-x86-1.5.0-2-online.exe afbb7521b5e58770bda8d79a90dac60856c2e62a qt-opensource-windows-x86-1.6.0-8-online.exe 5d471cebfc9dcf0427bfccbb093199bcec8164e6 qt-windows-opensource-1.4.0-2-x86-online.exe
$ du -sh qt-* 14M qt-opensource-windows-x86-1.5.0-2-online.exe 14M qt-opensource-windows-x86-1.6.0-8-online.exe 14M qt-windows-opensource-1.4.0-2-x86-online.exe
$ wine --version wine-5.7-151-g9805c312fb
Regards
https://bugs.winehq.org/show_bug.cgi?id=49071
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID URL| |https://web.archive.org/web | |/20200501213623/https://mir | |rors-wan.geekpie.club/qtpro | |ject/archive/online_install | |ers/1.6/qt-opensource-windo | |ws-x86-1.6.0-8-online.exe Status|NEW |RESOLVED Keywords| |download, Installer
--- Comment #1 from Anastasius Focht focht@gmx.net --- Hello folks,
documentation-only ticket. Resolving as 'INVALID'.
Regards
https://bugs.winehq.org/show_bug.cgi?id=49071
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Austin English austinenglish@gmail.com --- Closing.