• EditorBugs
  • [arg] Width (0) and height (0) must be non-zero

Hello,

When I try to export I receive this issue "[Error] Width (0) and height (0) must be non-zero" with the version 4.1.23. I tried with the version 4.1.21 and it is working fine without any issue.

Thanks in advance.
Cheers

Related Discussions
...

Is it possible to use a small value instead of zero?

hi, I´m not sure if I have understood you.
the issue appears when I try to export, only appens in the last stable version.
The image with the issue (covered in red) is 1x1 pixels and is needed in our framework, png width and height is not zero is 1x1px. This issue starts happening only in this Spine version.
Thanks

Any chance you can send the images and packer settings? contact@esotericsoftware.com We'd love to fix it!

Hi Nate, thanks for the answer. Check the image attached, is how we export so far during last years.
Doing some tests I have noticed that the issue comes from the scale number below 1.0 if I remove 0.5 or I write other integer number it works. Seems is not working with values below 1.0 -> 0.1 / 0.2 / 0.3 / ...etc

I can send you a video or spine file if you need.

Thanks!

No settings should cause such an error. We need your images and settings so we can reproduce the problem, which is the first and required step to be able to fix it.

5 أيام لاحقا
issue.zip
1kB

Hi, here you can find a file for reproduce the issue.
Steps to follow:
1.Open spine with 4.1.21 version and export with the settings shown in the previous message

  1. All works
  2. Open the file with 4.1.23 and export, you will see the issue.
  3. Change in output settings from 0.5 to other integer numer like 2 and it works.

Seems that here is located the issue, we can´t export to 0.5 or decimals from version 4.1.23 in the previous version 4.1.21 and below is working fine.

thanks in advance

Hi all,
We have faced this problem too.
It seems that the bug was added in 4.1.22. The changelog says: Fixed texture packer bilinear scaling for some image size and scale combinations. This is it!
Some of our Spine projects have images of size 1*1 pixel.
When we try to export such projects we get the error.
Please note that texture atlas generation need to be turned on:

And the following scale factor must be specified:

Thanks. We've fixed this is 4.1.24, available now!

    Nate

    Thank you so much! it works perfectly now 🙂
    Cheers!