Search Issue Tracker

Fixed in 5.3.5

Votes

48

Found in

5.3.4f1

Issue ID

790006

Regression

No

[Lighting] 'Bake Direct' job failed with error code: 5

Global Illumination

-

1) Download the attached project
2) Open 30HzSample scene
3) go to the lighting window and press bake
4) observe the repeating error mentioned above
5) Observe the bake job never finishes.

Expected behavior:
Scene will bake with out error

Actual Behavior:
the follwing error is shown and light baking never finishes

''Bake Direct' job failed with error code: 5 ('Failed reading Bake Visibility Buffer file.').'

Error occurs <10 seconds after baking light.

Possible workaround, delete the GI Cache.

Goto Edit > Preferences, then GI cache then 'Clean Cache'

Comments (31)

  1. 264dc2d15e4832ac19640e8e23e75778?d=mm

    FiveFingers

    Nov 23, 2017 12:01

    Persists on Unity 2017.1.2p1

  2. 1c13ba7bed1430f53a0c09aa752d4275?d=mm

    plmx

    Jul 03, 2017 16:14

    Occurs in v5.6.2f2 as well.

  3. 3a97e0f577a72a29118c1de9fb60d5f7?d=mm

    kloogens

    Jun 27, 2017 12:38

    Doesn't work in 5.6+ either. I get a 'Baking Resources' job failed with error code: 3 ('Failed reading Bake Input System file.'). I've been trying to get light baking to work since the initial release of 5 and it's never worked without tons of issues. I followed the suggestion of clearing the GI cache , let the light bake run overnight and still get the same error above. I stripped the level down to one single object that I keep cutting into smaller and smaller pieces as others have suggested. I have a top of the line rig with 32 gig of memory and virtually unlimited HD space. Doesn't work , will never work. Between "features" not working and constant bombardment of random crashes loosing hours and hours of work...... Frustration turning into rage.

  4. 361b3be4c75a22bdc0eb04f29e737217?d=mm

    ismaxx

    Jun 01, 2017 19:04

    Its no fixed. in Unity 5.5.3p3 i have this issue to. Reducing the computation requeriments is possible to have the bake, but this is no solution and we bake and bake to find the optimal relation between our requeriments and the issue.
    The clusters problem with large distances its still present too in this version.
    Unity its the best tool but I already had my nails a long time ago, now I'm eating my elbows. :)

  5. 8087cfeaf426b75e9d375f6edc73f883?d=mm

    mephistonight

    May 21, 2017 08:30

    This isn't fixed. It persists in to 5.6.1. The GI cache being stale was a related issue but not the only one with the final gather of baking lightmaps.

  6. 9ba915e573406515753040c05234d3d0?d=mm

    Don-Gray

    Apr 20, 2017 06:55

    Getting huge amount of these errors using Progressive Light Mapping in 2017.1.0b1.

  7. Ae2eb02b8329783537fc4b73bcffdc28?d=mm

    iLyxa3D

    Mar 28, 2017 18:41

    This error in 5.6.0f1 too :(

    After Windows show error pop-up "No more free memory, please close JobProcess", Unity print in editor console this error.

    JobProcess takes about 4.5GB RAM each (two processes = 9GB in total). My PC has 10GB RAM.

    !! Solution: Changed Lightmap Size from 2048 to 512 !!

  8. 199ce7c244f908b4934f0e4e70b582fe?d=mm

    mthlr

    Jan 20, 2017 12:35

    This a problem in 5.5.0f3.
    And clearing the cache doesn't help.

  9. 080a31cde9fb707a38de8f6d57adba41?d=mm

    stocks109

    Jan 06, 2017 17:07

    Has anyone found a reliable way to fix this issue? Deleting the cache beforehand doesn't fix it.

  10. 2e307a5d918d3837c4603a0353c74a74?d=mm

    Nearo1

    Dec 20, 2016 08:48

    'm on 5.5.0f3. This bug is still present and it's driving me crazy too.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.