http://bugs.winehq.org/show_bug.cgi?id=34178
Bug #: 34178 Summary: MiKTeX 2.9 (32-bit) fails to install Product: Wine Version: 1.6 Platform: x86-64 URL: http://miktex.org/download OS/Version: Linux Status: NEW Keywords: download, Installer, source Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: austinenglish@gmail.com Blocks: 34172 Classification: Unclassified
Noticed this while looking at bug 34172. I tried the 32-bit version, and get a separate, but potentially related issue.
Download the installer from http://miktex.org/download
Install as normal. Eventually it gives an error during install: ========== The operation could not be completed for the following reason:
The operation failed for some reason.
Details: C:\Program Files\MiKTeX 2.90\miktex/bin\initexmf.exe ==========
austin@aw25 ~ $ sha1sum basic-miktex-2.9.4813.exe e8647f57fe866c00119ca8938785cacfaa5ca826 basic-miktex-2.9.4813.exe austin@aw25 ~ $ du -h basic-miktex-2.9.4813.exe 155M basic-miktex-2.9.4813.exe
wine-1.6-178-g7944ca4
http://bugs.winehq.org/show_bug.cgi?id=34178
--- Comment #1 from Austin English austinenglish@gmail.com 2013-07-31 14:24:04 CDT --- Created attachment 45462 --> http://bugs.winehq.org/attachment.cgi?id=45462 terminal output
http://bugs.winehq.org/show_bug.cgi?id=34178
jamesmnason@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jamesmnason@gmail.com
--- Comment #2 from jamesmnason@gmail.com 2013-07-31 14:28:05 CDT --- (In reply to comment #1)
Created attachment 45462 [details] terminal output
MiKTeX offers 2 ways to install. The first uses
basic-miktex-2.9.4813.exe
This executable opened with the Wine windows program loader returns a dialogue box titled
MiKTeX Setup Wizard
The operation could not be completed for the following reason:
Windows API error 0: Success.
Detail C:\Program Files (x86)\MiKTeX 2.9
The backtrace file is attached as backtrace_basic_miktex_32.txt
When I try to install MiKTeX 2.9 using
setup-2.9.4503.exe
(and the Wine windows program loader) the install seems to be good except at the end Wine crashes.
The backtrace file is attached as backtrace_setup_32.txt
Your help is appreciated.
Jim Nason
http://bugs.winehq.org/show_bug.cgi?id=34178
--- Comment #3 from jamesmnason@gmail.com 2013-07-31 14:44:23 CDT --- Created attachment 45463 --> http://bugs.winehq.org/attachment.cgi?id=45463 backtrace file associated with setup-2.9.4503.exe
http://bugs.winehq.org/show_bug.cgi?id=34178
--- Comment #4 from jamesmnason@gmail.com 2013-07-31 14:45:06 CDT --- Created attachment 45464 --> http://bugs.winehq.org/attachment.cgi?id=45464 backtrace file associated with basic-miktex-2.9.4813.exe
https://bugs.winehq.org/show_bug.cgi?id=34178
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net Component|-unknown |comctl32 Summary|MiKTeX 2.9 (32-bit) fails |MiKTeX 2.9 (32-bit) fails |to install |to install (wizard dialog | |caption reset by initial | |property page selection)
--- Comment #5 from Anastasius Focht focht@gmx.net --- Hello folks,
confirming.
The installer spawns a process 'initexmf.exe' which fails to recognize its command line arguments:
--- snip --- $ WINEDEBUG=+tid,+seh,+relay ./basic-miktex-2.9.5105.exe >>log.txt 2>&1 ... 0037:Call KERNEL32.CreateProcessW(02afc6ac L"C:\Program Files\MiKTeX 2.9\miktex/bin\initexmf.exe",02afcab4 L""C:\Program Files\MiKTeX 2.9\miktex/bin\initexmf.exe" --common-install="C:\Program Files\MiKTeX 2.9" --rmfndb --admin --log-file="C:\Program Files\MiKTeX 2.9\miktex\config\uninst.log" --verbose",00000000,00000000,00000001,08000000,00000000,00000000,02afc62c,05692838) ret=0048ff28 ... 0028:Call KERNEL32.__wine_kernel_init() ret=7bc59dbc 0037:Ret KERNEL32.CreateProcessW() retval=00000001 ret=0048ff28 ... 0028:Call user32.EnumWindows(00401825,00dbf5d8) ret=00402ad5 ... 0028:Call winex11.drv.wine_get_gdi_driver(0000002e) ret=7eb8049c 0028:Ret winex11.drv.wine_get_gdi_driver() retval=7e145ce0 ret=7eb8049c 0028:Call winex11.drv.CreateDesktopWindow(00010020) ret=7eca5f5a 0028:Ret winex11.drv.CreateDesktopWindow() retval=00000001 ret=7eca5f5a 0028:Call user32.GetWindowTextW(000100b2,00dbec58,000000c8) ret=00402a04 0028:Ret user32.GetWindowTextW() retval=00000000 ret=00402a04 0028:Call user32.GetWindowTextW(000100ac,00dbec58,000000c8) ret=00402a04 0028:Ret user32.GetWindowTextW() retval=00000000 ret=00402a04 0028:Call user32.GetWindowTextW(00010070,00dbec58,000000c8) ret=00402a04 0028:Ret user32.GetWindowTextW() retval=00000000 ret=00402a04 0028:Call user32.GetWindowTextW(0002005c,00dbec58,000000c8) ret=00402a04 0028:Ret user32.GetWindowTextW() retval=00000012 ret=00402a04 0028:Call msvcr100.wcsstr(00dbec58 L"Untitled - Notepad",0041b88c L"MiKTeX") ret=00402a1b 0028:Ret msvcr100.wcsstr() retval=00000000 ret=00402a1b 0028:Call user32.GetWindowTextW(0001003e,00dbec58,000000c8) ret=00402a04 0028:Ret user32.GetWindowTextW() retval=00000000 ret=00402a04 0028:Call user32.GetWindowTextW(0001003c,00dbec58,000000c8) ret=00402a04 0028:Ret user32.GetWindowTextW() retval=00000000 ret=00402a04 0028:Call user32.GetWindowTextW(0001003a,00dbec58,000000c8) ret=00402a04 0028:Ret user32.GetWindowTextW() retval=00000000 ret=00402a04 0028:Call user32.GetWindowTextW(00010038,00dbec58,000000c8) ret=00402a04 0028:Ret user32.GetWindowTextW() retval=00000000 ret=00402a04 0028:Call user32.GetWindowTextW(00010034,00dbec58,000000c8) ret=00402a04 0028:Ret user32.GetWindowTextW() retval=00000000 ret=00402a04 0028:Ret user32.EnumWindows() retval=00000001 ret=00402ad5 ... 0028:Call msvcr100._CxxThrowException(00dbeebc,0041d590) ret=00402c6f 0028:Call KERNEL32.RaiseException(e06d7363,00000001,00000003,00dbee54) ret=7e917321 0028:trace:seh:raise_exception code=e06d7363 flags=1 addr=0x7b83ae8f ip=7b83ae8f tid=0028 0028:trace:seh:raise_exception info[0]=19930520 0028:trace:seh:raise_exception info[1]=00dbeebc 0028:trace:seh:raise_exception info[2]=0041d590 0028:trace:seh:raise_exception eax=7b826d6d ebx=7b8be000 ecx=19930520 edx=00dbeda4 esi=00dbee50 edi=00dbee10 0028:trace:seh:raise_exception ebp=00dbede8 esp=00dbed84 cs=0023 ds=002b es=002b fs=0063 gs=006b flags=00000283 0028:trace:seh:call_stack_handlers calling handler at 0x416f04 code=e06d7363 flags=1 0028:trace:seh:call_stack_handlers handler at 0x416f04 returned 1 0028:trace:seh:call_stack_handlers calling handler at 0x416fe3 code=e06d7363 flags=1 0028:trace:seh:cxx_frame_handler handling C++ exception rec 0xdbed90 frame 0xdbf5cc trylevel 4 descr 0x41e908 nested_frame (nil) ... 0037:Call KERNEL32.OutputDebugStringW(054bbc30 L"241634 [basic-miktex-2.9.5105.setup]: initexmf: --common-install=C:\Program Files\MiKTeX 2.9: unknown option\n") ret=00457d23 --- snip ---
The app's option parser works with different command line argument sets, depending on actual run mode.
To determine the run mode, the app enumerates all top level windows and checks if the window title contains 'MiKTeX' and 'Setup' or 'Installer'. This fails hence the wrong argument set is selected which doesn't contain a handler for 'common-install'.
The installer uses a wizard dialog template (property sheet) and sets the window title to 'Basic MiKTeX 2.9.5105 Installer (32-bit)':
--- snip --- ... 0035:Call comctl32.PropertySheetW(014ad190) ret=0050da44 ... 0035:Call user32.CreateDialogIndirectParamW(00000000,0018e1f0,00000000,7e291640,0018d608) ret=7e28a6ee ... 0035:Ret window proc 0x50164e (hwnd=0x10088,msg=WM_INITDIALOG,wp=0001008a,lp=0018d828) retval=00000001 0035:Ret user32.CreateDialogIndirectParamW() retval=00010088 ret=7e28c497 ... 0035:Call user32.SendMessageW(00010070,00000478,00000000,014d4188) ret=0050eb3a 0035:Call window proc 0x50164e (hwnd=0x10070,msg=PSM_SETTITLEW,wp=00000000,lp=014d4188) 0035:Call user32.CallWindowProcW(7ebb2e8f,00010070,00000478,00000000,014d4188) ret=004fd15b 0035:Call window proc 0x7ebb2e8f (hwnd=0x10070,msg=PSM_SETTITLEW,wp=00000000,lp=014d4188) 0035:Call dialog proc 0x7e291640 (hwnd=0x10070,msg=PSM_SETTITLEW,wp=00000000,lp=014d4188) 0035:Call user32.GetPropW(00010070,7e2e81a0 L"PropertySheetInfo") ret=7e28e0a9 0035:Ret user32.GetPropW() retval=0018d608 ret=7e28e0a9 0035:Call user32.SetWindowTextW(00010070,014d4188 L"Basic MiKTeX 2.9.5105 Installer (32-bit)") ret=7e28e1ed 0035:Call window proc 0x50164e (hwnd=0x10070,msg=WM_SETTEXT,wp=00000000,lp=014d4188) 0035:Call user32.CallWindowProcW(7ebb2e8f,00010070,0000000c,00000000,014d4188) ret=004fd15b 0035:Call window proc 0x7ebb2e8f (hwnd=0x10070,msg=WM_SETTEXT,wp=00000000,lp=014d4188) 0035:Call dialog proc 0x7e291640 (hwnd=0x10070,msg=WM_SETTEXT,wp=00000000,lp=014d4188) 0035:Ret dialog proc 0x7e291640 (hwnd=0x10070,msg=WM_SETTEXT,wp=00000000,lp=014d4188) retval=00000000 result=00000000 0035:Call winex11.drv.SetWindowText(00010070,001918a0 L"Basic MiKTeX 2.9.5105 Installer (32-bit)") ret=7ebb3761 0035:Ret winex11.drv.SetWindowText() retval=00000001 ret=7ebb3761 0035:Ret window proc 0x7ebb2e8f (hwnd=0x10070,msg=WM_SETTEXT,wp=00000000,lp=014d4188) retval=00000001 0035:Ret user32.CallWindowProcW() retval=00000001 ret=004fd15b 0035:Ret window proc 0x50164e (hwnd=0x10070,msg=WM_SETTEXT,wp=00000000,lp=014d4188) retval=00000001 0035:Ret user32.SetWindowTextW() retval=00000001 ret=7e28e1ed 0035:Ret dialog proc 0x7e291640 (hwnd=0x10070,msg=PSM_SETTITLEW,wp=00000000,lp=014d4188) retval=00000001 result=00000000 0035:Ret window proc 0x7ebb2e8f (hwnd=0x10070,msg=PSM_SETTITLEW,wp=00000000,lp=014d4188) retval=00000000 0035:Ret user32.CallWindowProcW() retval=00000000 ret=004fd15b 0035:Ret window proc 0x50164e (hwnd=0x10070,msg=PSM_SETTITLEW,wp=00000000,lp=014d4188) retval=00000000 0035:Ret user32.SendMessageW() retval=00000000 ret=0050eb3a ... 0035:Ret comctl32.PropertySheetW() retval=00010070 ret=0050da44 --- snip ---
When the initial property page is selected into view, the dialog wizard caption is reset to an empty string (template has no caption).
'winetricks -q comctl32' works around, the window title is properly shown and the installer succeeds.
$ sha1sum basic-miktex-2.9.5105.exe 8a0797f119d796ff80adfab99945e76e6883609f basic-miktex-2.9.5105.exe
$ du -sh basic-miktex-2.9.5105.exe 164M basic-miktex-2.9.5105.exe
$ wine --version wine-1.7.23-78-g4a6ce97
Regards
https://bugs.winehq.org/show_bug.cgi?id=34178
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #6 from winetest@luukku.com --- The installer has been upgraded.
sha1sum basic-miktex-2.9.6236.exe 49804d4daec38167ec103a40a91ac2fb8f8a58e5 basic-miktex-2.9.6236.exe
The installer exposed new bug
Unhandled exception: unimplemented function msvcp140.dll.??0task_continuation_context@Concurrency@@AAE@XZ called in 32-bit code (0x7b43becc).
Which seems to be covered by bug 41408. Setting msvcp140 as native fixed the issue and the installer finished.
This bug has been fixed or the new installer doesnt expose the bug.
wine --version wine-2.0-348-g2a28e4d
https://bugs.winehq.org/show_bug.cgi?id=34178
winetaste@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetaste@gmx.net
https://bugs.winehq.org/show_bug.cgi?id=34178
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://miktex.org/download |http://ftp.belnet.be/ftp.te | |x.ac.uk/ctan/tex-archive/sy | |stems/win32/miktex/setup/ba | |sic-miktex-2.9.5105.exe Summary|MiKTeX 2.9 (32-bit) fails |MiKTeX 2.9 build 5105 |to install (wizard dialog |(32-bit) fails to install |caption reset by initial |(wizard dialog caption |property page selection) |reset by initial property | |page selection)
--- Comment #7 from Anastasius Focht focht@gmx.net --- Hello folks,
revisiting, still present.
Adding exact version and download.
The project sources moved to github.
https://github.com/MiKTeX/miktex.git
Unfortunately the commit history got squashed in that process (was never converted from cvs/svn? to git). Also the old source tarballs seem to have vanished from all mirrors. Bah.
--- snip --- $ git clone https://github.com/MiKTeX/miktex.git $ cd miktex $ git rev-list --max-parents=0 HEAD b62a1e7ebe6b695b7a5ea7adbbe24635494a4d26
$ git show b62a1e7ebe6b695b7a5ea7adbbe24635494a4d26 commit b62a1e7ebe6b695b7a5ea7adbbe24635494a4d26 Author: Christian Schenk cs@miktex.org Date: Fri Jun 24 18:56:44 2016 +0200
initial commit
diff --git a/Admin/COM/guids.cmake b/Admin/COM/guids.cmake new file mode 100644 index 0000000..73346f1 --- /dev/null +++ b/Admin/COM/guids.cmake @@ -0,0 +1,29 @@ +set(guid_MiKTeX_Package_Manager_206 "E4EC6D80-9E3A-47B7-ADA7-C0621C298527") +set(guid_MiKTeX_Package_Manager_TLB_206 "42542DAE-9AAF-41A0-A2FC-7F3CEEA9A5CB") +set(guid_MiKTeX_Session_206 "DE6D4D25-4E98-488D-91B2-E97CC319764B") +set(guid_MiKTeX_Session_TLB_206 "4C28CF19-0EC8-42AF-B901-CDCCCCE420FB") + --- snip ---
Related parts of the source, at least shows where the installer wizard window title is set:
https://github.com/MiKTeX/miktex/blob/master/Programs/MiKTeX/Wizards/Setup/M...
The window enumeration part seems gone:
--- snip --- $ grep -HRn EnumWindows <nothing found> --- snip ---
Anyway, there are still the old installer binaries floating around to reproduce.
$ wine --version wine-2.1-126-g06c5a9a
Regards
https://bugs.winehq.org/show_bug.cgi?id=34178
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://ftp.belnet.be/ftp.te |https://web.archive.org/web |x.ac.uk/ctan/tex-archive/sy |/20201218111537if_/https:// |stems/win32/miktex/setup/ba |github-production-release-a |sic-miktex-2.9.5105.exe |sset-2e65be.s3.amazonaws.co | |m/30351482/0f6fb400-8372-11 | |e9-8382-33df376ed936?X-Amz- | |Algorithm=AWS4-HMAC-SHA256& | |X-Amz-Credential=AKIAIWNJYA | |X4CSVEH53A%2F20201218%2Fus- | |east-1%2Fs3%2Faws4_request& | |X-Amz-Date=20201218T111537Z | |&X-Amz-Expires=300&X-Amz-Si | |gnature=adbb6f8fd51b063dd5f | |9bac332f65f8be67c75bfc3c90c | |7d663f848ed229e61e&X-Amz-Si | |gnedHeaders=host&actor_id=0 | |&key_id=0&repo_id=30351482& | |response-content-dispositio | |n=attachment%3B%20filename% | |3Dorg.miktex.MiKTeX-2.9.510 | |5-org.miktex.MiKTeX-2.9.510 | |5.exe&response-content-type | |=application%2Foctet-stream
--- Comment #8 from Gijs Vermeulen gijsvrm@gmail.com --- Still present with wine-8.11. Tested in a 32bit prefix set to WinXP.
Adding a stable download that matches the info in Comment #5.