fix(association): 修复联想引擎服务绑定泄漏和服务崩溃恢复问题 - #751
Merged
Merged
Conversation
- 在 OnnxAssociationEngine 初始化时先释放旧 client 绑定,避免 ServiceConnection 泄漏 - 当服务进程崩溃后检测 binder 失效状态,重置引擎状态实现自动恢复 - 修复 InferenceClient 中 CountDownLatch 一次性问题,确保服务重启 后能正确重新绑定 - 添加 DeadObjectException 处理,服务死亡时重置绑定状态 - 在 InferenceService 中添加模型加载检查,避免未初始化时崩溃 - 优化 NativeOnnxEngine 切换模型时先释放旧 session 避免内存峰值 - 修复 CandidateBar 联想词显示逻辑,确保纯联想状态下正常渲染 - 默认禁用 NNAPI 执行提供者避免动态形状模型触发崩溃
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
简要描述此 PR 的目的和改动内容。
关联 Issue
Closes #(填写关联 issue 号)
改动类型
自测清单
./gradlew test并通过备注
补充说明(如有)。