termux / termux-app

Termux - a terminal emulator application for Android OS extendible by variety of packages.
https://f-droid.org/en/packages/com.termux
Other
36.33k stars 3.82k forks source link

[Bug]: Termux crashes on font replacement. #3473

Closed Anonymous2716 closed 1 year ago

Anonymous2716 commented 1 year ago

Problem description

I was trying out this program:

https://github.com/notflawffles/termux-nerd-installer

https://github.com/NotFlawffles/termux-nerd-installer/blob/2dd1dbb56b24be7fd4e1003d46d74e01734fef9b/src/fontinstaller.c#L207

On setting font with ./termux-nerd-installer set <fontname> termux crashes. Doesn't show any notifications with crashlog.

I remember this happening when i installed https://github.com/romkatv/powerlevel10k in oh-my-zsh right when new fomt is set.

Termux doesn't crash when its on background and changed the font. But when it comes on foreground the app crashes. I checked this by delaying the operation with sleep command before it.

Here is the stacktrace I got from `logcat -d` ``` 06-20 06:50:23.451 21575 21575 E DrmMtkUtil/SecureTimer: open proc/uptime failed: [Permission denied]. 06-20 06:50:23.759 21585 21585 E com.termux.api: Not starting debugger since process cannot load the jdwp agent. 06-20 06:50:23.768 21585 21585 W re-initialized>: type=1400 audit(0.0:4067): avc: denied { read } for name="u:object_r:mtk_amslog_prop:s0" dev="tmpfs" ino=132 scontext=u:r:untrusted_app:s0:c113,c257,c512,c768 tcontext=u:object_r:mtk_amslog_prop:s0 tclass=file permissive=0 06-20 06:50:23.770 21585 21585 E libc : Access denied finding property "persist.vendor.sys.activitylog" 06-20 06:50:34.446 21634 21634 E DrmMtkUtil/SecureTimer: open proc/uptime failed: [Permission denied]. 06-20 06:50:34.746 21585 21585 I SurfaceFactory: [static] sSurfaceFactory = com.mediatek.view.impl.SurfaceFactoryImpl@ca1d7fa 06-20 06:50:34.853 21585 21650 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0 06-20 06:50:34.854 21585 21650 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0 06-20 06:50:34.854 21585 21650 I OpenGLRenderer: Initialized EGL, version 1.4 06-20 06:50:34.901 21585 21650 E ion : ioctl c0044901 failed with code -1: Invalid argument 06-20 06:50:36.749 21585 21650 W libEGL : EGLNativeWindowType 0x76d93fc010 disconnect failed 06-20 06:50:45.916 21724 21724 E DrmMtkUtil/SecureTimer: open proc/uptime failed: [Permission denied]. 06-20 06:50:52.026 21224 21224 F libc : Fatal signal 7 (SIGBUS), code 2 (BUS_ADRERR), fault addr 0x76b294e000 in tid 21224 (com.termux), pid 21224 (com.termux) 06-20 06:50:52.128 21773 21773 I crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstone 06-20 06:50:52.141 21773 21773 I crash_dump64: performing dump of process 21224 (target tid = 21224) 06-20 06:50:52.163 21773 21773 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 06-20 06:50:52.164 21773 21773 F DEBUG : Build fingerprint: '"Inentinally removed' 06-20 06:50:52.164 21773 21773 F DEBUG : Revision: '0' 06-20 06:50:52.164 21773 21773 F DEBUG : ABI: 'arm64' 06-20 06:50:52.164 21773 21773 F DEBUG : pid: 21224, tid: 21224, name: com.termux >>> com.termux <<< 06-20 06:50:52.165 21773 21773 F DEBUG : signal 7 (SIGBUS), code 2 (BUS_ADRERR), fault addr 0x76b294e000 06-20 06:50:52.165 21773 21773 F DEBUG : x0 00000076b294e000 x1 0000000000000000 x2 00000076b1c6f2e0 x3 00000076e16d9a30 06-20 06:50:52.165 21773 21773 F DEBUG : x4 00000076e16d9a40 x5 0000000000000004 x6 0000007fca0404b8 x7 0000000000000000 06-20 06:50:52.165 21773 21773 F DEBUG : x8 0000007764e91e50 x9 0000000000000000 x10 00000076b294e000 x11 0000000000000004 06-20 06:50:52.165 21773 21773 F DEBUG : x12 00000000ffffffff x13 000000000000d800 x14 000000000000dc00 x15 00000000ffffdfd6 06-20 06:50:52.165 21773 21773 F DEBUG : x16 0000007764eb4d20 x17 0000007764e4bf60 x18 000000000000feff x19 00000076b1c6f2e0 06-20 06:50:52.165 21773 21773 F DEBUG : x20 0000000043424454 x21 00000076b1ca0fc0 x22 0000000000000000 x23 0000007762b7fc58 06-20 06:50:52.165 21773 21773 F DEBUG : x24 00000076d78c4d80 x25 0000000000000018 x26 0000007fca0404b8 x27 0000007762b7f000 06-20 06:50:52.165 21773 21773 F DEBUG : x28 00000076b1cfb900 x29 0000007fca03fe10 06-20 06:50:52.165 21773 21773 F DEBUG : sp 0000007fca03fdf0 lr 0000007764e52bfc pc 0000007764e52c0c 06-20 06:50:52.343 21773 21773 F DEBUG : 06-20 06:50:52.343 21773 21773 F DEBUG : backtrace: 06-20 06:50:52.343 21773 21773 F DEBUG : #00 pc 000000000000dc0c /system/lib64/libharfbuzz_ng.so (_hb_face_for_data_reference_table(hb_face_t*, unsigned int, void*)+68) 06-20 06:50:52.343 21773 21773 F DEBUG : #01 pc 000000000000df84 /system/lib64/libharfbuzz_ng.so (hb_face_reference_table+20) 06-20 06:50:52.343 21773 21773 F DEBUG : #02 pc 0000000000016694 /system/lib64/libminikin.so (minikin::Layout::doLayoutRun(unsigned short const*, unsigned long, unsigned long, unsigned long, bool, minikin::MinikinPaint const&, minikin::StartHyphenEdit, minikin::EndHyphenEdit)+1188) 06-20 06:50:52.343 21773 21773 F DEBUG : #03 pc 00000000000142d4 /system/lib64/libminikin.so (minikin::LayoutCacheKey::doLayout(minikin::Layout*, minikin::MinikinPaint const&) const+204) 06-20 06:50:52.343 21773 21773 F DEBUG : #04 pc 0000000000014048 /system/lib64/libminikin.so (void minikin::LayoutCache::getOrCreate(minikin::U16StringPiece const&, minikin::Range const&, minikin::MinikinPaint const&, bool, minikin::StartHyphenEdit, minikin::EndHyphenEdit, minikin::LayoutAppendFunctor&)+480) 06-20 06:50:52.343 21773 21773 F DEBUG : #05 pc 0000000000013b24 /system/lib64/libminikin.so (minikin::Layout::doLayoutWord(unsigned short const*, unsigned long, unsigned long, unsigned long, bool, minikin::MinikinPaint const&, unsigned long, minikin::StartHyphenEdit, minikin::EndHyphenEdit, minikin::LayoutPieces const*, minikin::Layout*, float*, minikin::MinikinExtent*, minikin::MinikinRect*, minikin::LayoutPieces*) [clone .cfi]+364) 06-20 06:50:52.343 21773 21773 F DEBUG : #06 pc 000000000001389c /system/lib64/libminikin.so (minikin::Layout::doLayoutRunCached(minikin::U16StringPiece const&, minikin::Range const&, bool, minikin::MinikinPaint const&, unsigned long, minikin::StartHyphenEdit, minikin::EndHyphenEdit, minikin::LayoutPieces const*, minikin::Layout*, float*, minikin::MinikinExtent*, minikin::MinikinRect*, minikin::LayoutPieces*) [clone .cfi]+364) 06-20 06:50:52.343 21773 21773 F DEBUG : #07 pc 00000000000133cc /system/lib64/libminikin.so (minikin::Layout::doLayout(minikin::U16StringPiece const&, minikin::Range const&, minikin::Bidi, minikin::MinikinPaint const&, minikin::StartHyphenEdit, minikin::EndHyphenEdit)+324) 06-20 06:50:52.343 21773 21773 F DEBUG : #08 pc 00000000005d013c /system/lib64/libhwui.so (android::MinikinUtils::doLayout(android::Paint const*, minikin::Bidi, android::Typeface const*, unsigned short const*, unsigned long, unsigned long, unsigned long, minikin::MeasuredText*)+156) 06-20 06:50:52.343 21773 21773 F DEBUG : #09 pc 00000000005cf618 /system/lib64/libhwui.so (android::Canvas::drawText(unsigned short const*, int, int, int, float, float, minikin::Bidi, android::Paint const&, android::Typeface const*, minikin::MeasuredText*)+144) 06-20 06:50:52.343 21773 21773 F DEBUG : #10 pc 000000000013a720 /system/lib64/libandroid_runtime.so (android::CanvasJNI::drawTextChars(_JNIEnv*, _jobject*, long, _jcharArray*, int, int, float, float, int, long)+144) 06-20 06:50:52.344 21773 21773 F DEBUG : #11 pc 0000000000411e74 /system/framework/arm64/boot-framework.oat (offset 0x3d8000) (android.view.RecordingCanvas.nDrawText [DEDUPED]+228) 06-20 06:50:52.344 21773 21773 F DEBUG : #12 pc 0000000000d47c5c /system/framework/arm64/boot-framework.oat (offset 0x3d8000) (android.view.RecordingCanvas.drawText+172) 06-20 06:50:52.344 21773 21773 F DEBUG : #13 pc 000000000011983c /data/app/com.termux-06NCI_OzTXR1v3T1FRYJbg==/oat/arm64/base.odex (offset 0x67000) (com.termux.view.TerminalRenderer.drawTextRun+1324) 06-20 06:50:52.344 21773 21773 F DEBUG : #14 pc 000000000011a214 /data/app/com.termux-06NCI_OzTXR1v3T1FRYJbg==/oat/arm64/base.odex (offset 0x67000) (com.termux.view.TerminalRenderer.render+2244) 06-20 06:50:52.344 21773 21773 F DEBUG : #15 pc 000000000011cea0 /data/app/com.termux-06NCI_OzTXR1v3T1FRYJbg==/oat/arm64/base.odex (offset 0x67000) (com.termux.view.TerminalView.onDraw+336) 06-20 06:50:52.344 21773 21773 F DEBUG : #16 pc 0000000000c85dfc /system/framework/arm64/boot-framework.oat (offset 0x3d8000) (android.view.View.draw+716) 06-20 06:50:52.344 21773 21773 F DEBUG : #17 pc 0000000000ca48f4 /system/framework/arm64/boot-framework.oat (offset 0x3d8000) (android.view.View.updateDisplayListIfDirty+2436) 06-20 06:50:52.344 21773 21773 F DEBUG : #18 pc 0000000000d56878 /system/framework/arm64/boot-framework.oat (offset 0x3d8000) (android.view.ViewGroup.dispatchGetDisplayList+200) 06-20 06:50:52.344 21773 21773 F DEBUG : #19 pc 0000000000ca42cc /system/framework/arm64/boot-framework.oat (offset 0x3d8000) (android.view.View.updateDisplayListIfDirty+860) 06-20 06:50:52.344 21773 21773 F DEBUG : #20 pc 0000000000d56878 /system/framework/arm64/boot-framework.oat (offset 0x3d8000) (android.view.ViewGroup.dispatchGetDisplayList+200) 06-20 06:50:52.344 21773 21773 F DEBUG : #21 pc 0000000000ca42cc /system/framework/arm64/boot-framework.oat (offset 0x3d8000) (android.view.View.updateDisplayListIfDirty+860) 06-20 06:50:52.344 21773 21773 F DEBUG : #22 pc 0000000000d56878 /system/framework/arm64/boot-framework.oat (offset 0x3d8000) (android.view.ViewGroup.dispatchGetDisplayList+200) 06-20 06:50:52.344 21773 21773 F DEBUG : #23 pc 0000000000ca42cc /system/framework/arm64/boot-framework.oat (offset 0x3d8000) (android.view.View.updateDisplayListIfDirty+860) 06-20 06:50:52.344 21773 21773 F DEBUG : #24 pc 0000000000d56878 /system/framework/arm64/boot-framework.oat (offset 0x3d8000) (android.view.ViewGroup.dispatchGetDisplayList+200) 06-20 06:50:52.344 21773 21773 F DEBUG : #25 pc 0000000000ca42cc /system/framework/arm64/boot-framework.oat (offset 0x3d8000) (android.view.View.updateDisplayListIfDirty+860) 06-20 06:50:52.344 21773 21773 F DEBUG : #26 pc 0000000000d56878 /system/framework/arm64/boot-framework.oat (offset 0x3d8000) (android.view.ViewGroup.dispatchGetDisplayList+200) 06-20 06:50:52.344 21773 21773 F DEBUG : #27 pc 0000000000ca42cc /system/framework/arm64/boot-framework.oat (offset 0x3d8000) (android.view.View.updateDisplayListIfDirty+860) 06-20 06:50:52.344 21773 21773 F DEBUG : #28 pc 0000000000d56878 /system/framework/arm64/boot-framework.oat (offset 0x3d8000) (android.view.ViewGroup.dispatchGetDisplayList+200) 06-20 06:50:52.344 21773 21773 F DEBUG : #29 pc 0000000000ca42cc /system/framework/arm64/boot-framework.oat (offset 0x3d8000) (android.view.View.updateDisplayListIfDirty+860) 06-20 06:50:52.344 21773 21773 F DEBUG : #30 pc 0000000000b978a8 /system/framework/arm64/boot-framework.oat (offset 0x3d8000) (android.view.ThreadedRenderer.updateViewTreeDisplayList+88) 06-20 06:50:52.344 21773 21773 F DEBUG : #31 pc 0000000000b9759c /system/framework/arm64/boot-framework.oat (offset 0x3d8000) (android.view.ThreadedRenderer.updateRootDisplayList+220) 06-20 06:50:52.344 21773 21773 F DEBUG : #32 pc 0000000000b979f0 /system/framework/arm64/boot-framework.oat (offset 0x3d8000) (android.view.ThreadedRenderer.draw+256) 06-20 06:50:52.344 21773 21773 F DEBUG : #33 pc 00000000000028bc /dev/ashmem/dalvik-jit-code-cache (deleted) 06-20 06:50:52.739 21773 21773 I crash_dump: crash_dump_notify exit 06-20 06:50:54.973 21787 21787 E com.termux: Not starting debugger since process cannot load the jdwp agent. 06-20 06:50:54.980 21787 21787 W re-initialized>: type=1400 audit(0.0:4070): avc: denied { read } for name="u:object_r:mtk_amslog_prop:s0" dev="tmpfs" ino=132 scontext=u:r:untrusted_app:s0:c113,c257,c512,c768 tcontext=u:object_r:mtk_amslog_prop:s0 tclass=file permissive=0 06-20 06:50:54.982 21787 21787 E libc : Access denied finding property "persist.vendor.sys.activitylog" 06-20 06:50:55.104 21787 21787 I SurfaceFactory: [static] sSurfaceFactory = com.mediatek.view.impl.SurfaceFactoryImpl@7084313 06-20 06:50:55.117 21787 21810 I OMXClient: IOmx service obtained 06-20 06:50:55.197 21787 21809 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0 06-20 06:50:55.197 21787 21809 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0 06-20 06:50:55.198 21787 21809 I OpenGLRenderer: Initialized EGL, version 1.4 06-20 06:50:55.224 21787 21787 I com.termux: Rejecting re-init on previously-failed class java.lang.Class: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/window/extensions/ExtensionInterface$ExtensionCallback; 06-20 06:50:55.224 21787 21787 I com.termux: at androidx.window.ExtensionInterfaceCompat androidx.window.ExtensionWindowBackend$Companion.initAndVerifyExtension(android.content.Context) (ExtensionWindowBackend.kt:197) 06-20 06:50:55.224 21787 21787 I com.termux: at androidx.window.ExtensionWindowBackend androidx.window.ExtensionWindowBackend$Companion.getInstance(android.content.Context) (ExtensionWindowBackend.kt:181) 06-20 06:50:55.224 21787 21787 I com.termux: at void androidx.window.WindowManager.(android.content.Context, androidx.window.WindowBackend, int, kotlin.jvm.internal.DefaultConstructorMarker) (WindowManager.kt:43) 06-20 06:50:55.224 21787 21787 I com.termux: at void androidx.window.WindowManager.(android.content.Context) (WindowManager.kt:-1) 06-20 06:50:55.224 21787 21787 I com.termux: at android.graphics.Point com.termux.shared.view.ViewUtils.getDisplaySize(android.content.Context, boolean) (ViewUtils.java:186) 06-20 06:50:55.224 21787 21787 I com.termux: at int com.termux.shared.view.ViewUtils.getDisplayOrientation(android.content.Context) (ViewUtils.java:169) 06-20 06:50:55.224 21787 21787 I com.termux: at android.graphics.Rect[] com.termux.shared.view.ViewUtils.getWindowAndViewRects(android.view.View, int) (ViewUtils.java:89) 06-20 06:50:55.224 21787 21787 I com.termux: at void com.termux.app.terminal.TermuxActivityRootView.onGlobalLayout() (TermuxActivityRootView.java:134) 06-20 06:50:55.224 21787 21787 I com.termux: at void android.view.ViewTreeObserver.dispatchOnGlobalLayout() (ViewTreeObserver.java:945) 06-20 06:50:55.224 21787 21787 I com.termux: at void android.view.ViewRootImpl.performTraversals() (ViewRootImpl.java:2468) 06-20 06:50:55.224 21787 21787 I com.termux: at void android.view.ViewRootImpl.doTraversal() (ViewRootImpl.java:1522) 06-20 06:50:55.224 21787 21787 I com.termux: at void android.view.ViewRootImpl$TraversalRunnable.run() (ViewRootImpl.java:7438) 06-20 06:50:55.224 21787 21787 I com.termux: at void android.view.Choreographer$CallbackRecord.run(long) (Choreographer.java:953) 06-20 06:50:55.224 21787 21787 I com.termux: at void android.view.Choreographer.doCallbacks(int, long) (Choreographer.java:765) 06-20 06:50:55.224 21787 21787 I com.termux: at void android.view.Choreographer.doFrame(long, int) (Choreographer.java:697) 06-20 06:50:55.224 21787 21787 I com.termux: at void android.view.Choreographer$FrameDisplayEventReceiver.run() (Choreographer.java:939) 06-20 06:50:55.224 21787 21787 I com.termux: at void android.os.Handler.handleCallback(android.os.Message) (Handler.java:873) 06-20 06:50:55.224 21787 21787 I com.termux: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:99) 06-20 06:50:55.224 21787 21787 I com.termux: at void android.os.Looper.loop() (Looper.java:193) 06-20 06:50:55.224 21787 21787 I com.termux: at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6702) 06-20 06:50:55.224 21787 21787 I com.termux: at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2) 06-20 06:50:55.224 21787 21787 I com.termux: at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:493) 06-20 06:50:55.224 21787 21787 I com.termux: at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:911) 06-20 06:50:55.224 21787 21787 I com.termux: Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.window.extensions.ExtensionInterface$ExtensionCallback" on path: DexPathList[[zip file "/data/app/com.termux-06NCI_OzTXR1v3T1FRYJbg==/base.apk"],nativeLibraryDirectories=[/data/app/com.termux-06NCI_OzTXR1v3T1FRYJbg==/lib/arm64, /data/app/com.termux-06NCI_OzTXR1v3T1FRYJbg==/base.apk!/lib/arm64-v8a, /system/lib64]] 06-20 06:50:55.224 21787 21787 I com.termux: at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:134) 06-20 06:50:55.224 21787 21787 I com.termux: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379) 06-20 06:50:55.224 21787 21787 I com.termux: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) 06-20 06:50:55.224 21787 21787 I com.termux: at androidx.window.ExtensionInterfaceCompat androidx.window.ExtensionWindowBackend$Companion.initAndVerifyExtension(android.content.Context) (ExtensionWindowBackend.kt:197) 06-20 06:50:55.224 21787 21787 I com.termux: at androidx.window.ExtensionWindowBackend androidx.window.ExtensionWindowBackend$Companion.getInstance(android.content.Context) (ExtensionWindowBackend.kt:181) 06-20 06:50:55.224 21787 21787 I com.termux: at void androidx.window.WindowManager.(android.content.Context, androidx.window.WindowBackend, int, kotlin.jvm.internal.DefaultConstructorMarker) (WindowManager.kt:43) 06-20 06:50:55.224 21787 21787 I com.termux: at void androidx.window.WindowManager.(android.content.Context) (WindowManager.kt:-1) 06-20 06:50:55.224 21787 21787 I com.termux: at android.graphics.Point com.termux.shared.view.ViewUtils.getDisplaySize(android.content.Context, boolean) (ViewUtils.java:186) 06-20 06:50:55.224 21787 21787 I com.termux: at int com.termux.shared.view.ViewUtils.getDisplayOrientation(android.content.Context) (ViewUtils.java:169) 06-20 06:50:55.224 21787 21787 I com.termux: at android.graphics.Rect[] com.termux.shared.view.ViewUtils.getWindowAndViewRects(android.view.View, int) (ViewUtils.java:89) 06-20 06:50:55.224 21787 21787 I com.termux: at void com.termux.app.terminal.TermuxActivityRootView.onGlobalLayout() (TermuxActivityRootView.java:134) 06-20 06:50:55.224 21787 21787 I com.termux: at void android.view.ViewTreeObserver.dispatchOnGlobalLayout() (ViewTreeObserver.java:945) 06-20 06:50:55.224 21787 21787 I com.termux: at void android.view.ViewRootImpl.performTraversals() (ViewRootImpl.java:2468) 06-20 06:50:55.224 21787 21787 I com.termux: at void android.view.ViewRootImpl.doTraversal() (ViewRootImpl.java:1522) 06-20 06:50:55.224 21787 21787 I com.termux: at void android.view.ViewRootImpl$TraversalRunnable.run() (ViewRootImpl.java:7438) 06-20 06:50:55.224 21787 21787 I com.termux: at void android.view.Choreographer$CallbackRecord.run(long) (Choreographer.java:953) 06-20 06:50:55.224 21787 21787 I com.termux: at void android.view.Choreographer.doCallbacks(int, long) (Choreographer.java:765) 06-20 06:50:55.224 21787 21787 I com.termux: at void android.view.Choreographer.doFrame(long, int) (Choreographer.java:697) 06-20 06:50:55.224 21787 21787 I com.termux: at void android.view.Choreographer$FrameDisplayEventReceiver.run() (Choreographer.java:939) 06-20 06:50:55.224 21787 21787 I com.termux: at void android.os.Handler.handleCallback(android.os.Message) (Handler.java:873) 06-20 06:50:55.224 21787 21787 I com.termux: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:99) 06-20 06:50:55.224 21787 21787 I com.termux: at void android.os.Looper.loop() (Looper.java:193) 06-20 06:50:55.224 21787 21787 I com.termux: at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6702) 06-20 06:50:55.224 21787 21787 I com.termux: at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2) 06-20 06:50:55.224 21787 21787 I com.termux: at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:493) 06-20 06:50:55.224 21787 21787 I com.termux: at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:911) 06-20 06:50:55.224 21787 21787 I com.termux: 06-20 06:50:55.225 21787 21787 I com.termux: Rejecting re-init on previously-failed class java.lang.Class: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/window/extensions/ExtensionInterface$ExtensionCallback; 06-20 06:50:55.225 21787 21787 I com.termux: at androidx.window.ExtensionInterfaceCompat androidx.window.ExtensionWindowBackend$Companion.initAndVerifyExtension(android.content.Context) (ExtensionWindowBackend.kt:197) 06-20 06:50:55.225 21787 21787 I com.termux: at androidx.window.ExtensionWindowBackend androidx.window.ExtensionWindowBackend$Companion.getInstance(android.content.Context) (ExtensionWindowBackend.kt:181) 06-20 06:50:55.225 21787 21787 I com.termux: at void androidx.window.WindowManager.(android.content.Context, androidx.window.WindowBackend, int, kotlin.jvm.internal.DefaultConstructorMarker) (WindowManager.kt:43) 06-20 06:50:55.225 21787 21787 I com.termux: at void androidx.window.WindowManager.(android.content.Context) (WindowManager.kt:-1) 06-20 06:50:55.225 21787 21787 I com.termux: at android.graphics.Point com.termux.shared.view.ViewUtils.getDisplaySize(android.content.Context, boolean) (ViewUtils.java:186) 06-20 06:50:55.225 21787 21787 I com.termux: at int com.termux.shared.view.ViewUtils.getDisplayOrientation(android.content.Context) (ViewUtils.java:169) 06-20 06:50:55.225 21787 21787 I com.termux: at android.graphics.Rect[] com.termux.shared.view.ViewUtils.getWindowAndViewRects(android.view.View, int) (ViewUtils.java:89) 06-20 06:50:55.225 21787 21787 I com.termux: at void com.termux.app.terminal.TermuxActivityRootView.onGlobalLayout() (TermuxActivityRootView.java:134) 06-20 06:50:55.225 21787 21787 I com.termux: at void android.view.ViewTreeObserver.dispatchOnGlobalLayout() (ViewTreeObserver.java:945) 06-20 06:50:55.225 21787 21787 I com.termux: at void android.view.ViewRootImpl.performTraversals() (ViewRootImpl.java:2468) 06-20 06:50:55.225 21787 21787 I com.termux: at void android.view.ViewRootImpl.doTraversal() (ViewRootImpl.java:1522) 06-20 06:50:55.225 21787 21787 I com.termux: at void android.view.ViewRootImpl$TraversalRunnable.run() (ViewRootImpl.java:7438) 06-20 06:50:55.225 21787 21787 I com.termux: at void android.view.Choreographer$CallbackRecord.run(long) (Choreographer.java:953) 06-20 06:50:55.225 21787 21787 I com.termux: at void android.view.Choreographer.doCallbacks(int, long) (Choreographer.java:765) 06-20 06:50:55.225 21787 21787 I com.termux: at void android.view.Choreographer.doFrame(long, int) (Choreographer.java:697) 06-20 06:50:55.225 21787 21787 I com.termux: at void android.view.Choreographer$FrameDisplayEventReceiver.run() (Choreographer.java:939) 06-20 06:50:55.225 21787 21787 I com.termux: at void android.os.Handler.handleCallback(android.os.Message) (Handler.java:873) 06-20 06:50:55.225 21787 21787 I com.termux: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:99) 06-20 06:50:55.225 21787 21787 I com.termux: at void android.os.Looper.loop() (Looper.java:193) 06-20 06:50:55.225 21787 21787 I com.termux: at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6702) 06-20 06:50:55.225 21787 21787 I com.termux: at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2) 06-20 06:50:55.225 21787 21787 I com.termux: at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:493) 06-20 06:50:55.225 21787 21787 I com.termux: at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:911) 06-20 06:50:55.225 21787 21787 I com.termux: Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.window.extensions.ExtensionInterface$ExtensionCallback" on path: DexPathList[[zip file "/data/app/com.termux-06NCI_OzTXR1v3T1FRYJbg==/base.apk"],nativeLibraryDirectories=[/data/app/com.termux-06NCI_OzTXR1v3T1FRYJbg==/lib/arm64, /data/app/com.termux-06NCI_OzTXR1v3T1FRYJbg==/base.apk!/lib/arm64-v8a, /system/lib64]] 06-20 06:50:55.225 21787 21787 I com.termux: at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:134) 06-20 06:50:55.225 21787 21787 I com.termux: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379) 06-20 06:50:55.225 21787 21787 I com.termux: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) 06-20 06:50:55.225 21787 21787 I com.termux: at androidx.window.ExtensionInterfaceCompat androidx.window.ExtensionWindowBackend$Companion.initAndVerifyExtension(android.content.Context) (ExtensionWindowBackend.kt:197) 06-20 06:50:55.225 21787 21787 I com.termux: at androidx.window.ExtensionWindowBackend androidx.window.ExtensionWindowBackend$Companion.getInstance(android.content.Context) (ExtensionWindowBackend.kt:181) 06-20 06:50:55.225 21787 21787 I com.termux: at void androidx.window.WindowManager.(android.content.Context, androidx.window.WindowBackend, int, kotlin.jvm.internal.DefaultConstructorMarker) (WindowManager.kt:43) 06-20 06:50:55.225 21787 21787 I com.termux: at void androidx.window.WindowManager.(android.content.Context) (WindowManager.kt:-1) 06-20 06:50:55.225 21787 21787 I com.termux: at android.graphics.Point com.termux.shared.view.ViewUtils.getDisplaySize(android.content.Context, boolean) (ViewUtils.java:186) 06-20 06:50:55.225 21787 21787 I com.termux: at int com.termux.shared.view.ViewUtils.getDisplayOrientation(android.content.Context) (ViewUtils.java:169) 06-20 06:50:55.225 21787 21787 I com.termux: at android.graphics.Rect[] com.termux.shared.view.ViewUtils.getWindowAndViewRects(android.view.View, int) (ViewUtils.java:89) 06-20 06:50:55.225 21787 21787 I com.termux: at void com.termux.app.terminal.TermuxActivityRootView.onGlobalLayout() (TermuxActivityRootView.java:134) 06-20 06:50:55.225 21787 21787 I com.termux: at void android.view.ViewTreeObserver.dispatchOnGlobalLayout() (ViewTreeObserver.java:945) 06-20 06:50:55.225 21787 21787 I com.termux: at void android.view.ViewRootImpl.performTraversals() (ViewRootImpl.java:2468) 06-20 06:50:55.225 21787 21787 I com.termux: at void android.view.ViewRootImpl.doTraversal() (ViewRootImpl.java:1522) 06-20 06:50:55.225 21787 21787 I com.termux: at void android.view.ViewRootImpl$TraversalRunnable.run() (ViewRootImpl.java:7438) 06-20 06:50:55.225 21787 21787 I com.termux: at void android.view.Choreographer$CallbackRecord.run(long) (Choreographer.java:953) 06-20 06:50:55.225 21787 21787 I com.termux: at void android.view.Choreographer.doCallbacks(int, long) (Choreographer.java:765) 06-20 06:50:55.225 21787 21787 I com.termux: at void android.view.Choreographer.doFrame(long, int) (Choreographer.java:697) 06-20 06:50:55.225 21787 21787 I com.termux: at void android.view.Choreographer$FrameDisplayEventReceiver.run() (Choreographer.java:939) 06-20 06:50:55.225 21787 21787 I com.termux: at void android.os.Handler.handleCallback(android.os.Message) (Handler.java:873) 06-20 06:50:55.225 21787 21787 I com.termux: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:99) 06-20 06:50:55.225 21787 21787 I com.termux: at void android.os.Looper.loop() (Looper.java:193) 06-20 06:50:55.225 21787 21787 I com.termux: at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6702) 06-20 06:50:55.225 21787 21787 I com.termux: at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2) 06-20 06:50:55.225 21787 21787 I com.termux: at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:493) 06-20 06:50:55.225 21787 21787 I com.termux: at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:911) 06-20 06:50:55.225 21787 21787 I com.termux: 06-20 06:50:55.246 21787 21787 I com.termux: Rejecting re-init on previously-failed class java.lang.Class: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/window/sidecar/SidecarInterface$SidecarCallback; 06-20 06:50:55.246 21787 21787 I com.termux: at androidx.window.ExtensionInterfaceCompat androidx.window.ExtensionWindowBackend$Companion.initAndVerifyExtension(android.content.Context) (ExtensionWindowBackend.kt:215) 06-20 06:50:55.246 21787 21787 I com.termux: at androidx.window.ExtensionWindowBackend androidx.window.ExtensionWindowBackend$Companion.getInstance(android.content.Context) (ExtensionWindowBackend.kt:181) 06-20 06:50:55.246 21787 21787 I com.termux: at void androidx.window.WindowManager.(android.content.Context, androidx.window.WindowBackend, int, kotlin.jvm.internal.DefaultConstructorMarker) (WindowManager.kt:43) 06-20 06:50:55.246 21787 21787 I com.termux: at void androidx.window.WindowManager.(android.content.Context) (WindowManager.kt:-1) 06-20 06:50:55.246 21787 21787 I com.termux: at android.graphics.Point com.termux.shared.view.ViewUtils.getDisplaySize(android.content.Context, boolean) (ViewUtils.java:186) 06-20 06:50:55.246 21787 21787 I com.termux: at int com.termux.shared.view.ViewUtils.getDisplayOrientation(android.content.Context) (ViewUtils.java:169) 06-20 06:50:55.246 21787 21787 I com.termux: at android.graphics.Rect[] com.termux.shared.view.ViewUtils.getWindowAndViewRects(android.view.View, int) (ViewUtils.java:89) 06-20 06:50:55.246 21787 21787 I com.termux: at void com.termux.app.terminal.TermuxActivityRootView.onGlobalLayout() (TermuxActivityRootView.java:134) 06-20 06:50:55.246 21787 21787 I com.termux: at void android.view.ViewTreeObserver.dispatchOnGlobalLayout() (ViewTreeObserver.java:945) 06-20 06:50:55.246 21787 21787 I com.termux: at void android.view.ViewRootImpl.performTraversals() (ViewRootImpl.java:2468) 06-20 06:50:55.247 21787 21787 I com.termux: at void android.view.ViewRootImpl.doTraversal() (ViewRootImpl.java:1522) 06-20 06:50:55.247 21787 21787 I com.termux: at void android.view.ViewRootImpl$TraversalRunnable.run() (ViewRootImpl.java:7438) 06-20 06:50:55.247 21787 21787 I com.termux: at void android.view.Choreographer$CallbackRecord.run(long) (Choreographer.java:953) 06-20 06:50:55.247 21787 21787 I com.termux: at void android.view.Choreographer.doCallbacks(int, long) (Choreographer.java:765) 06-20 06:50:55.247 21787 21787 I com.termux: at void android.view.Choreographer.doFrame(long, int) (Choreographer.java:697) 06-20 06:50:55.247 21787 21787 I com.termux: at void android.view.Choreographer$FrameDisplayEventReceiver.run() (Choreographer.java:939) 06-20 06:50:55.247 21787 21787 I com.termux: at void android.os.Handler.handleCallback(android.os.Message) (Handler.java:873) 06-20 06:50:55.247 21787 21787 I com.termux: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:99) 06-20 06:50:55.247 21787 21787 I com.termux: at void android.os.Looper.loop() (Looper.java:193) 06-20 06:50:55.247 21787 21787 I com.termux: at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6702) 06-20 06:50:55.247 21787 21787 I com.termux: at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2) 06-20 06:50:55.247 21787 21787 I com.termux: at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:493) 06-20 06:50:55.247 21787 21787 I com.termux: at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:911) 06-20 06:50:55.247 21787 21787 I com.termux: Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.window.sidecar.SidecarInterface$SidecarCallback" on path: DexPathList[[zip file "/data/app/com.termux-06NCI_OzTXR1v3T1FRYJbg==/base.apk"],nativeLibraryDirectories=[/data/app/com.termux-06NCI_OzTXR1v3T1FRYJbg==/lib/arm64, /data/app/com.termux-06NCI_OzTXR1v3T1FRYJbg==/base.apk!/lib/arm64-v8a, /system/lib64]] 06-20 06:50:55.247 21787 21787 I com.termux: at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:134) 06-20 06:50:55.247 21787 21787 I com.termux: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379) 06-20 06:50:55.247 21787 21787 I com.termux: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) 06-20 06:50:55.247 21787 21787 I com.termux: at androidx.window.ExtensionInterfaceCompat androidx.window.ExtensionWindowBackend$Companion.initAndVerifyExtension(android.content.Context) (ExtensionWindowBackend.kt:215) 06-20 06:50:55.247 21787 21787 I com.termux: at androidx.window.ExtensionWindowBackend androidx.window.ExtensionWindowBackend$Companion.getInstance(android.content.Context) (ExtensionWindowBackend.kt:181) 06-20 06:50:55.247 21787 21787 I com.termux: at void androidx.window.WindowManager.(android.content.Context, androidx.window.WindowBackend, int, kotlin.jvm.internal.DefaultConstructorMarker) (WindowManager.kt:43) 06-20 06:50:55.247 21787 21787 I com.termux: at void androidx.window.WindowManager.(android.content.Context) (WindowManager.kt:-1) 06-20 06:50:55.247 21787 21787 I com.termux: at android.graphics.Point com.termux.shared.view.ViewUtils.getDisplaySize(android.content.Context, boolean) (ViewUtils.java:186) 06-20 06:50:55.247 21787 21787 I com.termux: at int com.termux.shared.view.ViewUtils.getDisplayOrientation(android.content.Context) (ViewUtils.java:169) 06-20 06:50:55.247 21787 21787 I com.termux: at android.graphics.Rect[] com.termux.shared.view.ViewUtils.getWindowAndViewRects(android.view.View, int) (ViewUtils.java:89) 06-20 06:50:55.247 21787 21787 I com.termux: at void com.termux.app.terminal.TermuxActivityRootView.onGlobalLayout() (TermuxActivityRootView.java:134) 06-20 06:50:55.247 21787 21787 I com.termux: at void android.view.ViewTreeObserver.dispatchOnGlobalLayout() (ViewTreeObserver.java:945) 06-20 06:50:55.247 21787 21787 I com.termux: at void android.view.ViewRootImpl.performTraversals() (ViewRootImpl.java:2468) 06-20 06:50:55.247 21787 21787 I com.termux: at void android.view.ViewRootImpl.doTraversal() (ViewRootImpl.java:1522) 06-20 06:50:55.247 21787 21787 I com.termux: at void android.view.ViewRootImpl$TraversalRunnable.run() (ViewRootImpl.java:7438) 06-20 06:50:55.247 21787 21787 I com.termux: at void android.view.Choreographer$CallbackRecord.run(long) (Choreographer.java:953) 06-20 06:50:55.247 21787 21787 I com.termux: at void android.view.Choreographer.doCallbacks(int, long) (Choreographer.java:765) 06-20 06:50:55.247 21787 21787 I com.termux: at void android.view.Choreographer.doFrame(long, int) (Choreographer.java:697) 06-20 06:50:55.247 21787 21787 I com.termux: at void android.view.Choreographer$FrameDisplayEventReceiver.run() (Choreographer.java:939) 06-20 06:50:55.247 21787 21787 I com.termux: at void android.os.Handler.handleCallback(android.os.Message) (Handler.java:873) 06-20 06:50:55.247 21787 21787 I com.termux: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:99) 06-20 06:50:55.247 21787 21787 I com.termux: at void android.os.Looper.loop() (Looper.java:193) 06-20 06:50:55.247 21787 21787 I com.termux: at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6702) 06-20 06:50:55.247 21787 21787 I com.termux: at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2) 06-20 06:50:55.247 21787 21787 I com.termux: at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:493) 06-20 06:50:55.247 21787 21787 I com.termux: at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:911) 06-20 06:50:55.247 21787 21787 I com.termux: 06-20 06:50:55.247 21787 21787 I com.termux: Rejecting re-init on previously-failed class java.lang.Class: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/window/sidecar/SidecarInterface$SidecarCallback; 06-20 06:50:55.248 21787 21787 I com.termux: at androidx.window.ExtensionInterfaceCompat androidx.window.ExtensionWindowBackend$Companion.initAndVerifyExtension(android.content.Context) (ExtensionWindowBackend.kt:215) 06-20 06:50:55.248 21787 21787 I com.termux: at androidx.window.ExtensionWindowBackend androidx.window.ExtensionWindowBackend$Companion.getInstance(android.content.Context) (ExtensionWindowBackend.kt:181) 06-20 06:50:55.248 21787 21787 I com.termux: at void androidx.window.WindowManager.(android.content.Context, androidx.window.WindowBackend, int, kotlin.jvm.internal.DefaultConstructorMarker) (WindowManager.kt:43) 06-20 06:50:55.248 21787 21787 I com.termux: at void androidx.window.WindowManager.(android.content.Context) (WindowManager.kt:-1) 06-20 06:50:55.248 21787 21787 I com.termux: at android.graphics.Point com.termux.shared.view.ViewUtils.getDisplaySize(android.content.Context, boolean) (ViewUtils.java:186) 06-20 06:50:55.248 21787 21787 I com.termux: at int com.termux.shared.view.ViewUtils.getDisplayOrientation(android.content.Context) (ViewUtils.java:169) 06-20 06:50:55.248 21787 21787 I com.termux: at android.graphics.Rect[] com.termux.shared.view.ViewUtils.getWindowAndViewRects(android.view.View, int) (ViewUtils.java:89) 06-20 06:50:55.248 21787 21787 I com.termux: at void com.termux.app.terminal.TermuxActivityRootView.onGlobalLayout() (TermuxActivityRootView.java:134) 06-20 06:50:55.248 21787 21787 I com.termux: at void android.view.ViewTreeObserver.dispatchOnGlobalLayout() (ViewTreeObserver.java:945) 06-20 06:50:55.248 21787 21787 I com.termux: at void android.view.ViewRootImpl.performTraversals() (ViewRootImpl.java:2468) 06-20 06:50:55.248 21787 21787 I com.termux: at void android.view.ViewRootImpl.doTraversal() (ViewRootImpl.java:1522) 06-20 06:50:55.248 21787 21787 I com.termux: at void android.view.ViewRootImpl$TraversalRunnable.run() (ViewRootImpl.java:7438) 06-20 06:50:55.248 21787 21787 I com.termux: at void android.view.Choreographer$CallbackRecord.run(long) (Choreographer.java:953) 06-20 06:50:55.248 21787 21787 I com.termux: at void android.view.Choreographer.doCallbacks(int, long) (Choreographer.java:765) 06-20 06:50:55.248 21787 21787 I com.termux: at void android.view.Choreographer.doFrame(long, int) (Choreographer.java:697) 06-20 06:50:55.248 21787 21787 I com.termux: at void android.view.Choreographer$FrameDisplayEventReceiver.run() (Choreographer.java:939) 06-20 06:50:55.248 21787 21787 I com.termux: at void android.os.Handler.handleCallback(android.os.Message) (Handler.java:873) 06-20 06:50:55.248 21787 21787 I com.termux: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:99) 06-20 06:50:55.248 21787 21787 I com.termux: at void android.os.Looper.loop() (Looper.java:193) 06-20 06:50:55.248 21787 21787 I com.termux: at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6702) 06-20 06:50:55.248 21787 21787 I com.termux: at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2) 06-20 06:50:55.248 21787 21787 I com.termux: at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:493) 06-20 06:50:55.248 21787 21787 I com.termux: at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:911) 06-20 06:50:55.248 21787 21787 I com.termux: Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.window.sidecar.SidecarInterface$SidecarCallback" on path: DexPathList[[zip file "/data/app/com.termux-06NCI_OzTXR1v3T1FRYJbg==/base.apk"],nativeLibraryDirectories=[/data/app/com.termux-06NCI_OzTXR1v3T1FRYJbg==/lib/arm64, /data/app/com.termux-06NCI_OzTXR1v3T1FRYJbg==/base.apk!/lib/arm64-v8a, /system/lib64]] 06-20 06:50:55.248 21787 21787 I com.termux: at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:134) 06-20 06:50:55.248 21787 21787 I com.termux: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379) 06-20 06:50:55.248 21787 21787 I com.termux: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) 06-20 06:50:55.248 21787 21787 I com.termux: at androidx.window.ExtensionInterfaceCompat androidx.window.ExtensionWindowBackend$Companion.initAndVerifyExtension(android.content.Context) (ExtensionWindowBackend.kt:215) 06-20 06:50:55.248 21787 21787 I com.termux: at androidx.window.ExtensionWindowBackend androidx.window.ExtensionWindowBackend$Companion.getInstance(android.content.Context) (ExtensionWindowBackend.kt:181) 06-20 06:50:55.248 21787 21787 I com.termux: at void androidx.window.WindowManager.(android.content.Context, androidx.window.WindowBackend, int, kotlin.jvm.internal.DefaultConstructorMarker) (WindowManager.kt:43) 06-20 06:50:55.248 21787 21787 I com.termux: at void androidx.window.WindowManager.(android.content.Context) (WindowManager.kt:-1) 06-20 06:50:55.248 21787 21787 I com.termux: at android.graphics.Point com.termux.shared.view.ViewUtils.getDisplaySize(android.content.Context, boolean) (ViewUtils.java:186) 06-20 06:50:55.248 21787 21787 I com.termux: at int com.termux.shared.view.ViewUtils.getDisplayOrientation(android.content.Context) (ViewUtils.java:169) 06-20 06:50:55.248 21787 21787 I com.termux: at android.graphics.Rect[] com.termux.shared.view.ViewUtils.getWindowAndViewRects(android.view.View, int) (ViewUtils.java:89) 06-20 06:50:55.248 21787 21787 I com.termux: at void com.termux.app.terminal.TermuxActivityRootView.onGlobalLayout() (TermuxActivityRootView.java:134) 06-20 06:50:55.248 21787 21787 I com.termux: at void android.view.ViewTreeObserver.dispatchOnGlobalLayout() (ViewTreeObserver.java:945) 06-20 06:50:55.248 21787 21787 I com.termux: at void android.view.ViewRootImpl.performTraversals() (ViewRootImpl.java:2468) 06-20 06:50:55.248 21787 21787 I com.termux: at void android.view.ViewRootImpl.doTraversal() (ViewRootImpl.java:1522) 06-20 06:50:55.248 21787 21787 I com.termux: at void android.view.ViewRootImpl$TraversalRunnable.run() (ViewRootImpl.java:7438) 06-20 06:50:55.248 21787 21787 I com.termux: at void android.view.Choreographer$CallbackRecord.run(long) (Choreographer.java:953) 06-20 06:50:55.248 21787 21787 I com.termux: at void android.view.Choreographer.doCallbacks(int, long) (Choreographer.java:765) 06-20 06:50:55.248 21787 21787 I com.termux: at void android.view.Choreographer.doFrame(long, int) (Choreographer.java:697) 06-20 06:50:55.248 21787 21787 I com.termux: at void android.view.Choreographer$FrameDisplayEventReceiver.run() (Choreographer.java:939) 06-20 06:50:55.248 21787 21787 I com.termux: at void android.os.Handler.handleCallback(android.os.Message) (Handler.java:873) 06-20 06:50:55.248 21787 21787 I com.termux: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:99) 06-20 06:50:55.248 21787 21787 I com.termux: at void android.os.Looper.loop() (Looper.java:193) 06-20 06:50:55.248 21787 21787 I com.termux: at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6702) 06-20 06:50:55.248 21787 21787 I com.termux: at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2) 06-20 06:50:55.248 21787 21787 I com.termux: at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:493) 06-20 06:50:55.248 21787 21787 I com.termux: at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:911) 06-20 06:50:55.248 21787 21787 I com.termux: 06-20 06:50:55.346 21787 21809 E ion : ioctl c0044901 failed with code -1: Invalid argument 06-20 06:50:57.315 21787 21809 W libEGL : EGLNativeWindowType 0x76bf5e3010 disconnect failed ```

I don't have adb access.

Might be related to : https://github.com/termux/termux-app/issues/1388 https://github.com/termux/termux-app/issues/1170

Steps to reproduce the behavior.

Replace font. And do termux-reload-settings with any program or script.

Manually replacing ~/.termux/font.ttf doesn't reproduce this behavior. And termix:styling also works fine.

What is the expected behavior?

Replace fonts without any issues.

System information

sylirre commented 1 year ago

Technically this is not bug. You have a font file opened with mmap() by Android OS and then trying to overwrite it. This fill cause SIGBUS in mmap() and as result application failure.

Font file should NEVER BE overwritten but deleted and created again. So cat myfont.ttf > ~/.termux/font.ttf is a no-no. Font installer should do rm -f ~/.termux/font.ttf; cp myfont.ttf ~/.termux/font.ttf instead.

Report issue to https://github.com/notflawffles/termux-nerd-installer. Its copy() function needs to be rewritten.

Anonymous2716 commented 1 year ago

Thanks. I already have .