Skip to content

Unable to use self-compiled pbrt for rendering on Windows #465

@7sDream

Description

@7sDream

A few days ago, I successfully compiled pbrt, and if I run it directly, it works well:

But if I try to use it to render in FreeCAD, it fails during testing:

The exit code is 3221225785.

If I ignore the test results and proceed directly to rendering, the opened image is blank, and there are no image files under the displayed path. The console errors are basically the same as testing:

00:51:54  [Render][Objstrings] STARTING OBJECTS EXPORT
00:51:54  [Render][Objstrings] 1 chunks: 0 heavy - 1 light (size: 1)
00:51:54  [Render][Objstrings] '_D_297_render#Body001': Exporting
00:51:54  [Render][Object] 'BodyForRender': Processing
00:51:54  [Render][Object] 'BodyForRender': 'Part::Feature' detected
00:51:54  [Render][Object] ''BodyForRender' ('_D_297_render#Body001')': Begin meshing
00:51:54  [Render][Object] ''BodyForRender' ('_D_297_render#Body001')': Autosmooth
00:51:54  [Render][Object] ''BodyForRender' ('_D_297_render#Body001')': Compute connected components (np)
00:51:54  [Render][Object] ''BodyForRender' ('_D_297_render#Body001')': Compute vertex normals (np)
00:51:54  [Render][Object] ''BodyForRender' ('_D_297_render#Body001')': End meshing (0.1295325756072998s)
00:51:54  [Render][Material] ''_D_297_render#Body001' <None>': Fallback to default material
00:51:54  [Render][Object] ''BodyForRender' ('_D_297_render#Body001')': Write mesh file
00:51:54  [Render][Objstrings] ENDING OBJECTS EXPORT - TIME: 0.15353798866271973
00:51:54  Starting rendering...
"D:/Cloud/Github/pbrt-v4/build/pbrt.exe"  --outfile "D:\Cloud\App\FreeCAD\Config\temp\FreeCAD_Doc_8326dd1b-ffbf-4b30-9abd-a87aa7d11348_82a4d4_577723\Project_output.png"  --spp 128  "D:\Cloud\App\FreeCAD\Config\temp\FreeCAD_Doc_8326dd1b-ffbf-4b30-9abd-a87aa7d11348_82a4d4_577723\Project.pbrt"
00:51:54  Exiting rendering - Return code: 3221225785
00:51:54  D:\Cloud\App\FreeCAD\Config\Mod\Render\.\Render\rdrexecutor.py:125: RuntimeWarning: libshiboken: Overflow: Value 3221225785 exceeds limits of type  [signed] "int" (4bytes).
  self.finished.emit(rcode)
00:51:54  OverflowError

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions