Modern GUI followed by legacy Visualizer segfaults on macOS (main 1a9eb99)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Ambito
- computer-graphics, desktop-dev
Direzione di ricerca
Esegui open3d-mixed-viewer-repro.py sia in modalità mixed sia in modalità --legacy-only, quindi parti da gui.Application, SceneWidget, rendering.Open3DScene e Visualizer.create_window. Controlla gli avvisi di GLFW e la transizione da modern a legacy; il lavoro è completato quando i viewer sequenziali non causano più un segmentation fault oppure la transizione non supportata solleva un'eccezione Python.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the issue
Closing a modern GUI window and then creating a legacy Visualizer in the same Python process segfaults on macOS. The legacy-only control succeeds.
Reproduction
Official, unmodified development wheel: open3d-0.19.0+1a9eb99-cp312-cp312-macosx_11_0_arm64.whl, downloaded from the main-devel release.
Save as open3d-mixed-viewer-repro.py and run each command in a fresh desktop process:
python -u -X faulthandler open3d-mixed-viewer-repro.py
python -u -X faulthandler open3d-mixed-viewer-repro.py --legacy-only
import sys
import threading
import time
import open3d as o3d
from open3d.visualization import gui, rendering
print(o3d.__version__, flush=True)
if '--legacy-only' not in sys.argv:
app = gui.Application.instance
app.initialize()
window = app.create_window('Modern viewer', 320, 240)
widget = gui.SceneWidget()
widget.scene = rendering.Open3DScene(window.renderer)
window.add_child(widget)
def close_modern():
time.sleep(0.6)
app.post_to_main_thread(window, window.close)
threading.Thread(target=close_modern, daemon=True).start()
app.run()
print('modern closed', flush=True)
vis = o3d.visualization.Visualizer()
created = vis.create_window('Legacy viewer', width=320, height=240)
print('legacy created:', created, flush=True)
if created:
for _ in range(10):
vis.poll_events()
vis.update_renderer()
vis.destroy_window()
print('finished', flush=True)
Actual output
Both commands were executed with the official wheel on 2026-09-08.
Mixed modern-to-legacy run:
0.19.0+1a9eb99
FEngine (64 bits) created at 0x8e7c58000 (threading is enabled)
FEngine resolved backend: Metal
Selected physical device 'Apple M4 Max'
Backend feature level: 3
FEngine feature level: 1
Selected physical device 'Apple M4 Max'
modern closed
[Open3D WARNING] GLFW Error: Cannot make current with a window that has no OpenGL or OpenGL ES context
[Open3D WARNING] GLFW Error: Cannot set swap interval without a current OpenGL or OpenGL ES context
Fatal Python error: Segmentation fault
Current thread 0x00000001f6596180 (most recent call first):
File "/tmp/open3d-mixed-viewer-repro.py", line 21 in <module>
Extension modules: numpy._core._multiarray_umath, numpy.linalg._umath_linalg, markupsafe._speedups, simplejson._speedups, charset_normalizer.md, charset_normalizer.cd (total: 6)
Exit status: 139
Legacy-only control:
0.19.0+1a9eb99
legacy created: True
finished
Exit status: 0
Expected behavior
The viewers can be opened sequentially, or an unsupported transition raises a Python exception instead of terminating the interpreter.
Environment
- macOS26.6.2, Apple M4 Max, arm64, local desktop
- Python3.12.11
- Official Open3D
0.19.0+1a9eb99development wheel; upstream commit1a9eb990f9a20936c30c428568c602bdef760744 - Modern renderer: Metal; legacy renderer: OpenGL
The GLFW messages identify a window without an OpenGL/OpenGL ES context immediately before the segmentation fault. Retained GLFW window hints are a candidate explanation.
- Lingua principale
- C++
- Stelle
- 14.3k
- Fork
- 2.7k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di isl-org/Open3D
-
Add explicit list of supported format in io documentationForse già presa @SKSavale l’ha presa 60 giorni fa. Apertafeature request
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
feature request
Difficoltà 1/5 1-3 ore Idoneità per principianti 76/100
-
Getting Started page gives incorrect link to development wheelsForse già presa @SatvikMishra08 l’ha presa 59 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Window(title, width, height, flags) ignores the flags argumentForse già presa @Wahaj18 l’ha presa 56 giorni fa. Apertabug
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
-
compute_fpfh_feature stub incorrectly requires the optional indices argumentForse già presa @huxiaoyi-ovo l’ha presa 60 giorni fa. Apertabug
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
Tutte le issue di isl-org/Open3D
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
jaff-chemistry/jaff#231 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
I maintainer di solito rispondono entro 1 giorno
-
ColumnDecimal::Append(Int128) stores a value outside the Decimal(P, S) range with no error: cut to 32/64 bits, or with too many digitsForse già presa @RUSHIT305 l’ha presa oggi. Apertabug data-types
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
ClickHouse/clickhouse-cpp#645 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
documentation enhancement help wanted P0
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Awesome-Embedded-Learning-Studio/Tutorial_AwesomeModernCPP#359 ·
I maintainer di solito rispondono entro 1 giorno
-
DXF import: INSERT ignores the BLOCK base pointForse già presa @Kevinzhou03 l’ha presa oggi. ApertaType: Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
openscad/openscad#7360 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno