Skip to content

Fix crashes, silent bugs, and design issues from code review#1

Merged
rustyeddy merged 1 commit into
mainfrom
fixes/review-findings
Jun 1, 2026
Merged

Fix crashes, silent bugs, and design issues from code review#1
rustyeddy merged 1 commit into
mainfrom
fixes/review-findings

Conversation

@rustyeddy
Copy link
Copy Markdown
Owner

  • Fix recursive Cam.Close() and MJPEG.Close() (infinite loop/stack overflow)
  • Add missing Window.Close() to satisfy ImOut interface
  • Fix Img.Play() staying running after single frame (main loop hang)
  • Fix VideoFile.Close() not stopping reader goroutine (panic on closed channel)
  • Fix malformed JSON struct tags in config.go (fields not marshaling)
  • Remove debug fmt.Println from main.go
  • Replace deprecated ioutil.WriteFile with os.WriteFile
  • Remove dead code: Pipeline.Close() no-op loop and unused Pipe struct
  • Mark ColorDetector.Filter() as a stub
  • Add graceful shutdown via OS signal handling (SIGINT/SIGTERM)
  • Fan-out frame dispatch to outputs concurrently with sync.WaitGroup

- Fix recursive Cam.Close() and MJPEG.Close() (infinite loop/stack overflow)
- Add missing Window.Close() to satisfy ImOut interface
- Fix Img.Play() staying running after single frame (main loop hang)
- Fix VideoFile.Close() not stopping reader goroutine (panic on closed channel)
- Fix malformed JSON struct tags in config.go (fields not marshaling)
- Remove debug fmt.Println from main.go
- Replace deprecated ioutil.WriteFile with os.WriteFile
- Remove dead code: Pipeline.Close() no-op loop and unused Pipe struct
- Mark ColorDetector.Filter() as a stub
- Add graceful shutdown via OS signal handling (SIGINT/SIGTERM)
- Fan-out frame dispatch to outputs concurrently with sync.WaitGroup

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 1, 2026 20:13
@rustyeddy rustyeddy merged commit e5cbd17 into main Jun 1, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@rustyeddy rustyeddy deleted the fixes/review-findings branch June 1, 2026 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants