Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bambu Studio Flathub - Go Live #4342

Open
2 tasks
immortel32 opened this issue Jun 21, 2024 · 6 comments
Open
2 tasks

Bambu Studio Flathub - Go Live #4342

immortel32 opened this issue Jun 21, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@immortel32
Copy link

Bambu Studio Version

1.9.2

Where is the application from?

Built from source by yourself or others

OS version

Linux mint 21.3

Additional system information

No response

Printer

Bambu Lab X1c

How to reproduce

Install Bambu Studio with Flathub
Enable the Go Live option
Configure OBS Studio to read the file /home/myuser/.var/app/com.bambulab.BambuStudio/config/BambuStudio/cameratools/ffmpeg.sdp

Actual results

I got a black screen (nothing happens)

Expected results

I'm expecting to see the live camera on my printer.
If I do it with AppImage and use the file in /home/myuser/.config/BambuStudio/cameratools/ffmpeg.sdp, it is working fine.

The reason of using Flathub intead of AppImage is because it manages Bambu Studio upgrades. The last I check with AppImage it did not warn me when a new version was available.

Project file & Debug log uploads

Can be done with any STL

Checklist of files to include

  • Log file
  • Project file
@immortel32 immortel32 added the bug Something isn't working label Jun 21, 2024
@bambu123
Copy link
Collaborator

It is possible that the ffmpeg process failed to start. Please help check if there is an ffmpeg process. Bing provides studio logs to analyze the reason for the failure.

@immortel32
Copy link
Author

It is possible that the ffmpeg process failed to start. Please help check if there is an ffmpeg process. Bing provides studio logs to analyze the reason for the failure.
This is what I get with the application from flathub

ps -ef | grep ffm
myuser        7284    7037  1 21:23 ?        00:00:00 [ffmpeg] <defunct>

This is what I get with the appimage
ps -ef | grep ffm myuser 5773 1 1 21:20 pts/0 00:00:02 /home/myuser/.config/BambuStudio/cameratools/ffmpeg -fflags nobuffer -flags low_delay -analyzeduration 10 -probesize 3200 -f h264 -i pipe: -vcodec copy -f rtp rtp://127.0.0.1:1234

There is a lot of "sensitive data" in the logs. What do you need? (There is nothing in the logs with ffmpeg).

@bambu123
Copy link
Collaborator

It is possible that the ffmpeg process failed to start. Please help check if there is an ffmpeg process. Bing provides studio logs to analyze the reason for the failure.
This is what I get with the application from flathub

ps -ef | grep ffm
myuser        7284    7037  1 21:23 ?        00:00:00 [ffmpeg] <defunct>

This is what I get with the appimage ps -ef | grep ffm myuser 5773 1 1 21:20 pts/0 00:00:02 /home/myuser/.config/BambuStudio/cameratools/ffmpeg -fflags nobuffer -flags low_delay -analyzeduration 10 -probesize 3200 -f h264 -i pipe: -vcodec copy -f rtp rtp://127.0.0.1:1234

There is a lot of "sensitive data" in the logs. What do you need? (There is nothing in the logs with ffmpeg).

I need the log lines with "MediaPlayCtrl".

@immortel32
Copy link
Author

Hello,
Here's the output for the command grep -a MediaPlayCtrl *

debug_Mon_Jun_24_21_06_07_4.log.0:2024-06-24 21:06:16.319814[Thread 0x00007fb6a6ad1bc0]:MediaPlayCtrl switch machine: 00M00A2C0604476
debug_Mon_Jun_24_21_06_07_4.log.0:2024-06-24 21:06:16.319840[Thread 0x00007fb6a6ad1bc0]:MediaPlayCtrl::SetStatus:  tutk_state: enable
debug_Mon_Jun_24_21_06_07_4.log.0:2024-06-24 21:06:20.843458[Thread 0x00007fb6a6ad1bc0]:MediaPlayCtrl::TogglePlay
debug_Mon_Jun_24_21_06_07_4.log.0:2024-06-24 21:06:20.845908[Thread 0x00007fb6a6ad1bc0]:MediaPlayCtrl::SetStatus: Initializing... tutk_state: enable
debug_Mon_Jun_24_21_06_07_4.log.0:2024-06-24 21:06:20.848256[Thread 0x00007fb6a6ad1bc0]:MediaPlayCtrl: bambu:///tutk?uid=E3LH************111A&authkey=********&passwd=******&region=us&device=00M00A2C0604476&net_ver=01.09.03.01&dev_ver=01.08.00.00&cli_id=128eac7f-ad93-4074-9221-9c5aed70741b&cli_ver=01.09.03.50
debug_Mon_Jun_24_21_06_07_4.log.0:2024-06-24 21:06:20.877576[Thread 0x00007fb6a6ad1bc0]:MediaPlayCtrl::SetStatus: Loading... tutk_state: enable
debug_Mon_Jun_24_21_06_07_4.log.0:2024-06-24 21:06:20.878111[Thread 0x00007fb6175fb6c0]:MediaPlayCtrl: start load
debug_Mon_Jun_24_21_06_07_4.log.0:2024-06-24 21:06:22.115914[Thread 0x00007fb6175fb6c0]:MediaPlayCtrl: end load
debug_Mon_Jun_24_21_06_07_4.log.0:2024-06-24 21:06:22.115973[Thread 0x00007fb6a6ad1bc0]:MediaPlayCtrl::onStateChanged: 0, last_state: 5
debug_Mon_Jun_24_21_06_07_4.log.0:2024-06-24 21:06:22.115986[Thread 0x00007fb6a6ad1bc0]:MediaPlayCtrl::onStateChanged: size: 1280x720
debug_Mon_Jun_24_21_06_07_4.log.0:2024-06-24 21:06:22.115994[Thread 0x00007fb6a6ad1bc0]:MediaPlayCtrl::SetStatus: Playing... tutk_state: enable
debug_Mon_Jun_24_21_06_07_4.log.0:2024-06-24 21:06:22.116647[Thread 0x00007fb6a6ad1bc0]:MediaPlayCtrl::onStateChanged: 0, last_state: 0
debug_Mon_Jun_24_21_06_07_4.log.0:2024-06-24 21:06:22.116655[Thread 0x00007fb6a6ad1bc0]:MediaPlayCtrl::onStateChanged: skip when task not finished
debug_Mon_Jun_24_21_06_07_4.log.0:2024-06-24 21:06:22.117927[Thread 0x00007fb6a6ad1bc0]:MediaPlayCtrl::onStateChanged: 0, last_state: 0
debug_Mon_Jun_24_21_06_07_4.log.0:2024-06-24 21:06:22.659493[Thread 0x00007fb6a6ad1bc0]:MediaPlayCtrl::onStateChanged: 2, last_state: 0
debug_Mon_Jun_24_21_06_07_4.log.0:2024-06-24 21:06:26.025111[Thread 0x00007fb6a6ad1bc0]:MediaPlayCtrl::ToggleStream: bambu:///tutk?uid=E3LH************111A&authkey=********&passwd=******&region=us&device=00M00A2C0604476&net_ver=01.09.03.01&dev_ver=01.08.00.00&cli_id=128eac7f-ad93-4074-9221-9c5aed70741b&cli_ver=01.09.03.50
debug_Mon_Jun_24_21_06_07_4.log.0:2024-06-24 21:09:24.534408[Thread 0x00007fb6a6ad1bc0]:MediaPlayCtrl::ToggleStream: bambu:///tutk?uid=E3LH************111A&authkey=********&passwd=******&region=us&device=00M00A2C0604476&net_ver=01.09.03.01&dev_ver=01.08.00.00&cli_id=128eac7f-ad93-4074-9221-9c5aed70741b&cli_ver=01.09.03.50
debug_Mon_Jun_24_21_06_07_4.log.0:2024-06-24 21:09:26.071458[Thread 0x00007fb6a6ad1bc0]:MediaPlayCtrl::ToggleStream: bambu:///tutk?uid=E3LH************111A&authkey=********&passwd=******&region=us&device=00M00A2C0604476&net_ver=01.09.03.01&dev_ver=01.08.00.00&cli_id=128eac7f-ad93-4074-9221-9c5aed70741b&cli_ver=01.09.03.50
debug_Mon_Jun_24_21_15_48_4.log.0:2024-06-24 21:15:54.150820[Thread 0x00007f074ffacbc0]:MediaPlayCtrl switch machine: 00M00A2C0604476
debug_Mon_Jun_24_21_15_48_4.log.0:2024-06-24 21:15:54.151234[Thread 0x00007f074ffacbc0]:MediaPlayCtrl::SetStatus:  tutk_state: enable
debug_Mon_Jun_24_21_23_29_4.log.0:2024-06-24 21:23:36.072029[Thread 0x00007f6326f3cbc0]:MediaPlayCtrl switch machine: 00M00A2C0604476
debug_Mon_Jun_24_21_23_29_4.log.0:2024-06-24 21:23:36.087362[Thread 0x00007f6326f3cbc0]:MediaPlayCtrl::SetStatus:  tutk_state: enable
debug_Mon_Jun_24_21_23_29_4.log.0:2024-06-24 21:23:42.931775[Thread 0x00007f6326f3cbc0]:MediaPlayCtrl::ToggleStream: bambu:///tutk?uid=E3LH************111A&authkey=********&passwd=******&region=us&device=00M00A2C0604476&net_ver=01.09.03.01&dev_ver=01.08.00.00&cli_id=128eac7f-ad93-4074-9221-9c5aed70741b&cli_ver=01.09.03.50

@posita
Copy link

posita commented Sep 4, 2024

I am also experiencing this issue. I get about five seconds of video, then it freezes, and I also have a ffmpeg [defunct] process that hangs around (i.e., is not being reaped by the parent process) until I quit BambuStudio. If I stop-and-start the video from within BambuStudio, I get another five seconds (and so on).

The following are running:

% flatpak info com.bambulab.BambuStudio

Bambu Studio - Get perfect 3D prints!

          ID: com.bambulab.BambuStudio
         Ref: app/com.bambulab.BambuStudio/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 1.9.5 Public Official
     License: AGPL-3.0-only
      Origin: flathub
  Collection: org.flathub.Stable
Installation: user
   Installed: 630.2 MB
     Runtime: org.gnome.Platform/x86_64/46
         Sdk: org.gnome.Sdk/x86_64/46

      Commit: 66762d1d215f4d3689b4e3120083d6f08c1ab89dfb30d10f6f431e7bbe5fec6c
      Parent: 558b14d628974f0021fc004fb013682ac8ca06b299b7ffab34248abc4290c5ed
     Subject: Update to 1.9.5 Public Official (ab5b0374)
        Date: 2024-08-28 20:09:24 +0000
% flatpak enter com.bambulab.BambuStudio ps -eF | perl -pe 's{matt} {user}g'
UID          PID    PPID  C    SZ   RSS PSR STIME TTY          TIME CMD
user           1       0  0   936  1152   1 14:28 ?        00:00:00 bwrap --args 45 -- entrypoint
user           4       1  8 28059216 650656 5 14:28 ?      00:00:44 /app/bin/bambu-studio
user          31       4  0 25883184 50236 7 14:28 ?       00:00:00 /usr/libexec/webkit2gtk-4.1/WebKitNetworkProcess 9 19 21
user          35       4  0 22636398 140280 11 14:28 ?     00:00:01 /usr/libexec/webkit2gtk-4.1/WebKitWebProcess 13 19 22
user          47       4  0 22615726 110376 0 14:28 ?      00:00:00 /usr/libexec/webkit2gtk-4.1/WebKitWebProcess 21 30 33
user          55       4  0 26812262 125216 8 14:28 ?      00:00:02 /usr/libexec/webkit2gtk-4.1/WebKitWebProcess 29 33 36
user          72       4  0 26810030 108588 9 14:28 ?      00:00:00 /usr/libexec/webkit2gtk-4.1/WebKitWebProcess 37 52 54
user          80       4  0 26826549 123008 8 14:28 ?      00:00:00 /usr/libexec/webkit2gtk-4.1/WebKitWebProcess 45 54 57
user         222       4  9     0     0   9 14:28 ?        00:00:51 [bambu_source] <defunct>
user         223       4  0     0     0   2 14:28 ?        00:00:00 [ffmpeg] <defunct>
user         455       0  0  2008  3840  11 14:37 pts/8    00:00:00 ps -eF

@posita
Copy link

posita commented Sep 4, 2024

FYI, I would not need this fixed if #1536 was addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants