MantisBT - ParaView
View Issue Details
0015398ParaView(No Category)public2015-03-26 19:522015-09-06 12:18
Alan Scott 
Utkarsh Ayachit 
highminorhave not tried
closedfixed 
4.3 
4.44.4 
Sandia
incorrect functionality
0015398: selection and menus don't work
We are seeing a bug that is extremely hard to replicate. It shows up in two ways. First, you can't select any cells or points on the surface of the dataset. Second, you can't get the onscreen menu to work. We finally have a dataset to replicate this. Replicate exactly as follows (I bet it replicates on MAC, Windows also):

* 4.3.1, Linux, 8 servers
* Open dataset DoNotRelease-selectionAndMenuBug. (Ask Utkarsh or me for this dataset). Apply.
* Right click on the dataset. Notice that the menu doesn't appear - you only get "Link Camera". Selections of points and cells on the surface also don't work.
* Note - now, split screen horizontal. Spreadsheet. Sort by GlobalNodeId. Note that there are duplicates. Close the spreadsheet view.
* Turn off block 10, apply. Right click dataset. Normal menu has appeared.
* Turn on block 10, apply. Right click dataset. Normal menu still appears!

What I want - either make this so it always works, or fallback give a message what the problem is, and at least allow users to manually fix the issue (for instance, create a manual ParaView created internal GlobalNodeId). Currently, the hack/workaround is confusing and strictly voodoo.

No tags attached.
related to 0015425closed Utkarsh Ayachit check/uncheck selected block buttons don't work (again) 
Issue History
2015-03-26 19:52Alan ScottNew Issue
2015-03-30 09:56Utkarsh AyachitAssigned To => Utkarsh Ayachit
2015-04-02 16:00Alan ScottTarget Version => 4.4
2015-04-02 16:00Alan ScottDescription Updatedbug_revision_view_page.php?rev_id=1049#r1049
2015-04-06 11:54Utkarsh AyachitNote Added: 0034336
2015-04-06 13:27Utkarsh AyachitNote Added: 0034337
2015-04-06 17:39Alan ScottNote Added: 0034339
2015-05-05 15:00Alan ScottRelationship addedrelated to 0015425
2015-05-29 11:42Utkarsh AyachitNote Added: 0034432
2015-05-29 11:42Utkarsh AyachitStatusbacklog => gatekeeper review
2015-05-29 11:42Utkarsh AyachitFixed in Version => git-next
2015-05-29 11:42Utkarsh AyachitResolutionopen => fixed
2015-06-02 08:41Utkarsh AyachitNote Added: 0034436
2015-06-02 08:41Utkarsh AyachitStatusgatekeeper review => customer review
2015-06-02 08:41Utkarsh AyachitFixed in Versiongit-next => git-master
2015-06-02 20:53Alan ScottNote Added: 0034449
2015-06-02 20:53Alan ScottStatuscustomer review => closed
2015-09-06 12:18Utkarsh AyachitFixed in Versiongit-master => 4.4

Notes
(0034336)
Utkarsh Ayachit   
2015-04-06 11:54   
Evidently, the issue is that surface selection is not working when remote rendering is enabled!! I can reproduce the same issue as follows:

+ paraview + pvserver (8 ranks)
+ Set "Remote Render Threshold" to 0 -- to force remote rendering.
+ Sphere, Apply.
+ Now surface selection will fail!
(0034337)
Utkarsh Ayachit   
2015-04-06 13:27   
Things broke since:

commit c1eac93b7942be9f579d0da8b5121d73dc0e1ae4
Author: Ken Martin <ken.martin@kitware.com>
Date: Fri Nov 21 12:07:58 2014 -0500

    Improve picking support in OpenGL2
    
    Point association picking was not implemented this patch
    adds that in. Also cell picking did not work when the input
    contained quads or higher vertex count polygons. To address
    these issues the picking process needs to give the mapper an
    opporunity to map the index from the frame buffer back into
    a point id or cell id. Added amvirtual method in prop to
    do that and an implementation in OpenGLActor and
    OpenGLPolyDataMapper to properly map gl_PrimativeId in
    the correct point or cell id.
    
    Point picking was not tested in VTK so I added a test for
    that as well.
    
    Change-Id: If276e80ab3966646dd9f6f95fbc7734c006f000c
(0034339)
Alan Scott   
2015-04-06 17:39   
I'm amazed. Yep, that's the bug. I could have sworn that I had tested with rendering threshold set to 0. Anyway, good find.
(0034432)
Utkarsh Ayachit   
2015-05-29 11:42   
Merge request awaiting review:

https://gitlab.kitware.com/vtk/vtk/merge_requests/251 [^]
(0034436)
Utkarsh Ayachit   
2015-06-02 08:41   
Fix merged in master.

https://gitlab.kitware.com/paraview/paraview/commit/8772ca93f7c249b02fa68bdbb61a3bb14b0b2391 [^]
(0034449)
Alan Scott   
2015-06-02 20:53   
Excellent, this fixes this bug.

Tested remote server, Linux, master. Tested with selectionAndMenuBug, and also the original dataset.