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

X11-repo vncsercer port error #12588

Closed
vinodg912 opened this issue Oct 27, 2022 · 10 comments
Closed

X11-repo vncsercer port error #12588

vinodg912 opened this issue Oct 27, 2022 · 10 comments
Labels
bug report Something is not working properly. x11 Issue is related to stuff requiring X11 environment or x11-packages.

Comments

@vinodg912
Copy link

Problem description

Im facing problem with termux gui x11 vnc connection

What steps will reproduce the bug?

Showing this error

Screenshot_2022-10-27-19-34-53-16_8659c1e795b4b4239e38d87c88c077b3

What is the expected behavior?

In termux vncserver successfully started on localhost:1

Screenshot_2022-10-27-19-34-27-67_84d3000e3f4017145260f7618db1d683

Please give any solution 😥

System information

termux-info:


Termux App Info

APP_NAME: Termux
PACKAGE_NAME: com.termux
VERSION_NAME: 0.118.0
VERSION_CODE: 118
TARGET_SDK: 28
IS_DEBUGGABLE_BUILD: false
APK_RELEASE: F-Droid
SIGNING_CERTIFICATE_SHA256_DIGEST: 228FB2CFE90831C1499EC3CCAF61E96E8E1CE70766B9474672CE427334D41C42

Termux:Styling App Info

APP_NAME: Termux:Styling
PACKAGE_NAME: com.termux.styling
VERSION_NAME: 0.29
VERSION_CODE: 29
TARGET_SDK: 28
IS_DEBUGGABLE_BUILD: false
APK_RELEASE: F-Droid
SIGNING_CERTIFICATE_SHA256_DIGEST: 228FB2CFE90831C1499EC3CCAF61E96E8E1CE70766B9474672CE427334D41C42

Device Info

Software

OS_VERSION: 4.19.152-perf+
SDK_INT: 31
RELEASE: 12
ID: RKQ1.211119.001
DISPLAY: CPH2095_11_F.79
INCREMENTAL: Q.202208220951
SECURITY_PATCH: 2022-08-05
IS_DEBUGGABLE: 0
IS_TREBLE_ENABLED: true
TYPE: user
TAGS: release-keys

Hardware

MANUFACTURER: OPPO
BRAND: OPPO
MODEL: CPH2095
PRODUCT: CPH2095
BOARD: bengal
HARDWARE: qcom
DEVICE: OP4EF3L1
SUPPORTED_ABIS: arm64-v8a, armeabi-v7a, armeabi

@vinodg912 vinodg912 added the bug report Something is not working properly. label Oct 27, 2022
@2096779623
Copy link
Member

vncserver -kill :1
vncserver :1

@2096779623 2096779623 added the x11 Issue is related to stuff requiring X11 environment or x11-packages. label Oct 27, 2022
@xtkoba
Copy link
Contributor

xtkoba commented Oct 27, 2022

Which port number are you trying to connect to? :1 should correspond to port number 5901.

@vinodg912
Copy link
Author

@xtkoba I've tried with localhost:1 , locahost:5901
And tried with replacing localhost to 127.0.0.1 but same problem showing 😑

@2096779623 I've already tried with this.

@xtkoba
Copy link
Contributor

xtkoba commented Oct 27, 2022

First check if the server is running (install telnet command by pkg in inetutils):

$ telnet localhost 5901
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
RFB 003.008

Also this reminds me of #7761. There seem to be cases where a server hangs while Termux app is in the background.

@sylirre
Copy link
Member

sylirre commented Oct 28, 2022

Related to this: termux/termux-app#2366

@vinodg912
Copy link
Author

Related to this: termux/termux-app#2366

No, Termux's session would be closed if it was related.

@sylirre
Copy link
Member

sylirre commented Oct 28, 2022

Not necessary that session will be closed.

@vinodg912
Copy link
Author

First check if the server is running (install telnet command by pkg in inetutils):

$ telnet localhost 5901
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
RFB 003.008

Also this reminds me of #7761. There seem to be cases where a server hangs while Termux app is in the background.

@xtkoba I connected with telnet localhost 5901
It connected successfully. But when im trying to connect VNC Viewer, telnet say's connection closed by foreign host. And in the last im facing same problem

@vinodg912
Copy link
Author

@xtkoba after giving command vncserver -localhost, i connect with telnet. And now im trying to connect with kex vnc viewer now in the kex problem is other.

Screenshot_2022-10-28-13-01-27-67_30a42d6a209f6598350fa5f61642e1a9

@sylirre
Copy link
Member

sylirre commented Oct 28, 2022

There no issues with current tigervnc build on AArch64. Please note that all AArch64 devices receive same build of tigervnc, so having bug on one device but not on other is close to impossible and device-specific bugs aren't fixable on Termux side either.

vnc

But when im trying to connect VNC Viewer, telnet say's connection closed by foreign host.

Another sign that there Phantom process killer is related.

Your issue about suddenly stopping vncserver is not the first. There were other reports, on GitHub and Reddit, all were happening on Android 12 and were related to phantom processes...

Sometimes can be related to a vendor-specific process killer feature (used to increase device on-battery duration), not sure if this is relevant to Oppo devices.

now im trying to connect with kex vnc viewer now in the kex problem is other.

KeX viewer supports less features of VNC, so mentioned on screenshot problem is expected.


I'm closing this issue now. Can be reopened at any time if someone will be able to prove the bug on Termux side.

P.S. Some information about what is happening can be obtained via logcat in Termux or or through ADB.

@sylirre sylirre closed this as completed Oct 28, 2022
@termux termux deleted a comment Nov 21, 2023
@termux termux locked as resolved and limited conversation to collaborators Nov 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug report Something is not working properly. x11 Issue is related to stuff requiring X11 environment or x11-packages.
Projects
None yet
Development

No branches or pull requests

4 participants