bambulab / BambuStudio

PC Software for BambuLab and other 3D printers
GNU Affero General Public License v3.0
1.89k stars 264 forks source link

Video Laggy and slow to connect going through Bambu Servers #2230

Closed TheCableGuy99 closed 1 year ago

TheCableGuy99 commented 1 year ago

Bambu Studio Version

1.7.3.50

Where is the application from?

Bambu Lab github releases

OS version

Windows 11 Pro

Additional system information

Upgraded MSI GS75 10SE Gaming Laptop CPU: Intel i7-10750H @ 2.60GHz RAM: 32GB GPU: nVidia GeForce RTX 2060 NVMe: Samsung SSD 970 EVO 2TB

Printer

Bambu Lab X1C (I have 3 and all 3 are affected)

How to reproduce

1) Try to monitor the live view camera when in normal mode (using Bambu Servers) when printing or not

Actual results

It's slow to connect and very laggy and delayed (a screenshot will not show this).

Expected results

I expect the video to be fairly smooth even if there is a little delay but it's practically unwatchable.

I disabled all other network activity and it's still the same. So I switched to LAN mode and as soon as I use LAN mode the video is fast to connect and buttery smooth.

This leaves the issue with either my internet connection, route to your servers or your servers being congested.

My internet downstream is 900Mbps download and 110Mbps upload and is rock solid. It's a business line and using very little. bandwidth. Speedtests show around 920Mbps down and 108Mbps upload showing my internet speeds are more than fast enough to video speeds. Speedtest taken just now: https://www.speedtest.net/result/15095913802.png

The above shows it's not my connection. I also highly doubt it's any routing to your servers. I really think your European servers are over congested.

This has been going on some time is seems to be getting worse. It wasn't like this initially when I bought the printers.

I have also formatted my PC and tried with other machines. The only thing that resolves it is going to LAN mode.

It's the same with many previous versions of Bambu Studio and ANY project I print.

Project file & Debug log uploads

debug_network_Tue_Aug_08_18_42_35.log

Pick any project file, it really doesn't matter, it's been happening with ALL projects for months. I've only been able to realise it's the servers at fault recently since I can now view the video in LAN mode and it works.

Checklist of files to include

bambu123 commented 1 year ago

Are you connecting to the P1P printer? The P1P printer pushes liveview with 1fps, that is one picture a second.

TheCableGuy99 commented 1 year ago

Are you connecting to the P1P printer? The P1P printer pushes liveview with 1fps, that is one picture a second.

No these are all X1C's and it's the same on all of them. Rubbish through the cloud and absolutely fine and smooth in LAN mode.

bambu123 commented 1 year ago

Reference i

OK. Please send all log files to me. The above one is not enough.

TheCableGuy99 commented 1 year ago

This is the whole log directory.

Thanks :)

log.zip

TackleBerryCrash commented 1 year ago

I second the existence of the issue on my end too. Speed and frame rate of the streaming service has been going down hill last couple months. I had to check progress just today on my prints from the mobile app. I could not even pass the spinner today with a solid connection.

bambu123 commented 1 year ago

I second the existence of the issue on my end too. Speed and frame rate of the streaming service has been going down hill last couple months. I had to check progress just today on my prints from the mobile app. I could not even pass the spinner today with a solid connection.

I found you are using LAN Only mode live view. Will the live view be ok in LAN Only mode? You can turn off LAN Only mode from printer screen.

TackleBerryCrash commented 1 year ago

I second the existence of the issue on my end too. Speed and frame rate of the streaming service has been going down hill last couple months. I had to check progress just today on my prints from the mobile app. I could not even pass the spinner today with a solid connection.

I found you are using LAN Only mode live view. Will the live view be ok in LAN Only mode? You can turn off LAN Only mode from printer screen.

I am not using Lan Only Mode, maybe OP is LAN ONLY Means I can not use the mobile app but I use the mobile app extensively

Note: OP says he turned LAN only ON then streaming was OK locally. Read up.

TheCableGuy99 commented 1 year ago

I second the existence of the issue on my end too. Speed and frame rate of the streaming service has been going down hill last couple months. I had to check progress just today on my prints from the mobile app. I could not even pass the spinner today with a solid connection.

I found you are using LAN Only mode live view. Will the live view be ok in LAN Only mode? You can turn off LAN Only mode from printer screen.

I am not using Lan Only Mode, maybe OP is LAN ONLY Means I can not use the mobile app but I use the mobile app extensively

I believe he's asking if you can put it in LAN only mode and try viewing through Bambu Studio to see if it resolves the issue like it does for me.

TackleBerryCrash commented 1 year ago

I second the existence of the issue on my end too. Speed and frame rate of the streaming service has been going down hill last couple months. I had to check progress just today on my prints from the mobile app. I could not even pass the spinner today with a solid connection.

I found you are using LAN Only mode live view. Will the live view be ok in LAN Only mode? You can turn off LAN Only mode from printer screen.

I am not using Lan Only Mode, maybe OP is LAN ONLY Means I can not use the mobile app but I use the mobile app extensively

I believe he's asking if you can put it in LAN only mode and try viewing through Bambu Studio to see if it resolves the issue like it does for me.

I dont think so

TackleBerryCrash commented 1 year ago

Also putting them into LAN only mode defeats the purpose of having cloud capable printers, counter productive... It will work likes yours did but I am not gonna use the LAN only mode ever so cloud streaming should just work as is.

bambu123 commented 1 year ago

This is the whole log directory.

Thanks :)

log.zip

Sorry. I'm looking into this log. LAN only mode is on in this log.

TackleBerryCrash commented 1 year ago

This is the whole log directory. Thanks :) log.zip

Sorry. I'm looking into this log. LAN only mode is on in this log.

@TheCableGuy99 I think he is asking for a log that has LAN MODE OFF so it will exhibit the issue

bambu123 commented 1 year ago

This is the whole log directory. Thanks :) log.zip

Sorry. I'm looking into this log. LAN only mode is on in this log.

@TheCableGuy99 I think he is asking for a log that has LAN MODE OFF so it will exhibit the issue

@TheCableGuy99 I would like to ask you to help compare whether there is a difference between the two modes.

TheCableGuy99 commented 1 year ago

Ahh okay, my bad! I turned LAN only mode back off earlier as I was having other issues with it and have done some prints since so I can provide that right away: log.zip

Also, here is a minute long video of how I am seeing the video stream and as already said it's slow to connect initially: [](https://](https://www.privatehost.uk/video.zip)

bambu123 commented 1 year ago

Ahh okay, my bad! I turned LAN only mode back off earlier as I was having other issues with it and have done some prints since so I can provide that right away: log.zip

Also, here is a minute long video of how I am seeing the video stream and as already said it's slow to connect initially: [](https://](https://www.privatehost.uk/video.zip)

Are other applications on your computer accessing the Internet normally? Is it that studio is relatively slow in responding to user operations?

TheCableGuy99 commented 1 year ago

Everything else on my PC and the whole network is fine. We can video stream from multiple TV/devices at once, we can watch 10 IP CCTV cameras and much more. It's all commercial grade networking switches and Wireless APs.

I've also disabled everything else on the network and it's the same showing it's not a local networking issue (but the fact that LAN mode works fine shows that also).

PC has recently been formatted and is running very fast and the issue was present before the format and still present after and yes all other apps on the same PC are running fine. I can watch youtube and many other online TV channels just fine. Bambu Studio is also pretty quick, it's a very fast laptop.

bambu123 commented 1 year ago

Everything else on my PC and the whole network is fine. We can video stream from multiple TV/devices at once, we can watch 10 IP CCTV cameras and much more. It's all commercial grade networking switches and Wireless APs.

I've also disabled everything else on the network and it's the same showing it's not a local networking issue (but the fact that LAN mode works fine shows that also).

PC has recently been formatted and is running very fast and the issue was present before the format and still present after and yes all other apps on the same PC are running fine. I can watch youtube and many other online TV channels just fine. Bambu Studio is also pretty quick, it's a very fast laptop.

Are you saying that LAN Only mode is good? The problem only exists in non-LAN Only mode?

TheCableGuy99 commented 1 year ago

Are you saying that LAN Only mode is good? The problem only exists in non-LAN Only mode?

That's correct.

Str00pwafel commented 1 year ago

I'm having the same issue but rather with the bambu app on phone.

Whenever I want to see progress of the print in the app, it has to load for 30 sec or more for it to show the initial picture after pressing the play button. It stays black for so long before it shows me the camera, this can't be how it supposed to be.

bambu123 commented 1 year ago

Are you saying that LAN Only mode is good? The problem only exists in non-LAN Only mode?

That's correct.

Can you help us debug this problem? I added some logs to BambuSource.dll. Please help replace BambuSource.dll in the plugin directory, then reproduce the problem and send us the logs. Note that this DLL is not signed, please delete it after testing. BambuSource.zip

TackleBerryCrash commented 1 year ago

For me this started happening last couple months and got a lot worse gradually. Now, sometime it is almost unusable, sometime it is barely streaming. This happening gradually over the months suggesting it is a capacity issue on the service end of things. Most likely services needs to be scaled up.

TheCableGuy99 commented 1 year ago

Are you saying that LAN Only mode is good? The problem only exists in non-LAN Only mode?

That's correct.

Can you help us debug this problem? I added some logs to BambuSource.dll. Please help replace BambuSource.dll in the plugin directory, then reproduce the problem and send us the logs. Note that this DLL is not signed, please delete it after testing. BambuSource.zip

it will be a few hours as its printing now so i'll do a new print with the new dll file when its finished :)

TheCableGuy99 commented 1 year ago

okay sorry for the delay, here's the new logs attached. I left it running for about 10 minutes before taking them. log.zip

Also, I don't know if this is related but I took a backup of the original BambuSource.dll file and put it on my desktop. As soon as I opened Bambu Studio 3 files appeared on my desktop. So I'm also providing those in case they are important. They are too big to add to here to so I've uploaded them again. Here's the link: https://www.privatehost.uk/Desktop_Logs.zip

Thanks.

bambu123 commented 1 year ago

okay sorry for the delay, here's the new logs attached. I left it running for about 10 minutes before taking them. log.zip

Also, I don't know if this is related but I took a backup of the original BambuSource.dll file and put it on my desktop. As soon as I opened Bambu Studio 3 files appeared on my desktop. So I'm also providing those in case they are important. They are too big to add to here to so I've uploaded them again. Here's the link: https://www.privatehost.uk/Desktop_Logs.zip

Thanks.

Thank you very much. But strangely, there are no relevant logs I added, but the other three files are also useful, let's analyze them first.

TheCableGuy99 commented 1 year ago

Okay, I am interested why you are looking at the logs though? Do you not feel this is a congestion or other issue with your servers?

Marcel40625 commented 1 year ago

Have the same issue, with the latest updates on BambuStudio the Video Perfomance got worse and worse.

have Ubiquiti Network Gear, have multiple IP Cams and Video Streaming from Cable Box via Network, everything runs fine, except Video Feed from X1C

@TheCableGuy99 The Video Feed does not run over Bambu´s Server as far as i know (even in Cloud Mode) :)

TheCableGuy99 commented 1 year ago

Have the same issue, with the latest updates on BambuStudio the Video Perfomance got worse and worse.

have Ubiquiti Network Gear, have multiple IP Cams and Video Streaming from Cable Box via Network, everything runs fine, except Video Feed from X1C

@TheCableGuy99 The Video Feed does not run over Bambu´s Server as far as i know (even in Cloud Mode) :)

The issue for me has been going on for some time. I also use Ubiquiti and all my IP cams are also fine (although they are hard wired). The video feed must go through their servers because otherwise you wouldn't be able to access it externally. I turn off uPNP as it's insecure.

bambu123 commented 1 year ago

To make the issue clearer, this issue should all be about the X1 printer model. Studio 1.7 supports LAN Only Liveview with the latest version of X1, the previous Studio (1.6) can only support X1, non-LAN Only liveview. In non-LAN Only scenarios, there should not be much difference between the old and new versions. If you find that the old and new versions are very different, and the new version has a regression, that is the issue that needs to be analyzed and solved. Under normal circumstances, video streams are sent through P2P and do not require server forwarding.​ In order to analyze the problem, it is recommended to provide comparative logs of the old and new versions. In particular, the logs of the old version are normal and the new version is not normal, and the total log time span of the old and new versions does not exceed 1 hour.

TheCableGuy99 commented 1 year ago

To make the issue clearer, this issue should all be about the X1 printer model. Studio 1.7 supports LAN Only Liveview with the latest version of X1, the previous Studio (1.6) can only support X1, non-LAN Only liveview. In non-LAN Only scenarios, there should not be much difference between the old and new versions. If you find that the old and new versions are very different, and the new version has a regression, that is the issue that needs to be analyzed and solved. Under normal circumstances, video streams are sent through P2P and do not require server forwarding.​In order to analyze the problem, it is recommended to provide comparative logs of the old and new versions. In particular, the logs of the old version are normal and the new version is not normal, and the total log time span of the old and new versions does not exceed 1 hour.

Okay. slightly confused as for me it's been going on a long time and it's only recently that since I've been able to show it isn't affected when using the "LAN mode" viewer which is now supported.

I've sent you as much logs as I can, what else can I do to help (if anything)?

bambu123 commented 1 year ago

To make the issue clearer, this issue should all be about the X1 printer model. Studio 1.7 supports LAN Only Liveview with the latest version of X1, the previous Studio (1.6) can only support X1, non-LAN Only liveview. In non-LAN Only scenarios, there should not be much difference between the old and new versions. If you find that the old and new versions are very different, and the new version has a regression, that is the issue that needs to be analyzed and solved. Under normal circumstances, video streams are sent through P2P and do not require server forwarding.​In order to analyze the problem, it is recommended to provide comparative logs of the old and new versions. In particular, the logs of the old version are normal and the new version is not normal, and the total log time span of the old and new versions does not exceed 1 hour.

Okay. slightly confused as for me it's been going on a long time and it's only recently that since I've been able to show it isn't affected when using the "LAN mode" viewer which is now supported.

I've sent you as much logs as I can, what else can I do to help (if anything)?

LAN Only Liveview uses a direct connection to the local area network, so it is basically unaffected by the network environment. For comparison, I need your help to provide some logs played using version 1.6.

TheCableGuy99 commented 1 year ago

Okay, just to be sure, you want the logs from the 1.6 version when using cloud mode right?

I can do this for you later today, i just want to confirm which mode you need me to get the logs in.

bambu123 commented 1 year ago

Okay, just to be sure, you want the logs from the 1.6 version when using cloud mode right?

I can do this for you later today, i just want to confirm which mode you need me to get the logs in.

Yes. Downgrade Studio to 1.6.2 version. Set printer to turn off the LAN Only mode, that is to use cloud mode. Play liveview for minutes and multiple times, close studio and send me the logs.

bambu123 commented 1 year ago

@TheCableGuy99 @TackleBerryCrash @Str00pwafel @Marcel40625 We have adjusted some server configurations. Can you help me try again?

TheCableGuy99 commented 1 year ago

@TheCableGuy99 @TackleBerryCrash @Str00pwafel @Marcel40625 We have adjusted some server configurations. Can you help me try again?

Sorry had had chance to roll back yet but saw your reply and gave it a go with the latest version...

It's MUCH better now. Very smooth and from what I can tell no lag at all.

I would hazard a guess that something was sending the video out through the cloud previously, but you have changed something to ensure the stream is now peer-to-peer as you suggested it should be.

Thank you very much :)

bambu123 commented 1 year ago

@TackleBerryCrash @Str00pwafel @Marcel40625 What about yours?

TheCableGuy99 commented 1 year ago

I just wanted to confirm that I've done a little additional testing to ensure it's thoroughly working. I had my CCTV cameras streaming to my laptop, 3 X1C's and all streams were running smoothly. I also tried the studio app on iOS and that's also quicker to connect when on WiFi and when on 4G. Whatever you have done as far as I'm concerned, I'm really pleased with. But yeah, I'm interested what others say as well.

Str00pwafel commented 1 year ago

@TackleBerryCrash @Str00pwafel @Marcel40625 What about yours?

Unfortunetaly no, but it is a P1P and not an X1C. The initial loading of the footage takes about 20 seconds if not more, after it eventually loads its fine and expected behaviour.

bambu123 commented 1 year ago

@TackleBerryCrash @Str00pwafel @Marcel40625 What about yours?

Unfortunetaly no, but it is a P1P and not an X1C. The initial loading of the footage takes about 20 seconds if not more, after it eventually loads its fine and expected behaviour.

P1P is discussed here #2162. Have you upgrade the firmware of the printer to version 1.4? Are there any behavior changes from Studio 1.6.2 to 1.7.3?

Str00pwafel commented 1 year ago

Printer is indeed on the latest firmware and I have updated bambu studio aswell. I mainly use the phone app(iphone) to show the progress via the camera, I haven't actually tested if bambu studio is similar or faster. I can do that soon.

TackleBerryCrash commented 1 year ago

@TackleBerryCrash @Str00pwafel @Marcel40625 What about yours?

This cloud outage has been happening since Sunday so I was not able to test a lot but today even w/o cloud I was able stream locally within my network fine. I was not able to test Handy app yet.

I'll give a day or two until cloud is up an running and report back

Marcel40625 commented 1 year ago

Had only 1 print yesterday but there it looked better, will try the next days

Str00pwafel commented 1 year ago

@bambu123 Just checked Bambu studio and it seems a lot faster now, the app also responds way faster in showing the camera stream!

bambu123 commented 1 year ago

Glad to see LiveView is working. Thank you all for your responses.

bambu123 commented 1 year ago

Closing this issue now that the X1C related issue has been resolved.

Witawat commented 1 year ago

now i have problems it i use x1c last firmware 1.0.6 and use studio last version cam stream slow and lag

how to fix

bambu123 commented 1 year ago

now i have problems it i use x1c last firmware 1.0.6 and use studio last version cam stream slow and lag

how to fix

Please provide app logs. The log folder can be found from the menu "Help > Open Configuration Folder".

Witawat commented 1 year ago

now i have problems it i use x1c last firmware 1.0.6 and use studio last version cam stream slow and lag how to fix

Please provide app logs. The log folder can be found from the menu "Help > Open Configuration Folder".

log.zip

KuraiKitsune commented 11 months ago

If I may add to this issue. The video quality and fps has always been terrible on the Bambu Studio app for me in Windows. I do not use LAN-only mode as I appreciate the cloud connectivity. However, the Bambu Handy app on an android phone on the same home network gets full video quality and fps. Why can they be so different? Why has Bambu not addressed this sooner? Below are 2 videos of the same print job happening, viewed from the 2 apps.

Bambu Studio: https://i.gyazo.com/db5b19a1b52215133ad94298a324a3a3.mp4 Bambu Handy: https://i.gyazo.com/a2873492e3ff3c684f131d83f93b070e.mp4

drewzh commented 11 months ago

@bambu123 this issue is back again. The bambu studio feed is terribly slow/laggy. Like others, my network is not the problem.

bambu123 commented 11 months ago

@bambu123 this issue is back again. The bambu studio feed is terribly slow/laggy. Like others, my network is not the problem.

Please send me the log.