this simple shelf tool:
import toolutils
viewer = toolutils.sceneViewer()
pos = viewer.selectPositions(position_type=hou.positionType.ViewportXY)
print pos
this works the first 4 or so times but after that results in a seg fault. it's part of a shelf tool i'm writing to so that a user can click into the screen and get the prim they've clicked on. i've tested it in houdini 12.5 and houdini 13.0 and on two different pcs with the same result.
edit: its toolutils not toolsutils, sorry.