Open3D icon indicating copy to clipboard operation
Open3D copied to clipboard

Failed to find service port for display

Open TimingSpace opened this issue 4 years ago • 48 comments

Describe the bug On mac OS,10.15.1 Failed to find service port for display when trying to visualize a ply file.

To Reproduce Steps to reproduce the behavior: xzy = np.random.random((100,3))*10 pcd = o3d.geometry.PointCloud() pcd.points = o3d.utility.Vector3dVector(xyz) o3d.visualization.draw_geometries([pcd])

then

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: [Open3D ERROR] GLFW Error: Cocoa: Failed to find service port for display

Expected behavior Expected to visualize the point cloud

Environment (please complete the following information):

  • OS: [ OSX Catalina]
  • Python version: 3.7.3
  • Open3D version:0.9.00
  • Is this remote workstation?: no
  • How did you install Open3D?: pip

TimingSpace avatar Mar 31 '20 23:03 TimingSpace

I am running a Macbook with a second display provided by airplaying to an iPad (new OS X feature). When I disconnected the airplay display I no longer got this error.

keithahern avatar Aug 03 '20 16:08 keithahern

Hello, do you fix the problem now?

ruoyuwangeel4930 avatar Jan 27 '21 14:01 ruoyuwangeel4930

I also meet the problem on mac M1

Jianghanxiao avatar Feb 09 '21 14:02 Jianghanxiao

Did anyone ever success this on mac M1? It troubles me!!! Thx!!!

Ao-senXiong avatar Jul 12 '21 19:07 Ao-senXiong

Has anyone been able to fix this on an M1 MacBook?

adityamwagh avatar Nov 24 '21 06:11 adityamwagh

Has anyone been able to fix this on an M1 MacBook?

I remember use the latest open3D can solve the problem

Jianghanxiao avatar Nov 25 '21 20:11 Jianghanxiao

@Jianghanxiao Do you remember how you did it? I had compiled Open3D v0.13.0, but still the visualizations didn't show up and neither the point cloud data was read.

adityamwagh avatar Nov 27 '21 03:11 adityamwagh

@Jianghanxiao Do you remember how you did it? I had compiled Open3D v0.13.0, but still the visualizations didn't show up and neither the point cloud data was read.

Based on my current environment, the open3D I use is 0.12.0. It's installed through pip

Jianghanxiao avatar Nov 27 '21 18:11 Jianghanxiao

Can you import a pcd file, and then show me the visualization?

adityamwagh avatar Nov 30 '21 17:11 adityamwagh

I'm having the same issue on a M1 Max with 0.14.1 installed though pip

DenisTome avatar Feb 01 '22 16:02 DenisTome

@DenisTome Please try the development pip packages available here. Some fixes have been made since 0.14.1 to support Apple Silicon (M1).

errissa avatar Feb 01 '22 17:02 errissa

They have changed how the visualizer is accessed in 0.14.0. Try the new one @DenisTome.

adityamwagh avatar Feb 02 '22 04:02 adityamwagh

Tested with 0.15.1. Calling both: open3d.visualization.draw_geometries and open3d.visualization.draw raise:

[Open3D WARNING] GLFW Error: Cocoa: Failed to find service port for display

The GUI opens, but displays an empty scene: Screen Shot 2022-06-15 at 3 00 00 PM

YajJackson avatar Jun 15 '22 19:06 YajJackson

@YajJackson I had a similar issue, then noticed that the object is actually there but you need to rotate the viewport to see it (left click + move your mouse/zoom in-out until you see something). My guess is that it does not render properly when normals are aligned in certain directions. Setting mesh_show_wireframe=True in o3d.visualization.draw_geometries([mesh], mesh_show_wireframe=True) helps, in the sense that you can see the mesh wireframe so the object becomes more visibile even for small meshes.

maurock avatar Jun 16 '22 10:06 maurock

Any update on this? Running M2 Macbook air

tsenguunchik avatar Nov 08 '22 07:11 tsenguunchik

Same issue on Mac M1. open3d 0.11.2 and python 3.8.13.

schauppi avatar Nov 09 '22 12:11 schauppi

@schauppi Update to Open3D 0.15.1, your version doesn't have support for Apple Silicon.

adityamwagh avatar Nov 10 '22 01:11 adityamwagh

I have the same problem. The python crashed when I tried to close the visualization window with the same message: "[Open3D WARNING] GLFW Error: Cocoa: Failed to find service port for display"

Apple M1 chip iOS Ventura 13.0.1 Python 3.8 open3d 0.16.1

azadeh-sharafi avatar Jan 11 '23 17:01 azadeh-sharafi

@azadeh-sharafi Experiment with a newer version of Python and also try using open3d v0.15.1

adityamwagh avatar Jan 12 '23 07:01 adityamwagh

I meet the problem on mac M2

xbbkok avatar Jan 18 '23 01:01 xbbkok

me too. on MacOS Ventura 13.1, Apple M1

siyanhu avatar Feb 03 '23 09:02 siyanhu

I created a Conda env with x86 architecture on my m1 Mac and I also have this problem.

Environment:

OS: macOS Ventura 13.2 Python version: 3.9.15, arch=x86_64 Open3D version:0.16.1 Is this remote workstation?: no How did you install Open3D?: pip

LouisSY avatar Feb 03 '23 14:02 LouisSY

Me too. With M1 Pro, python=3.9, and open3d 0.15.1

Hiusam avatar Mar 03 '23 02:03 Hiusam

I have the same issue. Python GUI opens up, but crashes when I try to close the window. python: 3.10.9 open3d: 0.16.1

josephko91 avatar Mar 03 '23 15:03 josephko91

Was having this issue as well. I noticed that switching from draw_geometries to simply using the new draw fixed my issues.

rwijmashell avatar Mar 07 '23 13:03 rwijmashell

Same problem M1 Pro; Open3d 0.17.0.

Is there a prebuilt wheel with Jupyter visualisation set to ON?

Sergeytata avatar Mar 23 '23 23:03 Sergeytata

Same issue.

jiazhou2023 avatar Mar 28 '23 21:03 jiazhou2023

I experience the same issue on my M1 MacBook Pro when running draw_geometries: [error] GLFW error: Cocoa: Failed to find service port for display

iryna-savchuk avatar Apr 18 '23 18:04 iryna-savchuk

Problem persists

bedbad avatar Apr 20 '23 19:04 bedbad

same here for my M1 laptop. I have to switch to intel Mac right now temporarily.

siyanhu avatar May 04 '23 05:05 siyanhu