github / github/copilot-cli

ERROR Maximum call stack size exceeded

Open
#389 2 comments 0 reactions 0 assignees View on GitHub
area:terminal-rendering more-info-needed
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

### Describe the bug

```
✓ Edit S:/GitHubRepos/WebCombatUltraCoPilot/utils/audio.ts (+5 -2)
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ 259  const now = this.audioContext!.currentTime; │
│ 260  │
│ 261  const panner = this.createPanner(event.position); │
│ 262 - panner.connect(this.compressor!); │
│ 262 + const limiter = this.audioContext!.createGain(); │
│ 263 + limiter.gain.value = 0.8; // protect headroom for loops │
│ 264 + const panner = this.createPanner(event.position); │
│ 265 + limiter.connect(this.compressor!); │
│ 266  │
│ 267  const gain = this.audioContext!.createGain(); │
│ 268  gain.gain.setValueAtTime(0, now); │
│ 269  gain.gain.linearRampToValueAtTime(1.0, now + 0.1); // Fade in │
│ 267 - gain.connect(panner); │
│ 270 + gain.connect(panner).connect(limiter) │
│ 271  │
│ 272  let source: AudioNode; │
│ 273  let filter: BiquadFilterNode | undefined; │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

✓ Edit S:/GitHubRepos/WebCombatUltraCoPilot/utils/audio.ts (+6 -1)
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ 283  filter.frequency.value = 800; │
│ 284  filter.Q.value = 5; │
│ 285  │
│ 286 - gain.gain.value = 0.4; │
│ 286 + // Distance-based gain scaling for loops │
│ 287 + const dx = event.position.x - this.listenerPosition.x; │
│ 288 + const dy = event.position.y - this.listenerPosition.y; │
│ 289 + const dist = Math.hypot(dx, dy); │
│ 290 + const distGain = 1 / (1 + (dist / 600)); │
│ 291 + gain.gain.value = 0.35 * distGain; │
│ 292  noiseSource.connect(filter).connect(gain); │
│ 293  source = noiseSource; │
│ 294  break; │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

ERROR Maximum call stack size exceeded

file:///G:/Tools/npm-global/node_modules/@github/copilot/index.js:1956:3778

- (file:///G:/Tools/npm-global/node_modules/@github/copilot/index.js:1956:3778)
- P1 (file:///G:/Tools/npm-global/node_modules/@github/copilot/index.js:138:14134)
- Object.useMemo (file:///G:/Tools/npm-global/node_modules/@github/copilot/index.js:228:2575)
- process.env.NODE_ENV.kr.useMemo (file:///G:/Tools/npm-global/node_modules/@github/copilot/index.js:47:12100)
- mlI (file:///G:/Tools/npm-global/node_modules/@github/copilot/index.js:1956:3754)
- react-stack-bottom-frame (file:///G:/Tools/npm-global/node_modules/@github/copilot/index.js:228:12764)
- rR (file:///G:/Tools/npm-global/node_modules/@github/copilot/index.js:138:807)
- tV (file:///G:/Tools/npm-global/node_modules/@github/copilot/index.js:145:18033)
- nW (file:///G:/Tools/npm-global/node_modules/@github/copilot/index.js:145:16222)
- eV (file:///G:/Tools/npm-global/node_modules/@github/copilot/index.js:145:15753)
```

### Affected version

CLI Version 0.0.335

### Steps to reproduce the behavior

_No response_

### Expected behavior

No errors, plenty of stack size ?

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.