Cant open file, file error- critical error

I came up with a fix to sanitize any pattern file with a lineWeight=“1.00” attribute. And I did it without the tedius parsing down through the DomDocument to do so. :slight_smile:

Since the file is read into a string before it’s validated, I simply replace any occurance of lineWeight=“1.00” with lineWeight=“1”, save the string back to the file and continue on validating the file. Would have been even easier if the Xerces xml library was written in Qt intead of standard c++ without using std::string. :roll_eyes:

BTW… in case anyone is wondering why this is an issue… when you write decimal numeric attibutes in an xml, the trailing zeros are stripped off. And somewhere a string value (probably a default setting value) is being written as “1.00”. That’s then where the validator throws an error. This way the app can fix the file instead of one of us or a user. :slightly_smiling_face:

4 Likes

Hello everyone! Yesterday i had to download the new version of seamly (because my computer got upgraded to Windows 11). First i could work normally with my files from the older version ( i could even save a dress pattern in different individual sizes, but today i can´t open any of them.

On the main pattern file comes the pop up:

Fehler: Leerer Parameter.

ExceptionEmptyParameter: Leeren Parameter erhalten lineColor

tag: point in line 88 Full tag:

Kleid mit Kimonoärmel.val (109,0 KB)

Sandra_v033.vit (2,0 KB)

Two of the files from this pattern i saved separatly in different sizes have the same error pop-up and one has:

Dateiausnahme.

Ausnahme: Diese XML-Version wird nicht unterstützt.

Auswertungsfehler in Datei: C:/Users/Sandra/Desktop/seamly2d/patterns/DressNora/Dress Nora Size6 Gr36.sm2d, Zeile 1, Spalte 1

1 Like

sorry, the text after Full Tag got somehow deleted.

Full Tag:

< point arc= “73” id= “74” length= “(@Bu/2)/10)” mx=7.3972” my=”-10.4449” name= “A38” type=”cutArc”/ >

1 Like

Hello and welcome to the Seamly Forum, @SewingforyourLife

Your pattern is working perfectly for me.

Since you last downloaded a Seamly update, we have upgraded to QT6. I think that these errors are caused by this upgrade.

I suggest that you open Seamly and, before you load any patterns, go to File > Application Preferences > Graphics > Color and select the default colors that you would like to use. Here is a screenshot of the colors that I have set:

Once you’ve done this, click on Apply and then OK.

Exit the program and then re-open the program and open a pattern as you normally do and see if you’re still getting any errors.

Please let me know.

1 Like

Thank you very very much! After i applied that all my pattern files worked again! (But only shortly because Kaspersky decided to go crazy and delete Seamly2d again. But that is a problem i have to ask my IT-Guy about).

But now i know what to do once it works with Kaspersky. Thank you!

3 Likes

Yeah… Kaspersky! The anti-virus programs are picking up a file in Seamly that they think is a Bearfoos virus and putting Seamly into quarantine. It isn’t a virus. What you can do is to go & look for Seamly in the quarantine folder and restore it from there - I don’t know if Kaspersky has such a thing.

2 Likes

I´m sorry to be annoying, but i´ve got another pattern file that has an error:

Dateiausnahme. Ausnahme: value ‘1.00’ not in enumeration

1Dress Nora Size6 Gr36.sm2d (109,3 KB)

Gr.36.vit (2,1 KB)

I think someone else had the same issue. I tried to change lineWeight from 1.00 to 1 ( i hope i changed every one). But it still doesn´t work. How can i avoid that this error happens again? Once i changed the measurments (from size 8 to size 6) and saved that file, the error popped up in both files. Am i doing something wrong?

@Grace I tried everything i could think of with Kaspersky, but it deletes Seamly without even asking. Which is very strange because before the upgrade to windows 11 i never had a problem with that.

2 Likes

I found the 1.00 on line 446 or something, it was only the one and now it opens for me with no problems.

You’ll need to contact Kaspersky to untarget the program.

Yes, we had it a while back and it seems that either the QT6 upgrade or the Windows 11 upgrade has brought it back. I had the same thing on mine, but I use Windows Defender, so I added Seamly to my Firewall.

What you can try it to pause Kaspersky, install Seamly, add Seamly to your Firewall and then unpause Kaspersky.

Perhaps that will work.

1 Like

1Dress Nora Size6 Gr36_fuxed.sm2d (109.3 KB)

I have a fix for the lineweight issue… one that even fixes the file itself. It might end up in this weekends release - if not a pre-release during the week.

It’s kinda of out of our control. MS Defender randomly does the same thing. It’s a “machine leaning” issue. :frowning:

4 Likes

Oh, i missed one :sweat_smile: . Thank you! But i did some more work on the pattern, saved it and the error popped up again. But well, at least i know how to fix that one now.

@Douglas Thank you! That would be amazing. Although it is an easy fix, it is kinda time consuming (and weirdly for my eyes quite overwhelming to look at xml code)

What irks me most it that Kaspersky does it without asking me before, it used to always do that…but well, i tried the advice from Grace, so maybe if i´m lucky it will work.:grinning_face_with_smiling_eyes:

2 Likes

Between looking at pattern / measuerement files, the xsd schema, and ts translation files almost everyday I’m used to xml. :thinking:

The easiest thing is to just search for lineWeight=“1.00” and replace with lineWeight=“1”. In fact that’s what I did in the fix. I figured out how to make the replacement in a bad file before it’s validated… as well as not writing “1.00” in the first place.

Defender does the same thing. Which BTW… if you’re on Windows 11 are you sure it’s not Defender quarantining the file?

3 Likes

I looked at the activity list of Kaspersky after it deleted Seamly and there it was listed. So i guess it´s Kaspersky.

2 Likes