Bug #53833 MySQL Workbench does not work with restricted user rights anymore
Submitted: 20 May 2010 7:14 Modified: 25 May 2010 9:58
Reporter: Andreas Dangl Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.2.21 rc OS:Windows (XP Pro en)
Assigned to: CPU Architecture:Any

[20 May 2010 7:14] Andreas Dangl
Description:
Running Workbench with restricted user rights does not work anymore. Workbench still starts up. Adding connection, ... causes a crash. Workbench is working when running under Administrator Account.

How to repeat:
Starting Workbench with restrictet user rights
Open Dialog Setup New Connection
Enter a connection name
Click on Store in Vault ...
Enter a password and hit enter
Error Dialog appears: MySQL Workbench has encountered a problem Attempt to read or write protected memory. ....

It is working, when doing the same with Administrator rights.
[20 May 2010 9:09] Johannes Taxacher
Hi Andreas,
i could not repeat on my XP pro VM (new restricted user account). is your system 32 or 64 bit?
as you write ".. anymore" you mean this was working for you in previous versions?
[21 May 2010 6:54] Andreas Dangl
Hi Johannes,

I had V5.2.16 beta build 5249 running before. It work without any problems. I deinstalled this version and installed 5.2.21rc and I got the errors described. Today I deinstalled 5.2.21rc and reinstalled 5.2.16 and I got also these errors. So this is a problem with my installation not the version. 
For 5.2.16 I have a stacktrace (maybe this helps).

Exception = System.AccessViolationException
Message = Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
FullText = System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at std.basic_string<char,std::char_traits<char>,std::allocator<char> >.{ctor}(basic_string<char\,std::char_traits<char>\,std::allocator<char> >* , SByte* )
   at MySQL.Forms.UtilitiesImpl.load_passwords()
   at MySQL.Forms.UtilitiesImpl.find_password(basic_string<char\,std::char_traits<char>\,std::allocator<char> >* service, basic_string<char\,std::char_traits<char>\,std::allocator<char> >* account, basic_string<char\,std::char_traits<char>\,std::allocator<char> >* password)
   at MySQL.MCallback3<bool\,std::basic_string<char\,std::char_traits<char>\,std::allocator<char> > const \&\,std::basic_string<char\,std::char_traits<char>\,std::allocator<char> > const \&\,std::basic_string<char\,std::char_traits<char>\,std::allocator<char> > \&>.cpp_callback(basic_string<char\,std::char_traits<char>\,std::allocator<char> >* a1, basic_string<char\,std::char_traits<char>\,std::allocator<char> >* a2, basic_string<char\,std::char_traits<char>\,std::allocator<char> >* a3)
   at MySQL.Forms.DrawBoxImpl.drawbox_mouse_double_click(Object sender, MouseEventArgs e)
   at System.Windows.Forms.Control.OnMouseDoubleClick(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
[21 May 2010 9:43] Susanne Ebrecht
I am not able to repeat this by using Workbench 5.2.21

Here is my test:

mysql < bug53833.sql

Open Workbench
New Connection
Host: 127.0.0.1
Port: 6951
User: bug53833
Schema: bug53833

Test connection -> all fine

Connection name: bug53833

Double click connection ... all works fine. Of course I only can select from table t but that is how I granted it.
[21 May 2010 9:43] Susanne Ebrecht
my test script for running at localhost

Attachment: bug53833.sql (text/x-sql), 471 bytes.

[21 May 2010 12:07] Andreas Dangl
Hi Susanne,

I solved my problem by deleting the %HOMEPATH%\MySql\Workbench folder. Everything works fine now.

Best regards
Andreas