Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to find service port for display #1673

Open
TimingSpace opened this issue Mar 31, 2020 · 41 comments
Open

Failed to find service port for display #1673

TimingSpace opened this issue Mar 31, 2020 · 41 comments
Assignees
Labels
bug Not a build issue, this is likely a bug. ui visualization

Comments

@TimingSpace
Copy link

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
@keithahern
Copy link

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.

@ruoyuwangeel4930
Copy link

Hello, do you fix the problem now?

@Jianghanxiao
Copy link

I also meet the problem on mac M1

@Ao-senXiong
Copy link

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

@adityamwagh
Copy link

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

@Jianghanxiao
Copy link

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

I remember use the latest open3D can solve the problem

@adityamwagh
Copy link

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

@Jianghanxiao
Copy link

@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

@adityamwagh
Copy link

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

@DenisTome
Copy link

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

@errissa
Copy link
Collaborator

errissa commented Feb 1, 2022

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

@adityamwagh
Copy link

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

@YajJackson
Copy link

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

@maurock
Copy link

maurock commented Jun 16, 2022

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

@tsenguunchik
Copy link

Any update on this? Running M2 Macbook air

@schauppi
Copy link

schauppi commented Nov 9, 2022

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

@adityamwagh
Copy link

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

@azadeh-sharafi
Copy link

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

@adityamwagh
Copy link

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

@xbbkok
Copy link

xbbkok commented Jan 18, 2023

I meet the problem on mac M2

@siyanhu
Copy link

siyanhu commented Feb 3, 2023

me too. on MacOS Ventura 13.1, Apple M1

@LouisSY
Copy link

LouisSY commented Feb 3, 2023

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

@Hiusam
Copy link

Hiusam commented Mar 3, 2023

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

@josephko91
Copy link

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

@rwijmashell
Copy link

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

@Sergeytata
Copy link

Sergeytata commented Mar 23, 2023

Same problem M1 Pro; Open3d 0.17.0.

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

@jiazhou2023
Copy link

Same issue.

@iryna-savchuk
Copy link

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

@bedbad
Copy link

bedbad commented Apr 20, 2023

Problem persists

@siyanhu
Copy link

siyanhu commented May 4, 2023

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

@prerakmody
Copy link

prerakmody commented May 6, 2023

I am using open3d==0.17.0 on a Macbook M1 with python==3.9.12 and am able to view the visualizer with o3d.visualization.draw_geometries([pcd])

But I still get the error [Open3D WARNING] GLFW Error: Cocoa: Failed to find service port for display.

On the other hand if I use the following code,

vis = open3d.visualization.Visualizer()
vis.create_window()
vis.add_geometry(pcd)
vis.run()
vis.close()

and if I close the visualizer and run more code (while inside a python interpreter), it hangs and gives the following error

[Open3D WARNING] GLFW Error: The GLFW library is not initialized
[Open3D WARNING] [PhongShaderForTriangleMesh] Compiling shaders failed.

Then I have to restart the terminal again which slows down my debugging process.

@cwreynolds
Copy link

Sorry that this is no help to the people still seeing this problem, but for whatever help it is to isolate the cause:

I’m able to run Open3D 0.17.0 without these problems, using macOS Monterey 12.6.4 on a 2021 MacBook Pro M1 Max. I’m using Python 3.10.10 via a Conda environment. In case it is relevant, I installed GLEW and GLFW via Homebrew, for use from c++, in the last few months.

I’m able to use o3d.visualization.draw_geometries() as in the original test code for this issue. Normally I use the “non blocking” API o3d.visualization.Visualizer(), update_geometry(), etc. I’ve also run the newer o3d.visualization.draw() tools.

I do see this message once: “[Open3D WARNING] GLFW Error: Cocoa: Failed to find service port for display” but everything seem to work OK.

@OHNOalan
Copy link

Encounter following bug using GLFW "0.52.0" with rust version "1.26.0" on macOS 13.4.1 with 2021 Apple M1 Pro Chip.

Bug Info: "thread 'main' panicked at 'GLFW Error: Cocoa: Failed to find service port for display'"

@imxtx
Copy link

imxtx commented Jan 19, 2024

same problem with M2 Pro Mac mini.

@sanikeit
Copy link

same issue with Mac M1 pro

@jayyoung0802
Copy link

same problem with M2 pro

@MaureenZOU
Copy link

+1

1 similar comment
@robinthibaut
Copy link

+1

@LJHG
Copy link

LJHG commented Apr 17, 2024

same problem on m1 pro

@ssheorey ssheorey added bug Not a build issue, this is likely a bug. and removed possible bug labels Apr 28, 2024
@mxagar
Copy link

mxagar commented May 1, 2024

Same problem here on my Apple MacBook Pro M1 (Sonoma 14.4.1).

I noticed that the latest Open3D version I can install using pip is 0.16.1, not the latest release 0.18. If I try to manually install the 0.18 release wheels I get system compatibility errors; e.g.:

$ pip install https://github.com/isl-org/Open3D/releases/download/v0.18.0/open3d-0.18.0-cp310-cp310-macosx_13_0_arm64.whl

--> ERROR: open3d-0.18.0-cp310-cp310-macosx_13_0_arm64.whl is not a supported wheel on this platform.

I suspect one could build Open3D locally on the machine or using docker to get the latest working wheels...

@LaFerraille
Copy link

Same issue here for Mac M2, any updates ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not a build issue, this is likely a bug. ui visualization
Projects
None yet
Development

No branches or pull requests