Q100475: How to troubleshoot issues with the .nuke directory

SUMMARY

This article covers how to troubleshoot the .nuke directory and isolate which customizations could be causing issues with Nuke.

 

 

MORE INFORMATION

Nuke can be greatly customized by adding plug-ins, gizmos or other customizations. However, as many of these customizations are written in isolation, they can cause Nuke to behave incorrectly, or even crash, when combined.

If Nuke is demonstrating incorrect behavior or crashing, then the first thing to check is if the issues are caused by customizations.

The best way to do this is by launching Nuke in safe mode, as this disables all plug-ins, gizmos and other customizations, with the exception of environment variables. Information about how to launch Nuke in safe mode can be found in the following article:

Q100038: Launching Nuke/NukeX/Nuke Studio/Hiero in safe mode

If the problem no longer occurs after testing in safe mode, then the issue is probably due to a customization added to Nuke which is adversely affecting Nuke’s behavior. Such customizations can be added in a number of locations, which are listed in the Nuke documentation below:

Loading Gizmos, NDK Plug-ins, and Python and Tcl Scripts

To further isolate which customization or combination of customizations could be causing the problem, we recommend launching Nuke in verbose mode and following the steps in this article:

Q100112: Launching Nuke in verbose mode and isolating potential customizations causing issues

NOTE: The verbose Nuke log may display errors related to certain customization files that may help narrow down the area of investigation.

 

The .nuke directory

The most common place to add customizations, like scripts or gizmos, that may adversely impact Nuke is the .nuke directory located in the user's home directory. The default locations of the user .nuke directory are listed below:

Windows: C:\Users\<username>\.nuke

Linux:        /home/<username>/.nuke

macOS:      /Users/<username>/.nuke

NOTE: Please be aware that on some operating systems, the .nuke directory may be hidden. If this is the case, then please check the operating system’s documentation on how to show hidden directories and access the .nuke directory.

While troubleshooting, if temporarily removing the .nuke folder resolves the issue, then the next step is to isolate the culprit customizations within the .nuke directory.

 

 

TROUBLESHOOTING STEPS

The easiest way to check if one of the customizations in the .nuke directory is causing the issue, is to rename the .nuke directory to something like "old.nuke". The next time Nuke launches, it will create a fresh .nuke directory. If the issue no longer occurs, then it indicates that something in the original .nuke directory was causing the issue.

At this point the user’s home directory should contain the following folders:

     old.nuke - the original customizations

     .nuke - default directory created during the last Nuke launch

Inside the old.nuke directory, to isolate exactly what was causing the issue, a good method to use is split-half troubleshooting. The idea behind this method is to continually split the files to be tested in half and test each part to see if the issue is still reproducible, until the culprit is identified.

NOTE: Before following this method make sure no other plug-ins, gizmos or customizations are available on your machine apart from the ones inside the user’s .nuke directory.

 

Split-half troubleshooting method:

  1. Go to the old.nuke folder and copy half of the customization files into the fresh .nuke directory created by Nuke.
  2. Relaunch Nuke and check if the issue still occurs.
  3. If the issue persists then go to the .nuke directory and remove half of the files. Relaunch Nuke and see if the issue continues to happen. Repeat this step while the issue persists until only a single file is left in your .nuke folder. At this point you have identified the culprit customization.
  4. If the issue no longer occurs after copying half of the old.nuke directory into the fresh .nuke, then remove the contents of the .nuke directory and copy the other half you haven’t tested from inside the old.nuke directory and repeat step 3.
  5. If the issue doesn’t occur after copying and testing either half of the old.nuke directory content, this indicates that a combination of customizations are affecting the setup. In this case recopy the entire old.nuke directory content into the fresh .nuke, then remove one customization file at a time, launch Nuke and test if the issue still occurs until the smallest set of files that trigger the issue are identified.

Once a single customization file or the smallest set of files that recreate the issue have been isolated, these files can then be troubleshot further. Using the same split-half troubleshooting method, lines of code can be removed until the relevant section is identified within the file or files.

Depending on the customization type, files like TCL or Python scripts can be opened in a text editor and tested further, other files like compiled NDK plugins may not be editable, so the creator of the plug-in will need to be contacted.

    We're sorry to hear that

    Please tell us why