mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 05:35:30 +02:00
[GH-ISSUE #1131] [Bug]: Camera Stream Freezing after 5-15 seconds of streaming #812
Labels
No labels
A1
automated
automated
bug
bug
Closed due to inactivity
contrib
dependencies
dependencies
duplicate
enhancement
feedback
hold
invalid
Notes
P1S
pull-request
security
security
ThumbsUp
user-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bambuddy#812
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mrnoisytiger on GitHub (Apr 25, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/1131
Originally assigned to: @maziggy on GitHub.
Component
Bambuddy
Bug Description
The camera stream appears to freeze reliably after about 5-15 seconds of streaming playback. Playback is otherwise smooth and unaffected while the camera stream is functioning. Clicking "reconnect" or restarting the stream results in playback starting again before freezing shortly after.
Expected Behavior
The camera should not freeze.
Steps to Reproduce
Printer Model
H2D
Bambuddy Version
v0.2.4b1-nightly
SpoolBuddy Version
No response
Printer Firmware Version
No response
Installation Method
Docker
Operating System
Linux (Ubuntu/Debian)
Relevant Logs / Support Package
bambuddy-support-20260425-154213.zip
Screenshots
No response
Additional Context
No response
Checklist
@maziggy commented on GitHub (Apr 26, 2026):
I went through
bambuddy.logand the post‑fanout sessions on 2026‑04‑25 don't show any backend RTSP/ffmpegerrors: no
RTSP read timeout, noRTSP stream ended, noffmpeg failed, and snapshot captures work the whole time. ffmpeg always exits via SIGTERM when you close the stream, never on its own. So whatever is freezing the picture is not a printer disconnect that we're currently catching.To narrow this down to "stale frames out of ffmpeg" vs. "browser MJPEG decoder choking on H2D 1080p/15fps", could you grab three things on the next reproduction?
Let it stay frozen for 60+ seconds without clicking anything, then download a fresh support pack. We need to see whether
RTSP read timeout for ... (stream_id=1-fanout)shows up after 30s of no frames. If it does → the printer's RTSP stream is stalling silently and we should reconnect at the backend. If it doesn't → ffmpeg is still producing JPEGs and the freeze is downstream.Chrome DevTools → Network → the
/printers/<id>/camera/streamrow: while the image is frozen, watch the row's "Size" column. Is it still growing (KB ticking up), or is it stuck? Screenshot if possible.Try lower fps: open the camera page and add
?fps=5to the URL (e.g./printers/1/camera?fps=5). If it stops freezing at 5 fps, it's the multipart‑MJPEG bitrate path in the browser, not the printer.Also useful: browser + version (Chrome / Firefox / Safari, exact version) and OS, since this class of bug tends to be browser‑specific.
@mrnoisytiger commented on GitHub (Apr 27, 2026):
Thanks for the additional steps! See the responses below!
bambuddy-support-20260426-205948.zip
https://bambu.redacted.com/camera/1?fps=1, but FPS continues to visually be 15fps and continues to freeze. I've tried your suggested path ofhttps://bambu.redacted.com/printers/1/camera?fps=1, but I am getting a blank screen instead.I am getting this issue on Edge 147.0.3912.72 and Firefox 147.0.2 equally. I am also getting this on Mobile Safari 26.4, so I suspect it is not a browser-related issue.
@maziggy commented on GitHub (Apr 27, 2026):
Thanks for the test results — they actually nail down where the freeze is not.
Quick correction on my earlier suggestions:
Available/Fixed in branch dev and available with the next release or daily build.
What the support pack tells us:
So the printer, RTSP, and ffmpeg pipeline are healthy at the moment your dashboard image freezes. The bytes that keep flowing in DevTools are real, distinct frames — they just are not landing in the browser as a swap.
The redacted hostname (bambu.redacted.com) suggests you are reaching Bambuddy through a reverse proxy with HTTPS. That is by far the most common cause of this exact symptom: long-running multipart/x-mixed-replace MJPEG over HTTP/2 (Cloudflare, modern nginx, Caddy, Traefik) often buffers chunks at the proxy layer until the browser sees a partial multipart boundary and stops advancing, while bytes keep accumulating on the wire.
Could you share:
Quick mitigations to try if it does turn out to be H2 buffering: