https://bugs.winehq.org/show_bug.cgi?id=46899
Bug ID: 46899 Summary: SIMATIC WinCC V15.1 Runtime installer: user can't accept license terms (richedit20 ITextRange::ScrollIntoView lacks handling of 'tomEnd') Product: Wine Version: 4.4 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: richedit Assignee: wine-bugs@winehq.org Reporter: focht@gmx.net Distribution: ---
Hello folks
continuation of bug 46898
Multiple EULAs are being displayed but the installer doesn't proceed further.
Trace log:
--- snip --- $ pwd /home/focht/Downloads/SIMATIC WinCC Runtime Advanced V15.1
$ WINEDEBUG=+seh,+process,+loaddll,+wbemprox,+msi,+richedit,+relay wine ./Start.exe >>log.txt 2>&1 ... 01de:Call KERNEL32.CreateProcessW(004f3280 L"C:\Program Files (x86)\Common Files\Siemens\Automation\Siemens Installer Assistant\406\SIA2.exe",004f2250 L""C:\Program Files (x86)\Common Files\Siemens\Automation\Siemens Installer Assistant\406\SIA2.exe" /starter /bundlepath="Z:\HOME\FOCHT\DOWNLOADS\SIMATIC WINCC RUNTIME ADVANCED V15.1\InstData"",00000000,00000000,00000001,00000000,00000000,00000000,0033fae8,0033fb2c) ret=00418015 ... 01de:trace:process:CreateProcessInternalW started process pid 01f0 tid 000d 01de:Ret KERNEL32.CreateProcessW() retval=00000001 ret=00418015 ... 000d:trace:richedit:RichEditWndProc_common exit hwnd 0x4011c msg 000d () 166 5011e98, unicode 1 -> 357 000d:Ret window proc 0x78f9d795 (hwnd=0x4011c,msg=WM_GETTEXT,wp=00000166,lp=05011e98) retval=00000165 000d:Ret user32.CallWindowProcW() retval=00000165 ret=0342770d 000d:Ret window proc 0xa5369a (hwnd=0x4011c,msg=WM_GETTEXT,wp=00000166,lp=05011e98) retval=00000165 000d:Ret user32.GetWindowTextW() retval=00000165 ret=03442179 ... 000d:trace:richedit:ITextRange_fnScrollIntoView (0x5257ea0)->(0) 000d:fixme:richedit:ITextRange_fnScrollIntoView bStart value 0 not handled ... 000d:Call KERNEL32.RaiseException(e0434352,00000001,00000005,0032dbd0) ret=791cac08 000d:trace:seh:raise_exception code=e0434352 flags=1 addr=0x7b44c142 ip=7b44c142 tid=000d 000d:trace:seh:raise_exception info[0]=80004001 000d:trace:seh:raise_exception info[1]=00000000 000d:trace:seh:raise_exception info[2]=00000000 000d:trace:seh:raise_exception info[3]=00000000 000d:trace:seh:raise_exception info[4]=79140000 000d:trace:seh:raise_exception eax=7b43a4ad ebx=00000005 ecx=00000000 edx=0032db8c esi=0032db8c edi=0032db50 000d:trace:seh:raise_exception ebp=0032db28 esp=0032dac4 cs=320023 ds=32002b es=f7be002b fs=f7be0063 gs=f7be006b flags=00200212 000d:trace:seh:call_vectored_handlers calling handler at 0x791f5a7c code=e0434352 flags=1 ... 000d:trace:richedit:ITextRange_fnRelease 0x5257ea0 ref=2 ... 000d:trace:richedit:IRichEditOleImpl_inner_fnRelease 0x5293668 ref=4 ... 000d:trace:richedit:IRichEditOleImpl_inner_fnRelease 0x5293668 ref=3 ... --- snip ---
-> ITextRange::ScrollIntoView( tomEnd)
Application generated log:
--- snip --- ... 19:25:14|.. |BusinessLogic::GuiCommunicationOccured()|(01) Message recieved: Navigation (Next) 19:25:14|.. |Controller::ShowForm() |(01) Form: DisplayEula 19:25:14|... |Controller::ShowForm() |(01) m_EulaList.Count: System.Collections.Generic.Dictionary`2[System.String,Siemens.Automation.Setup.Sia.Gui.EulaItem] 19:25:15|.... |Controller::ShowForm() |(01) 19:25:15|.... |Controller::ShowForm() |(01) Show dialog: DisplayEula 19:25:15|.... |Controller::ShowForm() |(01) 19:25:15|.. |BusinessLogic::GetNavigationBehavior() |(01) Form: DisplayEula 19:25:25|ERROR |FatalError::UnhandledException occured |(01) Exception - NotImplementedException System.NotImplementedException: The method or operation is not implemented. 19:25:25|ERROR | ... continue line ... |Exception - at System.Windows.Forms.UnsafeNativeMethods.ITextRange.ScrollIntoView(Int32 value) 19:25:25|ERROR | ... continue line ... |Exception - at System.Windows.Forms.TextBoxBase.ScrollToCaret() 19:25:25|ERROR | ... continue line ... |Exception - at Siemens.Automation.Setup.Sia.Gui.Controls.Install.DisplayEula.ShowEulaText(EulaItem oEulaItem) 19:25:25|ERROR | ... continue line ... |Exception - at Siemens.Automation.Setup.Sia.Gui.Controls.Install.DisplayEula.lvEulaList_SelectedIndexChanged(Object sender, EventArgs e) 19:25:25|ERROR | ... continue line ... |Exception - at System.Windows.Forms.ListView.OnSelectedIndexChanged(EventArgs e) 19:25:25|ERROR | ... continue line ... |Exception - at System.Windows.Forms.ListView.WmReflectNotify(Message& m) 19:25:25|ERROR | ... continue line ... |Exception - at System.Windows.Forms.ListView.WndProc(Message& m) 19:25:25|ERROR | ... continue line ... |Exception - at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) 19:25:25|ERROR | ... continue line ... |Exception - at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) 19:25:25|ERROR | ... continue line ... |Exception - at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ... --- snip ---
Microsoft docs:
https://docs.microsoft.com/en-us/windows/desktop/api/tom/nf-tom-itextrange-s...
Wine source:
https://source.winehq.org/git/wine.git/blob/HEAD:/dlls/riched20/richole.c#l2...
--- snip --- 2468 static HRESULT WINAPI ITextRange_fnScrollIntoView(ITextRange *me, LONG value) 2469 { 2470 ITextRangeImpl *This = impl_from_ITextRange(me); 2471 ME_TextEditor *editor; 2472 ME_Cursor cursor; 2473 int x, y, height; 2474 2475 TRACE("(%p)->(%d)\n", This, value); 2476 2477 if (!This->child.reole) 2478 return CO_E_RELEASED; 2479 2480 editor = This->child.reole->editor; 2481 2482 switch (value) 2483 { 2484 case tomStart: 2485 ME_CursorFromCharOfs(editor, This->start, &cursor); 2486 ME_GetCursorCoordinates(editor, &cursor, &x, &y, &height); 2487 break; 2488 default: 2489 FIXME("bStart value %d not handled\n", value); 2490 return E_NOTIMPL; 2491 } 2492 ME_ScrollAbs(editor, x, y); 2493 return S_OK; 2494 } --- snip ---
$ sha1sum SIMATIC_WinCC_Runtime_Advanced_V15_1.exe db1f97bb648b62fa1c5d974d7f2bcb6b4a9fd786 SIMATIC_WinCC_Runtime_Advanced_V15_1.exe
$ du -sh SIMATIC_WinCC_Runtime_Advanced_V15_1.exe 1.3G SIMATIC_WinCC_Runtime_Advanced_V15_1.exe
$ wine --version wine-4.4-188-gc988910cae
Regards
https://bugs.winehq.org/show_bug.cgi?id=46899
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |dotnet, download, Installer URL| |https://support.industry.si | |emens.com/cs/document/10976 | |1576/simatic-wincc-v15-1-ru | |ntime-(tia-portal)?dti=0&lc | |=en-US
--- Comment #1 from Anastasius Focht focht@gmx.net --- Hello folks,
filling more fields.
'winetricks -q riched20' obviously works around.
Regards
https://bugs.winehq.org/show_bug.cgi?id=46899
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |840af642dbf8a222fdd9f40256d | |b0a84c5279fc2 Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #2 from Anastasius Focht focht@gmx.net --- Hello folks,
this is fixed by commit https://source.winehq.org/git/wine.git/commitdiff/840af642dbf8a222fdd9f40256... ("riched20: Handle tomEnd in ITextRange::ScrollIntoView.")
Thanks Gijs
--- snip --- $ pwd /home/focht/Downloads/SIMATIC WinCC Runtime Advanced V15.1
$ WINEDEBUG=+seh,+process,+loaddll,+wbemprox,+msi,+richedit,+relay wine ./Start.exe >>log.txt 2>&1 ... 006a:trace:richedit:ITextRange_fnScrollIntoView (0x3db0118)->(0) ... 006a:Call user32.SetScrollPos(000700ac,00000000,0000007f,00000001) ret=79d1bd54 ... 006a:Ret user32.SetScrollPos() retval=00000000 ret=79d1bd54 006a:Call user32.SetScrollPos(000700ac,00000001,00000000,00000001) ret=79d1bd54 ... 006a:Ret user32.SetScrollPos() retval=00000000 ret=79d1bd54 006a:Call user32.ScrollWindowEx(000700ac,ffffff81,00000000,03db3ce0,03db3ce0,00000000,00000000,00000002) ret=79d1bf44 ... 006a:Ret user32.ScrollWindowEx() retval=00000002 ret=79d1bf44 006a:Call user32.UpdateWindow(000700ac) ret=79d1bdd3 ... 006a:Call window proc 0x61318a (hwnd=0x700ac,msg=WM_PAINT,wp=00000000,lp=00000000) 006a:Call user32.CallWindowProcW(79cfa9a0,000700ac,0000000f,00000000,00000000) ret=02e5b83f 006a:Call window proc 0x79cfa9a0 (hwnd=0x700ac,msg=WM_PAINT,wp=00000000,lp=00000000) 006a:trace:richedit:RichEditWndProc_common enter hwnd 0x700ac msg 000f () 0 0, unicode 1 ... --- snip ---
All license terms/EULAs are displayed and can be accepted now.
$ wine --version wine-4.6-30-gf9301c2b66
Regards
https://bugs.winehq.org/show_bug.cgi?id=46899
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.7.
https://bugs.winehq.org/show_bug.cgi?id=46899
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.0.x
https://bugs.winehq.org/show_bug.cgi?id=46899
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|4.0.x |---
--- Comment #4 from Michael Stefaniuc mstefani@winehq.org --- Removing the 4.0.x milestone from bug fixes included in 4.0.2.
https://bugs.winehq.org/show_bug.cgi?id=46899
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|https://support.industry.si |https://archive.org/downloa |emens.com/cs/document/10976 |d/simatic-win-cc-runtime-ad |1576/simatic-wincc-v15-1-ru |vanced-v-15-1/SIMATIC_WinCC |ntime-(tia-portal)?dti=0&lc |_Runtime_Advanced_V15_1.exe |=en-US |