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 Labs Webcam Crashes OrcaSlicer #3

Open
1 task done
fals3illusion opened this issue Jan 8, 2024 · 16 comments
Open
1 task done

Bambu Labs Webcam Crashes OrcaSlicer #3

fals3illusion opened this issue Jan 8, 2024 · 16 comments
Assignees

Comments

@fals3illusion
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Whenever I try to play the webcam, OrcaSlicer crashes

Expected Behavior

Webcam should show up

Steps To Reproduce

Go to device, then try to hit play on webcam . Crashes program after it tries to load the image

Environment

- OS: Debian 12
- How docker service was installed:
Docker Compose on Proxmox Debian LXC with 4GB RAM, 20BGB Storage

CPU architecture

x86-64

Docker creation

---
version: "2.1"
services:
  orcaslicer:
    image: lscr.io/linuxserver/orcaslicer:latest
    container_name: orcaslicer
    security_opt:
      - seccomp:unconfined #optional
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
    volumes:
      - /root/orcaslicer:/config
    ports:
      - 3000:3000
      - 3001:3001
    restart: unless-stopped

Container logs

Not sure how to find this... new to linuxserver
Copy link

github-actions bot commented Jan 8, 2024

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@j0nnymoe
Copy link
Member

j0nnymoe commented Jan 8, 2024

Unfortunately no one within the team has a bambu printer so we can't test this. You will need to provide some sort of logs of orcaslicer itself. These can be found in /config/.orca I believe (or similar name, but key that it's a hidden folder.)

@fals3illusion
Copy link
Author

debug_Mon_Jan_08_22_27_36_619.log

Here is a log file from after it crashes. Hopefully this is some help

@LinuxServer-CI
Copy link
Collaborator

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

@thelamer
Copy link
Member

thelamer commented Feb 8, 2024

This seems like it might be upstream specific to their Linux version:
bambulab/BambuStudio#2065

I do this whole song and dance here in an attempt to support the camera:

https://github.com/linuxserver/docker-bambustudio/blob/master/Dockerfile#L20-L34

And looking further looks to be an issue with mismatched libjpeg libraries:

bambulab/BambuStudio#1814

I created a sloppy local image using their fedora appimage here:

taisun/random-images:bambutest

@fals3illusion Let me know if this one works for your printer camera and I can work the code into the repo to pull the Fedora appimage instead.

@fals3illusion
Copy link
Author

fals3illusion commented Feb 8, 2024

This seems like it might be upstream specific to their Linux version: bambulab/BambuStudio#2065

I do this whole song and dance here in an attempt to support the camera:

https://github.com/linuxserver/docker-bambustudio/blob/master/Dockerfile#L20-L34

And looking further looks to be an issue with mismatched libjpeg libraries:

bambulab/BambuStudio#1814

I created a sloppy local image using their fedora appimage here:

taisun/random-images:bambutest

@fals3illusion Let me know if this one works for your printer camera and I can work the code into the repo to pull the Fedora appimage instead.

I updated my docker image in docker-compose to

taisun/random-images:bambutest

ran docker-compose up -d

Now I tried to launch the OrcaSlicer App and it is not running. I get this error.
orcaSlicerError

Not sure if this will help.

root@orcaslicer:~# docker-compose up
Starting orcaslicer ... done
Attaching to orcaslicer
orcaslicer    | [migrations] started
orcaslicer    | [migrations] no migrations found
orcaslicer    | usermod: no changes
orcaslicer    | ───────────────────────────────────────
orcaslicer    |   _____ __ __ _____ _____ _____ _____ 
orcaslicer    |  |     |  |  |   __|_   _|     |     |
orcaslicer    |  |   --|  |  |__   | | | |  |  | | | |
orcaslicer    |  |_____|_____|_____| |_| |_____|_|_|_|
orcaslicer    |        _____ __ __ _ __    ____  
orcaslicer    |       | __  |  |  | |  |  |    \ 
orcaslicer    |       | __ -|  |  | |  |__|  |  |
orcaslicer    |       |_____|_____|_|_____|____/ 
orcaslicer    | 
orcaslicer    |   Based on images from linuxserver.io
orcaslicer    | ───────────────────────────────────────
orcaslicer    | 
orcaslicer    | To support LSIO projects visit:
orcaslicer    | https://www.linuxserver.io/donate/
orcaslicer    | 
orcaslicer    | ───────────────────────────────────────
orcaslicer    | GID/UID
orcaslicer    | ───────────────────────────────────────
orcaslicer    | 
orcaslicer    | User UID:    1000
orcaslicer    | User GID:    1000
orcaslicer    | ───────────────────────────────────────
orcaslicer    | 
orcaslicer    | [custom-init] No custom files found, skipping...
orcaslicer    | [ls.io-init] done.
orcaslicer    | _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
orcaslicer    | 
orcaslicer    | Xvnc KasmVNC 1.2.0 - built Feb  6 2024 16:26:43
orcaslicer    | Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me)
orcaslicer    | See http://kasmweb.com for information on KasmVNC.
orcaslicer    | Underlying X server release 12014000, The X.Org Foundation
orcaslicer    | 
orcaslicer    | Obt-Message: Xinerama extension is not present on the server
orcaslicer    | ObRender-Message: Cannot load image "/opt/orcaslicer/OrcaSlicer.png" from file "/opt/orcaslicer/OrcaSlicer.png"
orcaslicer    | ***** Imlib2 Developer Warning ***** :
orcaslicer    |         This program is calling the Imlib call:
orcaslicer    | 
orcaslicer    |         imlib_free_image();
orcaslicer    | 
orcaslicer    |         With the parameter:
orcaslicer    | 
orcaslicer    |         image
orcaslicer    | 
orcaslicer    |         being NULL. Please fix your program.
orcaslicer    | /config/.config/openbox/autostart: 1: /opt/orcaslicer/AppRun: not found
orcaslicer    | 
orcaslicer    | ERROR: openbox-xdg-autostart requires PyXDG to be installed

If this is something I have to do with my config to get it to work, I'm unsure what to do, if you let me know I will happily do what I can.

Thanks.

@thelamer
Copy link
Member

thelamer commented Feb 8, 2024

I actually entered this thinking it was bambustudio. That image is bambustudio.
You would need to delete the file /config/.config/openbox/autostart or right click the desktop and open bambu studio.

Given Orca is a fork I would assume this is the same issue and something you can test for me is if the native linuxserver/bambustudio:latest image works or if this custom taisun/random-images:bambutest is the only one.

Just don't use a volume mount at all as this is just an ephemeral test and try those two out. That way we will know if this orca image and bambu are suffering from the same lib mismatch, it really helps narrow down the troubleshooting as I have no test setup to confirm.

@fals3illusion
Copy link
Author

fals3illusion commented Feb 8, 2024

I actually entered this thinking it was bambustudio. That image is bambustudio. You would need to delete the file /config/.config/openbox/autostart or right click the desktop and open bambu studio.

Given Orca is a fork I would assume this is the same issue and something you can test for me is if the native linuxserver/bambustudio:latest image works or if this custom taisun/random-images:bambutest is the only one.

Just don't use a volume mount at all as this is just an ephemeral test and try those two out. That way we will know if this orca image and bambu are suffering from the same lib mismatch, it really helps narrow down the troubleshooting as I have no test setup to confirm.

I have an instance of the bambustudios running in the same way as orcaslicer.

I just checked before the custom image pull and it did not work. Using the custom image you provided, the Bambu one now works ! I am getting the webcam to work without crashing the app.

I tried to delete the autostart file and still got the error when right clicking the desktop and trying to open orcsslicer.

BambuWorking

@thelamer
Copy link
Member

thelamer commented Feb 8, 2024

This is really good news as I now have a comparison and we know specifically what the issue is. The fedora version of the appimage bundles the libs it needs and it is this lib mismatch so I will try pointing this out upstream and see if they can get a fix in. I will also try to manually fix the libs in the image, but I will not have any time until this weekend.
The fedora ingestion is easy so I will get that into the Bambu Studio image before then.

Thanks for testing I will update this thread when I have something.

@thelamer thelamer self-assigned this Feb 8, 2024
@fals3illusion
Copy link
Author

This is really good news as I now have a comparison and we know specifically what the issue is. The fedora version of the appimage bundles the libs it needs and it is this lib mismatch so I will try pointing this out upstream and see if they can get a fix in. I will also try to manually fix the libs in the image, but I will not have any time until this weekend. The fedora ingestion is easy so I will get that into the Bambu Studio image before then.

Thanks for testing I will update this thread when I have something.

No problem, thanks for you help !
It's just easier to remotely manage my slicer/printer on a webpage anywhere vs waking my pc and then RDP into that machine and then slice/upload/ check the camera lol

@Pastitas
Copy link

Is this also fixable for orcaslicer version?

@dohlin
Copy link

dohlin commented Apr 23, 2024

@thelamer are there any updates that you know of on this by chance? I see there is a merge above for bambustudio, but I'm still having the same crashing issue with the latest orcaslicer docker build. Thank you!

@j0nnymoe
Copy link
Member

Are you able to provide any error logs for when the crash happens? No one within the team has a bambu printer so can't test.

@dohlin
Copy link

dohlin commented Apr 24, 2024

Are you able to provide any error logs for when the crash happens? No one within the team has a bambu printer so can't test.

I apologize, I assumed it was the same issue. I've tried to pull the log files, but the only ones I can find are in /.config/OrcaSlicer/log.

And unfortunately, the files that look like they might be valuable (more than 0KB) end in .log.enc and when opened in a text editor result in gibberish. Am I missing something here?
image

EDIT: So the only thing other than the above that I've managed so far to find are these two entries, consistently at the very end of my docker log file immediately after any crash if I run 'docker logs [container_id]':

Segmentation fault (core dumped)

ERROR: openbox-xdg-autostart requires PyXDG to be installed

Mean anything to you?

@bingo-i
Copy link

bingo-i commented Jun 5, 2024

I am also experiencing the same problem.
It works fine in linuxserver/bambustudio, but
In orca, the default webcam of the Bamboo Lab printer does not work and the program is forcefully terminated or generates an error code.

@nakermann1973
Copy link

I have another +1

The log that AppRun outputs on stdout just before crashing is:

BambuTunnel::GetMsg(1)
Segmentation fault

The debug log contents are as follows. the log.enc files were 0-sized:

chris@snark ~ $ cat /tmp/debug_Mon_Sep_30_18_13_10_1190.log.0 
[warning]	2024-09-30 18:13:11.163906[Thread 0x00007f5b57e59440]:get_network_function, can not find function bambu_network_del_subscribe
[warning]	2024-09-30 18:13:11.164012[Thread 0x00007f5b57e59440]:get_network_function, can not find function bambu_network_get_model_id_from_desgin_id
[warning]	2024-09-30 18:13:11.164031[Thread 0x00007f5b57e59440]:get_network_function, can not find function bambu_network_get_profile_3mf
[warning]	2024-09-30 18:13:12.721300[Thread 0x00007f5b57e59440]:06:13:12 PM: Warning: Error running JavaScript: Unsupported result type
[warning]	2024-09-30 18:13:12.723951[Thread 0x00007f5b57e59440]:06:13:12 PM: Warning: Error running JavaScript: Unsupported result type
[warning]	2024-09-30 18:13:12.727781[Thread 0x00007f5b57e59440]:06:13:12 PM: Warning: Error running JavaScript: Unsupported result type
[warning]	2024-09-30 18:13:12.766700[Thread 0x00007f5b57e59440]:06:13:12 PM: Warning: Error running JavaScript: Unsupported result type

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Issues
Development

No branches or pull requests

8 participants