• EditorBugs
  • Import PSD - Bug when having an empty folder with the tag [ignore]

Problem statement

> Describe: 1) what you have tried, 2) what you expected, and 3) what actually happened.
1) I used the Import PSD function to import my drawing.
2) I expected to have my file in my Spine project.
3) Spine throws an error due to having an empty folder with the tag [ignore] inside its name.

I think it's an error because if I already used the tag to ignore the folder, it's weird to have an error due to having that folder empty because Spine should just ignore it to begin with.

To fix the problem, I can add an empty layer inside the folder or delete that folder.

Editor information

> Tell us your Spine Editor version.
4.2.32

**Post your entire spine.log file here (or attach it), if you got any error messages.**

Esoteric Software LLC (C) 2013-2024 | http://esotericsoftware.com
Windows 10 Pro amd64 10.0
NVIDIA Corporation, NVIDIA GeForce RTX 4080/PCIe/SSE2, 4.6.0 NVIDIA 555.99
Downloading: Spine 4.2.32 Professional
Starting: Spine 4.2.32 Professional
Spine 4.2.32 Professional
Licensed to: <removed> Using customized hotkeys: hotkeys-1.txt
Started.
OpenAL 1.1, Default audio device
ERROR: Error processing PSD: D:/Documentos/Spine/Photoshop files/Chibi - 01.psd
[istate] Array is empty.
at s.lbr.(:355)
at s.fzq.<init>(:67)
at s.xLB.<init>(
:27)
at s.YAu.(:36)
at s.Qao.V(:250)
at s.mTG.F(
:307)
at s.mTG.(:311)
at s.wBj.V(:1086)
at s.tlN.D(
:444)
at s.Biv.(:91)
at s.uZL.(:28)
at s.QJQ.(:188)
at s.QJQ.(:158)
at com.badlogic.gdx.scenes.scene2d.ui.Button.D(:125)
at s.HCj.
(:93)
at s.mTS.
(:88)
at s.vyB.
(:71)
at s.WOA.D(
:354)
at s.NUl.D(:124)
at s.hNF.D(
:104)
at s.RMj.(:46)
at s.hNF.(:35)
at s.ODG.run(_:254)
<events>

  • Davide ответили на это сообщение.
    Related Discussions
    ...

    GuapoMan

    Thanks for reporting this. That sounds like a bug.
    However, I wasn't able to reproduce it using the software I usually use to generate PSDs. Sometimes some software generates a PSD file with missing information.

    Which software are you using?
    Can you share a PSD file that I can use to reproduce the problem? If you prefer, you can also send it to contact@esotericsoftware.com.

    • GuapoMan ответили на это сообщение.

      Davide Yes, I'm not sure what is the real problem, but here is my file:
      https://mega.nz/file/wksnVJ5b#dY0qxm2N5Gi0Bxpxh2JtE0_tZbKvtsohJaCR9FFSLXc

      I noticed the problem doesn't always happen; I tried making a new file only with an empty folder, but that didn't throw the error (just like your case), so I deleted almost all the file content to let the minimum amount of folders and layers that make the bug.

      I use MediBang 18.0

      • Davide ответили на это сообщение.

        GuapoMan

        Thanks for providing the PSD file to us.
        As I suspected, the PSD file generated by MediBang is invalid. There is a problem with the layers tree.
        The problem is not related to the tag [ignore]. Spine doesn't even get to process tags.

        If I try to open it using the software I generally use to work with PSD files (Photopea), I get this error:

        Even opening it using Photoshop, I get this error:

        And the layers tree is the following:

        While if I open it with MediBang, I get this tree:

        How was the original tree structured? Maybe I can try to fix the tree as Photoshop does, even though it seems to add non-existing layers.

        In any case, I think the best option is to report the bug in PSD generation to MediBang developers.

        • GuapoMan ответили на это сообщение.
          4 дня спустя

          Davide Oh! That's strange. The problem only happens with this specific file if I have the folder OB01 B [ignore] empty, but if you said it is a Medibang problem, then you can't do anything about it. In any case, thank you for your help.

          Davide How was the original tree structured?

          I removed the content to let only the combination of folders/layers that make the problem, it's ok like you show me.

          • Davide ответили на это сообщение.

            GuapoMan

            I thought a little more about introducing a specific fix, but it does not seem very deterministic what the behavior to fix should be. Indeed, Photoshop, even though it opens the file, creates layers that shouldn't be there.

            Considering this and the fact that you said the problem seems to be limited to this file, we'll wait before making the fix to see if it happens again with other files, or if other users report this.
            Maybe MediBang will fix the bug on their side first.

            Thanks again for reporting this, and let us know if you encounter any other issues.