Embroidermodder / libembroidery

Library for reading/writing/manipulating machine and design embroidery files
https://www.libembroidery.org
zlib License
45 stars 13 forks source link

OFM to DST Conversion #126

Open adarshvcdev opened 6 years ago

adarshvcdev commented 6 years ago

I am using the libembroidery-convert to convert ofm files to dst. Ofm files created using Design Shop Pro 9 can be converted without any trouble. Some ofm files (possibly a lower version) is not getting converted and I am getting segmentation issue.

Any help or hint to proceed will be helpfull.

abrock commented 6 years ago

Can you upload one file which leads to the error? That would make helping much easier.

adarshvcdev commented 6 years ago

Looks like the lib is crashing in compound-file.c in function GetFile on the following line. embFile_read(input, 1, sizeToWrite, file);

Please share your valuable thoughts. Thanks

JoshVarga commented 6 years ago

I originally decoded the format with limited number of files. I do not have any applications that can read OFM so it was very much trial and error. Since you have access to more files if you can send a few that work and a few that don't I should be able to get to the bottom of it.

adarshvcdev commented 6 years ago

I am attaching a zip on which working and not working ofms are available. They are kept in separated folders.
OFMSAMPLES.zip

JoshVarga commented 6 years ago

Can you send some more example files? Very complex files using the most functions that you can find would be especially useful.