[BUG]: Unclosed IndexedDB connections cause resource leaks during multi-org exploration
维护者通常 1 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 22/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- javascript
- 领域
- database
调研方向
Start in src/services/github.js, where openDB() is called by cacheGet, cacheSet and cacheClear, each opening its own connection with indexedDB.open(DB_NAME, 1). Check the open pull request #360 first, since it is already working on this. Done means every transaction path closes its connection on completion, error and abort, and that repeated cache operations no longer leave handles open.
由索引模型根据 Issue 内容生成。
描述
Bug Description
In src/services/github.js, cache functions (cacheGet, cacheSet, cacheClear) call openDB(), which opens a new connection via indexedDB.open(DB_NAME, 1). However, db.close() is never called when transactions complete, error, or abort.
When exploring organizations with many repositories, contributors, issues, and pull requests, dozens to hundreds of open IDBDatabase connections accumulate and remain open in the browser process. This leads to connection pool exhaustion, browser memory retention, and blocks database deletions or schema version upgrades (onblocked).
Steps to Reproduce
- Open OrgExplorer and explore a multi-repo organization (e.g.
AOSSIE-Orgorfacebook). - Open Browser DevTools -> Application -> Storage -> IndexedDB.
- Inspect active connection handles or trigger multiple cache clearing operations in Settings.
- Observe that dozens of IDBDatabase connections remain open without being closed upon transaction completion.
Logs and Screenshots
No error thrown initially, but memory profiles show accumulating IDBDatabase handles, and version change requests or cache clears can trigger onblocked due to lingering open connections.
Environment Details
- OS: Windows 11 / Linux / macOS
- Browser: Chrome / Firefox / Safari / Edge
- Node.js: 20.x / 22.x
Impact
High - Major feature is broken
Code of Conduct
- I have joined the Discord server and will post updates there
- I have searched existing issues to avoid duplicates
- 主要语言
- JavaScript
- 星标
- 53
- 派生
- 187
- 平均合并
- 18 分钟
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
AOSSIE-Org/OrgExplorer 的其他 Issue
-
[BUG]: Organization filter dropdown in AnalyticsPage renders empty list due to truthy evaluation of empty issuesData可能已有人在做 @havyasreekuppam 于 5 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 82/100
AOSSIE-Org/OrgExplorer#476 · 5 条评论 ·
维护者通常 1 天内回复
-
Add Pat for 5000 req/hr button not visible when pat expires可能已有人在做 @Rajvardhan-Singh-Rathore 于 6 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 62/100
AOSSIE-Org/OrgExplorer#473 · 6 条评论 ·
维护者通常 1 天内回复
-
[BUG]: PAT popup input lacks label association and visibility button lacks an accessible name可能已有人在做 @prasanm1423 于 10 天前认领。 未关闭bug enhancement
难度 2/5 1-3 小时 新手友好度 78/100
AOSSIE-Org/OrgExplorer#466 · 2 条评论 ·
维护者通常 1 天内回复
-
[FEATURE]: Set dynamic document.title based on active page route可能已有人在做 @23241a6749 于 8 天前认领。 未关闭enhancement
难度 2/5 1-3 小时 新手友好度 78/100
AOSSIE-Org/OrgExplorer#462 · 2 条评论 ·
维护者通常 1 天内回复
-
[BUG]: SocialShareButton logs unconditional console.warn when script is not loaded可能已有人在做 @vivekrajputofficial29-afk 于 8 天前认领。 未关闭bug enhancement
难度 1/5 1 小时以内 新手友好度 89/100
AOSSIE-Org/OrgExplorer#461 · 1 条评论 ·
维护者通常 1 天内回复
查看 AOSSIE-Org/OrgExplorer 的全部 Issue
相似的 Issue
-
marketing
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
Kanevry/session-orchestrator#108 ·
-
难度 1/5 1 小时以内 新手友好度 88/100
awesomemotive/all-in-one-seo-pack#3238 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
andromarces/agent-loops#2055 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复