Closed Retia-Adolf closed 5 years ago
Hi, can you access internet at all in the emulator? apt works fine on my arm device but I guess there's many things that could cause problems here (android 5.1, android emulator in windows, the GFW, ..).
Could you please try reinstalling apt with something like:
curl -LO http://termux.net/dists/stable/main/binary-arm/apt_1.4.8-7_arm.deb
apt install ./apt_1.4.8-7_arm.deb
and post the output of apt update in debug mode:
apt -o Debug::Acquire::https=yes update
ptrace(PTRACE_SYSCALL,pid:13709,sig:0): Function not implemented
Unavailability of ptrace() is weird - means that debugging with gdb or strace is not possible. Interesting what else is not available.
Hi, can you access internet at all in the emulator?
@Grimler91 he can access the internet. With 2 repositories, apt is working:
$ cat ../usr/etc/apt/sources.list
# The main termux repository:
deb http://termux.net stable main
deb http://mirrors.tuna.tsinghua.edu.cn/termux stable main
$ apt update
Get:1 http://mirrors.tuna.tsinghua.edu.cn/termux stable InRelease [1720 B]
Hit:2 http://termux.net stable InRelease
Ign:3 http://mirrors.tuna.tsinghua.edu.cn/termux stable/main arm Packages
Ign:4 http://mirrors.tuna.tsinghua.edu.cn/termux stable/main all Packages
Get:3 http://mirrors.tuna.tsinghua.edu.cn/termux stable/main arm Packages [65.6 kB]
Get:4 http://mirrors.tuna.tsinghua.edu.cn/termux stable/main all Packages [5616 B]
Fetched 72.9 kB in 3s (20.0 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
$ apt list --upgradable
Listing... Done
cmake/stable,stable 3.13.2 arm [upgradable from: 3.8.1]
ndk-sysroot/stable,stable 18-8 arm [upgradable from: 14-1]
guess there's many things that could cause problems here (android 5.1, android emulator in windows, the GFW, ..).
Not many. On Android 5.1 apt should work fine, as no issues opened about it since v1.4.8-7 release (28-Nov-2018 00:37). Also I'm not encountering any errors on my devices with higher Android versions.
Likely, that error is specific to android emulator in windows
. Or just result of messing up with $PREFIX, if this error could not be reproduced and may be caused by something done before.
Steps to reproduce No sure if could be reproduced.. Anyway it might be caused by what I've done before,
@xeffyr
@Grimler91 he can access the internet. With 2 repositories, apt is working:
Yeah you're right. But only with http and not https.
But only with http and not https.
Problem with openssl library ?
@Retia-Adolf What output you get if you execute following command ?
/data/data/com.termux/files/usr/lib/apt/methods/https
Sorry for late.
@Grimler91 @xeffyr
Executing any of them doesn't output anything, and all gives return code 255 just like executing wget
:
$ curl -LO http://termux.net/dists/stable/main/binary-arm/apt_1.4.8-7_arm.deb
$ ls
busybox_1.29.3-1_i686.deb libassuan-dev_2.5.2_arm.deb libnpth_1.6_arm.deb
curl_7.63.0_arm.deb libassuan_2.5.2_arm.deb mbedtls_2.16.0_arm.deb
glib-bin_2.58.1_arm.deb libgcrypt_1.8.4_arm.deb mbedtls_2.16.0_i686.deb
glib_2.58.1_arm.deb libgnutls_3.5.19_i686.deb pinentry_1.1.0_arm.deb
gnupg_2.2.12_arm.deb libgpg-error_1.33_arm.deb strace.log
gnutls_3.5.19_i686.deb libksba_1.3.5-1_arm.deb strace_4.26_arm.deb
$
$ curl
$ echo $?
255
$
$ apt -o Debug::Acquire::https=yes update
Reading package lists... Done
E: Method https has died unexpectedly!
E: Sub-process https returned an error code (255)
E: Method /data/data/com.termux/files/usr/lib/apt/methods/https did not start correctly
E: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/termux/dists/stable/InRelease
E: Some index files failed to download. They have been ignored, or old ones used instead.
$
$ /data/data/com.termux/files/usr/lib/apt/methods/https
$ echo $?
255
P.S. None of those *_i686.deb
packages have been installed, I manually downloaded them just after the problem happen, then tried and got output like this:
$ dpkg -i libgnutls_3.5.19_i686.deb
dpkg: error processing archive libgnutls_3.5.19_i686.deb (--install):
package architecture (i686) does not match system (arm)
Errors were encountered while processing:
libgnutls_3.5.19_i686.deb
Likely, that error is specific to android emulator in windows.
I think it's very likely now..
I just updated several other apps few days ago, and one of them - aria2android
had been updated from (version code) 41 → 43 → 44
, after that its own binary aria2c
was lost and re-downloaded.
With re-downloaded one aria2
, it gets similar error downloading https linked file, while appears no problem when downloads the same file via http link.
@Retia-Adolf Okay. For the first look it seems that OpenSSL fails.
But the lines from your dpkg
example are quite suspicious:
dpkg: error processing archive libgnutls_3.5.19_i686.deb (--install):
package architecture (i686) does not match system (arm)
Why you are installing i686 package on ARM Termux installation ?
Oh, I had restored this Termux installation from a backup, to avoid long awaiting for downloading. I run Termux in an Android emulator, it's i686 but also compatible with apps using arm libs. When the problem first happened, I thought it maybe because of some libraries are too hard to be compatible with, so I tried installing i686 packages.
Run uname -a
from system's default bash, by using other app:
Linux localhost 4.0.9-android-x86 #1 SMP PREEMPT Thu Dec 20 19:02:15 CST 2018 i686 GNU/Linux
Linux localhost 4.0.9-android-x86 #1 SMP PREEMPT Thu Dec 20 19:02:15 CST 2018 armv7l Android
It seems that restore data contains binary from armv7l
makes Termux mistakenly treating architecture as armv7l
too.. I'll do a fresh install Termux and see if problem could be solve.
Edit: yes, It's all caused by my incorrect operation (restore data contains binaries from different architecture), and it's no problem now, sorry for disturbing.
Problem description
After
apt update
andapt upgrade
, I have encountered these problems:wget
with whatever arguments don't output anything, return code 255running
apt
with https source repo used failed:$ ps aux | grep apt 12496 u0_a60 0:00 apt update 12520 u0_a60 0:00 grep apt
$ cat ../usr/etc/apt/sources.list
The main termux repository:
deb https://mirrors.tuna.tsinghua.edu.cn/termux stable main $ apt update Reading package lists... Done E: Method https has died unexpectedly! E: Sub-process https returned an error code (255) E: Method /data/data/com.termux/files/usr/lib/apt/methods/https did not start correctly E: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/termux/dists/stable/InRelease E: Some index files failed to download. They have been ignored, or old ones used instead.
$ cat ../usr/etc/apt/sources.list
The main termux repository:
deb http://termux.net stable main deb http://mirrors.tuna.tsinghua.edu.cn/termux stable main $ apt update Get:1 http://mirrors.tuna.tsinghua.edu.cn/termux stable InRelease [1720 B] Hit:2 http://termux.net stable InRelease Ign:3 http://mirrors.tuna.tsinghua.edu.cn/termux stable/main arm Packages Ign:4 http://mirrors.tuna.tsinghua.edu.cn/termux stable/main all Packages Get:3 http://mirrors.tuna.tsinghua.edu.cn/termux stable/main arm Packages [65.6 kB] Get:4 http://mirrors.tuna.tsinghua.edu.cn/termux stable/main all Packages [5616 B] Fetched 72.9 kB in 3s (20.0 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done 2 packages can be upgraded. Run 'apt list --upgradable' to see them. $ apt list --upgradable Listing... Done cmake/stable,stable 3.13.2 arm [upgradable from: 3.8.1] ndk-sysroot/stable,stable 18-8 arm [upgradable from: 14-1]
Steps to reproduce
No sure if could be reproduced.. Anyway it might be caused by what I've done before, so I list what happens before I did
apt update
andapt upgrade
, problems had encountered and dealt with them:Expected behavior
wget
could be run with no problem, or at least output somethingbusybox wget
seems normal:BusyBox v1.29.3 (2018-11-28 01:36:15 UTC) multi-call binary.
Usage: wget [-cq] [-O FILE] [-Y on/off] [-P DIR] [-S] [-U AGENT] [-T SEC] URL...
Retrieve files via HTTP or FTP
apt update
should be no problem with https repoAdditional information
run in a Android emulator on Windows 10, 1803 (64bits)
Depending on problem, additional information may be requested:
1. Android warning/error log:
logcat -d "*:W"
.executed `logcat -d "*:W"` in termux
``` $ logcat -d "*:W" --------- beginning of main E/EGL_adreno( 2177): tid 2198: eglSurfaceAttrib(1266): error 0x3009 (EGL_BAD_MATCH) W/OpenGLRenderer( 2177): Failed to set EGL_SWAP_BEHAVIOR on surface 0xadc35900, error=EGL_BAD_MATCH W/IInputConnectionWrapper( 2177): showStatusIcon on inactive InputConnection E/EGL_adreno( 2177): tid 2198: eglSurfaceAttrib(1266): error 0x3009 (EGL_BAD_MATCH) W/OpenGLRenderer( 2177): Failed to set EGL_SWAP_BEHAVIOR on surface 0xadc35900, error=EGL_BAD_MATCH W/System.err( 2177): java.lang.Exception: denglibo Toast callstack! strTip=Clipboard: W/System.err( 2177): "$ apt update W/System.err( 2177): Reading package lists... Done W/System.err( 2177): E: Method https has died unexpectedly! W/System.err( 2177): E: Sub-process https returned an error code (255) W/System.err( 2177): E: Method /data/data/com.termux/files/usr/lib/apt/methods/https did not start correctly W/System.err( 2177): E: Failed to fetch https://termux.net/dists/stable/InRelease W/System.err( 2177): E: Some index files failed to download. They have been ignored, or old ones used instead." W/System.err( 2177): at android.widget.Toast.show(Toast.java:127) W/System.err( 2177): at com.termux.app.TermuxActivity.a(Unknown Source) W/System.err( 2177): at com.termux.app.TermuxActivity$16.a(Unknown Source) W/System.err( 2177): at com.termux.app.TermuxService.a(Unknown Source) W/System.err( 2177): at com.termux.terminal.i.b(Unknown Source) W/System.err( 2177): at com.termux.view.TerminalView$3.onActionItemClicked(Unknown Source) W/System.err( 2177): at com.android.internal.policy.impl.PhoneWindow$DecorView$ActionModeCallbackWrapper.onActionItemClicked(PhoneWindow.java:3288) W/System.err( 2177): at com.android.internal.view.StandaloneActionMode.onMenuItemSelected(StandaloneActionMode.java:134) W/System.err( 2177): at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:761) W/System.err( 2177): at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152) W/System.err( 2177): at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:904) W/System.err( 2177): at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:894) W/System.err( 2177): at android.widget.ActionMenuView.invokeItem(ActionMenuView.java:587) W/System.err( 2177): at com.android.internal.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:141) W/System.err( 2177): at android.view.View.performClick(View.java:4780) W/System.err( 2177): at android.view.View$PerformClick.run(View.java:19866) W/System.err( 2177): at android.os.Handler.handleCallback(Handler.java:739) W/System.err( 2177): at android.os.Handler.dispatchMessage(Handler.java:95) W/System.err( 2177): at android.os.Looper.loop(Looper.java:135) W/System.err( 2177): at android.app.ActivityThread.main(ActivityThread.java:5254) W/System.err( 2177): at java.lang.reflect.Method.invoke(Native Method) W/System.err( 2177): at java.lang.reflect.Method.invoke(Method.java:372) W/System.err( 2177): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) W/System.err( 2177): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) E/EGL_adreno( 2177): tid 2198: eglSurfaceAttrib(1266): error 0x3009 (EGL_BAD_MATCH) W/OpenGLRenderer( 2177): Failed to set EGL_SWAP_BEHAVIOR on surface 0xa26ae700, error=EGL_BAD_MATCH W/System.err( 2177): java.lang.Exception: denglibo Toast callstack! strTip=Clipboard: W/System.err( 2177): "$ cat ../usr/etc/apt/sources.list W/System.err( 2177): # The main termux repository: W/System.err( 2177): deb https://termux.net stable main" W/System.err( 2177): at android.widget.Toast.show(Toast.java:127) W/System.err( 2177): at com.termux.app.TermuxActivity.a(Unknown Source) W/System.err( 2177): at com.termux.app.TermuxActivity$16.a(Unknown Source) W/System.err( 2177): at com.termux.app.TermuxService.a(Unknown Source) W/System.err( 2177): at com.termux.terminal.i.b(Unknown Source) W/System.err( 2177): at com.termux.view.TerminalView$3.onActionItemClicked(Unknown Source) W/System.err( 2177): at com.android.internal.policy.impl.PhoneWindow$DecorView$ActionModeCallbackWrapper.onActionItemClicked(PhoneWindow.java:3288) W/System.err( 2177): at com.android.internal.view.StandaloneActionMode.onMenuItemSelected(StandaloneActionMode.java:134) W/System.err( 2177): at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:761) W/System.err( 2177): at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152) W/System.err( 2177): at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:904) W/System.err( 2177): at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:894) W/System.err( 2177): at android.widget.ActionMenuView.invokeItem(ActionMenuView.java:587) W/System.err( 2177): at com.android.internal.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:141) W/System.err( 2177): at android.view.View.performClick(View.java:4780) W/System.err( 2177): at android.view.View$PerformClick.run(View.java:19866) W/System.err( 2177): at android.os.Handler.handleCallback(Handler.java:739) W/System.err( 2177): at android.os.Handler.dispatchMessage(Handler.java:95) W/System.err( 2177): at android.os.Looper.loop(Looper.java:135) W/System.err( 2177): at android.app.ActivityThread.main(ActivityThread.java:5254) W/System.err( 2177): at java.lang.reflect.Method.invoke(Native Method) W/System.err( 2177): at java.lang.reflect.Method.invoke(Method.java:372) W/System.err( 2177): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) W/System.err( 2177): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) E/EGL_adreno( 2177): tid 2198: eglSurfaceAttrib(1266): error 0x3009 (EGL_BAD_MATCH) W/OpenGLRenderer( 2177): Failed to set EGL_SWAP_BEHAVIOR on surface 0xa2636c20, error=EGL_BAD_MATCH W/System.err( 2177): java.lang.Exception: denglibo Toast callstack! strTip=Clipboard: W/System.err( 2177): "$ cat ../usr/etc/apt/sources.list W/System.err( 2177): # The main termux repository: W/System.err( 2177): deb https://termux.net stable main W/System.err( 2177): deb https://mirrors.tuna.tsinghua.edu.cn/termux stable main" W/System.err( 2177): at android.widget.Toast.show(Toast.java:127) W/System.err( 2177): at com.termux.app.TermuxActivity.a(Unknown Source) W/System.err( 2177): at com.termux.app.TermuxActivity$16.a(Unknown Source) W/System.err( 2177): at com.termux.app.TermuxService.a(Unknown Source) W/System.err( 2177): at com.termux.terminal.i.b(Unknown Source) W/System.err( 2177): at com.termux.view.TerminalView$3.onActionItemClicked(Unknown Source) W/System.err( 2177): at com.android.internal.policy.impl.PhoneWindow$DecorView$ActionModeCallbackWrapper.onActionItemClicked(PhoneWindow.java:3288) W/System.err( 2177): at com.android.internal.view.StandaloneActionMode.onMenuItemSelected(StandaloneActionMode.java:134) W/System.err( 2177): at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:761) W/System.err( 2177): at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152) W/System.err( 2177): at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:904) W/System.err( 2177): at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:894) W/System.err( 2177): at android.widget.ActionMenuView.invokeItem(ActionMenuView.java:587) W/System.err( 2177): at com.android.internal.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:141) W/System.err( 2177): at android.view.View.performClick(View.java:4780) W/System.err( 2177): at android.view.View$PerformClick.run(View.java:19866) W/System.err( 2177): at android.os.Handler.handleCallback(Handler.java:739) W/System.err( 2177): at android.os.Handler.dispatchMessage(Handler.java:95) W/System.err( 2177): at android.os.Looper.loop(Looper.java:135) W/System.err( 2177): at android.app.ActivityThread.main(ActivityThread.java:5254) W/System.err( 2177): at java.lang.reflect.Method.invoke(Native Method) W/System.err( 2177): at java.lang.reflect.Method.invoke(Method.java:372) W/System.err( 2177): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) W/System.err( 2177): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) E/EGL_adreno( 2177): tid 2198: eglSurfaceAttrib(1266): error 0x3009 (EGL_BAD_MATCH) W/OpenGLRenderer( 2177): Failed to set EGL_SWAP_BEHAVIOR on surface 0xa2636c20, error=EGL_BAD_MATCH W/System.err( 2177): java.lang.Exception: denglibo Toast callstack! strTip=Clipboard: W/System.err( 2177): "$ cat ../usr/etc/apt/sources.list W/System.err( 2177): # The main termux repository: W/System.err( 2177): deb https://termux.net stable main W/System.err( 2177): deb https://mirrors.tuna.tsinghua.edu.cn/termux stable main" W/System.err( 2177): at android.widget.Toast.show(Toast.java:127) W/System.err( 2177): at com.termux.app.TermuxActivity.a(Unknown Source) W/System.err( 2177): at com.termux.app.TermuxActivity$16.a(Unknown Source) W/System.err( 2177): at com.termux.app.TermuxService.a(Unknown Source) W/System.err( 2177): at com.termux.terminal.i.b(Unknown Source) W/System.err( 2177): at com.termux.view.TerminalView$3.onActionItemClicked(Unknown Source) W/System.err( 2177): at com.android.internal.policy.impl.PhoneWindow$DecorView$ActionModeCallbackWrapper.onActionItemClicked(PhoneWindow.java:3288) W/System.err( 2177): at com.android.internal.view.StandaloneActionMode.onMenuItemSelected(StandaloneActionMode.java:134) W/System.err( 2177): at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:761) W/System.err( 2177): at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152) W/System.err( 2177): at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:904) W/System.err( 2177): at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:894) W/System.err( 2177): at android.widget.ActionMenuView.invokeItem(ActionMenuView.java:587) W/System.err( 2177): at com.android.internal.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:141) W/System.err( 2177): at android.view.View.performClick(View.java:4780) W/System.err( 2177): at android.view.View$PerformClick.run(View.java:19866) W/System.err( 2177): at android.os.Handler.handleCallback(Handler.java:739) W/System.err( 2177): at android.os.Handler.dispatchMessage(Handler.java:95) W/System.err( 2177): at android.os.Looper.loop(Looper.java:135) W/System.err( 2177): at android.app.ActivityThread.main(ActivityThread.java:5254) W/System.err( 2177): at java.lang.reflect.Method.invoke(Native Method) W/System.err( 2177): at java.lang.reflect.Method.invoke(Method.java:372) W/System.err( 2177): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) W/System.err( 2177): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) E/EGL_adreno( 2177): tid 2198: eglSurfaceAttrib(1266): error 0x3009 (EGL_BAD_MATCH) W/OpenGLRenderer( 2177): Failed to set EGL_SWAP_BEHAVIOR on surface 0xa2665160, error=EGL_BAD_MATCH W/System.err( 2177): java.lang.Exception: denglibo Toast callstack! strTip=Clipboard: W/System.err( 2177): "$ apt update W/System.err( 2177): 0% [Working]" W/System.err( 2177): at android.widget.Toast.show(Toast.java:127) W/System.err( 2177): at com.termux.app.TermuxActivity.a(Unknown Source) W/System.err( 2177): at com.termux.app.TermuxActivity$16.a(Unknown Source) W/System.err( 2177): at com.termux.app.TermuxService.a(Unknown Source) W/System.err( 2177): at com.termux.terminal.i.b(Unknown Source) W/System.err( 2177): at com.termux.view.TerminalView$3.onActionItemClicked(Unknown Source) W/System.err( 2177): at com.android.internal.policy.impl.PhoneWindow$DecorView$ActionModeCallbackWrapper.onActionItemClicked(PhoneWindow.java:3288) W/System.err( 2177): at com.android.internal.view.StandaloneActionMode.onMenuItemSelected(StandaloneActionMode.java:134) W/System.err( 2177): at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:761) W/System.err( 2177): at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152) W/System.err( 2177): at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:904) W/System.err( 2177): at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:894) W/System.err( 2177): at android.widget.ActionMenuView.invokeItem(ActionMenuView.java:587) W/System.err( 2177): at com.android.internal.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:141) W/System.err( 2177): at android.view.View.performClick(View.java:4780) W/System.err( 2177): at android.view.View$PerformClick.run(View.java:19866) W/System.err( 2177): at android.os.Handler.handleCallback(Handler.java:739) W/System.err( 2177): at android.os.Handler.dispatchMessage(Handler.java:95) W/System.err( 2177): at android.os.Looper.loop(Looper.java:135) W/System.err( 2177): at android.app.ActivityThread.main(ActivityThread.java:5254) W/System.err( 2177): at java.lang.reflect.Method.invoke(Native Method) W/System.err( 2177): at java.lang.reflect.Method.invoke(Method.java:372) W/System.err( 2177): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) W/System.err( 2177): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) E/EGL_adreno( 2177): tid 2198: eglSurfaceAttrib(1266): error 0x3009 (EGL_BAD_MATCH) W/OpenGLRenderer( 2177): Failed to set EGL_SWAP_BEHAVIOR on surface 0xa2665140, error=EGL_BAD_MATCH E/EGL_adreno( 2177): tid 2198: eglSurfaceAttrib(1266): error 0x3009 (EGL_BAD_MATCH) W/OpenGLRenderer( 2177): Failed to set EGL_SWAP_BEHAVIOR on surface 0xa2665140, error=EGL_BAD_MATCH W/System.err( 2177): java.lang.Exception: denglibo Toast callstack! strTip=[2] W/System.err( 2177): at android.widget.Toast.show(Toast.java:127) W/System.err( 2177): at com.termux.app.TermuxActivity.a(Unknown Source) W/System.err( 2177): at com.termux.app.TermuxActivity.g(Unknown Source) W/System.err( 2177): at com.termux.app.TermuxActivity.b(Unknown Source) W/System.err( 2177): at com.termux.app.TermuxActivity.a(Unknown Source) W/System.err( 2177): at com.termux.app.TermuxActivity$12.onClick(Unknown Source) W/System.err( 2177): at android.view.View.performClick(View.java:4780) W/System.err( 2177): at android.view.View$PerformClick.run(View.java:19866) W/System.err( 2177): at android.os.Handler.handleCallback(Handler.java:739) W/System.err( 2177): at android.os.Handler.dispatchMessage(Handler.java:95) W/System.err( 2177): at android.os.Looper.loop(Looper.java:135) W/System.err( 2177): at android.app.ActivityThread.main(ActivityThread.java:5254) W/System.err( 2177): at java.lang.reflect.Method.invoke(Native Method) W/System.err( 2177): at java.lang.reflect.Method.invoke(Method.java:372) W/System.err( 2177): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) W/System.err( 2177): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) E/EGL_adreno( 2177): tid 2198: eglSurfaceAttrib(1266): error 0x3009 (EGL_BAD_MATCH) W/OpenGLRenderer( 2177): Failed to set EGL_SWAP_BEHAVIOR on surface 0xa2665160, error=EGL_BAD_MATCH W/System.err( 2177): java.lang.Exception: denglibo Toast callstack! strTip=Clipboard: W/System.err( 2177): "ps aux | grep apt W/System.err( 2177): 12496 u0_a60 0:00 apt update W/System.err( 2177): 12520 u0_a60 0:00 grep apt W/System.err( 2177): $" W/System.err( 2177): at android.widget.Toast.show(Toast.java:127) W/System.err( 2177): at com.termux.app.TermuxActivity.a(Unknown Source) W/System.err( 2177): at com.termux.app.TermuxActivity$16.a(Unknown Source) W/System.err( 2177): at com.termux.app.TermuxService.a(Unknown Source) W/System.err( 2177): at com.termux.terminal.i.b(Unknown Source) W/System.err( 2177): at com.termux.view.TerminalView$3.onActionItemClicked(Unknown Source) W/System.err( 2177): at com.android.internal.policy.impl.PhoneWindow$DecorView$ActionModeCallbackWrapper.onActionItemClicked(PhoneWindow.java:3288) W/System.err( 2177): at com.android.internal.view.StandaloneActionMode.onMenuItemSelected(StandaloneActionMode.java:134) W/System.err( 2177): at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:761) W/System.err( 2177): at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152) W/System.err( 2177): at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:904) W/System.err( 2177): at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:894) W/System.err( 2177): at android.widget.ActionMenuView.invokeItem(ActionMenuView.java:587) W/System.err( 2177): at com.android.internal.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:141) W/System.err( 2177): at android.view.View.performClick(View.java:4780) W/System.err( 2177): at android.view.View$PerformClick.run(View.java:19866) W/System.err( 2177): at android.os.Handler.handleCallback(Handler.java:739) W/System.err( 2177): at android.os.Handler.dispatchMessage(Handler.java:95) W/System.err( 2177): at android.os.Looper.loop(Looper.java:135) W/System.err( 2177): at android.app.ActivityThread.main(ActivityThread.java:5254) W/System.err( 2177): at java.lang.reflect.Method.invoke(Native Method) W/System.err( 2177): at java.lang.reflect.Method.invoke(Method.java:372) W/System.err( 2177): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) W/System.err( 2177): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) E/EGL_adreno( 2177): tid 2198: eglSurfaceAttrib(1266): error 0x3009 (EGL_BAD_MATCH) W/OpenGLRenderer( 2177): Failed to set EGL_SWAP_BEHAVIOR on surface 0xa2665160, error=EGL_BAD_MATCH E/EGL_adreno( 2177): tid 2198: eglSurfaceAttrib(1266): error 0x3009 (EGL_BAD_MATCH) W/OpenGLRenderer( 2177): Failed to set EGL_SWAP_BEHAVIOR on surface 0xa2665160, error=EGL_BAD_MATCH W/System.err( 2177): java.lang.Exception: denglibo Toast callstack! strTip=[1] W/System.err( 2177): at android.widget.Toast.show(Toast.java:127) W/System.err( 2177): at com.termux.app.TermuxActivity.a(Unknown Source) W/System.err( 2177): at com.termux.app.TermuxActivity.g(Unknown Source) W/System.err( 2177): at com.termux.app.TermuxActivity.b(Unknown Source) W/System.err( 2177): at com.termux.app.TermuxActivity$2.onItemClick(Unknown Source) W/System.err( 2177): at android.widget.AdapterView.performItemClick(AdapterView.java:305) W/System.err( 2177): at android.widget.AbsListView.performItemClick(AbsListView.java:1146) W/System.err( 2177): at android.widget.AbsListView$PerformClick.run(AbsListView.java:3053) W/System.err( 2177): at android.widget.AbsListView$3.run(AbsListView.java:3860) W/System.err( 2177): at android.os.Handler.handleCallback(Handler.java:739) W/System.err( 2177): at android.os.Handler.dispatchMessage(Handler.java:95) W/System.err( 2177): at android.os.Looper.loop(Looper.java:135) W/System.err( 2177): at android.app.ActivityThread.main(ActivityThread.java:5254) W/System.err( 2177): at java.lang.reflect.Method.invoke(Native Method) W/System.err( 2177): at java.lang.reflect.Method.invoke(Method.java:372) W/System.err( 2177): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) W/System.err( 2177): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) E/EGL_adreno( 2177): tid 2198: eglSurfaceAttrib(1266): error 0x3009 (EGL_BAD_MATCH) W/OpenGLRenderer( 2177): Failed to set EGL_SWAP_BEHAVIOR on surface 0xa2665820, error=EGL_BAD_MATCH E/ViewDragHelper( 2177): Ignoring pointerId=0 because ACTION_DOWN was not received for this pointer before ACTION_MOVE. It likely happened because ViewDragHelper did not receive all the events in the event stream. (... multiple times, omitted) E/ViewDragHelper( 2177): Ignoring pointerId=0 because ACTION_DOWN was not received for this pointer before ACTION_MOVE. It likely happened because ViewDragHelper did not receive all the events in the event stream. W/System.err( 2177): java.lang.Exception: denglibo Toast callstack! strTip=Clipboard: W/System.err( 2177): "$ apt update W/System.err( 2177): Get:1 http://mirrors.tuna.tsinghua.edu.cn/termux stable InRelease [1720 B] W/System.err( 2177): Hit:2 http://termux.net stable InRelease W/System.err( 2177): Ign:3 http://mirrors.tuna.tsinghua.edu.cn/termux stable/main arm Packages W/System.err( 2177): Ign:4 http://mirrors.tuna.tsinghua.edu.cn/termux stable/main all Packages W/System.err( 2177): Get:3 http://mirrors.tuna.tsinghua.edu.cn/termux stable/main arm Packages [65.6 kB] W/System.err( 2177): Get:4 http://mirrors.tuna.tsinghua.edu.cn/termux stable/main all Packages [5616 B] W/System.err( 2177): Fetched 72.9 kB in 3s (20.0 kB/s) W/System.err( 2177): Reading package lists... Done W/System.err( 2177): Building dependency tree W/System.err( 2177): Reading state information... Done W/System.err( 2177): 2 packages can be upgraded. Run 'apt list --upgradable' to see them. W/System.err( 2177): $ apt list --upgradable W/System.err( 2177): Listing... Done W/System.err( 2177): cmake/stable,stable 3.13.2 arm [upgradable from: 3.8.1] W/System.err( 2177): ndk-sysroot/stable,stable 18-8 arm [upgradable from: 14-1]" W/System.err( 2177): at android.widget.Toast.show(Toast.java:127) W/System.err( 2177): at com.termux.app.TermuxActivity.a(Unknown Source) W/System.err( 2177): at com.termux.app.TermuxActivity$16.a(Unknown Source) W/System.err( 2177): at com.termux.app.TermuxService.a(Unknown Source) W/System.err( 2177): at com.termux.terminal.i.b(Unknown Source) W/System.err( 2177): at com.termux.view.TerminalView$3.onActionItemClicked(Unknown Source) W/System.err( 2177): at com.android.internal.policy.impl.PhoneWindow$DecorView$ActionModeCallbackWrapper.onActionItemClicked(PhoneWindow.java:3288) W/System.err( 2177): at com.android.internal.view.StandaloneActionMode.onMenuItemSelected(StandaloneActionMode.java:134) W/System.err( 2177): at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:761) W/System.err( 2177): at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152) W/System.err( 2177): at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:904) W/System.err( 2177): at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:894) W/System.err( 2177): at android.widget.ActionMenuView.invokeItem(ActionMenuView.java:587) W/System.err( 2177): at com.android.internal.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:141) W/System.err( 2177): at android.view.View.performClick(View.java:4780) W/System.err( 2177): at android.view.View$PerformClick.run(View.java:19866) W/System.err( 2177): at android.os.Handler.handleCallback(Handler.java:739) W/System.err( 2177): at android.os.Handler.dispatchMessage(Handler.java:95) W/System.err( 2177): at android.os.Looper.loop(Looper.java:135) W/System.err( 2177): at android.app.ActivityThread.main(ActivityThread.java:5254) W/System.err( 2177): at java.lang.reflect.Method.invoke(Native Method) W/System.err( 2177): at java.lang.reflect.Method.invoke(Method.java:372) W/System.err( 2177): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) W/System.err( 2177): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) E/EGL_adreno( 2177): tid 2198: eglSurfaceAttrib(1266): error 0x3009 (EGL_BAD_MATCH) W/OpenGLRenderer( 2177): Failed to set EGL_SWAP_BEHAVIOR on surface 0xa26ae820, error=EGL_BAD_MATCH W/System.err( 2177): java.lang.Exception: denglibo Toast callstack! strTip=Clipboard: W/System.err( 2177): "$ apt update W/System.err( 2177): Reading package lists... Done W/System.err( 2177): E: Method https has died unexpectedly! W/System.err( 2177): E: Sub-process https returned an error code (255) W/System.err( 2177): E: Method /data/data/com.termux/files/usr/lib/apt/methods/https did not start correctly W/System.err( 2177): E: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/termux/dists/stable/InRelease W/System.err( 2177): E: Some index files failed to download. They have been ignored, or old ones used instead." W/System.err( 2177): at android.widget.Toast.show(Toast.java:127) W/System.err( 2177): at com.termux.app.TermuxActivity.a(Unknown Source) W/System.err( 2177): at com.termux.app.TermuxActivity$16.a(Unknown Source) W/System.err( 2177): at com.termux.app.TermuxService.a(Unknown Source) W/System.err( 2177): at com.termux.terminal.i.b(Unknown Source) W/System.err( 2177): at com.termux.view.TerminalView$3.onActionItemClicked(Unknown Source) W/System.err( 2177): at com.android.internal.policy.impl.PhoneWindow$DecorView$ActionModeCallbackWrapper.onActionItemClicked(PhoneWindow.java:3288) W/System.err( 2177): at com.android.internal.view.StandaloneActionMode.onMenuItemSelected(StandaloneActionMode.java:134) W/System.err( 2177): at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:761) W/System.err( 2177): at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152) W/System.err( 2177): at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:904) W/System.err( 2177): at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:894) W/System.err( 2177): at android.widget.ActionMenuView.invokeItem(ActionMenuView.java:587) W/System.err( 2177): at com.android.internal.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:141) W/System.err( 2177): at android.view.View.performClick(View.java:4780) W/System.err( 2177): at android.view.View$PerformClick.run(View.java:19866) W/System.err( 2177): at android.os.Handler.handleCallback(Handler.java:739) W/System.err( 2177): at android.os.Handler.dispatchMessage(Handler.java:95) W/System.err( 2177): at android.os.Looper.loop(Looper.java:135) W/System.err( 2177): at android.app.ActivityThread.main(ActivityThread.java:5254) W/System.err( 2177): at java.lang.reflect.Method.invoke(Native Method) W/System.err( 2177): at java.lang.reflect.Method.invoke(Method.java:372) W/System.err( 2177): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) W/System.err( 2177): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) E/EGL_adreno( 2177): tid 2198: eglSurfaceAttrib(1266): error 0x3009 (EGL_BAD_MATCH) W/OpenGLRenderer( 2177): Failed to set EGL_SWAP_BEHAVIOR on surface 0xa26352a0, error=EGL_BAD_MATCH ```2. Output of strace:
strace -fv -s 2048 -o strace.log {program name}
.run strace outputs error:
3. If program write it's own log files, you may need to attach them.