Q100274: How to automatically generate a crash report when running Nuke

Follow

SUMMARY

This article explains how you can generate crash reports while running Nuke, often times in batch or terminal mode. 

MORE INFORMATION

When launching Nuke operations via terminal commands (such as batch rendering or while in Python Terminal mode), if you experience a crash than the crash reporter window won't appear and won't allow you to submit a crash report. You can work around this by setting a command line flag or environment variable.

For Nuke 14.1 and above

In Nuke 14.1 and above you can set a command line flag when launching Nuke to submit the crash reports automatically.

To enable crash reports to be submitted automatically, use the --crashhandling 1 flag when launching Nuke.

Example:
Windows: "C:\Program Files\Nuke15.1v3\Nuke15.1.exe" --crashhandling 1
macOS: /Applications/Nuke15.1v3/Nuke15.1v3.app/Contents/MacOS/Nuke15.1 --crashhandling 1
Linux: /usr/local/Nuke15.1v3/Nuke15.1 --crashhandling 1

To disable crash reports being submitted automatically, use the --crashhandling 0 flag when launching Nuke.

Example:
Windows: "C:\Program Files\Nuke15.1v3\Nuke15.1.exe" --crashhandling 0
macOS: /Applications/Nuke15.1v3/Nuke15.1v3.app/Contents/MacOS/Nuke15.1 --crashhandling 0
Linux: /usr/local/Nuke15.1v3/Nuke15.1 --crashhandling 0


For Nuke 14.0 and below

In Nuke 14.0v8 and below you can set an environment variable to get Nuke to save crash reports to a directory of your choice.

To enable the crash report generation, set the NUKE_CRASH_HANDLING environment variable prior to launching Nuke.

Example: NUKE_CRASH_HANDLING=1
 
To define where the crash reports get saved by default, set the FN_CRASH_DUMP_PATH environment variable prior to launching Nuke.

Example: FN_CRASH_DUMP_PATH=/your/custom/path

More information on command line operations for Nuke can be found in this learn page: Command Line Operations

More information on how to set environment variables for Nuke can be found in this article: Q100015: How To Set Environment Variables

For information on the available environment variables in Nuke, please see the Nuke Environment Variables section of the documentation.

    We're sorry to hear that

    Please tell us why