write_point_cloud segfaults unconditionally (SIGSEGV) on aarch64 Linux under Docker Desktop for Mac (Apple Silicon virtualization)

Aperta
#7,526 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
cpp, docker, python

Direzione di ricerca

Inizia con il riproduttore Python minimo incentrato su o3d.io.write_point_cloud e confronta la wheel nativa linux/arm64 con il caso linux/amd64 funzionante. Ispeziona le dipendenze native della wheel aarch64 e il comportamento del dispatch della CPU, inclusa l’ipotesi sul TBB incluso; il lavoro è completato quando le scritture su ARM64 non causano più un segfault e hanno successo oppure sollevano un’eccezione Python.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Describe the bug

o3d.io.write_point_cloud() segfaults (SIGSEGV) on every call, unconditionally, when running the official manylinux_2_31_aarch64 wheel inside a Docker container on Docker Desktop for Mac (Apple Silicon). This reproduces with pure synthetic data — no real files, no concurrency, no other load.

Writing crashes; reading/constructing geometry does not. Everything up to the write call runs fine.

Environment

  • Open3D version: 0.18.0 (pip)
  • OS: Debian GNU/Linux 13 (trixie), inside a python:3.11-slim base image
  • Python: 3.11.15
  • Container platform: linux/arm64 (native — no explicit emulation requested)
  • Host: macOS 26.5.2, Apple Silicon (arm64)
  • Docker: Docker Desktop, server version 29.6.1
  • Install method: pip install open3d inside the container (resolves to the aarch64 wheel)

To Reproduce

Minimal script, no external files or data needed:

import open3d as o3d
import numpy as np

pcd = o3d.geometry.PointCloud()
pcd.points = o3d.utility.Vector3dVector(np.random.rand(10, 3).astype(np.float32))
o3d.io.write_point_cloud("/tmp/tiny.ply", pcd)  # segfaults here
print("this line is never reached")

Run inside a container on Docker Desktop for Mac with default (native ARM64) platform:

docker run --rm python:3.11-slim bash -c "
  pip install -q open3d numpy
  python3 -c \"
import open3d as o3d, numpy as np
pcd = o3d.geometry.PointCloud()
pcd.points = o3d.utility.Vector3dVector(np.random.rand(10,3).astype(np.float32))
o3d.io.write_point_cloud('/tmp/tiny.ply', pcd)
print('OK')
\"
"

Result: process exits with code 139 (SIGSEGV), no Python traceback, no stderr output beyond an unrelated onnxruntime-style cpuinfo warning we see elsewhere in the same environment (not from open3d itself, but suggests CPU-feature-detection may be unreliable in this virtualized ARM64 environment generally).

Expected behavior

write_point_cloud should either succeed or raise a Python exception — not crash the interpreter with an unhandled signal.

What I've isolated so far

  • Reproduces with both write_ascii=True and the binary default — format is not the differentiator.
  • Reproduces with as few as 10 points and with real ~27k-point clouds from an actual pipeline.
  • Reproduces with a single process, zero concurrency, writing to both a plain container filesystem path (/tmp) and a bind-mounted host volume — so it isn't specific to any particular filesystem/mount type.
  • Does not reproduce under --platform linux/amd64 (x86_64, run via Rosetta 2 emulation on the same Mac) — same script, same container base image, only the platform flag changed, and pip install then resolves a different (x86_64) wheel that works correctly. This strongly suggests the bug is specific to the aarch64 wheel's native code (possibly in the bundled TBB, given a CPU-vendor-detection warning we see elsewhere in the same environment from an unrelated library using the cpuinfo project — worth checking if Open3D's aarch64 build links a similar CPU-dispatch mechanism).

Workaround

Forcing platform: linux/amd64 (x86_64 emulation via Rosetta 2) in the container config avoids the bug entirely, at the cost of running the whole container under CPU emulation instead of natively.

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di isl-org/Open3D

Tutte le issue di isl-org/Open3D

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.