habitat-sim icon indicating copy to clipboard operation
habitat-sim copied to clipboard

Segmentation fault when running habitat-viewer and SHIFT + Left Click for semantic annotations on 4K display

Open frank-gallagher opened this issue 1 year ago • 1 comments

Habitat-Sim version

0.3.0

🐛 Bug

When running the HM3D semantics example in habitat-viewer, I get a Segmentation fault (core dumped) error when SHIFT+ Left Click an object to print it's semantic class. This only happens when I am connected to my 4K display. It doesn't happen when I connect a 1080p monitor or if I remote in to my desktop from my laptop (1080p) over xRDP. As far as I can tell, all other mouse clicks in the habitat-viewer app are handled successfully on the 4K display. I believe it has something to do with the DPI of the display because if I launch the application on the 1080p monitor and then switch to the 4K monitor it still works.

Steps to Reproduce

Steps to reproduce the behavior:

habitat-viewer --dataset './data/scene_datasets/hm3d/hm3d_annotated_basis.scene_dataset_config.json' TEEsavR23oF

  1. Connect to a 4K display
  2. Run the above command to launch the habitat-viewer application with a scene with semantic annotations
  3. SHIFT + Left Click an object

Expected behavior

The semantic class of the clicked object to be printed out below the rest of the UI overlay

System Info

  • OS (e.g., Linux): Ubuntu 22.04
  • Python version: 3.9.18
  • GPU models and configuration: NVIDIA GeForce RTX 4090 (Driver Version: 535.154.05)
  • CUDA version: 12.2

frank-gallagher avatar Jan 30 '24 14:01 frank-gallagher

@frank-gallagher thanks for reporting this bug. We are aware of some issues with viewer application logic on high-DPI displays. For example https://github.com/facebookresearch/habitat-sim/pull/2321.

aclegg3 avatar Feb 29 '24 19:02 aclegg3