• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
6

P: Generator can't export nested groups or grouped layers with "zeroBoundsError"

Participant ,
Jun 22, 2016 Jun 22, 2016

Copy link to clipboard

Copied

Photoshop CC 2015.5 Fist off, I'm glad to hear that there were improvements made to the built in Generator. I'm sure they are wonderful. Unfortunately, I do not get to benefit from them because the majority of the layers I have named with the Asset Generator syntax now refuse to export.

I have a photoshop file with several artboards. They are the same size and represent different screens in a user flow. I did this so we can leverage the device preview and artboards-to-pdf features.

Each artboard is named with generator syntax to produce a "screen preview". Each artboard also contains layer groups named with generator syntax. Some of these groups are nested within other groups in a heirarchy because the screens can get pretty complex.

In this screenshot, only previews/Preview_Transition01.png is exported. Transition_Curtain_Logo.png and others fail...


These all exported nicely in CC 2015.1. After the update to 2015.5, only the artboard previews and an occasional top level group are being exported. Any child groups/layers fail or are frustratingly inconsistent.

The generator logs indicate that the layers start to render, but then get an error and fail:

[info:generator-assets 10:48:17.039 C:\Program Files\Adobe\Adobe Photoshop CC 2015.5\Required\Plug-Ins\Generator\assets.generate\lib\rendermanager.js:157:30] RenderManager active
[info:generator-assets 10:48:17.060 C:\Program Files\Adobe\Adobe Photoshop CC 2015.5\Required\Plug-Ins\Generator\assets.generate\lib\rendermanager.js:178:26] Rendering: Transition_01_Bubble_Art_01.png (7;1)
[error:generator-assets 10:48:17.313 C:\Program Files\Adobe\Adobe Photoshop CC 2015.5\Required\Plug-Ins\Generator\assets.generate\lib\assetmanager.js:449:34] Render failed: Transition_01_Bubble_Art_01.png { [Error: Refusing to render pixmap with zero bounds.] zeroBoundsError: true }

If I look at the JSON extracted from a call to the generator API to get the document and layer information, I can see that all failing layers return with valid bounds:
//...
{


"id": 680,
"index": 676,
"type": "layerSection",
"name": "50% ThemeStore_Art-04.png",
"bounds": {


"top": 0,
"left": -2048,
"bottom": 6048,
"right": 9174
},
"visible": true,
"clipped": false,
"blendOptions": {


"mode": "passThrough"
},
"generatorSettings": false,
//...

A bit of experimentation reveals that:
- Most of the problems are resolved by removing *all* artboards and having all contents in a single traditional canvas.
- If I move the named layer groups outside of the artboard, they will export correctly... sometimes.
- If I add layer masks on *every* layer and group in the tree path I want to export, it seems to work sometimes.
- If I keep the export layers/groups nested only one folder deep, it seems to work sometimes.

Bug Fixed
TOPICS
macOS , Windows

Views

365

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Aug 08, 2016 Aug 08, 2016
Please install the CC 2015.5.1 update that was released tonight to correct this issue: http://blogs.adobe.com/crawlspace/2016/08/photoshop-cc-2015-5-1-update-now-available.html

Votes

Translate

Translate
14 Comments
Participant ,
Jun 22, 2016 Jun 22, 2016

Copy link to clipboard

Copied

Further testing with a generator json config has revealed that the following settings have NO effect on the problem:

c:/users/USERNAME/.generator.json


{

"generator-assets": {

"include-ancestor-masks": true,

"clip-all-images-to-artboard-bounds": false,

"clip-all-images-to-document-bounds": false

}

}


Unless my syntax is off?

Votes

Translate

Translate

Report

Report
Adobe Employee ,
Jun 22, 2016 Jun 22, 2016

Copy link to clipboard

Copied

We are aware of this and have a fix ready.  Unfortunately PS just shipped with this bug.  😞
https://helpx.adobe.com/photoshop/kb/generate-and-export-as-failure.html

Votes

Translate

Translate

Report

Report
Participant ,
Jun 22, 2016 Jun 22, 2016

Copy link to clipboard

Copied

Thanks for the fast response! I am happy and sad now?
I guess I just have to wait on updating until the next incremental update?

Votes

Translate

Translate

Report

Report
Adobe Employee ,
Jun 22, 2016 Jun 22, 2016

Copy link to clipboard

Copied

We are too.  We are hoping to get it out VERY soon.

Votes

Translate

Translate

Report

Report
Participant ,
Jun 22, 2016 Jun 22, 2016

Copy link to clipboard

Copied

I am very appreciative of your candor and time. Tell whomever it may concern that I have a virtual high-five waiting for them. 🙂

Votes

Translate

Translate

Report

Report
New Here ,
Jun 27, 2016 Jun 27, 2016

Copy link to clipboard

Copied

Just to add a bit more info to this post, though I know Adobe is aware and working on a fix, more info can't hurt, right?

I'm getting the following error when I right-click on a layer-group(that is not, in fact, empty as the error states) within an artboard and click "Export As..":



Hope that helps! Looking forward to a fix!

Votes

Translate

Translate

Report

Report
Adobe Employee ,
Jun 27, 2016 Jun 27, 2016

Copy link to clipboard

Copied

Yep, same root cause.  We have a fix ready to go.  Thanks!

Votes

Translate

Translate

Report

Report
New Here ,
Jun 27, 2016 Jun 27, 2016

Copy link to clipboard

Copied

Great, thanks for the quick reply!

Votes

Translate

Translate

Report

Report
New Here ,
Jul 05, 2016 Jul 05, 2016

Copy link to clipboard

Copied



I use Generate a lot, and have always had the odd issue, but nothing a good old close and reopen wouldn't fix. However since updating to Photoshop 2015.5 if I try to use generate on a nested group, it won't save it out. It's fine if you're using generate on a single layer, that can be buried inside as many groups as you like. But if you are using generate on a group, and that group is inside another, then it won't save it out. Could this be looked into ASAP and fixed please, as it is really annoying having to make my files less organised in order for it to work.

Votes

Translate

Translate

Report

Report
LEGEND ,
Jul 05, 2016 Jul 05, 2016

Copy link to clipboard

Copied

Any ETA on when this fix will be pushed?

Any other more technical way to fix Generator so we won't have to move back and forth between PS versions? 

Votes

Translate

Translate

Report

Report
LEGEND ,
Jul 05, 2016 Jul 05, 2016

Copy link to clipboard

Copied

Thanks for the link. Suggestion #2 worked for me (un-nesting folders named for generating). Still looking forward to the real fix though!

Votes

Translate

Translate

Report

Report
Adobe Employee ,
Jul 11, 2016 Jul 11, 2016

Copy link to clipboard

Copied

Fix will be pushed very soon but I can't publicly disclose any dates.  Thank you for your patience.

Votes

Translate

Translate

Report

Report
Participant ,
Jul 11, 2016 Jul 11, 2016

Copy link to clipboard

Copied

So generate! Very Fix! Much excite!

Votes

Translate

Translate

Report

Report
Adobe Employee ,
Aug 08, 2016 Aug 08, 2016

Copy link to clipboard

Copied

LATEST
Please install the CC 2015.5.1 update that was released tonight to correct this issue: http://blogs.adobe.com/crawlspace/2016/08/photoshop-cc-2015-5-1-update-now-available.html

Votes

Translate

Translate

Report

Report