ID 304637 - Printing a Nuke Script's process in a PyQt4 window 'Hangs' until the script is complete

Follow

Problem summary
When printing  a Nuke Qprocess to a PyQt4 window, on Windows OS systems, the process 'hangs' until it is completed.

For example if you want a loading progress to 'print' in your window,  nothing gets printed until the Nuke process is complete. (Then it is all displayed in one hit)
On Linux, the process procedurally updates the window with progress information.

Customer reported version
nuke.9.0v6

Customer reported platform
windows7

Steps to reproduce

  1. Download & install The PyQt4 module for your Python version
  2. Open Nuke
  3. Create multiple read nodes (10 is a good number to test)
  4. Save the file as ("TestProgress.nk")
  5. Close Nuke
  6. Download the attached "NukeTalk.py" & "Temp.py" files
  7. Open the Temp.py with your Python editing suite (IDLE or PyCharm work well)
  8. Replace the "Project", "Nuke" & "Script" with your "Nuke.exe" location, Location of your Nuke Project ("TestProgress.nk") and The location of "NukeTalk.py"
  9. Run the script (Right click -> Run 'Temp' for Pycharm)
Results:

Windows 7 - Python 3.4.2 - PyQt11.4 ( Hangs, UI breaks)

Windows 7 - Python 2.7.13 - PyQt11.4 (Hangs, UI fine)

CentOS6.9 - Python 2.7.13 - PyQt11.1 (Works Correctly)

Workaround
Use Linux, No current workaround for Windows OS

Reproduced by support

Process hangs:
Nuke11.0v1 - Windows 7 - Python 3.4.2 - PyQt11.4
Nuke11.0v1 - Windows 7 - Python 2.7.13 - PyQt11.4
Nuke10.5v5 - Windows 7 - Python 2.7.13 - PyQt11.4
Nuke10.0v6 - Windows 7 - Python 2.7.13 - PyQt11.4
Nuke9.0v9 - Windows 7 - Python 3.4.2 - PyQt11.4
Nuke9.0v9 - Windows 7 - Python 2.7.13 - PyQt11.4
Nuke9.0v1 - Windows 7 - Python 2.7.13 - PyQt11.4
Nuke8.0v7 - Windows 7 - Python 2.7.13 - PyQt11.4
Nuke7.0v10 - Windows 7 - Python 2.7.13 - PyQt11.4

Process Works correctly:
Nuke11.0v1 - CentOS6.9 - Python 2.7.13 - PyQt11.1
Nuke10.5v5 - CentOS6.9 - Python 2.7.13 - PyQt11.1
Nuke10.0v6 - CentOS6.9 - Python 2.7.13 - PyQt11.1
Nuke9.0v9 - CentOS6.9 - Python 2.7.13 - PyQt11.1
Nuke9.0v1 - CentOS6.9 - Python 2.7.13 - PyQt11.1

Earliest version tested
Nuke7.0v10 - Lowest Regression currently supported

Expected behaviour
The PyQt4 window to print the Nuke script processes while it is processing.

Actual behaviour
The PyQt4 window isn't displaying the process until the Nuke script has completed its progress.

    We're sorry to hear that

    Please tell us why