prusa3d / PrusaControl

PrusaControl is an alternative user interface for Slic3r Prusa Edition
http://prusacontrol.org
GNU General Public License v3.0
128 stars 45 forks source link

PrusaControl 0.9.4_415 colorprint generate hang on win10 at 44% #89

Open ignisVeneficus opened 6 years ago

ignisVeneficus commented 6 years ago

The ColorPrint plugin at the generate/save state hang (or take very long) on 44%. The file is almost finished in the hdd, just missing the end (flush()?) I tried with big file, and a short one the same result.

LeadAssimilator commented 5 years ago

Slic3r is exporting .gcode files as utf-8 but PrusaControl is not correctly specifying the encoding when reading them back in gcode.py's copy_file_with_progress_and_color_changes. This leads to an unhandled exception which breaks the saving process and the UI entirely if the original file contains utf-8 characters.

The default usage of Slic3r will insert utf-8 characters towards the end of the file as ; filament_notes = "List of materials tested with standart PLA print settings for MK2:\n\nDas Filament\nEsun PLA\nEUMAKERS PLA\nFiberlogy HD-PLA\nFillamentum PLA\nFloreon3D\nHatchbox PLA\nPlasty Mladeč PLA\nPrimavalue PLA\nProto pasta Matte Fiber\nVerbatim PLA\nVerbatim BVOH" which comes from the Notes tab of the selected filament profile in Filament Settings and is saved in PrusaResearch.ini.

Workaround Options