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.
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.
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.
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.
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:
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 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.
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.
Oh, i missed one . 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.
Between looking at pattern / measuerement files, the xsd schema, and ts translation files almost everyday I’m used to xml.
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?