Bug #86606 Windows 10 BSOD when adding Schema Privileges to a user
Submitted: 7 Jun 2017 3:58 Modified: 13 Jun 2017 9:06
Reporter: Randy Jones Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Workbench: Administration Severity:S1 (Critical)
Version:6.3.9 OS:Windows (Microsoft Windows 10 Pro 1703 build 15063.332)
Assigned to: CPU Architecture:Any
Tags: WBBugReporter

[7 Jun 2017 3:58] Randy Jones
Description:
When mouse hovers over button to add entry for user schema privileges, it crashed the computer with windows stop code: `Unexpected_kernel_mode_trap`

22:33:17 [ERR][      Workbench]: Console redirection failed.
22:33:17 [INF][      Workbench]: Starting up Workbench
22:33:17 [INF][      Workbench]: Current environment:
	Command line: "C:\Program Files\MySQL\MySQL Workbench 6.3 CE\MySQLWorkbench.exe" 
	CurrentDirectory: C:\Program Files\MySQL\MySQL Workbench 6.3 CE
	HasShutdownStarted: False
	OSVersion: Microsoft Windows NT 6.2.9200.0
	SystemDirectory: C:\WINDOWS\system32
	TickCount: 214562
	UserInteractive: True
	Version: 4.0.30319.42000
	WorkingSet: 35893248
22:33:17 [INF][      Workbench]: Environment variables:
	COMPUTERNAME = DESKTOP-R4NVSOH
	USERPROFILE = C:\Users\Randy
	HOMEPATH = \Users\Randy
	LOCALAPPDATA = C:\Users\Randy\AppData\Local
	VBOX_MSI_INSTALL_PATH = C:\Program Files\Oracle\VirtualBox\
	PSModulePath = C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\PowerShell\Modules\
	PROCESSOR_ARCHITECTURE = AMD64
	Path = C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\dotnet\;C:\Program Files\Git\cmd;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files\MySQL\MySQL Utilities 1.6\;C:\Users\Randy\AppData\Local\Programs\Python\Python36-32\Scripts\;C:\Users\Randy\AppData\Local\Programs\Python\Python36-32\;C:\Users\Randy\AppData\Local\Microsoft\WindowsApps;
	CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
	ProgramFiles(x86) = C:\Program Files (x86)
	PROCESSOR_LEVEL = 21
	VS150COMCOMNTOOLS = D:\Programs\Microsoft Visual Studio\2017\Community\Common7\Tools\
	LOGONSERVER = \\DESKTOP-R4NVSOH
	PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY
	HOMEDRIVE = C:
	GTK_BASEPATH = C:\Program Files (x86)\GtkSharp\2.12\
	SystemRoot = C:\WINDOWS
	SESSIONNAME = Console
	ALLUSERSPROFILE = C:\ProgramData
	PUBLIC = C:\Users\Public
	APPDATA = C:\Users\Randy\AppData\Roaming
	PROCESSOR_REVISION = 0200
	USERNAME = Randy
	CommonProgramW6432 = C:\Program Files\Common Files
	OneDrive = C:\Users\Randy\OneDrive
	CommonProgramFiles = C:\Program Files\Common Files
	OS = Windows_NT
	USERDOMAIN_ROAMINGPROFILE = DESKTOP-R4NVSOH
	PROCESSOR_IDENTIFIER = AMD64 Family 21 Model 2 Stepping 0, AuthenticAMD
	FSHARPINSTALLDIR = C:\Program Files (x86)\Microsoft SDKs\F#\4.1\Framework\v4.0\
	SystemDrive = C:
	TEMP = C:\Users\Randy\AppData\Local\Temp
	ProgramFiles = C:\Program Files
	NUMBER_OF_PROCESSORS = 8
	ComSpec = C:\WINDOWS\system32\cmd.exe
	TMP = C:\Users\Randy\AppData\Local\Temp
	ProgramData = C:\ProgramData
	ProgramW6432 = C:\Program Files
	windir = C:\WINDOWS
	USERDOMAIN = DESKTOP-R4NVSOH
22:33:17 [INF][      Workbench]: Current version given by meta info is: 6.3.9
22:33:17 [INF][      Workbench]: Setting PATH to: C:\WINDOWS\system32;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\dotnet\;C:\Program Files\Git\cmd;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files\MySQL\MySQL Utilities 1.6\;C:\Users\Randy\AppData\Local\Microsoft\WindowsApps;
22:33:17 [INF][ mforms managed]: Initializing mforms wrapper
22:33:18 [INF][   WBContext UI]: Initializing workbench context UI with these values:
	base dir: C:\Program Files\MySQL\MySQL Workbench 6.3 CE
	plugin path: C:\Program Files\MySQL\MySQL Workbench 6.3 CE
	struct path: 
	module path: C:\Program Files\MySQL\MySQL Workbench 6.3 CE/modules
	library path: C:\Program Files\MySQL\MySQL Workbench 6.3 CE
	user data dir: C:\Users\Randy\AppData\Roaming\MySQL\Workbench
	open at start: 
	open type: 
	run at startup: 
	run type: 
	Force SW rendering: No
	Force OpenGL: No
	quit when done: No
22:33:18 [INF][      WBContext]: WbContext::init
22:33:19 [INF][            WBA]: Looking for extension modules for WBA...
22:33:19 [INF][            WBA]: 0 extension modules found
22:33:20 [WRN][            grt]: C:\Users\Randy\AppData\Roaming\MySQL\Workbench\connections.xml:17: link '{D9B06766-4FE6-49B0-AC5C-FCCB737AEF86}' <object GrtObject> key=owner could not be resolved
22:33:20 [INF][      WBContext]: System info:
 	MySQL Workbench Community (GPL) for Windows version 6.3.9 CE build 10690321 (64 bit)
	Configuration Directory: C:\Users\Randy\AppData\Roaming\MySQL\Workbench
	Data Directory: C:\Program Files\MySQL\MySQL Workbench 6.3 CE
	Cairo Version: 1.10.2
	OS: Microsoft Windows 10 Pro
	CPU: 8x AMD FX(tm)-8350 Eight-Core Processor           , 31.9 GiB RAM
	Active video adapter NVIDIA GeForce GTX 1070
	Installed video RAM: -1 MB
	Current video mode: 1920 x 1080 x 4294967296 colors
	Used bit depth: 32
	Driver version: 22.21.13.8233
	Installed display drivers: C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_7209bde3180ef5f7\nvldumdx.dll,C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_7209bde3180ef5f7\nvldumdx.dll,C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_7209bde3180ef5f7\nvldumdx.dll,C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_7209bde3180ef5f7\nvldumdx.dll,C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_7209bde3180ef5f7\nvldumd.dll,C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_7209bde3180ef5f7\nvldumd.dll,C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_7209bde3180ef5f7\nvldumd.dll,C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_7209bde3180ef5f7\nvldumd.dll
	Current user language: English (United States)

22:33:20 [INF][    WQE backend]: Found auto-save workspace C:\Users\Randy\AppData\Roaming\MySQL\Workbench\sql_workspaces\omv-1.autosave
22:33:20 [INF][      Workbench]: UI is up
22:33:20 [INF][      Workbench]: Running the application
22:39:16 [ERR][  GRTDispatcher]: exception in grt execute_task, continuing: Exception: Access denied for user 'remoteAdmin'@'DESKTOP-R4NVSOH.local' (using password: NO)
22:39:16 [ERR][  GRTDispatcher]: worker: task 'execute sql queries' has failed with error:.Access denied for user 'remoteAdmin'@'DESKTOP-R4NVSOH.local' (using password: NO)
22:39:20 [INF][SQL Editor Form]: Opened connection 'omv' to (Raspbian) version 5.5.54-0+deb8u1
22:39:21 [INF][        WQE.net]: Launching SQL IDE
22:39:22 [INF][        WQE.net]: SQL IDE UI is ready
22:39:23 [INF][wb_admin_control.py:query_server_info:725]: WbAdminControl.connect_sql(): The server version stored in the server instance profile was "None". Changed to the version reported by the server: "5.5.54-0+deb8u1"
22:39:23 [INF][wb_admin_control.py:server_polling_thread:569]: Monitoring thread running...

How to repeat:
Hover mouse over button to add entry for user schema privileges.

Workstation:
Windows 10 Pro version 1703 build 15063.332
MySQL Workbench version 6.3.9

Server:
Raspberry Pi 3 running OpenMediaVault with MySQL plugin
MySQL Server 5.5.54-0+deb8u1
[7 Jun 2017 11:06] MySQL Verification Team
Thank you for the bug report. It's this behavior 100% repeatable?. Are you able to provide a screenshot (Files tab)?. Thanks in advance,
[7 Jun 2017 14:47] Randy Jones
BSOD message

Attachment: 20170606_224130_new.jpg (image/jpeg, text), 1.27 MiB.

[7 Jun 2017 14:55] Randy Jones
Yes on this computer it happens 100% of the time.
I just clean installed this os about a week ago and I am running the windows insider builds.

However on my laptop (HP ProBook 440 G3) running windows 10 Version 10.0.14393 with the same version of mysql workbench does not have this problem.

So I am thinking it is a compatibility issue with the 15063 build of windows 10.
[7 Jun 2017 15:00] MySQL Verification Team
Thank you for the feedback. What I need to see is the screenshot of WorkBench where you pass the mouse pointer. Thanks.
[7 Jun 2017 15:22] Randy Jones
Workbench Screenshot

Attachment: 20170607_101734_new.jpg (image/jpeg, text), 1.39 MiB.

[7 Jun 2017 17:46] MySQL Verification Team
Thank you for the feedback. I have tested on same Windows 10 build like you and couldn't repeat then I assume is some issue on your environment which provoke that issue. Below my environment:

C:\>systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Manufacturer" /C:"System Model" /C:"System Type"
OS Name:                   Microsoft Windows 10 Pro
OS Version:                10.0.15063 N/A Build 15063
System Manufacturer:       Dell Inc.
System Model:              XPS 8700
System Type:               x64-based PC
[12 Jun 2017 9:39] Daniele Mazzanti
Hi,

i've the same issue on my pc. My environment is the same as Randy Jones:

Windows 10 Pro version 1703 build 15063.332 (fresh install)
MySQL Workbench version 6.3.9

Every time I open "Users and Privileges" and select the tab "Schema Privileges", the system crashes with error "UNEXPECTED_KERNEL_MODE_TRAP".

Here you can see a photo with blue screen error: http://imgur.com/4kEE4Po
[12 Jun 2017 18:33] MySQL Verification Team
https://bugs.mysql.com/bug.php?id=86662 marked as duplicate of this one.
[12 Jun 2017 21:01] MySQL Verification Team
https://bugs.mysql.com/bug.php?id=86663 marked as duplicate of this one.
[13 Jun 2017 9:06] Chiranjeevi Battula
Hello Randy Jones,

Thank you for your feedback.
Verified based on internal discussion with dev's.

Thanks,
Chiranjeevi.
[17 Jun 2017 19:21] Alexander Wagner
Worbench Mouse Pointer, Add Entry

Attachment: 20170607_101734_new.jpg (image/jpeg, text), 1.39 MiB.

[17 Jun 2017 19:21] Alexander Wagner
Hello everyone,
I have exactly the same problem.
As soon as the mouse pointer moves to Add Entry. Comes with a bluscreen with the message UNEXPECTET_KERNEL_MODE_TRAP
I use Windows 10 Pro 64bit.
I thank you in advance.
Greetings Teutonic
[23 Jun 2017 10:13] Yoav Melamed
Hi
Same issue here:
OS Name:                   Microsoft Windows 10 Pro
OS Version:                10.0.15063 N/A Build 15063
System Manufacturer:       LENOVO
System Model:              33477QG
System Type:               x64-based PC

Every time i'm trying to create a user and clicking the 'Schema Privileges' tab, i'm getting the BSOD with this trap message as rest of the guys here got.

Thanks,
Yoav Melamed
[23 Jun 2017 10:14] Yoav Melamed
'Schema Privileges' cause BSOD when creating new user

Attachment: wb_bsod.png (image/png, text), 14.41 KiB.

[26 Jun 2017 20:18] jonathan pearce
Also getting this problem, when moving mouse (5 times today) only when using workbench 6.3.9. 64-bit. Sometimes on users privileges screen.  Mostly after I clicked a user or tab then moved mouse (1/4 second) then BSOD.
[26 Jun 2017 20:27] jonathan pearce
Just had it without clicking just hovering mouse over user tab.  Not always and not repeatable - however cannot use workbench for more than 3-5 mins.  I access database over Standard TCP/IP over SSH to remote server.  If I don't go into "users and privileges" then so far does not fail.
[29 Jun 2017 5:09] Jason Skowronek
Add my machine to the growing list of BSOD when attempting to add schema privs. Tried full/clean reinstall w/ no luck.
[29 Jun 2017 5:12] Jason Skowronek
+ My system info:

OS Name:                   Microsoft Windows 10 Enterprise
OS Version:                10.0.15063 N/A Build 15063
System Manufacturer:       LENOVO
System Model:              20E2CTO1WW
System Type:               x64-based PC
[29 Jun 2017 5:14] MySQL Verification Team
Can somebody kindly upload a kernel crash dump file here (compress it first).

http://blog.nirsoft.net/2010/07/27/how-to-configure-windows-to-create-minidump-files-on-bs...
[30 Jun 2017 11:13] MySQL Verification Team
output of !analyze -vvv of minidump

Attachment: a.txt (text/plain), 14.05 KiB.

[30 Jun 2017 11:20] MySQL Verification Team
bit of googling led me to
https://social.msdn.microsoft.com/Forums/en-US/05a5081a-6582-4d24-9b7f-dda2d85b7c51/bsod-w...

I wonder if any reporter can do a complete windows update and see if this solves anything.
[30 Jun 2017 11:45] jonathan pearce
I have checked version of windows 10 64 and there are no updates for the date specified (20170628) in the answer.  Got my system to check and it is up-to-date last update was 21-June.  It only happens in Workbench, but perhaps this is the only application I run that "heavy use of nesting WinForms controls."  Could that be the problem?
[12 Jul 2017 17:18] jonathan pearce
This seems to have been fixed by last nights windows update 
July 11, 2017—KB4025342 (OS Build 15063.483).
I would like to test this for a couple of days, and then this can be closed.