DSAppTeam / Anchors

:white_check_mark: Anchors 是一个基于图结构,支持同异步依赖任务初始化 Android 启动框架。其锚点提供 "勾住" 依赖的功能,能灵活解决初始化过程中复杂的同步问题。参考 alpha 并改进其部分细节, 更贴合 Android 启动的场景, 同时支持优化依赖初始化流程, 自动选择较优的路径进行初始化。
Apache License 2.0
820 stars 79 forks source link

反馈一个问题,从1.1.4升级到1.1.6,在OPPO R9s上出现崩溃。 #39

Closed allentsui closed 2 years ago

allentsui commented 2 years ago

机器: OPPO R9s,Android 6

Caused by: java.lang.UnsupportedOperationException at java.util.concurrent.CopyOnWriteArrayList$CowIterator.set(CopyOnWriteArrayList.java:748) at java.util.Collections.sort(Collections.java:1909) at com.effective.android.anchors.task.Task.notifyBehindTasks(Task.kt:235) at com.effective.android.anchors.task.Task.run(Task.kt:73) at com.effective.android.anchors.AnchorsRuntime.tryRunBlockTask$anchors_release(AnchorsRuntime.kt:115) at com.effective.android.anchors.AnchorsManager.start(AnchorsManager.kt:111) at com.effective.android.anchors.AnchorsManagerKt.startUp(AnchorsManager.kt:279) at com.jelenew.app.startup.StartupHelper.startup(StartupHelper.kt:13) at com.jelenew.app.JelenewApplication.onCreate(JelenewApplication.kt:16) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1014) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4995)

LinYYY commented 2 years ago

感谢反馈,下个版本修复

LinYYY commented 2 years ago

@allentsui v1.1.7版本已修复

机器: OPPO R9s,Android 6

Caused by: java.lang.UnsupportedOperationException at java.util.concurrent.CopyOnWriteArrayList$CowIterator.set(CopyOnWriteArrayList.java:748) at java.util.Collections.sort(Collections.java:1909) at com.effective.android.anchors.task.Task.notifyBehindTasks(Task.kt:235) at com.effective.android.anchors.task.Task.run(Task.kt:73) at com.effective.android.anchors.AnchorsRuntime.tryRunBlockTask$anchors_release(AnchorsRuntime.kt:115) at com.effective.android.anchors.AnchorsManager.start(AnchorsManager.kt:111) at com.effective.android.anchors.AnchorsManagerKt.startUp(AnchorsManager.kt:279) at com.jelenew.app.startup.StartupHelper.startup(StartupHelper.kt:13) at com.jelenew.app.JelenewApplication.onCreate(JelenewApplication.kt:16) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1014) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4995)