Opened 9 years ago

Last modified 2 years ago

#46800 assigned defect

gnome-terminal is not working

Reported by: lightoml@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: DrDaveD
Port: gnome-terminal

Description

I installed gnome-termianl and ran it. But I have below error message.

Could you solve the problem?

Thanks!

Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.gnome.Terminal exited with status 8

Change History (14)

comment:1 Changed 9 years ago by dbevans (David B. Evans)

Owner: changed from macports-tickets@… to devans@…
Status: newassigned

comment:2 Changed 9 years ago by dbevans (David B. Evans)

Keywords: gnome-terminal removed
Port: gnome-terminal added

comment:3 Changed 9 years ago by lightoml@…

Is there any news on it?

comment:4 Changed 9 years ago by lightoml@…

Is someone working on it?

comment:5 Changed 9 years ago by lightoml@…

Could anyone tell me what is the status on it?

Thanks!

comment:6 Changed 9 years ago by dbevans (David B. Evans)

Yes, it is still not working even after upgrading to GNOME 3.16. And I have been working on it (as time permits) but no final solution as yet.

The problem seems to be that when gnome-terminal starts up, it tries to get dbus to launch the org.gnome.Terminal service which should start /opt/local/libexec/gnome-terminal-server. This service (server) is the thing that starts one or more Terminal instances and keeps track of them.

With version 3.16.1, I realized that there were two problem going on.

First, attempts to launch gnome-terminal-server by hand failed because it's code to increase RLIMIT_NOFILE (max number of files it can open) is flawed. It ends up trying to set this limit to infinity, something that traditionally is allowed but OS X does not. Instead one should set it to MAX_OPEN. This is now fixed and the server starts up and runs until it times out waiting for a client request.

However, when gnome-terminal tries to start the service using dbus, the launch fails with error code 8 (format error) which immediately kills the launched process and the server never really gets started. On the surface, the messages to and from dbus look correct and the point of failure (where the error occurs) seems to be in the dbus code itself.

So that's where I'm working right now. I'm not a dbus guru by any means so if anyone has any ideas on what the problem is they would be gratefully accepted.

Now that 3.16.1 is out, I am working on upgrading to 3.16.2 and will continue debugging there.

comment:7 Changed 9 years ago by lightoml@…

Thanks a lot for your answer. I'm looking forward to hearing from a good news.

comment:8 Changed 9 years ago by DrDaveD

Cc: dwd@… added

Cc Me!

comment:9 Changed 9 years ago by DrDaveD

Any more progress on this? I really miss gnome-terminal.

I got gnome-terminal-server started by hand as suggested by some others, after setting LC_ALL and LANG=en_US.UTF-8, but gnome-terminal still gets this error.

comment:10 Changed 8 years ago by dbevans (David B. Evans)

This is proving to be a hard nut to crack. Since last report, I've fixed one problem with gnome-terminal itself and recently another causing vte to crash. Still haven't been able to diagnose the main problem -- terminal server quietly dies after spawning from the dbus interface. Code in gnome-terminal has changed so that the work around of manually starting the terminal server no longer works as you have mentioned. I keep hoping that the problem will get fixed upstream but no luck as yet.

Any ideas or epiphanies welcome.

comment:11 Changed 8 years ago by lightoml@…

Is there any progress on it? The gnome-terminal is still not working.

comment:12 Changed 3 years ago by DrDaveD

I am still getting the same error when attempting to port install gnome-terminal, all these years later. In the meanwhile I had been using fink's gnome-terminal as a workaround, but now on 10.15 Catalina that's not working anymore either so I appear to be out of luck. brew has not yet built gnome-terminal as far as I can tell.

comment:13 Changed 2 years ago by leonpano2006

for me also not working
macOS terminal fucked up colors (ex btop++)
so I am finding alternatives and I am used to gnome-terminal
I am on macOS 12.3.1

Last edited 2 years ago by leonpano2006 (previous) (diff)

comment:14 Changed 2 years ago by DrDaveD

I switched to ITerm2.

Note: See TracTickets for help on using tickets.