这是indexloc提供的服务,不要输入任何密码
Skip to content

"termux-wake-lock" crashes termux 0.74 #1224

@steffenl82

Description

@steffenl82

I use termux with a FireTV stick. Running "termux-wake-lock" immediately crashes the termux app. This happened only after updating termux to v0.74 (v0.72 was running fine).

I guess this is the relevant logcat:

--------- beginning of crash
08-22 20:55:08.068 3757 3757 E AndroidRuntime: FATAL EXCEPTION: main
08-22 20:55:08.068 3757 3757 E AndroidRuntime: Process: com.termux, PID: 3757
08-22 20:55:08.068 3757 3757 E AndroidRuntime: java.lang.RuntimeException: Unable to start service com.termux.app.TermuxService@267e688 with Intent { act=com.termux.service_wake_lock cmp=com.termux/.app.TermuxService }: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.settings.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS dat=package:com.termux flg=0x10000000 }
08-22 20:55:08.068 3757 3757 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3365)
08-22 20:55:08.068 3757 3757 E AndroidRuntime: at android.app.ActivityThread.-wrap21(ActivityThread.java)
08-22 20:55:08.068 3757 3757 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593)
08-22 20:55:08.068 3757 3757 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
08-22 20:55:08.068 3757 3757 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
08-22 20:55:08.068 3757 3757 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6188)
08-22 20:55:08.068 3757 3757 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
08-22 20:55:08.068 3757 3757 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:911)
08-22 20:55:08.068 3757 3757 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:801)
08-22 20:55:08.068 3757 3757 E AndroidRuntime: Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.settings.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS dat=package:com.termux flg=0x10000000 }
08-22 20:55:08.068 3757 3757 E AndroidRuntime: at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1809)
08-22 20:55:08.068 3757 3757 E AndroidRuntime: at android.app.Instrumentation.execStartActivity(Instrumentation.java:1523)
08-22 20:55:08.068 3757 3757 E AndroidRuntime: at android.app.ContextImpl.startActivity(ContextImpl.java:820)
08-22 20:55:08.068 3757 3757 E AndroidRuntime: at android.app.ContextImpl.startActivity(ContextImpl.java:797)
08-22 20:55:08.068 3757 3757 E AndroidRuntime: at android.content.ContextWrapper.startActivity(ContextWrapper.java:356)
08-22 20:55:08.068 3757 3757 E AndroidRuntime: at com.termux.app.TermuxService.onStartCommand(SourceFile:22)
08-22 20:55:08.068 3757 3757 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3348)
08-22 20:55:08.068 3757 3757 E AndroidRuntime: ... 8 more
08-22 20:55:08.112 3757 3757 I Process : Sending signal. PID: 3757 SIG: 9
08-22 20:55:09.212 6221 6221 W System : ClassLoader referenced unknown path: /system/priv-app/MetricsApi/lib/arm
08-22 20:55:09.265 6221 6221 D AndroidRuntime: Shutting down VM

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions