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

[Bug]: termux-monet craches with code-server #117

Open
echo-64 opened this issue Mar 1, 2024 · 0 comments
Open

[Bug]: termux-monet craches with code-server #117

echo-64 opened this issue Mar 1, 2024 · 0 comments

Comments

@echo-64
Copy link

echo-64 commented Mar 1, 2024

Problem description

I installed termux-monet and executed those commands to install code-server
pkg update -y && pkg upgrade -y
pkg install tur-repo
pkg install code-server nodejs zip tree lsd glow wget git

  • and also simple script from code-server docs to allow some code-server extensions on android
    android-as-linux.js

after that, i executed this to run code-server
NODE_OPTIONS="--require ./android-as-linux.js" code-server

every thing is going well, until installed liveserver extension
when trying to run it termux-monet craches with this crach report:

Report Info

User Action: crash report
Sender: TermuxActivity
Report Timestamp: 2024-03-01 13:42:36.151 UTC

Crash Details

Crash Thread: Thread[main,5,main]
Crash Timestamp: 2024-03-01 13:42:18.210 UTC

Crash Message:

Unable to start receiver com.termux.app.TermuxOpenReceiver: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.android.server.wm.ConfigurationContainer.inPinnedWindowingMode()' on a null object reference

Stacktrace

java.lang.RuntimeException: Unable to start receiver com.termux.app.TermuxOpenReceiver: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.android.server.wm.ConfigurationContainer.inPinnedWindowingMode()' on a null object reference
	at android.app.ActivityThread.handleReceiver(ActivityThread.java:4324)
	at android.app.ActivityThread.-$$Nest$mhandleReceiver(Unknown Source:0)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2150)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.app.ActivityThread.main(ActivityThread.java:7896)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:854)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.android.server.wm.ConfigurationContainer.inPinnedWindowingMode()' on a null object reference
	at android.os.Parcel.createExceptionOrNull(Parcel.java:3034)
	at android.os.Parcel.createException(Parcel.java:3012)
	at android.os.Parcel.readException(Parcel.java:2995)
	at android.os.Parcel.readException(Parcel.java:2937)
	at android.app.IActivityTaskManager$Stub$Proxy.startActivity(IActivityTaskManager.java:2070)
	at android.app.Instrumentation.execStartActivity(Instrumentation.java:1840)
	at android.app.ContextImpl.startActivity(ContextImpl.java:1101)
	at android.app.ContextImpl.startActivity(ContextImpl.java:1072)
	at android.content.ContextWrapper.startActivity(ContextWrapper.java:432)
	at android.content.ContextWrapper.startActivity(ContextWrapper.java:432)
	at com.termux.app.TermuxOpenReceiver.onReceive(TermuxOpenReceiver.java:186)
	at android.app.ActivityThread.handleReceiver(ActivityThread.java:4315)
	... 9 more
Caused by: android.os.RemoteException: Remote stack trace:
	at com.android.server.wm.ActivityStarter.isAllowedToStart(ActivityStarter.java:2066)
	at com.android.server.wm.ActivityStarter.startActivityInner(ActivityStarter.java:1872)
	at com.android.server.wm.ActivityStarter.startActivityUnchecked(ActivityStarter.java:1679)
	at com.android.server.wm.ActivityStarter.executeRequest(ActivityStarter.java:1232)
	at com.android.server.wm.ActivityStarter.execute(ActivityStarter.java:718)


Termux App Info

APP_NAME: Termux
PACKAGE_NAME: com.termux
VERSION_NAME: 0.118.0
VERSION_CODE: 118
UID: 10269
TARGET_SDK: 28
IS_DEBUGGABLE_BUILD: true
SE_PROCESS_CONTEXT: u:r:untrusted_app_27:s0:c13,c257,c512,c768
SE_FILE_CONTEXT: u:object_r:app_data_file:s0:c13,c257,c512,c768
SE_INFO: default:targetSdkVersion=28:complete
TERMUX_APP_PACKAGE_MANAGER: APT
TERMUX_APP_PACKAGE_VARIANT: APT_ANDROID_7
APK_RELEASE: GitHub
SIGNING_CERTIFICATE_SHA256_DIGEST: B6DA01480EEFD5FBF2CD3771B8D1021EC791304BDD6C4BF41D3FAABAD48EE5E1

Device Info

Software

OS_VERSION: 3.18.140-followmsi+
SDK_INT: 33
RELEASE: 13
ID: TQ2A.230405.003.E1
DISPLAY: TQ2A.230405.003.E1
INCREMENTAL: 1682526896
SECURITY_PATCH: 2023-04-05
IS_DEBUGGABLE: 0
IS_TREBLE_ENABLED: false
TYPE: user
TAGS: release-keys
MAX_PHANTOM_PROCESSES: - (Requires DUMP and PACKAGE_USAGE_STATS permission)
MONITOR_PHANTOM_PROCS: false
DEVICE_CONFIG_SYNC_DISABLED: -

Hardware

MANUFACTURER: Samsung
BRAND: samsung
MODEL: SM-T580
PRODUCT: lineage_gtaxlwifi
BOARD: universal7870
HARDWARE: samsungexynos7870
DEVICE: gtaxlwifi
SUPPORTED_ABIS: arm64-v8a, armeabi-v7a, armeabi

Steps to reproduce the behavior.

NODE_OPTIONS="--require ./android-as-linux.js" code-server

What is the expected behavior?

running without crashing while use code-server

System information

  • Termux Monet version: 0.118.0
  • Is Nightly or Stable?: stable
  • Android OS version: 13
  • Device model: SM-T580
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant