[GH-ISSUE #550] [Bug]: camara button still works even tho it is turned off in the premisions #358

Closed
opened 2026-05-06 12:28:36 +02:00 by BreizhHardware · 10 comments

Originally created by @Minebuddy on GitHub (Feb 28, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/550

Originally assigned to: @maziggy on GitHub.

Bug Description

The camera button does not disable (gray out) when camera permissions are turned off.

Additionally, the ffmpeg process does not terminate properly and remains active after closing steam. Each camera stream consumes approximately 240MB of memory per ffmpeg instance.

With 6 printers in operation and multiple students accessing streams, this results in significant memory usage.

Expected Behavior

The camera button should automatically gray out (be disabled) when camera permissions are turned off.

The ffmpeg process should properly terminate once a camera stream is closed, ensuring no lingering processes remain and no unnecessary memory continues to be consumed.

Steps to Reproduce

Printer Model

P2S

Bambuddy Version

v0.2.1

Printer Firmware Version

01.01.03.00

Installation Method

Docker

Operating System

Linux (Ubuntu/Debian)

Relevant Logs / Support Package


Screenshots

Image

Additional Context

No response

Checklist

  • I have searched existing issues to ensure this bug hasn't already been reported
  • I am using the latest version of Bambuddy
  • My printer is set to LAN Only mode
  • My printer has Developer Mode enabled
Originally created by @Minebuddy on GitHub (Feb 28, 2026). Original GitHub issue: https://github.com/maziggy/bambuddy/issues/550 Originally assigned to: @maziggy on GitHub. ### Bug Description The camera button does not disable (gray out) when camera permissions are turned off. Additionally, the ffmpeg process does not terminate properly and remains active after closing steam. Each camera stream consumes approximately 240MB of memory per ffmpeg instance. With 6 printers in operation and multiple students accessing streams, this results in significant memory usage. ### Expected Behavior The camera button should automatically gray out (be disabled) when camera permissions are turned off. The ffmpeg process should properly terminate once a camera stream is closed, ensuring no lingering processes remain and no unnecessary memory continues to be consumed. ### Steps to Reproduce - ### Printer Model P2S ### Bambuddy Version v0.2.1 ### Printer Firmware Version 01.01.03.00 ### Installation Method Docker ### Operating System Linux (Ubuntu/Debian) ### Relevant Logs / Support Package ```shell ``` ### Screenshots <img width="1304" height="526" alt="Image" src="https://github.com/user-attachments/assets/f6ebe11a-d54c-49d2-855d-129c5efbe705" /> ### Additional Context _No response_ ### Checklist - [x] I have searched existing issues to ensure this bug hasn't already been reported - [x] I am using the latest version of Bambuddy - [x] My printer is set to LAN Only mode - [x] My printer has Developer Mode enabled
BreizhHardware 2026-05-06 12:28:36 +02:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@maziggy commented on GitHub (Feb 28, 2026):

Yeah, already have the ffmpeg processes on my list. Anyway, let me check.

<!-- gh-comment-id:3977019203 --> @maziggy commented on GitHub (Feb 28, 2026): Yeah, already have the ffmpeg processes on my list. Anyway, let me check.
Author
Owner

@Minebuddy commented on GitHub (Feb 28, 2026):

Got it.

I have one more thing: (sorry for not making another post for this)

The sidebar menu currently shows tabs even if they are completely disabled via permissions. It would be better if tabs that are disabled in permissions simply did not appear at all.

Right now, I get a lot of questions about why certain sections don’t work, and I have to repeatedly explain that they’re disabled in the permissions.

For my use case, I only need student to have access to:

  • Printer
  • File Manager
  • Maintenance
  • Statistics

However, all tabs are visible at the moment, which isn’t ideal.

<!-- gh-comment-id:3977049383 --> @Minebuddy commented on GitHub (Feb 28, 2026): Got it. I have one more thing: (sorry for not making another post for this) The sidebar menu currently shows tabs even if they are completely disabled via permissions. It would be better if tabs that are disabled in permissions simply did not appear at all. Right now, I get a lot of questions about why certain sections don’t work, and I have to repeatedly explain that they’re disabled in the permissions. For my use case, I only need student to have access to: - Printer - File Manager - Maintenance - Statistics However, all tabs are visible at the moment, which isn’t ideal.
Author
Owner

@maziggy commented on GitHub (Feb 28, 2026):

Fixed in branch 0.2.2b1.

Ffmpeg processes are now cleaned up every 60 seconds, if window was closed and process is still running.

Regarding the sidebar navigation not respecting user's permissons: this si also fixed in branch 0.2.2b1 :)

Please let me know if it works for you now.


If you find Bambuddy useful, please consider giving it a on GitHub — it helps others discover the project!

<!-- gh-comment-id:3977077684 --> @maziggy commented on GitHub (Feb 28, 2026): Fixed in branch 0.2.2b1. Ffmpeg processes are now cleaned up every 60 seconds, if window was closed and process is still running. Regarding the sidebar navigation not respecting user's permissons: this si also fixed in branch 0.2.2b1 :) Please let me know if it works for you now. ----- If you find Bambuddy useful, please consider giving it a ⭐ on [GitHub](https://github.com/bambuman/bambuddy) — it helps others discover the project!
Author
Owner

@Minebuddy commented on GitHub (Feb 28, 2026):

the new branch is not show in releases for me

<!-- gh-comment-id:3977108765 --> @Minebuddy commented on GitHub (Feb 28, 2026): the new branch is not show in releases for me
Author
Owner

@maziggy commented on GitHub (Feb 28, 2026):

Because it is not released :)

cd to your Bambuddy folder and do a

git pull && git checkout 0.2.2b1 && git pull && docker compose down && docker compose up --build -d

<!-- gh-comment-id:3977116731 --> @maziggy commented on GitHub (Feb 28, 2026): Because it is not released :) cd to your Bambuddy folder and do a git pull && git checkout 0.2.2b1 && git pull && docker compose down && docker compose up --build -d
Author
Owner

@Minebuddy commented on GitHub (Feb 28, 2026):

i use portainer.io so what you just told me i have no clue what that all means if it is something i have to do in the editor i can do this if i have to go into command line this is not someting i can do

<!-- gh-comment-id:3977121244 --> @Minebuddy commented on GitHub (Feb 28, 2026): i use portainer.io so what you just told me i have no clue what that all means if it is something i have to do in the editor i can do this if i have to go into command line this is not someting i can do
Author
Owner

@maziggy commented on GitHub (Feb 28, 2026):

Don't think that you can do it via Portainer. It only supports pulling images, but not rebuilding images from source. I'm sorry.

<!-- gh-comment-id:3977125074 --> @maziggy commented on GitHub (Feb 28, 2026): Don't think that you can do it via Portainer. It only supports pulling images, but not rebuilding images from source. I'm sorry.
Author
Owner

@Minebuddy commented on GitHub (Feb 28, 2026):

It’s a bit unfortunate I’d really love to test the fix, but I can only do that if there’s a new release that includes it.

I don’t fully trust myself to update it manually through the command line. I’m not a supper advanced user, and I don’t want to risk breaking the setup. It already took me quite some time to get everything configured the way I want it.

On top of that, this is a live environment that’s actively being used, so I have to be careful with changes.

<!-- gh-comment-id:3977133416 --> @Minebuddy commented on GitHub (Feb 28, 2026): It’s a bit unfortunate I’d really love to test the fix, but I can only do that if there’s a new release that includes it. I don’t fully trust myself to update it manually through the command line. I’m not a supper advanced user, and I don’t want to risk breaking the setup. It already took me quite some time to get everything configured the way I want it. On top of that, this is a live environment that’s actively being used, so I have to be careful with changes.
Author
Owner

@maziggy commented on GitHub (Feb 28, 2026):

In this case you have to wait for the next release. I'm sorry.

<!-- gh-comment-id:3977142919 --> @maziggy commented on GitHub (Feb 28, 2026): In this case you have to wait for the next release. I'm sorry.
Author
Owner

@Minebuddy commented on GitHub (Feb 28, 2026):

I appreciate the help either way. I’ll wait for the official fix and I’m happy to test it once it’s released. Thanks again for the quick turnaround on the bug fixes.

<!-- gh-comment-id:3977150088 --> @Minebuddy commented on GitHub (Feb 28, 2026): I appreciate the help either way. I’ll wait for the official fix and I’m happy to test it once it’s released. Thanks again for the quick turnaround on the bug fixes.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bambuddy#358
No description provided.