sk1project / sk1-wx

sK1 2.0 cross-platform vector graphics editor
https://sk1project.net
GNU General Public License v3.0
283 stars 52 forks source link

CMX conversion to SVG is not working #309

Open lobaluna opened 2 years ago

lobaluna commented 2 years ago

I installed sk1 (v. 2.0 rc5) and uniconvertor (v. 2.0 rc5) in Mabox Linux (Manjaro derivative distro) but I am unable to convert CMX files to SVG. I used to do it in the past. I report this to new developers.

In order to check that the file is not corrupted, I converted successfully using convert.io site online. Here is the output of the run with uniconvertor:

$ uniconvertor --show-log --format=SVG cancer1.cmx cancer1.svg
 INFO     | 03:34:36 PM | uc2.application --> Translation of "/mnt/GALLERY/clipart/horoscpe/set01/aries1.cmx" into "/home/simonapetra/Downloads/clipart-SVG"
 INFO     | 03:34:36 PM | uc2.application --> Start to search for loader by file extension cmx
 INFO     | 03:34:36 PM | uc2.application --> Loader "cmx_loader" is found for /mnt/GALLERY/clipart/horoscpe/set01/aries1.cmx
 INFO     | 03:34:36 PM | uc2.application --> Parsing in progress...
 INFO     | 03:34:36 PM | uc2.application --> <CMX> document model is created
 ERROR    | 03:34:36 PM | uc2.formats.generic --> Error updating document model
 ERROR    | 03:34:36 PM | uc2.formats.generic --> 'i' format requires -2147483648 <= number <= 2147483647
Traceback (most recent call last):
  File "/usr/lib/uniconvertor-2.0rc5/uc2/formats/generic.py", line 165, in update
    self.model.do_update(self, action)
  File "/usr/lib/uniconvertor-2.0rc5/uc2/formats/generic.py", line 53, in do_update
    child.do_update(presenter, action)
  File "/usr/lib/uniconvertor-2.0rc5/uc2/formats/generic.py", line 54, in do_update
    self.update()
  File "/usr/lib/uniconvertor-2.0rc5/uc2/formats/cmx/cmx_model.py", line 923, in update
    self.chunk += struct.pack(sig, *item[:4])
error: 'i' format requires -2147483648 <= number <= 2147483647
 ERROR    | 03:34:36 PM | uc2.application --> Error while loading "/mnt/GALLERY/clipart/horoscpe/set01/aries1.cmx"The file may be corrupted or contains unknown file format.
 ERROR    | 03:34:36 PM | uc2.cmds.translate --> Error while loading "/mnt/GALLERY/clipart/horoscpe/set01/aries1.cmx"The file may be corrupted or contains unknown file format.
Traceback (most recent call last):
  File "/usr/lib/uniconvertor-2.0rc5/uc2/cmds/translate.py", line 89, in convert
    doc = loader(appdata, files[0], **options)
  File "/usr/lib/uniconvertor-2.0rc5/uc2/formats/cmx/__init__.py", line 31, in cmx_loader
    cmx_doc.load(filename, fileptr)
  File "/usr/lib/uniconvertor-2.0rc5/uc2/formats/generic.py", line 157, in load
    self.update()
  File "/usr/lib/uniconvertor-2.0rc5/uc2/formats/generic.py", line 165, in update
    self.model.do_update(self, action)
  File "/usr/lib/uniconvertor-2.0rc5/uc2/formats/generic.py", line 53, in do_update
    child.do_update(presenter, action)
  File "/usr/lib/uniconvertor-2.0rc5/uc2/formats/generic.py", line 54, in do_update
    self.update()
  File "/usr/lib/uniconvertor-2.0rc5/uc2/formats/cmx/cmx_model.py", line 923, in update
    self.chunk += struct.pack(sig, *item[:4])
error: 'i' format requires -2147483648 <= number <= 2147483647