Nuke 12.x crash on tk init

Hello everyone,

I have the problem that Nuke 12.1 and 12.2 crashes during the Toolkit initialisation on 30% of my workstations. Even with identical systems.

Environment:

Windows 10 
gtx2070 or gtx1080
Nuke 12.1 or 12.2
TK: Core and apps all latest.

This are the last outputs before the crash. No other errors or warnigs in debug mode logs:

tk-nuke.log:

2020-09-30 12:28:16,355 [4132 DEBUG sgtk.env.project.tk-nuke.tk-multi-workfiles2] BackgroundTaskManager [Main task manager] destroyed

Terminal output:

None
QThread: Destroyed while thread is still running

Does anyone have an idea?

Thanks and greetings

Jonas

2 Likes

Hi Jonas,

Not sure if this is at all related to your problem but we had some issues a couple of months back and was then later fixed in an updated version of the tk-nuke engine.

But until that fix was included in the engine we could set this env variable as a workaround:
SHOTGUN_SKIP_QTWEBENGINEWIDGETS_IMPORT=1

Are you on the latest version of the nuke engine as well?

As I mentioned this may not be related to your problem at all but could be worth a try!

All best,
Jonas

2 Likes

I should mention that our issue also prevented us from launching Nuke.

2 Likes

@jonas.lindfors thanks for your reply.

I tried that. I set this in the bootstrap.py hook. But with no effect.

Core, engines and apps are all on the latest releases.

name: tk-nuke
version: v0.12.7

greetings

Jonas

2 Likes

Hi Jonas,

we are currently investigating an issue with debug logging in Nuke where Nuke can crash if Nuke’s script editor is open.

Our current workaround it to turn off debug logging. Do you have it enabled on systems where it crashes? If yes, can you try turning off debug logging and see if the issue remains?

Cheers,
Francis

2 Likes

No different with or with out the debug mode.
In 1 of 20 startups via the tank.bat launch_nuke nuke does not crash, via Shotgun Desktop allways. But maybe that is a coincidence.

1 Like

Thanks for the info.

I think we’ll probably need to see your tk-nuke log file and also have access to your config to try to reproduce the issue on our side.

Can you create a support ticket with the log file and your zipped config folder attached to it?

Cheers,
Francis

2 Likes

Thanks @mathurf, I’ll do that.

1 Like