Bug #103322 Performance dashboard no longer brings up detailed statistics on mouse hover
Submitted: 14 Apr 15:52 Modified: 15 Apr 3:56
Reporter: William Avery Email Updates:
Status: Analyzing Impact on me:
None 
Category:MySQL Workbench: Administration Severity:S3 (Non-critical)
Version:8.0.23 OS:Any
Assigned to: MySQL Verification Team CPU Architecture:Any

[14 Apr 15:52] William Avery
Description:
tested on Debian Buster, Mac Big Sur

Backtrace [from Debian] ...

wb_admin_performance_dashboard.py", line 118, in mouse_move

Apr 13 11:16:40 : Traceback (most recent call last):
Apr 13 11:16:40 :   File "/usr/local/mysql/lib/mysql-workbench/modules/wb_admin_performance_dashboard.py", line 118, in mouse_move
Apr 13 11:16:40 :     self.canvas.mouse_move(x, y)
Apr 13 11:16:40 :   File "/usr/local/mysql/share/mysql-workbench/libraries/workbench/graphics/canvas.py", line 148, in mouse_move
Apr 13 11:16:40 :     fig.hover_in(x, y)
Apr 13 11:16:40 :   File "/usr/local/mysql/share/mysql-workbench/libraries/workbench/graphics/canvas.py", line 206, in hover_in
Apr 13 11:16:40 :     self.on_hover_in(self, x, y)
Apr 13 11:16:40 :   File "/usr/local/mysql/lib/mysql-workbench/modules/wb_admin_performance_dashboard.py", line 179, in handle_hover_in
Apr 13 11:16:40 :     xx, yy = self.client_to_screen(fx, fy)
Apr 13 11:16:40 :   File "/usr/local/mysql/lib/mysql-workbench/modules/mforms.py", line 705, in client_to_screen
Apr 13 11:16:40 :     return _mforms.View_client_to_screen(self, x, y)
Apr 13 11:16:40 : TypeError: in method 'View_client_to_screen', argument 2 of type 'int'

How to repeat:
Hover over any box in performance dashboard

Suggested fix:
My temporary fix - modify wb_admin_performance_dashboard.py [cast arguments as int]

@ line 118	self.canvas.mouse_move(int(x), int(y))
@ line 179	xx, yy = self.client_to_screen(int(fx), int(fy))

Modify canvas.py

@ line 148	fig.hover_in(int(x), int(y))
@ line 206	self.on_hover_in(self, int(x), int(y))