Crash when opening "subcontainer"

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

@sax1johno is already working on this.

Since Oct 23, 2025.

  • #484 by @sax1johno — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
macos, python
Domain
desktop

Research direction

Reproduce the crash through the MaterialX, GPUOpen Material Library, or AmbientCG Material Library buttons, then inspect Render/subcontainer.py around line 221 and compare the behavior with the attached log. Done means the dialogs open on macOS without the reported libshiboken overflow or crash.

Written by the indexing model from the issue text.

Description

FreeCAD crashes immediately, when using one of the Material buttons that start a dialog using subcontainer.
(Import MaterialX file, GPUOpen Material Library, AmbientCG Material Library)
The external client, however starts and is functional.

The corresponding error message in the log file is

Err: /Users/USER/Library/Application Support/FreeCAD/Mod/Render/./Render/subcontainer.py:221: RuntimeWarning: libshiboken: Overflow: Value 5032641280 exceeds limits of type  [signed] "i" (4bytes).
  self.winid_available.emit(argument)
Err: Err: OverflowErrorErr: Err:

This happened on MacOS 15.4 (24E248).

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.