http://bugs.winehq.org/show_bug.cgi?id=12458
Summary: MySQL Workbench 5 aborts with NotImplementedException ITextDocument.Range(Int32 cp1, Int32 cp2) Product: Wine Version: CVS/GIT Platform: Other URL: http://dev.mysql.com/downloads/workbench/5.0.html OS/Version: other Status: NEW Keywords: download Severity: normal Priority: P2 Component: richedit AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
http://www.bytebot.net/blog/archives/2007/11/27/workbench-beta-adventure-on-... complained that MySQLWorkbench didn't work on Wine, so I gave it a whirl.
On an empty .wine directory, it complained that it needed .net 2.
With 'winetricks dotnet20', it complained "The operating system is not adequate for running MySQL Workbench 5.0 OSS" (it requires WinNT version 502, and we're at 500).
With 'winetricks dotnet20 vista', it installed. Running failed early with Unhandled Exception: System.NotImplementedException: The method or operation is not implemented. at System.Windows.Forms.UnsafeNativeMethods.ITextDocument.Range(Int32 cp1, Int32 cp2) at System.Windows.Forms.TextBoxBase.ScrollToCaret() at MySQL.GUI.Shell.GrtPromptForm.ScrollToBottom() at MySQL.GUI.Shell.GrtPromptForm.PrintText(String text) at MySQL.GUI.Shell.GrtShellForm.PrintShellOutput(String text)
With "winetricks dotnet20 riched20 vista", it worked much better; there was a fatal error dialog without much info, but if you ignore it, the interface comes up and seems to work. (Though all I really tried was Help.) So my main complaint is our riched20 doesn't support com text services.
[Oddly, if Tahoma is installed (e.g. winetricks tahoma), it crashes hard and early with Unhandled Exception: System.ArgumentException: Parameter is not valid. at System.Drawing.Font.GetHeight(Graphics graphics) at System.Drawing.Font.get_SizeInPoints() at System.Drawing.SystemFonts.FontInPoints(Font font) at System.Drawing.SystemFonts.get_MenuFont() but that's another bug, maybe.]
http://bugs.winehq.org/show_bug.cgi?id=12458
Hin-Tak Leung htl10@users.sourceforge.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |htl10@users.sourceforge.net
--- Comment #1 from Hin-Tak Leung htl10@users.sourceforge.net 2008-04-09 12:48:24 --- I think this is about gecko not usable by .net as IE replacement yet:
System.Windows.Forms.UnsafeNativeMethods.ITextDocument.Range
http://bugs.winehq.org/show_bug.cgi?id=12458
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|richedit |-unknown
--- Comment #2 from Dan Kegel dank@kegel.com 2008-04-09 12:51:02 --- Hmm. Maybe. I guess lots of things can implement that interface.
http://bugs.winehq.org/show_bug.cgi?id=12458
--- Comment #3 from Dan Kegel dank@kegel.com 2008-04-12 09:56:31 --- Hmm. Today even with "winetricks dotnet20 riched20 vista" it doesn't work; you get a GUI crash dialog without much info, as before, but the app doesn't come up like it used to. If you click 'cancel' to quit, you get the stack dump:
Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at System.Drawing.SafeNativeMethods.Gdip.GdipCreateFontFromLogfontW(HandleRef hdc, Object lf, IntPtr& font) at System.Drawing.Font.FromLogFont(Object lf, IntPtr hdc) at System.Drawing.Font.FromHfont(IntPtr hfont) at System.Drawing.SystemFonts.get_DefaultFont() at System.Windows.Forms.Control.get_FontHandle()
So this seems like a bit of a regression.
http://bugs.winehq.org/show_bug.cgi?id=12458
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |richedit
--- Comment #4 from Dan Kegel dank@kegel.com 2008-11-28 21:32:41 --- It's back to working with "winetricks dotnet20 riched20 vista". Still doesn't work without native riched20.
Let's call this a riched20 bug, then.
http://bugs.winehq.org/show_bug.cgi?id=12458
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net
--- Comment #5 from Anastasius Focht focht@gmx.net 2008-12-16 08:43:09 --- Hello,
confirming with wine-1.1.10-325-g0a47e1b That RichEdit stub is still a problem.
There is also a "no install" version available which you can unzip and run (hence no 'winetricks vista' needed).
--- snip --- .. fixme:richedit:ITextDocument_fnRange stub 0x4fb3958 First chance exception generated: (0xc3bf88) <System.NotImplementedException> ... Unhandled exception generated: (0xc3bf88) <System.NotImplementedException> System.Windows.Forms.UnsafeNativeMethods.ITextDocument::Range] 1)* System.Windows.Forms.TextBoxBase::ScrollToCaret +0428[native] 2) MySQL.GUI.Shell.GrtPromptForm::ScrollToBottom +0085[native] 3) MySQL.GUI.Shell.GrtPromptForm::PrintText +0042[native] 4) MySQL.GUI.Shell.GrtShellForm::PrintShellOutput +0035[native] ... --- snip ---
Regards
http://bugs.winehq.org/show_bug.cgi?id=12458
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|CVS/GIT |unspecified
--- Comment #6 from Austin English austinenglish@gmail.com 2009-01-19 15:14:59 --- Removing deprecated CVS/GIT version tag. Please retest in current git. If the bug is still present in today's wine, but was not present in some earlier version of wine, please update version field to earliest known version of wine that had the bug. Thanks!
http://bugs.winehq.org/show_bug.cgi?id=12458
--- Comment #7 from Austin English austinenglish@gmail.com 2010-07-18 03:40:27 --- Still present: http://source.winehq.org/git/wine.git/?a=blob;f=dlls/riched20/richole.c#l654
http://bugs.winehq.org/show_bug.cgi?id=12458
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |0.9.59. Summary|MySQL Workbench 5 aborts |Multiple apps fail due to |with |RichEdit |NotImplementedException |ITextDocument_fnRange stub |ITextDocument.Range(Int32 |(MySQL Workbench, |cp1, Int32 cp2) |BlitzMaxDemo137)
--- Comment #8 from Anastasius Focht focht@gmx.net 2011-07-23 05:18:18 CDT --- Hello,
BlitzMaxDemo137 also suffers from ITextDocument_fnRange being a stub.
--- snip --- 0021:trace:richedit:CreateIRichEditOle Created 0x8d3338 0021:trace:richedit:RichEditWndProc_common exit hwnd 0x100b8 msg 043c (EM_GETOLEINTERFACE) 0 17fa1c, unicode 1 -> 1 ... 0021:Call ole32.IIDFromString(001823a0 L"{8CC497C0-A1DF-11ce-8098-00AA0047BE5D}",00157bb8) ret=0044aa2f 0021:Ret ole32.IIDFromString() retval=00000000 ret=0044aa2f ... 0021:trace:richedit:IRichEditOle_fnQueryInterface 0x8d3338 {8cc497c0-a1df-11ce-8098-00aa0047be5d} 0021:trace:richedit:IRichEditOle_fnAddRef 0x8d3338 ref = 2 ... 0021:trace:richedit:RichEditWndProc_common enter hwnd 0x100b8 msg 045f (EM_GETTEXTLENGTHEX) 157ca8 0, unicode 1 ... 0021:fixme:richedit:ITextDocument_fnRange stub 0x8d3338 ... 0021:fixme:richedit:ITextDocument_fnFreeze stub 0x8d3338 ... 0021:trace:richedit:ME_HandleMessage EM_EXGETSEL = (0,0) 0021:trace:richedit:RichEditWndProc_common exit hwnd 0x100b8 msg 0434 (EM_EXGETSEL) 0 157cd8, unicode 1 -> 0 ... 0021:trace:seh:raise_exception code=c0000005 flags=0 addr=0x44b2f9 ip=0044b2f9 tid=0021 0021:trace:seh:raise_exception info[0]=00000000 0021:trace:seh:raise_exception info[1]=00000000 0021:trace:seh:raise_exception eax=00000000 ebx=0017fb2c ecx=00000000 edx=00000000 esi=0017f940 edi=0047a8f4 0021:trace:seh:raise_exception ebp=008cfcec esp=008cfcd0 cs=0073 ds=007b es=007b fs=0033 gs=003b flags=00010206 0021:trace:seh:call_vectored_handlers calling handler at 0x68e798c4 code=c0000005 flags=0 0021:trace:seh:call_vectored_handlers handler at 0x68e798c4 returned 0 0021:trace:seh:call_stack_handlers calling handler at 0x7093eb69 code=c0000005 flags=0 --- snip ---
The app doesn't check the HRESULT and tries to directly access ITextRange instance.
'winetricks richedit' doesn't help here because the app wants RichEdit 4.1
--- snip --- 0021:Call user32.CreateWindowExW(00000200,0017f0b0 L"RICHEDIT50W",0017eb10 L"",4420010c,00000000,00000000,00000001,00000001,000100aa,00000000,00400000,00000000) ret=0044a9ad 0021:Ret user32.CreateWindowExW() retval=00000000 ret=0044a9ad --- snip ---
(see MSDN: http://msdn.microsoft.com/en-us/library/bb787873.aspx for info about different richedit versions)
If you fix that bug, the app starts fine. Selecting, compiling and running examples works fine.
$ sha1sum BlitzMaxDemo137.exe c9080c62687da0ba6ce57afea4494d8a8e31d7f8 BlitzMaxDemo137.exe
$ wine --version wine-1.3.25-1-gdf65f3e
Regards
http://bugs.winehq.org/show_bug.cgi?id=12458
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |brendan.mcclure@gmail.com
--- Comment #9 from Anastasius Focht focht@gmx.net 2011-12-12 13:31:56 CST --- *** Bug 6237 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=12458
NSLW lukasz.wojnilowicz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lukasz.wojnilowicz@gmail.co | |m
--- Comment #10 from NSLW lukasz.wojnilowicz@gmail.com 2012-09-28 12:17:43 CDT --- It is also problem for SolidWorks 2010 and its built-in vba editor.
Problem still exist in wine-1.5.13-346-g0445393 but 'winetricks riched20' helps.
http://bugs.winehq.org/show_bug.cgi?id=12458
butraxz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |butraxz@gmail.com
--- Comment #11 from butraxz@gmail.com 2013-04-22 14:55:47 CDT --- Original version no longer available.
Should this be closed as abandoned ?
http://bugs.winehq.org/show_bug.cgi?id=12458
--- Comment #12 from Bruno Jesus 00cpxxx@gmail.com 2013-04-22 15:02:40 CDT --- Certainly still an issue, AFAIR this is used in google talk too.
http://bugs.winehq.org/show_bug.cgi?id=12458
--- Comment #13 from Anastasius Focht focht@gmx.net 2013-10-05 08:32:57 CDT --- Hello folks,
still present with Wine 1.7.3 Also affects various Acrobat Reader versions.
Easy workaround is still 'winetricks riched20'
$ du -sh AdbeRdr11004_en_US.exe 49M AdbeRdr11004_en_US.exe
$ sha1sum AdbeRdr11004_en_US.exe 9c295c16d374735bf292ef6c630c9ab392c22500 AdbeRdr11004_en_US.exe
$ wine --version wine-1.7.3-231-g264e27b
Regards
http://bugs.winehq.org/show_bug.cgi?id=12458
Jactry Zeng jactry92@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jactry92@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=12458
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pr0sto@hotmail.com
--- Comment #14 from Anastasius Focht focht@gmx.net --- *** Bug 36516 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=12458
--- Comment #15 from Jactry Zeng jactry92@gmail.com --- Hi floks,
This brach has a ITextRange interface stub implementation(also ITextFont interface and ITextPara interface): https://github.com/Jactry/wine/tree/GSoC It made BlitzMaxDemo137 works. Could someone retest MySQL Workbench with it?
Any comment about my brach will be much appreciate. :) Thank you!
http://bugs.winehq.org/show_bug.cgi?id=12458
Qian Hong fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fracting@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=12458
hanska2@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hanska2@luukku.com
--- Comment #16 from hanska2@luukku.com --- I just tried BlitzMaxDemo137 without those patches and it doesnt work.
wine 1.7.22
http://bugs.winehq.org/show_bug.cgi?id=12458
--- Comment #17 from Jactry Zeng jactry92@gmail.com --- (In reply to hanska2 from comment #16)
I just tried BlitzMaxDemo137 without those patches and it doesnt work.
wine 1.7.22
Yes, these softwares need ITextRange interface even ITextFont and ITextPara interfaces. And my implementation of these interfaces still didn't be merged into upstream. I'm working on them.
You can get them from here: https://github.com/jactry/wine/tree/GSoC
Thanks for testing!
http://bugs.winehq.org/show_bug.cgi?id=12458
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |maxim@reimax.ru
--- Comment #18 from Anastasius Focht focht@gmx.net --- *** Bug 37024 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=12458
--- Comment #19 from Jactry Zeng jactry92@gmail.com --- Hi Focht, (In reply to Anastasius Focht from comment #18)
*** Bug 37024 has been marked as a duplicate of this bug. ***
I think Bug 18303 can also be marked as a duplicate of this bug and than rename this bug as "Multiple apps need ITextRange interface(MySQL Workbench, BlitzMaxDemo137,Inform7,Adobe Acrobat Pro 7,Advego Plagiatus 1.3.0)"?
http://bugs.winehq.org/show_bug.cgi?id=12458
--- Comment #20 from Jactry Zeng jactry92@gmail.com --- BlitzMaxDemo137: http://www.blitzbasic.com/file/get.php?file=/Products/demos/BlitzMaxDemo137.... $ shasum BlitzMaxDemo137.exe c9080c62687da0ba6ce57afea4494d8a8e31d7f8 BlitzMaxDemo137.exe
Inform7: http://inform7.com/download/content/4S08/I7_4S08_Windows.exe $ shasum I7_4S08_Windows.exe d70799de06d6f73ab21060d3fe407493d70cdd55 I7_4S08_Windows.exe
Advego Plagiatus 1.3.0: http://advego.ru/plagiatus/advego_plagiatus.exe $ shasum advego_plagiatus.exe 5d47648ba702dbd58db5f17de84c5ce7a9a66cfb advego_plagiatus.exe
Adobe Acrobat Pro 7: http://ardownload.adobe.com/pub/adobe/acrobat/win/7x/7.0/misc/AcTR7EFG.exe $ shasum AcTR7EFG.exe 4f1ff389ea71f21d624083d65bbe5a74e4760079 AcTR7EFG.exe
https://bugs.winehq.org/show_bug.cgi?id=12458
--- Comment #21 from Jactry Zeng jactry92@gmail.com --- Implementation of ITextDocument::Range: http://source.winehq.org/git/wine.git/commit/b10b39185dd91d53bae47ab63c852ab...
If someone retests MySQL Workbench with it, please let me know what MySQL Workbench depend on next. Feel free to send a email or ping me in irc. Thanks!
https://bugs.winehq.org/show_bug.cgi?id=12458
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #22 from Nikolay Sivov bunglehead@gmail.com --- Range() was implemented some time ago. Fixed with b10b39185dd91d53bae47ab63c852abd7ab73327.
https://bugs.winehq.org/show_bug.cgi?id=12458
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #23 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.44.
https://bugs.winehq.org/show_bug.cgi?id=12458
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |b10b39185dd91d53bae47ab63c8 | |52abd7ab73327 OS|other |Windows Hardware|Other |x86
https://bugs.winehq.org/show_bug.cgi?id=12458
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- OS|Windows |Linux