visit icon indicating copy to clipboard operation
visit copied to clipboard

Lineout cue drawn inches away from mouse pointer gesture path

Open markcmiller86 opened this issue 1 year ago • 9 comments

Describe the bug

A user on LLNL RZ showed me this was happening running VisIt 3.4.1 in VNCViewer from DELL Laptop. He would drag a lineout and the visual cue would be miles away from the mouse pointer path on the screen. After releasing, it would compute the correct lineout curve and when he returned to the window showing the lineout cue, the cue would be in the correct place.

So, the issue is with the logic that draws and updates that lineout cue during the drag and release event.

He said the badness of the offset varies based on VNC window resolution.

I had Eric try on RZ from his laptop over VNC and everything worked fine. We tried varying VNC resolution with xrandr -s commands of various sorts and the lineout worked fine every time. We did notice that the lineout update drawing was very slow and took a while to catch up to Eric's mouse pointer gestures but it ultimately always settled on the correct cue position.

I also tried 3.4.1 on SCF with VNC viewer and it worked for me as it did for Eric.

markcmiller86 avatar May 21 '24 23:05 markcmiller86

This might be due to using some fancy X11 X-or-ing overlay to do these types of overlays. We should see if there is a simpler way not that we live in "the future".

cyrush avatar Jul 02 '24 22:07 cyrush

Might need to look at the vtk mapper classes in src/avt/QtVisWindow/vtk

biagas avatar Jul 02 '24 23:07 biagas

The user reporting this is M. Adler

markcmiller86 avatar Jul 03 '24 00:07 markcmiller86

@brugger1 could this issue be similar to the rubber band zoom issues?

cyrush avatar Oct 17 '24 16:10 cyrush

The code for rendering the rubber band line looks similar to the zoom lines. It isn't trying to do any fancy XORing. I have tried to reproduce this on my Dell laptop and haven't been able to. Mark wasn't able to reproduce on the closed in a VNC viewer. I believe Mark saw it on the users system so it is real, but I don't know what's special about his system.

Maybe we try on his system with the beta to see if it is still doing it. If it is, maybe we build a version with debugging information that outputs the coordinates of the lines being rendered to see if those are correct.

brugger1 avatar Oct 17 '24 17:10 brugger1

Cyrus may have seen this, if so update this ticket about which system

cyrush avatar Sep 09 '25 22:09 cyrush

I see this on Windows when running from my laptop screen instead of external monitor.

biagas avatar Sep 17 '25 16:09 biagas

@biagas Since you can reproduce, can you try this after the DPI changes in #20616 are in. The font changes wont matter, but I wonder if resize and move events help keep display settings in sync.

cyrush avatar Nov 10 '25 22:11 cyrush

The DPI changes did not resolve this. I can't replicate on my system to explore further.

cyrush avatar Dec 02 '25 19:12 cyrush