Closed Sirox228 closed 1 year ago
i granted all permissions and set allow-external-apps to true in .termux/termux.properties.
This mechanism seems broken. Disable allow-external-apps
. Try to launch Termux:X11 app from launcher and then use termux-x11
nothing changed
Post a video please.
nothing changed
Did you stop an application before launching it from launcher?
Post a video please.
https://drive.google.com/file/d/1APzgj2hmP9bVq-CLgn2QXzj0GSwQMjlC/view?usp=drivesdk
nothing changed
Did you stop an application before launching it from launcher?
no
Stop it using Android UI and try again. It is known bug and I am already working on it.
@twaik how
Any updates?
Any updates?
no
Same problem
Termux-info
Did you allow Termux Draw over other apps permission?
Did you allow Termux Draw over other apps permission?
Yes
also if you are wondering i see an error
"....termux.permission.RUN.COMMAND"
Did you give Termux:X11 this permission in android settings?
I have this issue as well.
I received a crash which I think is related.
java.lang.NullPointerException
at android.os.Parcel.createExceptionOrNull(Parcel.java:2432)
at android.os.Parcel.createException(Parcel.java:2410)
at android.os.Parcel.readException(Parcel.java:2393)
at android.os.Parcel.readException(Parcel.java:2335)
at com.android.internal.app.IAppOpsService$Stub$Proxy.reportRuntimeAppOpAccessMessageAndGetConfig(IAppOpsService.java:1666)
at android.app.AppOpsManager$1.reportStackTraceIfNeeded(AppOpsManager.java:290)
at android.app.AppOpsManager$1.onNoted(AppOpsManager.java:265)
at android.app.AppOpsManager.readAndLogNotedAppops(AppOpsManager.java:9359)
at android.os.Parcel.readExceptionCode(Parcel.java:2357)
at android.os.Parcel.readException(Parcel.java:2332)
at android.app.IActivityTaskManager$Stub$Proxy.startActivity(IActivityTaskManager.java:2328)
at com.termux.x11.starter.Compat.startActivity(Compat.java:27)
at com.termux.x11.starter.Starter.startActivity(Starter.java:144)
at com.termux.x11.starter.Starter.onRun(Starter.java:80)
at com.termux.x11.starter.Starter.lambda$main$0(Starter.java:42)
at com.termux.x11.starter.Starter$$ExternalSyntheticLambda2.run(Unknown Source:2)
at java.lang.Thread.run(Thread.java:1012)
Caused by: android.os.RemoteException: Remote stack trace:
at com.android.internal.util.AnnotationValidations.validate(AnnotationValidations.java:129)
at android.app.SyncNotedAppOp.<init>(SyncNotedAppOp.java:227)
at android.app.SyncNotedAppOp$1.createFromParcel(SyncNotedAppOp.java:243)
at android.app.SyncNotedAppOp$1.createFromParcel(SyncNotedAppOp.java:235)
at com.android.internal.app.IAppOpsService$Stub.onTransact(IAppOpsService.java:728)
Got getWaylandFD
{ParcelFileDescriptor: java.io.FileDescriptor@a45955}
Lorie requested fd
Got getLogFD
{ParcelFileDescriptor: java.io.FileDescriptor@5f01f6a}
Got finish request
App sent finishing command
Starting Xwayland
(EE) could not connect to wayland server
~ $ termux-x11 :1 &
[2] 9325
[1] Exit 1 termux-x11 :1
Running in tmux I see that it starts fine but as soon as I run Xfce it crashed with:
Failed to connect to Termux:X11. Something went wrong.
I feel like I'm very close. This program is very fickle
$ res = 0
Activity is started
Got getWaylandFD
{ParcelFileDescriptor: java.io.FileDescriptor@158ed1}
Lorie requested fd
Got getLogFD
{ParcelFileDescriptor: java.io.FileDescriptor@157ad36}
Got finish request
App sent finishing command
.../Download/termux-x11 $ Starting Xwayland
Starting Xwayland
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
(EE)
Fatal server error:
(EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE)
(EE) could not connect to wayland server
You did not kill previous instances of Xwayland...
I've never gotten it to work at all. I've tried a few different versions. I never launch Xwayland so if it does not kill the process when it is crashing then that does explain that log. But the most normal crash is simply
Starting Xwayland (EE) could not connect to wayland server
It doesn't expect X to be running right? Because I killed both Xorg and the SDL2 Xorg client (which despite being more reliable is worse because it doesn't support graphical acceleration).
Try to reboot your phone and try again.
No luck. It crashes on a completely clean boot.
My next attempt immediately afterwards I got another new error that I'd never seen before.
~ $ termux-x11 :1 &
[2] 14400
[1] Exit 1 termux-x11 :1
~ $ res = 2
Activity is started
~ $ Android reported activity started but we did not get any respond
Looks like we failed to start activity.
I've the same problem.
xwayland is running fine, but, when I installed the least build, It crash every time when launching.
Even cleaning data and force close, still won't work.
Please note that I was launching LXQT
Here's a video:
Please, try the last build. If a problem persists I need you to post a logcat.
@Sirox228 @83syam @stopka-html @ctrlcctrlv @MTSYuki Last available builds should fix this problem.
@Sirox228 @83syam @stopka-html @ctrlcctrlv @MTSYuki Last available builds should fix this problem.
Yes, fixed
when i run
termux-x11 :1 &
it prints thissends intent to termux-x11, but it can't connect, when i run
env DISPLAY=:1 xfce4-session
it saysxfce4-session: Cannot open display: .
i granted all permissions and setallow-external-apps
to true in .termux/termux.properties. It seems that it can't find some file.?