ID 221568 - Z specify on in a DeepFromImage node causes corrupt render from DeepWrite

Follow

Problem summary
When set_z is on in a DeepFromImage node, then rendering through a DeepWrite node does not work. It creates a 16kb file, takes less than a second to render, and when opening the rendered file in Nuke it errors saying:

Error reading sample count data from image file "C:/tmp/test_001.exr". Unexpected data block y coordinate.

Customer reported version
nuke.10.0v2

Steps to reproduce

1) Open the attached Nuke file

2) Write a single frame from the DeepWrite node, try reading it, you will get the error.

3) In the  DeepFromImage node, turn specify z off, then try rendering again, the frame will now be fine.

Reproduced by support
The problem has been reproduced in:

Nuke 10.0v3 - Windows 10 - CentOS 6.7 

Nuke 10.0v1 - Windows 10 

Nuke 9.0v8 - Windows 10 

Nuke 9.0v1 - Windows 10 

Nuke 8.0v6 - Windows 10 - CentOS 6.7 

Expected behaviour
For the frame to render correctly

Actual behaviour

It creates a 16kb file, taking less than a second to render, and when opening the rendered file in Nuke it errors saying:

Error reading sample count data from image file "C:/tmp/test_001.exr". Unexpected data block y coordinate.

    We're sorry to hear that

    Please tell us why