Commit fdc3e6a
committed
fix: prevent crashes when parsing Rust/Swift files by adding robust error handling
- Add timeout protection for WASM loading to prevent hanging
- Return null instead of throwing when WASM fails to load
- Add try-catch blocks around parser operations
- Implement memory management to clean up old parsers
- Add timeout for parsing operations to handle complex files
This fixes issue #6532 where Roo Code crashes repeatedly, especially with Rust and Swift code on macOS.1 parent 5c05762 commit fdc3e6a
2 files changed
+282
-132
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
398 | | - | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
399 | 422 | | |
400 | 423 | | |
401 | | - | |
| 424 | + | |
402 | 425 | | |
403 | 426 | | |
404 | 427 | | |
405 | 428 | | |
406 | 429 | | |
407 | 430 | | |
408 | 431 | | |
409 | | - | |
| 432 | + | |
410 | 433 | | |
411 | 434 | | |
412 | 435 | | |
| |||
0 commit comments