facebookresearch / habitat-sim

A flexible, high-performance 3D simulator for Embodied AI research.
https://aihabitat.org/
MIT License
2.54k stars 414 forks source link

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

Open frank-gallagher opened 7 months ago

frank-gallagher commented 7 months ago

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

aclegg3 commented 6 months ago

@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.