Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Improvement] 本地乐谱是否需要预解析? #33

Open
xxnuo opened this issue Sep 4, 2023 · 2 comments
Open

[Improvement] 本地乐谱是否需要预解析? #33

xxnuo opened this issue Sep 4, 2023 · 2 comments

Comments

@xxnuo
Copy link

xxnuo commented Sep 4, 2023

乐谱比较多的情况下会很耗时😂,然后卡住脚本崩溃退出.
可否考虑只显示本地乐谱名字,开始播放的时候再读取解析

@xxnuo
Copy link
Author

xxnuo commented Sep 4, 2023

然后还有个bug就是点击 结束脚本运行 会让autoxjs程序直接崩溃

Version: 651
Android: 28
java.lang.InterruptedException: 
java.lang.reflect.UndeclaredThrowableException:
$Proxy9.onItemClick(Unknown Source)
......
Caused by:
java.lang.InterruptedException:
kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:84)
kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source:1)
org.autojs.autojs.devplugin.DevPlugin$Connection.log(DevPlugin.kt:330)
org.autojs.autojs.devplugin.DevPlugin.log(DevPlugin.kt:91)
org.autojs.autojs.autojs.AutoJs$3.println(AutoJs.java:119)
com.stardust.autojs.core.console.ConsoleImpl.println(ConsoleImpl.java:137)
com.stardust.autojs.runtime.api.AbstractConsole.printf(AbstractConsole.java:26)
com.stardust.autojs.runtime.api.AbstractConsole.error(AbstractConsole.java:66)
com.stardust.autojs.core.console.ConsoleImpl.error(ConsoleImpl.java:356)
com.stardust.autojs.ScriptEngineService$1.onException(ScriptEngineService.java:78)
com.stardust.autojs.execution.ScriptExecutionObserver.onException(ScriptExecutionObserver.java:29)
com.stardust.autojs.execution.ScriptExecuteActivity.onException(ScriptExecuteActivity.kt:75)
com.stardust.autojs.execution.ScriptExecuteActivity.finish(ScriptExecuteActivity.kt:113)
com.stardust.autojs.engine.LoopBasedJavaScriptEngine.forceStop(LoopBasedJavaScriptEngine.java:82)
com.stardust.autojs.runtime.ScriptRuntime.exit(ScriptRuntime.java:378)
com.stardust.autojs.runtime.ScriptRuntime.exit(ScriptRuntime.java:387)
org.mozilla.javascript.VMBridge_custom.lambda$newInterfaceProxy$0$org-mozilla-javascript-VMBridge_custom(VMBridge_custom.java:60)
org.mozilla.javascript.VMBridge_custom$$ExternalSyntheticLambda0.invoke(Unknown Source:15)
java.lang.reflect.Proxy.invoke(Proxy.java:1006)
$Proxy9.onItemClick(Unknown Source)
android.widget.AdapterView.performItemClick(AdapterView.java:318)
android.widget.AbsListView.performItemClick(AbsListView.java:1159)
android.widget.AbsListView$PerformClick.run(AbsListView.java:3136)
android.widget.AbsListView$3.run(AbsListView.java:4052)
android.os.Handler.handleCallback(Handler.java:873)
android.os.Handler.dispatchMessage(Handler.java:99)
android.os.Looper.loop(Looper.java:193)
android.app.ActivityThread.main(ActivityThread.java:6737)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:860)

@StageGuard
Copy link
Owner

乐谱解析是在显示弹奏面板后解析的,主界面卡住了那可能是乐谱过多

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants