bambulab / BambuStudio

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

a special character in a user defined filaments id crashes network plugin #5436

Open eingemaischt opened 3 days ago

eingemaischt commented 3 days ago

Bambu Studio Version

1.10.1.50

Where is the application from?

Bambu Lab Official website

OS version

Ubuntu 24.04 and Win 11

Additional system information

No response

Printer

A1

How to reproduce

I don't know how this special character came into the filaments id.

Actual results

The Bambu Studio can't connect to A1 - neither by cloud nor in lan mode. Bambu Android Apps works....

Expected results

Connection possible.

Project file & Debug log uploads

Have a closer look into https://forum.bambulab.com/t/connecting-in-bambu-studio/116445/13

My bambu studio did not connect for the last three days so I wanted to use an open source client. But that crashed, too. Unless the bambu studio network plugin it gave out an UTF-8-coding error. Have a look at this filament description that was set to the external spool holder:

"vt_tray":{"id":"254","tag_uid":"0000000000000000","tray_id_name":"",
"tray_info_idx":"Pde2\xea58c",
"tray_type":"TPU","tray_sub_brands":"","tray_color":"FFFFFFFF","tray_weight":"0","tray_diameter":"0.00","tray_temp":"0","tray_time":"0","bed_temp_type":"0","bed_temp":"0","nozzle_temp_max":"250","nozzle_temp_min":"200","xcam_info":"000000000000000000000000","tray_uuid":"00000000000000000000000000000000","remain":0,"k":0.019999999552965164,"n":1,"cali_idx":0}

The solution after seeing this was simple: I went to the printer and assigned a generic pla filament to the external spool holder - and it's connecting again.

Interesting side fact: Even a factory reset before or coupling another account did not help. I don't know if the printer keeps the filament information in a non-volatile area or if it resynced it right after factore reset with data from the cloud after connecting my account....

Checklist of files to include

eingemaischt commented 3 days ago

Mentioned in https://forum.bambulab.com/t/connecting-in-bambu-studio/116445/14