Closed RaWolFoX closed 1 year ago
Im using this build https://github.com/termux/termux-x11/actions/runs/5596238384
Also happening on previous few builds.
Im using this build https://github.com/termux/termux-x11/actions/runs/5596238384
Also happening on previous few builds.
try to reinstall
It is pretty much weird. Android app contains literally nothing. It has only some mechanism to pass Surface to X server via Binder and uses the same mechanism to obtain connection. After this it only sends events via obtained connection. Besides that termux-x11 uses only standard Android APIs.
I think I need to see system wide logcat log to identify a problem.
I do not see here exact moment when system crashes. Can you make logcat -c
before crashing it and stop collecting log right after crash?
I do not see here exact moment when system crashes. Can you make
logcat -c
before crashing it and stop collecting log right after crash?
installed recent build.now there is no problems. Maybe its my phone's fault?.
Maybe.
Maybe.
Hey.its happening when notification is enabled for termux-x11 app. Disabling notification for the app in android setting fixed the crashing. Maybe bug in notification?
Maybe. I'll check it out.
Maybe. I'll check it out.
Should I open a new issue for this?🤔
No.
Still its crashing. Btw not happening on another phone(android 13). Maybe android 11 issue?. My phone is running on android 11. Need log?. Its not showing notification.
It looks like I should connect directly to your device and check it myself.
It looks like I should connect directly to your device and check it myself.
Ok. Which remote desk app should i install?
I'll be ready in a few hours (after 9.30 PM GMT+2). It will be better to use discord (.twaik) or telegram.
I'll be ready in a few hours (after 9.30 PM GMT+2). It will be better to use discord (.twaik) or telegram.
Hey i think notification is broken after updating the icons. This is the build thats causing this crash .
This build's notification works fine without crash. Its the build before icon update.
Can you just check this.
Can you post text of an error? It should be available with TERMUX_X11_DEBUG=1
.
Can you post text of an error? It should be available with
TERMUX_X11_DEBUG=1
.
No, there is no exception. Maybe you can somehow get system-wide logcat
?
No, there is no exception. Maybe you can somehow get system-wide
logcat
?
I thinks its related to icons?. Maybe.
Every crash must be logged to logcat
.
Every crash must be logged to
logcat
.
I think its a android 11 thing because notification is showing fine on android 13. Android 11 is Crashing because of compatibility or something?
Sorry for my dumb questions😬
Every crash must be logged to
logcat
.
Hey, maybe its crashing because of 8000dp in app/src/main/res/drawable/ic_x11_icon.xml ?
Android recommended size for notification icons is 24x24 dp or 48x48 px. ???? 🤔.. Don't mind if its a foolish question 😁
I can not tell you the reason of crash without logcat.
I tried to get logcat immediately after crash👆
Need more log?
Ok, for some reason I did not see pinned logs on my phone.
I do not know why but I see no crashes of com.termux.x11
in the log.
Try the following:
logcat -c
in adb (to clear logs) and start logcat.Try the following:
- Start Termux:X11 app and prepare to reproduce the crash.
- Run
logcat -c
in adb (to clear logs) and start logcat.- Right after that reproduce the crash (preferably in the same second).
- Wait 2 secs after you see Termux:X11 crash.
- Stop collecting logcat and post it here.
Ok
Log posted👍🏻
The log is too long. Did you clear it the second before reproducing the crash? I see you did not.
The log is too long. Did you clear it the second before reproducing the crash? I see you did not.
Already cleared before taking
The first timestamp is 13:04:54.294
, the last is 13:05:55.844
. Logcat was running at least for a minute. I need to get logcat of the seconds of the crash. Not minutes.
Please come to discord.
W StatusBarIconView: Drawable is too large (16000x13000) StatusBarIcon(icon=Icon(typ=RESOURCE pkg=com.termux.x11 id=0x7f080094) visible user=0 )
ActivityManager: ANR in com.android.systemui
ActivityManager: Reason: Input dispatching timed out (92eee48 StatusBar (server) is not responding. Waited 5319ms for MotionEvent)
ActivityManager: Process com.android.systemui (pid 3212) has died: pers PER
W StatusBarIconView: Drawable is too large (16000x13000) StatusBarIcon(icon=Icon(typ=RESOURCE pkg=com.termux.x11 id=0x7f080094) visible user=0 ) ActivityManager: ANR in com.android.systemui ActivityManager: Reason: Input dispatching timed out (92eee48 StatusBar (server) is not responding. Waited 5319ms for MotionEvent) ActivityManager: Process com.android.systemui (pid 3212) has died: pers PER
Yes its the icon. Sometimes i need to force restart with power button + volume up for reviving my phone :-(. Maybe thats why log is too long 😐
So no more logs needed?
There are no values like 16000
or 13000
in the project. I have no idea why it is like that.
xhdpi @ 8000dp = 16000px??
16000 is in pixels. I think🤔
Ok. But how to fix this?
Ok. But how to fix this?
Ignore if its too complicated. We can use x11 without enabling notification 😬
Would have to read android docs to properly create icons. But even the highest xxxhdpi
needs to be 640dp
and you are using a bonkers 8000dp
value for an icon.
https://developer.android.com/training/multiscreen/screendensities#TaskProvideAltBmp
Ok, try the latest apk.
Ok, try the latest apk.
Fixed. Working fine😍👍🏻
Good.
When i open termux-x11, and try to open notification bar, android crashes. Then phone hang 5 secs and android lock screen appears. Its also happening without starting termux server. So problem is the termux-x11 app. I don't know which log will be helpful.