termux / termux-x11

Termux X11 add-on application.
https://termux.dev
GNU General Public License v3.0
1.96k stars 301 forks source link

"Could not open X display" since build #242 #213

Closed ZIXT233 closed 1 year ago

ZIXT233 commented 1 year ago

Since build #242 (09a0fca) I got a black screen on termux-x11 while starting xfce4 on proot debian (build #241 works). Here is the infomation xfce4 printed: Screenshot_20230203_023649_Termux

The latest build (#250) got the same problem. My platform is OneUI5.0 (Android13), GalaxyTab S7.

Additionally, though build #241 works, it flashes pure blue screen several times while starting termux-x11.

ZIXT233 commented 1 year ago

It seemed that common X program like xterm, xfce4-terminal and xfwm4 could be run and displayed well , but when I run xfce4-session there shows errors as follows:

(xfce4-session:31911): Gdk-CRITICAL **: 07:48:13.028: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(xfce4-session:31911): dbind-WARNING **: 07:48:13.045: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
_IceTransmkdir: ERROR: euid != 0,directory /tmp/.ICE-unix will not be created.
/usr/bin/iceauth:  creating new authority file /tmp/ICEauthority

(xfwm4:31935): Gtk-WARNING **: 07:48:13.283: cannot open display: wayland-0
(xfsettingsd:31936): dbind-WARNING **: 07:48:13.429: Could not open X display

(xfsettingsd:31936): dbind-WARNING **: 07:48:13.433: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
xfce4
(xfce4-panel:31942): dbind-WARNING **: 07:48:13.598: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files

(xfce4-panel:31949): Gdk-CRITICAL **: 07:48:13.788: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(xfce4-panel:31949): dbind-WARNING **: 07:48:13.798: Could not open X display

(xfce4-panel:31955): libxfce4ui-WARNING **: 07:48:14.037: ICE I/O Error
xfce4-panel: Failed to connect to session manager: Failed to connect to the session manager: IO error occured opening connection
(xfce4-panel:31955): libxfce4ui-WARNING **: 07:48:14.040: Disconnected from session manager.
Segmentation fault 
twaik commented 1 year ago

You are starting these in proot, right?

twaik commented 1 year ago

It looks like programs in proot first of all trying to connect wayland server, which is not supported, I'll fix this later.

ZIXT233 commented 1 year ago

You are starting these in proot, right?

yes

ZIXT233 commented 1 year ago

@twaik The proot xfce4-session works on build #256 now. Thanks for your job!