Skip to content

Is the destruction of the TreeSitter client causing a memory leak? #36454

Description

@haisto

Description

Code highlighting failed, falling back to plain text: warn: TreeSitter client destroyed
      at destroy (B:/~BUN/root/chunk-pphanb3a.js:64:11891)
      at VZ (B:/~BUN/root/chunk-pphanb3a.js:64:19204)
      at finalizeDestroy (B:/~BUN/root/chunk-pphanb3a.js:93:22271)
      at destroy (B:/~BUN/root/chunk-pphanb3a.js:93:19087)
      at Ug (B:/~BUN/root/chunk-0pv4sh7x.js:94:18044)
      at exit (B:/~BUN/root/chunk-0pv4sh7x.js:94:20824)
      at Y (B:/~BUN/root/chunk-nvcaztx1.js:2:33829)
      at runBinding (B:/~BUN/root/chunk-nvcaztx1.js:2:36254)
      at _J (B:/~BUN/root/chunk-nvcaztx1.js:2:56789)
      at HJ (B:/~BUN/root/chunk-nvcaztx1.js:2:50894)
      at wJ (B:/~BUN/root/chunk-nvcaztx1.js:2:49442)
      at EJ (B:/~BUN/root/chunk-nvcaztx1.js:2:48612)
      at <anonymous> (B:/~BUN/root/chunk-nvcaztx1.js:2:70091)
      at emitWithPriority (B:/~BUN/root/chunk-pphanb3a.js:2:38428)
      at processParsedKey (B:/~BUN/root/chunk-pphanb3a.js:2:37897)
      at handleStdinEvent (B:/~BUN/root/chunk-pphanb3a.js:93:5055)
      at <anonymous> (B:/~BUN/root/chunk-pphanb3a.js:93:4924)
      at drain (B:/~BUN/root/chunk-pphanb3a.js:32:7512)
      at drainStdinParser (B:/~BUN/root/chunk-pphanb3a.js:93:4896)
      at <anonymous> (B:/~BUN/root/chunk-pphanb3a.js:93:2753)
      at emit (node:events:95:22)
      at addChunk (internal:streams/readable:264:47)
      at readableAddChunkPushByteMode (internal:streams/readable:242:18)

Plugins

No response

OpenCode version

1.17.18

Steps to reproduce

After network instability or network reset

Screenshot and/or share link

Image

Operating System

Windows 10

Terminal

Windows Terminal

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions