Bug 2324831 - *have patch* blender crashes when attempting to use fluid, due to python 3.12
Summary: *have patch* blender crashes when attempting to use fluid, due to python 3.12
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: blender
Version: 39
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Luya Tshimbalanga
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2330206 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-09 03:20 UTC by insaner
Modified: 2025-01-26 01:01 UTC (History)
7 users (show)

Fixed In Version: blender-4.2.3-2.fc42 blender-4.2.3-9.fc39 blender-4.3.2-2.fc41
Clone Of:
Environment:
Last Closed: 2024-11-13 08:38:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description insaner 2024-11-09 03:20:52 UTC
Patch at:

https://gitlab.archlinux.org/archlinux/packaging/packages/blender/-/blob/44a846df45bbc7437c464ac68290871523f2489c/blender-4.11-mantaflow-python-3.12.patch

was tested and works. Just modified the spec and recompiled the source rpm at 

https://koji.fedoraproject.org/koji/buildinfo?buildID=2575769

and installed the resulting rpm.

I'm using fedora 39, but I believe this affects more recent releases too.

===

Bug is that Python 3.12 seems to have introduced stricter checking for PyImport_AppendInittab() and when attempting to use fluids in blender, it immediately crashes with:

Fatal Python error: PyImport_AppendInittab: PyImport_AppendInittab() may not be called after Py_Initialize()
Python runtime state: initialized

Applying the patch above fixes the problem. Hope that helps






Reproducible: Always

Steps to Reproduce:
1. Run blender 4
2. Attempt to use fluids (eg: Object > Quick Effects > Quick Liquid)
3. Crash

Comment 1 Fedora Update System 2024-11-13 08:32:59 UTC
FEDORA-2024-22a12b8dd0 (blender-4.2.3-2.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-22a12b8dd0

Comment 2 Fedora Update System 2024-11-13 08:38:25 UTC
FEDORA-2024-22a12b8dd0 (blender-4.2.3-2.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 3 Fedora Update System 2024-11-15 05:43:07 UTC
FEDORA-2024-e2c89b52f8 (blender-4.2.3-2.fc41 and oidn-2.3.1-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-e2c89b52f8

Comment 4 Fedora Update System 2024-11-15 05:44:23 UTC
FEDORA-2024-cda04c10e6 (blender-4.2.3-3.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-cda04c10e6

Comment 5 Fedora Update System 2024-11-15 05:44:23 UTC
FEDORA-2024-756364c7bc (blender-4.2.3-9.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-756364c7bc

Comment 6 Fedora Update System 2024-11-16 03:03:17 UTC
FEDORA-2024-756364c7bc has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-756364c7bc`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-756364c7bc

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2024-11-16 04:06:49 UTC
FEDORA-2024-e2c89b52f8 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-e2c89b52f8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-e2c89b52f8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2024-11-23 07:36:12 UTC
FEDORA-2024-756364c7bc (blender-4.2.3-9.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Wendall Cada 2024-12-19 19:02:05 UTC
*** Bug 2330206 has been marked as a duplicate of this bug. ***

Comment 10 Fedora Update System 2025-01-18 02:55:14 UTC
FEDORA-2025-6a26ceb820 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-6a26ceb820`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-6a26ceb820

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2025-01-26 01:01:31 UTC
FEDORA-2025-6a26ceb820 (blender-4.3.2-2.fc41 and oidn-2.3.2-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.