opendesigndev / octopus

Monorepository for Octopus 3+ converters and related tools
Apache License 2.0
4 stars 7 forks source link

Combination of layer crashes converter #110

Open alexspevak opened 1 year ago

alexspevak commented 1 year ago

Combination of layer crashes converter. The error occurs somewhere in converting process as the reader(webtoon) creates output.
The error disappears whenever any of the 2 remaining artboards(one artboard is deleted) is deleted or some of their layers (which are left - this is not certain as I have not tried all the children in "PROEKTY", only in "GLAVNAYA MOBILE" ).
I did not invest more time into this (skimming layers or debugging) as it takes a long time to see if converter is crashing and this is the only file with such error. This error occurs and in version before implementing @webtoon reader. ERROR log:

Screenshot 2023-04-11 at 9 13 13

skimmed down psd: MCC.psd.zip

alexspevak commented 1 year ago

after some research it seems that in our function createOctopusLayer some layers get repeated, altough attached source from psd-tools does not have these layers repeated. In attachment you can find source from psd-tools and numbers file containing number of logs for each layer until crash.

Screenshot 2023-04-11 at 13 45 54
alexspevak commented 1 year ago

source.json.zip

layer log count.zip