ID 148671 - Importing certain .gif files causes Nuke to crash

Follow

Problem summary
When importing certain .gif files in Nuke, Nuke will unexpectedly crash.

This happens when importing via a read node, dropping and dragging from the file system and when viewing through the file browser window.

The crash is a result of de-referencing an invalid pointer in Nuke/Plugins/FileIO/src/gifReader.cpp and effects all Operating Systems.

 

Customer reported version
nuke.10.0v1

 

Customer reported platform
Mac OS 10.12 (Sierra)

 

Steps to reproduce

1) Download the following gif to your desktop (right-click and save as)

https://media.giphy.com/media/a973leQODDbEI/giphy.gif

2) Open Nuke

3) Import gif into Nuke using the 'Read' node

OR

4) Drag and Drop the gif into the Node Graph

OR

5) Import gif via 'Read' node, before selecting gif, browse with thumbnail viewer expanded

Result: Nuke crashes

 

Workaround
Try to avoid importing .gif images, alternatively:

- Convert from .gif to an image sequence using a video editing program 

- Import as image sequence

 

Reproduced by support

This problem has been reproduced on:
Nuke 11.0v1 - MacOSX 10.12 - Windows 7 - CentOS 6.9
Nuke 10.5v5 - MacOSX 10.12
Nuke 10.5v1 - MacOSX 10.12
Nuke 10.0v6 - MacOSX 10.12
Nuke 10.0v1 - MacOSX 10.12  - Windows 7 - CentOS 6.9
Nuke 9.0v9 - MacOSX 10.12 
Nuke 9.0v1 - MacOSX 10.12
Nuke 8.0v7 - MacOSX 10.12
Nuke 8.0v1 - MacOSX 10.12
Nuke 7.0v10 - MacOSX 10.12  - Windows 7 - CentOS 6.9
 

Earliest version tested
Nuke 7.0v10, as it is the earliest version required for regression checks.

 

Expected behaviour
Nuke to be able to read in .gif images

 

Actual behaviour
Nuke crashes when reading in .gif images

    We're sorry to hear that

    Please tell us why