Skip to content

Paddle OCR 插件会突然失效报错 #515

@zzw6776

Description

@zzw6776

6.7.0的版本
已经额外装了https://github.com/SuperMonster003/AutoJs6-Plugin-Paddle-OCR-PP-OCRv5/releases/tag/v0.2.3 这个插件
并且给了所有关联启动 自启动 电池优化的权限

脚本最开始是可用的 但是执行了一段时间后(几分钟)就会报错

22:14:50.545/E: Thread[main (Spawn-0),5]: 方法 "ocr.detect" 调用失败. 未找到可用的 Paddle OCR 插件.

Stack trace (partial):

... ...
org.autojs.autojs.runtime.api.augment.ocr.OcrPaddle$Companion$detectImpl$results$1.invokeSuspend(OcrPaddle.kt:110)
kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)
kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:101)
kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:589)
kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:832)
kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:720)
kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:707)

. (file:/storage/emulated/0/脚本/clash_of_clans_auto_script/attack_grass.js#1185) (WrappedRuntimeException.kt#19)

这种情况下Paddle app还是在后台工作 并且重启autojs6无效 必须去插件页面手动开关插件才会正常工作

如果通过打包运行 则不会有这个问题

手机型号一加13 coloros16的系统

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions