Bug: Search frequently fails with “Object has been destroyed” in Alma desktop

Bug: Search frequently fails withObject has been destroyed” in Alma desktop

  • 现象:搜索 UI 经常报 Object has been destroyed

  • 验证:alma activity search CLI 正常,说明搜索后端没坏

  • 判断:更像 Electron/WebContents 生命周期问题

  • 可能调用链:异步搜索返回时原 webContents 已销毁

  • 修复建议:webContents.fromId 后加 !wc || wc.isDestroyed() guard

  • 前端补救:debounce、abort stale request、ignore stale response

Please authenticate to join the conversation.

Upvoters
Status

In Review

Board
💡

Feature Request

Date

20 days ago

Author

Desheng Li

Subscribe to post

Get notified by email when there are changes.