Ultimaker / Cura

3D printer / slicing GUI built on top of the Uranium framework
GNU Lesser General Public License v3.0
6.16k stars 2.07k forks source link

Cura crashes when duplicate profile is selected #13564

Closed GoguyT3D closed 2 years ago

GoguyT3D commented 2 years ago

Application Version

5.1.1

Platform

Windows 11

Printer

Ultimaker S3

Reproduction steps

This is in relation to another problem I had in the past with previous versions of cura. Multiple material profiles that I have created in the past and removed/renamed are showing for my Ultimaker S3. When I click on "Manage Profiles" I get the screen displaying all of my custom profiles including the "Default" and "Engineering" profiles. The problem is with my Custom profiles. I use both an ender 3 pro and an Ultimaker S3 both on cura and have custom profiles for both. I print the same materials on both printers so coincidentally I had profiles that were the same name ex. "PETG .1mm" for both printers and that caused the error saying my files were corrupt and all profiles needed to be wiped. I've since did that and now my profiles have been renamed to not be the same as the other printer though two profiles that existed before (with the same name) are showing up along with all my other profiles almost like duplicates. Currently if I try to select one of the "old" profiles with the same name as my other printer cura Immediately crashes and asks to send an error report. I am not able to remove these unwanted old duplicate named profiles without cura crashing.

Actual results

Cura crashes if I select any of the two profiles (old ones that had same name) to remove them but doesnt allow me to remove them.

Expected results

I would expect to be able to wipe all of my profiles from cura and start by uploading all of my saved profiles and only have those show up. I do not know what caused the old profiles which were removed to come back but I cannot get rid of them and they are not even saved

Checklist of files to include

Additional information & file uploads

I am confused as to why when I removed all of the old profiles prior to this and then reimported them with different names that these old ones which were non existant are showing up again

GoguyT3D commented 2 years ago

Update: I may have found a temporary workaround but I DEFINITELY think this should still be looked into After Updating Cura from 5.0 to 5.1.1 earlier this week I found that the duplicate profile with similar name that got changed in the past to squish the previous bug popped back up. Since posting this version of the bug I uninstalled the instance of Cura 5.0 from my PC then opened 5.1.1 I found a backup from 10/11/22 which was Cura 5.0 and loaded it. Closed cura and reopened 5.1.1 and my profiles were correct(no duplicates) but regardless I had exported them all previously because I do that often. I selected all of the "Cusotm" profiles one by one and removed them. Then I imported my saved exported profiles one by one back into cura(they came back in with the name "CuraProfile" rendered at the beginning of the name ex. CuraProfilePETG1mm, and CuraProfileTPU2mm and so on). I did this with both of my printers and finally backed up when I was finished. I don't know if the "Startup Optimizer" plugin had anything to do with this but I am suspicious because I recently installed that. TY

GoguyT3D commented 2 years ago

This problem was explained well to me by @MariMakes If anyone is having this sort of trouble it involves making sure the correct type of filament which is supported by the printer and print core are selected and not to rename the type even if it has been duplicated by a material that IS supported. I no longer have this issue by changing my PETG profiles which were started as CPE profiles and changing them back to CPE type, also startup optimizer may have helped too.