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:

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

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”/ >

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.

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!

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.

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.

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.

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:

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:

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?

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

Hi,

I keep receiving the same error message whenever I try to open my pattern: “File exception: content of attribute doesn’t match its type de

RobeMadrid44.sm2d (208,4 Ko)

MARIJE44.smms (4,2 Ko)

finition.”

I’ve tried everything I can think of, but unfortunately, nothing seems to work. Would you be able to help me fix this issue?

I’d also really appreciate any advice on how to prevent this from happening again in the future.

Thank you so much for your time and help!

Ok… the initinal issuue was easy to resolve. There is a an internal path that has a color of “Black” when it should be lower case “black”.

It seems that this pattern was created with an old version of Seamly that was writing the ipath with an incorrect color.

<!--Pattern created with Seamly2D v2025.5.19.215

If you haven’t already, I suggest to update Seamly. The file still needs to be hand fixed to edit “Black” to “black”.

That said there is still a major issue with not finding an interrsection point A9 and it causes all kinds of other errors due to the fact the origin point is then used and the whole pattern is then off. I hadf to edit the file to turn off extending internal paths as they then could not find an intersection.

I got the pattern to open, but it will take me some time to figure out why the offending tool is not finding the intersection .

In the future I highly suggest using groups to organize busy draft blocks. :face_with_spiral_eyes:

Ok… one issue I found is that C5 Point - Intersect Curve & Axis in the 2nd sleeve will never happen here:

An axis of 0 degrees from C2 will never intersect the Arc_C1_474. I don’t know what the intent here is?

Also a note… when ever using an arc to intersect with just use a full cricle… you’ll avoid missing intersects in many cases whern sizes are changed.

Also not sure how a radius of SplPath_A26_Z_1 for Arc_c1_47 works here?

A radius of SplPath_A26_Z_1 is well short of the C2 axis.

Another issue with Arc_Bustpoint_41

and Arc_R_40

Do not intersect creating point A9.

Making them intersect still does not fix the pattern. :thinking:

I get the feeling this pattern was originally drafted with a smaller size? Also I’ve notciced none of the spline control handles are formulized… which means they won’t scale properly to different sizes. Which is why the curves get all wonky.