ID 485155 - A memory allocation error occurs and Hiero Player fails to launch while Playback Cache settings are at or above 50 in Windows.

Follow

Problem summary
A memory allocation error occurs and Hiero Player fails to launch while Playback Cache settings are at or above 50 in Windows.

Customer reported version
nuke.12.2v6

Customer reported platform
windows10

Steps to reproduce
1) In Nuke, open Edit >Preferences > Caching (Shift+S), and increase the Playback Cache value to above 50.
2) Save the Preferences, then press R to read in a file.
3) View the Read node, then select the Flipbook Viewer button.
4) Ensure the Flipbook settings are for the Viewer in Nuke, then press OK.
5) Close the Flipbook, then select the Flipbook Viewer button again.
6) Change the dropdown to Hiero Player, then press OK.
7) View the output console for errors.

Expected behavior
The Hiero Player application should launch and display the flipbook, and the console should not error.

Actual behavior
The Hiero Player software does not launch and an error is given for "Memory: new_handler() cannot free anything, throwing std::bad_alloc. This will probably crash!". Occasionally the application will crash without warning or the crash reporter dialog.

Workaround
Flipbooking to HieroPlayer first allows the software to launch and no errors are given. Also having Hiero Player launched before Flipbooking allows it to function correctly.

Reproduced by Support in:
Nuke 13.0v4 - Windows 10
Nuke 13.0v1 - Windows 10
Nuke 12.2v1 - Windows 10
Nuke 12.1v1 - Windows 10

Unable to reproduce bug in:
Nuke 13.0v4 - CentOS 7, macOS 10.14
Nuke 12.0v6 - Windows 10

Earliest version tested
Nuke 12.0v6 - This feature did not exist before this version

    We're sorry to hear that

    Please tell us why