Frontmatter
| id | 9730 |
| title | Intermittent `TypeError: Cannot read properties of undefined` in GraphService Test Suite |
| state | Closed |
| labels | bugai |
| assignees | tobiu |
| createdAt | Apr 6, 2026, 2:28 AM |
| updatedAt | Apr 6, 2026, 2:43 AM |
| githubUrl | https://github.com/neomjs/neo/issues/9730 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Apr 6, 2026, 2:43 AM |
Intermittent TypeError: Cannot read properties of undefined in GraphService Test Suite
Closedbugai

Problem
The
GraphServicetest suite is experiencing intermittentTypeErrorfailures (e.g.,Cannot read properties of undefined (reading 'length')) during CI runs across the massive parallel execution. The stack trace consistently points to instances where nodes fetched from SQLite via lazy-loading return unexpectedly empty states, leading to failing destructuring assertions downstream such asvicinity.nodes.lengthorexpect(neighbors.length).Investigation Focus
The failures occur consistently under high concurrency (e.g., when the entire
test/playwright/unit/ai/suite triggers) and correlate directly toloadNodeVicinitySynccache-miss rehydration flows on the Native SQLite adapter. The isolated test suiteGraphService.spec.mjsexecutes identically without error.Action Plan
SQLite.loadNodeVicinitySyncdatabase adapter method parameters and early return statements.