PrusaSlicer Error code. Can't import Config bundle. Lost all profiles.
 
Notifications
Clear all

PrusaSlicer Error code. Can't import Config bundle. Lost all profiles.  

  RSS
vintageb3
(@vintageb3)
Eminent Member
PrusaSlicer Error code. Can't import Config bundle. Lost all profiles.

Hi Folks!  I reinstalled Slicer this evening after saving the Config bundle earlier. I added the date in the file name as in "24 11 2020 PrusaSlicer_config_bundle.ini" I now can't import the config bundle back into Slicer. I copied out the same .ini file and removed the date and still can't import the config bundle and get the same error message. Ive tried previous config bundles and get the same error code prompt. see attached pic.

Any ideas how I can resolve the issue?  I may be able to import a config.ini from previous projects. Haven't tried that yet though.

I'm on latest version of Slicer and on macOS Catalina 10.15.6.

Thanks in advance for any help you guys can offer.

Napsal : 24/11/2020 10:06 pm
pcweber
(@pcweber)
Member
RE: PrusaSlicer Error code. Can't import Config bundle. Lost all profiles.

I'm sorry that you are having this issue. That said, this is just a guess on my part, so a clean install without using the wizard. From what you say here and the error it appears as if there is a duplicate name in one of the files. 

 

Stay safe and healthy, Phil

Napsal : 24/11/2020 10:56 pm
vintageb3
(@vintageb3)
Eminent Member
Topic starter answered:
RE: PrusaSlicer Error code. Can't import Config bundle. Lost all profiles.

Hi There!  Thanks for the idea but I tried that earlier thinking it was this issue. I’m just thinking though if I find that config bundle on my drive...delete it and copy my config bundle over...that may work. 
I’ll try it later

Thanks once more!

Napsal : 24/11/2020 11:01 pm
Neophyl
(@neophyl)
Illustrious Member
RE: PrusaSlicer Error code. Can't import Config bundle. Lost all profiles.

A config bundle is just a big long xml file with settings sections in it.  You can open it with a text editor.  Look for duplicate sections as that is what the error is complaining about.  Remove the duplicate(s), save as a different name so you still have the original and then try importing it.

If you want you could zip it up and attach it here and I'll take a look for you.  No guarantees though.   btw what version of slicer was it exported from ? and what version were you trying to import it into ?

Napsal : 25/11/2020 12:01 am
vintageb3
(@vintageb3)
Eminent Member
Topic starter answered:
RE: PrusaSlicer Error code. Can't import Config bundle. Lost all profiles.

Oh right!...I'll give that a go. Thanks for the heads up. Failing that I will come back with a copy of the config bundle and you can laugh at my profile 🙂

Thanks you!

m

Napsal : 25/11/2020 12:04 am
vintageb3
(@vintageb3)
Eminent Member
Topic starter answered:
RE: PrusaSlicer Error code. Can't import Config bundle. Lost all profiles.

Hi Neophyl...

Oh dear!  had a look at that file in Text edit...its away above my abilities to do anything with that!

When you get a chance...can you perhaps have a look and see if you can see the issue. No rush! I can't attach here, the forum won't allow so here's a dropbox link;

https://www.dropbox.com/sh/vok8pdrq9g3hz4i/AACe6bTYyD6GYW1WVcGSaq7Ta?dl=0

Thanks in advance!

m

This post was modified před 4 years by vintageb3
Napsal : 25/11/2020 12:10 am
vintageb3
(@vintageb3)
Eminent Member
Topic starter answered:
RE: PrusaSlicer Error code. Can't import Config bundle. Lost all profiles.

I'm thinking...hear the noise?

Can I go in and individually save out those config files?

I could maybe do that.

Thanks!

Napsal : 25/11/2020 12:15 am
vintageb3
(@vintageb3)
Eminent Member
Topic starter answered:
RE: PrusaSlicer Error code. Can't import Config bundle. Lost all profiles.

Hi Neophyl, Just reread your post...zip the file...that why I couldn't upload earlier. Here it is:

24 11 2020 PrusaSlicer_config_bundle.ini

Also, I can't remember what version this was saved out of, but it can't be that old. Its possible the last version...and I'm trying to import into the latest version 2.2.9.1 for Mac OS.

Thanks!

Napsal : 25/11/2020 1:12 am
Neophyl
(@neophyl)
Illustrious Member
RE: PrusaSlicer Error code. Can't import Config bundle. Lost all profiles.

@vintageb3

OK I have had a look at it and found the issues.  You had 3 sections repeated, one in each of the print, filament and printer sections.

Basically sections called
[printer:Ender 3 Pro]
[printer:Ender 3 Pro ] <notice the extra space after this one.
I suspect its allowing you to save it with the space at the end in the software itself as its treating them as 2 different profiles.  However I also suspect that the import function is stripping off trailing spaces and so its evaluating the section names as being the same.  That I think is a bug on the import function, it really shouldnt be doing that to sections that are enclosed in brackets like that.

I have renamed the ones with the spaces in the import.
Attached is the cleaned version that does successfully import into Prusa Slicer 2.2.0

This should really be raised as an issue on github. Do you mind if I raise one on your behalf ?  I'll have to attach the broken config bundle so the devs can see the issue.

Attachment removed
Napsal : 25/11/2020 8:46 am
vintageb3
(@vintageb3)
Eminent Member
Topic starter answered:
RE: PrusaSlicer Error code. Can't import Config bundle. Lost all profiles.

@neophyl

Hi Neophyl! Wow! Imported to Slicer and working! I'm so glad you have found the issue in the file. I printed a little SD card box last night using a Youtubers profile and it was like stepping back from the tuning of my profile on this Ender 3 Pro. Thanks you so much! Can I ask how you found that so quickly? By what method? I'd like to learn how to resolve such issues. I spent hours last night trying to copy out sections of that file and load   them into Slicer as separate profiles to no avail. I also couldn't load any other config bundles I have saved since March. 

Of course raise the issue on Github. If it helps the community I'm all for that! I am going to go through and weed out a lot of those profiles...as they were tweaks when starting printing from March this year.

As for naming the profiles, I was a bit confused and still am about how to save in each section of Print Settings, Filament Settings, Printer settings.  To me it would make sense to save out one profile and that would capture all three sections. I don't think it works that way?

Filament settings is straight forward enough, but Print and Printer sections...I tried to name those two the same, such as "24 11 2020 Ender 3 Nice print with Z hop" so I could go back and use that version if the tweak worked. I wasn't sure this was working. i.e. when choosing a Printer Setting from the drop down, was it actually the Printer Settings or the Print Settings profile I was choosing. Does that make sense? 

Anyway, I thought thats what could have caused the issue I was having and the one you have resolved.

I thank you so much for your efforts! I'm so happy that I haven't lost those settings to work forward from.

All the best!

mark

Napsal : 25/11/2020 10:30 am
Neophyl
(@neophyl)
Illustrious Member
RE: PrusaSlicer Error code. Can't import Config bundle. Lost all profiles.

I consider myself a bit of a power user but I'm not a coder so I'm not an expert by any means. I do test embedded software for a living though and xml files and such are used a lot in our gear.

For text editing I use a free program called Notepad++. It has lots of tools built in but you can also download add ons. I just used the built in stuff though for this.

For the ini file I just opened it up in Notepad++. I then used a built in option called collapse view, choosing level 1. This collapses all the sections down so its just a big list of the section names. Level one is saying collapse it till just the top level sections are listed. When you have files with sub sections you can collapse to various levels. The ini file just has top level sections so the 1st level is the only one that's needed.

The next thing was your error message. Notice it says (4258). That's the line number 4258 in the file. With it collapsed to just the section names it was easy to find the profile.
When I noticed that it was the same but with an extra space it clicked what the issue likely was. I renamed the section and saved the ini with a new name to preserve your original. I then tried importing it into Slicer. Where upon it failed again. But this time with a new line number.

Scanning down to that once again it had the same duplicate sections. I renamed that one too and saved>Imported. Yet again it failed with a new line number. Same process , same duplicate.
It was at that point that I realised that the 2 profiles had entries in the Print/Filament/Printer sections and that's why there were 3 failures. Renaming this final one and saving resulted in the import succeeding this time.

On the file menu>Export options, Export Config saves the currently selected Print/Filament/Printer profiles out to an ini file. Exporting a Config Bundle exports ALL the custom profiles. Notice custom ones only. The built in defaults are not saved as you can always get them back by running the wizard. If you want to save those too you can just save the entire config directory. That's a bit risky though as the contents of that will change as and when prusa releases configuration updates. Also using that method between different version can mess things up as newer versions can contain extra settings and if you write over them with older versions those settings arent there any more. Which inevitably leads to issues.

Of course saving a project as a 3mf ALSO saves the currently selected profiles along with the models and any modifiers you are using so its another good way to have a backup of profiles as you have the import config from project option. The actual generated Gcode also saves the settings used to generate it at the end of the gcode file too so you can actually load those settings from gcode if you cant locate your original project (or didnt save a project). I ALWAYS save a project. Usually just before I hit slice. Its a good habit to build. Especially when using the alpha versions lol. You never know if its going to crash with them so saving is GOOD.

I wouldnt save profiles for a project in all 3 sections like you did. Just save a profile if the contents have actually changed. So unless you are messing with your printer settings, like retraction or altering the custom gcode,, z hop etc dont save a new one. Same with filaments. Unless you are actually changing something its not worth it. When you save a project it saves all that anyway so you can always get it back.
I've got various printer ones with datestamps in the names as I've tweaked the start gcode over time and I've got various filament ones too in the same fashion. But not a huge number. I do tend to have a lot more Print profiles as I'm always experimenting with those. Which like you I should spend some time cleaning up 🙂

Oh and Prusa Slicer also has the Save configuration snapshot option now. Its under Configuration. PS takes these whenever it updates the built in profiles but you can trigger one from the menu at any point. I don't really use this way myself but I did try it once and it seems to work.

Phil

Napsal : 25/11/2020 11:36 am
vintageb3
(@vintageb3)
Eminent Member
Topic starter answered:
RE: PrusaSlicer Error code. Can't import Config bundle. Lost all profiles.

@neophyl

Hi Phil, Thanks so much for the in-depth reply. Totally understand now how you got to the issues so quickly. I was simply hit with too much info when I opened the file...looking at just section names would make the head hurt less. 🙂 I'm on Mac...so I think I will download Atom, which I believe is the best option on Mac for Notepad++. Could be handy to have.

I ALWAYS save project files into a folder with the STL, gcode and relating files, although I know that the project file is a container for both those. Its just handy to have easy access to those. I did see the option to :"Import config from Project file", So I knew all was not lost.

I read you about not saving every profile, but each of these saved profiles are indeed a small tweak. Now I need to tidy up and lose the profiles I will never use again. That may save some of the issues I caused myself here. 

I did just notice the Snapshot feature. I've been exporting out the bundles. I suppose the snapshots would be handy also.

Can't thank you enough for the advice Phil. Its been a great help!

Thanks once more!

best 

mark

 

Napsal : 25/11/2020 12:06 pm
Share: