Opened 6 years ago

Closed 6 years ago

#2140 closed defect (can't reproduce)

Atom balloon on mouse hover vanishes immediately

Reported by: goddard@… Owned by: Tom Goddard
Priority: normal Milestone:
Component: General Controls Version:
Keywords: Cc: Elaine Meng, pett
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        Darwin-17.7.0-x86_64-i386-64bit
ChimeraX Version: 0.91 (2019-06-25)
Description
Opening 6bb5 and hovering mouse shows atom balloon.  Then rotate and hover and atom balloon displays and vanishes in a fraction of a second and will never stay up.  It is reproducible every time on this old laptop machine.  But I do not see it at all with the same build on my iMac (Mojave).

Log:
Startup Messages  
---  
warning | 'clip' is a prefix of an existing command 'clipper'  
  
UCSF ChimeraX version: 0.91 (2019-06-25)  
© 2016-2019 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  

> open 6bb5 format mmCIF fromDatabase pdb

6bb5 title:  
Human Oxy-Hemoglobin [more info...]  
  
Chain information for 6bb5 #1  
---  
Chain | Description  
A | Hemoglobin subunit α  
B | Hemoglobin subunit β  
  
Non-standard residues in 6bb5 #1  
---  
HEM — protoporphyrin IX containing Fe (HEME)  
OXY — oxygen molecule  
  
6bb5 mmCIF Assemblies  
---  
1| author_and_software_defined_assembly  
  
  
pause  
called popup hide  
hover hide, after pause  
move after pause  
pause  
called popup hide  
hover hide, after pause  
move after pause  
pause  
called popup hide  
hover hide, after pause  
move after pause  
pause  
called popup hide  
hover hide, after pause  
move after pause  
called popup hide  
hover hide, no pick  
pause  
called popup hide  
hover hide, after pause  
move after pause  

Failed to send bug report. Error while sending follows:  

Traceback (most recent call last):  
File "/Users/goddard/Desktop/ChimeraX June 25
2019.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/bug_reporter/bug_reporter_gui.py", line 231, in submit  
errcode, errmsg, headers, body = post_multipart_formdata(BUG_HOST,
BUG_SELECTOR, fields)  
File "/Users/goddard/Desktop/ChimeraX June 25
2019.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/webservices/post_form.py", line 39, in
post_multipart_formdata  
return r.status, r.msg, r.getheaders(), r.read()  
File "/Users/goddard/Desktop/ChimeraX June 25
2019.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py",
line 457, in read  
s = self.fp.read()  
File "/Users/goddard/Desktop/ChimeraX June 25
2019.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socket.py",
line 589, in readinto  
return self._sock.recv_into(b)  
ConnectionResetError: [Errno 54] Connection reset by peer  




OpenGL version: 4.1 NVIDIA-10.32.0 355.11.10.10.40.102
OpenGL renderer: NVIDIA GeForce GT 650M OpenGL Engine
OpenGL vendor: NVIDIA Corporation

Attachments (1)

huge_tooltip.jpg (159.3 KB ) - added by Tristan Croll 6 years ago.
Tooltip in CentOS 7 build 2019-06-29

Download all attachments as: .zip

Change History (14)

comment:1 by Tom Goddard, 6 years ago

Component: UnassignedGeneral Controls
Owner: set to Tom Goddard
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissionAtom balloon on mouse hover vanishes immediately

comment:2 by Tom Goddard, 6 years ago

Fixed.

We were using a QLabel with the Qt.ToolTip flag set to avoid showing a window frame and taking input. But tool tips are intended to automatically hide. We were not using the normal QToolTip mechanism. Apparently the tool tip hide delay somehow is not handled properly when not using QToolTip. So the fix was to use a frameless window that takes no input by setting window flags.

by Tristan Croll, 6 years ago

Attachment: huge_tooltip.jpg added

Tooltip in CentOS 7 build 2019-06-29

comment:3 by Tristan Croll, 6 years ago

This isn't working quite right in Linux (see the attached image). Also, tooltips seem to be suppressed by anything that prints to the status bar (e.g. graphics framerate true) - this was also true before this change, so it's not new.

comment:4 by Tristan Croll, 6 years ago

It's also not giving the right information now. In the session I currently have open, hovering over anything brings up a tooltip with "/A LYS 179". This persists even if I close all models and open a new (and different) one.

comment:5 by Tom Goddard, 6 years ago

Ok, I guess the Qt frameless window support on Linux simply does not work. I can make the code use Qt.ToolTip on Linux -- not sure if that exhibits the vanishing balloons bug, but it is better than the huge immutable tooltips!

The missing balloons when "graphics framerate true" is used is some other problem, probably related to the graphics is being continuously redrawn. Will need to investigate that.

comment:6 by Tom Goddard, 6 years ago

On Windows the atom balloons display correctly with the new code, but they take focus even though the fixed code sets a flag explicitly saying not to take focus. Apparently these Qt flags are not well supported.

comment:7 by Tom Goddard, 6 years ago

Fixed Linux and Windows by reverting to old ToolTip code while Mac uses new frameless window fix.

comment:8 by Tom Goddard, 6 years ago

Resolution: fixed
Status: assignedclosed

Made a separate ticket #2154 for the problem described in comment 3 where no balloons appear if the scene is constantly redrawn (e.g. when graphics framerate true is used).

comment:9 by Tristan Croll, 6 years ago

The huge tooltips are still in today's Linux build, which claims "committed: 2019-07-01 19:12:57 PDT".

in reply to:  11 comment:10 by goddard@…, 6 years ago

Sorry, I forgot to git push the fix yesterday.  Pushed now.

comment:11 by Tom Goddard, 6 years ago

Resolution: fixed
Status: closedreopened

The fix for this broke balloons when in fullscreen, bug #2210, so I've reverted this fix.

Last edited 6 years ago by Tom Goddard (previous) (diff)

comment:12 by Tom Goddard, 6 years ago

Will need to attempt to fix this on the 2012 MacBook Pro laptop where the bug can be reproduced.

comment:13 by Tom Goddard, 6 years ago

Cc: Elaine Meng pett added
Resolution: can't reproduce
Status: reopenedclosed

I was able to reproduce the disappearing balloons consistently using ChimeraX with Qt 5.12.4 on a 2012 Mac laptop with macOS 10.13.6 (the machine used in the initial report). But in the current ChimeraX daily build (July 31 2019) which uses Qt 5.12.3 I am not able to reproduce the problem.

I am going to close this as possibly fixed by Qt 5.12.3. If we see it again then report it again.

Note: See TracTickets for help on using tickets.