这是indexloc提供的服务,不要输入任何密码
Skip to content

startup problem with the current version c683eb3 #787

@RalfWerner

Description

@RalfWerner

In discord I had already described the problem, but got no answer, whether you can repeat the script @twaik?

[~]$ typeset -i i=0;x=termux-x11 WM=fluxbox y=com.termux.x11/.MainActivity px= X=app_;pkill $X
while [ -z "$px" -a $i -lt 3 ];do [ $i -eq 0 ]&& am start -n $y;$x :0 &
 sleep 1; px=`pgrep -o $X`;i+=1; $e Start$d:$x=$px try $i $d $X;
done ; echo Xserver and App started, Start Xclient $WM; $WM &
stdout with termux-info:
[2] 28023
[1]-  Terminated              $x $d > $tx/TX 2>&1
Start:0:termux-x11=28023 try 2 :0 app_
Xserver and App started, Start Xclient fluxbox
[3] 28030
Error: Couldn't connect to XServer:0
[~]$ termux-info
Termux Variables:
TERMUX_API_APP__VERSION_NAME=0.50.1+8651fd9
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP__AM_SOCKET_SERVER_ENABLED=true
TERMUX_APP__APK_PATH=/data/app/~~QpDj-E-FcZ3s_Ch0VVhlSw==/com.termux-OlWzngYwf4Zm9diGd7-H5Q==/base.apk
TERMUX_APP__APK_RELEASE=GITHUB
TERMUX_APP__FILES_DIR=/data/user/0/com.termux/files
TERMUX_APP__IS_DEBUGGABLE_BUILD=true
TERMUX_APP__IS_INSTALLED_ON_EXTERNAL_STORAGE=false
TERMUX_APP__PACKAGE_MANAGER=apt
TERMUX_APP__PACKAGE_NAME=com.termux
TERMUX_APP__PACKAGE_VARIANT=apt-android-7
TERMUX_APP__PID=8840
TERMUX_APP__SE_FILE_CONTEXT=u:object_r:app_data_file:s0:c3,c257,c512,c768
TERMUX_APP__SE_INFO=default:targetSdkVersion=28:complete
TERMUX_APP__SE_PROCESS_CONTEXT=u:r:untrusted_app_27:s0:c3,c257,c512,c768
TERMUX_APP__TARGET_SDK=28
TERMUX_APP__UID=10259
TERMUX_APP__USER_ID=0
TERMUX_APP__VERSION_CODE=118
TERMUX_APP__VERSION_NAME=0.118.0+f80b464
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0+f80b464
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://packages.termux.dev/apt/termux-main stable main
# sources.list.d/gcc.list
deb https://its-pointless.github.io/files/24 termux extras
# x11-repo (sources.list.d/x11.list)
deb https://packages.termux.dev/apt/termux-x11 x11 main
Updatable packages:
firefox/x11 134.0.1-1 aarch64 [upgradable from: 134.0]
git/stable 2.48.1 aarch64 [upgradable from: 2.48.0]
libsecret/stable 0.21.6 aarch64 [upgradable from: 0.21.4]
libsixel/stable 1.10.5 aarch64 [upgradable from: 1.10.3-2]
libsoup3/stable 3.6.3 aarch64 [upgradable from: 3.6.1]
libsqlite/stable 3.48.0 aarch64 [upgradable from: 3.47.2-1]
libuv/stable 1.50.0 aarch64 [upgradable from: 1.49.2]
termux-tools version:
1.44.6
Android version:
13
Kernel build information:
Linux localhost 4.14.113-27209537 #1 SMP PREEMPT Wed Oct 30 16:19:35 KST 2024 aarch64 Android
Device manufacturer:
samsung
Device model:
SM-P610
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.window versionCode:15
com.termux.widget versionCode:13
com.termux.x11 versionCode:15
com.termux.api versionCode:51
[3]+  Exit 1                  $WM
[~]$

It only occurs on the first start. After that, no more checks are made. Your suggestions to start and stop the XServer with a list of XClients is not an option for me, since my XClients are used spontaneously and also remotely and the XServer should only be stopped intentionally (e.g. reboot).

The error has occurred since version a29a949. Before that, everything worked fine and the Xserver could be used with $px pid. The value and process (px= X=app_;pkill $X) are only reset for the test above. termux-info takes more than 1 second, so $WM could be started afterwards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions