Windows 11, running render engines always times out

Open
#488 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Start in Render/prefpage.py at test_dispatcher and _test_dispatcher_helper, especially the subprocess.run call that invokes appleseed.cli.exe --help. Reproduce the five-second timeout on Windows 11 and compare it with the same executable run from the console; done means the renderer test no longer times out when the binary is recognized.

Written by the indexing model from the issue text.

Description

I keep getting timeout erros when pressing "Test" in the setting or/and running it from the workbench itself.
It recognoized the binary and seems to resolve the path, but running it causes timeouts.
Running the different renderer engines from console, or even trough python without timeout of 1sec doesn't show any errors.

Example with applessed:

Trackback from freecad (1.0.2)

20:45:59  Traceback (most recent call last):
20:45:59    File "C:\Users\X\AppData\Roaming\FreeCAD\Mod\Render\.\Render\prefpage.py", line 137, in test_dispatcher
20:45:59      _test_dispatcher_helper(renderer, batch, self)
20:45:59    File "C:\Users\X\AppData\Roaming\FreeCAD\Mod\Render\.\Render\prefpage.py", line 306, in _test_dispatcher_helper
20:45:59      result = subprocess.run(
20:45:59               ^^^^^^^^^^^^^^^
20:45:59    File "C:\Program Files\FreeCAD 1.0\bin\Lib\subprocess.py", line 550, in run
20:45:59      stdout, stderr = process.communicate(input, timeout=timeout)
20:45:59                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20:45:59    File "C:\Program Files\FreeCAD 1.0\bin\Lib\subprocess.py", line 1209, in communicate
20:45:59      stdout, stderr = self._communicate(input, endtime, timeout)
20:45:59                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20:45:59    File "C:\Program Files\FreeCAD 1.0\bin\Lib\subprocess.py", line 1630, in _communicate
20:45:59      raise TimeoutExpired(self.args, orig_timeout)
20:45:59  subprocess.TimeoutExpired: Command '['C:/Users/X/Documents/appleseed/appleseed/bin/appleseed.cli.exe', '--help']' timed out after 5 seconds

Running the exact same path from console:

Image
Dominant language
Python
Stars
240
Forks
47
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from FreeCAD/FreeCAD-render

All issues in FreeCAD/FreeCAD-render

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.