Cycles render/preview crashes at capture_fp_settings(libtbb) on Linux #97651

Closed
opened 2022-04-27 12:50:28 +02:00 by Xavier Cho · 17 comments

System Information
Operating system: Linux-5.17.4-1-MANJARO-x86_64-with-glibc2.35 64 Bits
Graphics card: NVIDIA GeForce RTX 3080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 510.68.02

Blender Version
Broken: version: 3.2.0 Alpha, branch: master (modified), commit date: 2022-04-22 20:02, hash: 086938a306
Worked: (newest version of Blender that worked as expected)

(Sorry, I haven't been able to bisect it yet. I believe it worked until a couple of weeks ago. Note that the above commit hash is from UPBGE, but looks like it's reproducible for all regular Blender users on Arch-based Linux, as it can be seen here - https://github.com/bartoszek/AUR-blender-git/issues/10)

Short description of error

Recent build of Blender on Arch Linux crashes when using Cycles renderer with the following stacktrace:

libtbb.so.12!tbb::detail::r1::capture_fp_settings(tbb::detail::d1::task_group_context&) 
ccl::PathTrace::path_trace(ccl::RenderWork&) 
ccl::PathTrace::render_pipeline(ccl::RenderWork) 
ccl::PathTrace::render(ccl::RenderWork const&) 
ccl::Session::run_main_render_loop() 
ccl::Session::thread_render() 
ccl::Session::thread_run() 
ccl::thread::run(void*) 
libstdc++.so.6!std::execute_native_thread_routine(void * __p) (/usr/src/debug/gcc/libstdc++-v3/src/c++11/thread.cc:82)
libc.so.6!start_thread 
libc.so.6!clone

blender.crash.txt

Exact steps for others to reproduce the error

  • Launch Blender.
  • Switch to Cycles renderer.

Either render the scene or switch viewport shading mode to 'rendered'.

**System Information** Operating system: Linux-5.17.4-1-MANJARO-x86_64-with-glibc2.35 64 Bits Graphics card: NVIDIA GeForce RTX 3080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 510.68.02 **Blender Version** Broken: version: 3.2.0 Alpha, branch: master (modified), commit date: 2022-04-22 20:02, hash: `086938a306` Worked: (newest version of Blender that worked as expected) (Sorry, I haven't been able to bisect it yet. I believe it worked until a couple of weeks ago. Note that the above commit hash is from UPBGE, but looks like it's reproducible for all regular Blender users on Arch-based Linux, as it can be seen here - https://github.com/bartoszek/AUR-blender-git/issues/10) **Short description of error** Recent build of Blender on Arch Linux crashes when using Cycles renderer with the following stacktrace: ``` libtbb.so.12!tbb::detail::r1::capture_fp_settings(tbb::detail::d1::task_group_context&) ccl::PathTrace::path_trace(ccl::RenderWork&) ccl::PathTrace::render_pipeline(ccl::RenderWork) ccl::PathTrace::render(ccl::RenderWork const&) ccl::Session::run_main_render_loop() ccl::Session::thread_render() ccl::Session::thread_run() ccl::thread::run(void*) libstdc++.so.6!std::execute_native_thread_routine(void * __p) (/usr/src/debug/gcc/libstdc++-v3/src/c++11/thread.cc:82) libc.so.6!start_thread libc.so.6!clone ``` [blender.crash.txt](https://archive.blender.org/developer/F13031897/blender.crash.txt) **Exact steps for others to reproduce the error** - Launch Blender. - Switch to Cycles renderer. # Either render the scene or switch viewport shading mode to 'rendered'.
Author

Added subscriber: @mysticfall

Added subscriber: @mysticfall
Author

I just found that the official build doesn't show the same issue. Looks like it might have something to do with the fact that AUR packages are built against system libraries as is the convention with most Linux distros.

I just found that the official build doesn't show the same issue. Looks like it might have something to do with the fact that AUR packages are built against system libraries as is the convention with most Linux distros.

Added subscriber: @ThomasDinges

Added subscriber: @ThomasDinges

Changed status from 'Needs Triage' to: 'Archived'

Changed status from 'Needs Triage' to: 'Archived'

Hi, thanks for the report. We can only give support for official builds from blender.org though.

Hi, thanks for the report. We can only give support for official builds from blender.org though.
Author

I understand why Blender devs feel reluctant to support unofficial builds. But can't anyone at least give some pointer about where I should look to identify and fix the cause?

As I mentioned above, the preferred way of installing applications on Linux is doing so from a package repository which is similar to how Mac users install most stuff from the App Store.

As such, we have many Arch-based Linux users who have been using one of those Blender packages for a long time and it's possible that the issue might affect users of other distros.

It's not like we can just tell them to stop using distro packages and use an official build instead, especially when it's not a recommended way of installing applications on Linux in general (i.e. ignoring Linux directory layout, duplicating a large portion of system libraries, not registering a proper file type entry or launcher shortcut, and so on).

I understand why Blender devs feel reluctant to support unofficial builds. But can't anyone at least give some pointer about where I should look to identify and fix the cause? As I mentioned above, the preferred way of installing applications on Linux is doing so from a package repository which is similar to how Mac users install most stuff from the App Store. As such, we have many Arch-based Linux users who have been using one of those Blender packages for a long time and it's possible that the issue might affect users of other distros. It's not like we can just tell them to stop using distro packages and use an official build instead, especially when it's not a recommended way of installing applications on Linux in general (i.e. ignoring Linux directory layout, duplicating a large portion of system libraries, not registering a proper file type entry or launcher shortcut, and so on).

Added subscriber: @deadpin

Added subscriber: @deadpin

There's a chance this was fixed already with 41b3feea85c : https://lists.blender.org/pipermail/bf-blender-cvs/2022-April/172470.html

There's a chance this was fixed already with `41b3feea85c` : https://lists.blender.org/pipermail/bf-blender-cvs/2022-April/172470.html

Added subscriber: @AdrianSausenthaler

Added subscriber: @AdrianSausenthaler

Official builds of Blender in Linux are not bleeding edge from latest git.
So this could affect the official builds of Blender in a couple of time too.
I guess this is an early warning bug report

Of course, this report was a fast shot. The AUR maintainer Bartus should have looked at it first and then open an upsteam bug report himself. Give him some time.

We can use older packages from the AUR helper cache. Packages from late March are still compatible with current system libraries on Arch Linux.

@deadpin Just recompiled, It's not fixed.

Official builds of Blender in Linux are not bleeding edge from latest git. So this could affect the official builds of Blender in a couple of time too. I guess this is an early warning bug report Of course, this report was a fast shot. The AUR maintainer Bartus should have looked at it first and then open an upsteam bug report himself. Give him some time. We can use older packages from the AUR helper cache. Packages from late March are still compatible with current system libraries on Arch Linux. @deadpin Just recompiled, It's not fixed.
Author

Yeah, I'm not urging this must be fixed ASAP or anything like that. It's just that I'm also a maintainer of another AUR package based on Blender (upbge-git) so I'd like to get updates from here so I can take appropriate measures if needed, rather than having the report dismissed as irrelevant to the Blender project.

By the way, I heard Bartus is helping the Ukrainian refugees in Poland now so it may take a while before he could look into the issue.

Yeah, I'm not urging this must be fixed ASAP or anything like that. It's just that I'm also a maintainer of another AUR package based on Blender (upbge-git) so I'd like to get updates from here so I can take appropriate measures if needed, rather than having the report dismissed as irrelevant to the Blender project. By the way, I heard Bartus is helping the Ukrainian refugees in Poland now so it may take a while before he could look into the issue.

Added subscriber: @brecht

Added subscriber: @brecht

Hi Xavier, I didn't mean to dismiss your issue, but the policy of this tracker is that it's for official Blender versions only. I am tagging @brecht here though, maybe he has a clue.

Hi Xavier, I didn't mean to dismiss your issue, but the policy of this tracker is that it's for official Blender versions only. I am tagging @brecht here though, maybe he has a clue.
Author

In #97651#1347954, @ThomasDinges wrote:
Hi Xavier, I didn't mean to dismiss your issue, but the policy of this tracker is that it's for official Blender versions only. I am tagging @brecht here though, maybe he has a clue.

Hi Thomas, I understand. Thanks for the heads up and I hope we'd be able to resolve the problem before it may affect a broader userbase.

> In #97651#1347954, @ThomasDinges wrote: > Hi Xavier, I didn't mean to dismiss your issue, but the policy of this tracker is that it's for official Blender versions only. I am tagging @brecht here though, maybe he has a clue. Hi Thomas, I understand. Thanks for the heads up and I hope we'd be able to resolve the problem before it may affect a broader userbase.

This issue was referenced by 3558f565f1

This issue was referenced by 3558f565f1e8a8e5dc49067cc0500cbf993af69e

Changed status from 'Archived' to: 'Resolved'

Changed status from 'Archived' to: 'Resolved'
Author

I've just rebuilt and tested my package after the commit. I can confirm that the crash is no longer reproducible indeed. Thanks much for the quick fix! :)

I've just rebuilt and tested my package after the commit. I can confirm that the crash is no longer reproducible indeed. Thanks much for the quick fix! :)
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
6 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#97651
No description provided.