Crash when playing metaball particle animation in rendered view (cycles) #93199

Open
opened 2021-11-18 23:40:11 +01:00 by Wouter Stomp · 33 comments

Ok, I simplified this a lot: simply adding a particle system emitting metaballs with object scale set to 1 to the default cube will trigger the crash or UI freeze.

Open attached Cycles anim crash 5.blend file from below comments and enable rendered view in cycles. Press space to start the animation playing.

--- old info: ---

System Information
Operating system: macOS-12.0.1-arm64-arm-64bit 64 Bits
Graphics card: Apple M1 Max Apple 4.1 Metal - 76.1

Blender Version
Broken: version: 3.0.0, 3.5, 4.0, 4.1.0 Alpha, branch: main, commit date: 2023-11-24 22:55, hash: 42ddc13033c2
Worked: unknown

Short description of error
Playing animations in cycles rendered view frequently crash blender. With the attached file I consistently get a crash within 1-2 minutes of starting the animation.

The crashes do not occur when running the intel version through rosetta. They occur much faster/more often when using the CPU than when using the GPU.

Exact steps for others to reproduce the error
Open attached file
Switch to rendered view (Crashes with and without Metal preference)
Press spacebar to play

Boat boating.blend
Animation crash.txt

Thread 17 Crashed:
0   Blender                       	       0x10319354c tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::process_bypass_loop(tbb::internal::context_guard_helper<false>&, tbb::task*, long) + 340
1   Blender                       	       0x103193644 tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::process_bypass_loop(tbb::internal::context_guard_helper<false>&, tbb::task*, long) + 588
2   Blender                       	       0x103192c60 tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::local_wait_for_all(tbb::task&, tbb::task*) + 184
3   Blender                       	       0x103183300 tbb::internal::arena::process(tbb::internal::generic_scheduler&) + 252
4   Blender                       	       0x10318c3b8 tbb::internal::market::process(rml::job&) + 40
5   Blender                       	       0x10318d6b0 tbb::internal::rml::private_worker::run() + 288
6   Blender                       	       0x10318d584 tbb::internal::rml::private_worker::thread_routine(void*) + 12
7   libsystem_pthread.dylib       	       0x1b39cd4ec _pthread_start + 148
8   libsystem_pthread.dylib       	       0x1b39c82d0 thread_start + 8```
Ok, I simplified this a lot: simply adding a particle system emitting metaballs with object scale set to 1 to the default cube will trigger the crash or UI freeze. Open attached Cycles anim crash 5.blend file from below comments and enable rendered view in cycles. Press space to start the animation playing. --- old info: --- **System Information** Operating system: macOS-12.0.1-arm64-arm-64bit 64 Bits Graphics card: Apple M1 Max Apple 4.1 Metal - 76.1 **Blender Version** Broken: version: 3.0.0, 3.5, 4.0, 4.1.0 Alpha, branch: main, commit date: 2023-11-24 22:55, hash: `42ddc13033c2` Worked: unknown **Short description of error** Playing animations in cycles rendered view frequently crash blender. With the attached file I consistently get a crash within 1-2 minutes of starting the animation. The crashes do not occur when running the intel version through rosetta. They occur much faster/more often when using the CPU than when using the GPU. **Exact steps for others to reproduce the error** Open attached file Switch to rendered view (Crashes with and without Metal preference) Press spacebar to play [Boat boating.blend](https://archive.blender.org/developer/F11826545/Boat_boating.blend) [Animation crash.txt](https://archive.blender.org/developer/F11826548/Animation_crash.txt) ``` Thread 17 Crashed: 0 Blender 0x10319354c tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::process_bypass_loop(tbb::internal::context_guard_helper<false>&, tbb::task*, long) + 340 1 Blender 0x103193644 tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::process_bypass_loop(tbb::internal::context_guard_helper<false>&, tbb::task*, long) + 588 2 Blender 0x103192c60 tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::local_wait_for_all(tbb::task&, tbb::task*) + 184 3 Blender 0x103183300 tbb::internal::arena::process(tbb::internal::generic_scheduler&) + 252 4 Blender 0x10318c3b8 tbb::internal::market::process(rml::job&) + 40 5 Blender 0x10318d6b0 tbb::internal::rml::private_worker::run() + 288 6 Blender 0x10318d584 tbb::internal::rml::private_worker::thread_routine(void*) + 12 7 libsystem_pthread.dylib 0x1b39cd4ec _pthread_start + 148 8 libsystem_pthread.dylib 0x1b39c82d0 thread_start + 8```
Author

Added subscriber: @blenderrocket

Added subscriber: @blenderrocket
Author

Sometimes while playing it also gets stuck at Updating Geometry BVH Mball and most of the UI gets unresponsive.

Sometimes while playing it also gets stuck at Updating Geometry BVH Mball and most of the UI gets unresponsive.
Author

In general, playing animations in cycles rendered view has a very high tendency to crash, they seems to occur much more often than on my previous intel Mac..

In general, playing animations in cycles rendered view has a very high tendency to crash, they seems to occur much more often than on my previous intel Mac..

Added subscribers: @mano-wii, @iss

Added subscribers: @mano-wii, @iss

@mano-wii Can you check?

@mano-wii Can you check?
Author

Still happens with 3.0 final release.

Still happens with 3.0 final release.

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

I cannot reproduce this with either the latest stable or current development versions of Blender: https://builder.blender.org/download/

Go to File → Defaults → Load Factory Settings and then load your file to see if you still can reproduce this issue.

If the problem persists, please give us more clear instructions on how to reproduce it from scratch.


System Information
Operating system: macOS-11.6-arm64-arm-64bit 64 Bits
Graphics card: Apple M1 Apple 4.1 Metal - 71.7.1
Blender Version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: f1cca30557

I cannot reproduce this with either the latest stable or current development versions of Blender: https://builder.blender.org/download/ Go to File → Defaults → Load Factory Settings and then load your file to see if you still can reproduce this issue. If the problem persists, please give us more clear instructions on how to reproduce it from scratch. --- **System Information** Operating system: `macOS-11.6-arm64-arm-64bit 64 Bits` Graphics card: `Apple M1 Apple 4.1 Metal - 71.7.1` Blender Version: `3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: f1cca30557`
Author

Hi, thanks for testing. With factory defaults I can still easily reproduce this in 3.0 final release and in the latest 3.1 daily build (version: 3.1.0 Alpha, branch: master, commit date: 2021-12-07 16:47, hash: a37dac0a88). The crashes basically happen while doing anything in cycles rendered view, but occur most often and consistently when playing animations in the viewport. Sometimes within seconds of pressing play, sometimes after up to a few minutes; when just editing I will run into a crash within 15-30 minutes usually. It is about 50/50 whether blender fully crashes or only the ui locks up without a crash.

The crashes are specific to the apple silicon build, when I use the intel version on the same m1 MacBook Pro, the crashes do not occur. Unfortunately I can't give more specific steps than above to reproduce, I can add more crash reports if that is helpful.

Hi, thanks for testing. With factory defaults I can still easily reproduce this in 3.0 final release and in the latest 3.1 daily build (version: 3.1.0 Alpha, branch: master, commit date: 2021-12-07 16:47, hash: `a37dac0a88`). The crashes basically happen while doing anything in cycles rendered view, but occur most often and consistently when playing animations in the viewport. Sometimes within seconds of pressing play, sometimes after up to a few minutes; when just editing I will run into a crash within 15-30 minutes usually. It is about 50/50 whether blender fully crashes or only the ui locks up without a crash. The crashes are specific to the apple silicon build, when I use the intel version on the same m1 MacBook Pro, the crashes do not occur. Unfortunately I can't give more specific steps than above to reproduce, I can add more crash reports if that is helpful.
Author

Sometimes I also get this effect where the rendered view stops updating, a few clicks after that the ui will completely lock up:

Schermopname 2021-12-07 om 20.40.19.mov

Sometimes I also get this effect where the rendered view stops updating, a few clicks after that the ui will completely lock up: [Schermopname 2021-12-07 om 20.40.19.mov](https://archive.blender.org/developer/F12705416/Schermopname_2021-12-07_om_20.40.19.mov)

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'
Author

Same with metal GPU enabled, frequent crashes in rendered viewport. One report with metal enabled just in case the problem might be different:

Crash metal.txt

Same with metal GPU enabled, frequent crashes in rendered viewport. One report with metal enabled just in case the problem might be different: [Crash metal.txt](https://archive.blender.org/developer/F12737533/Crash_metal.txt)

Added subscriber: @Leonard-Gottert

Added subscriber: @Leonard-Gottert

I can reproduce the crash as well as viewport shading not updating using the boat boating blend file. For me, Blender crashes after 10 to 60s when using CPU rendering. I just go into viewport shading and start the animation, then leave Blender alone.

I could not reproduce with GPU rendering (within a reasonable amount of time).

System Information
Operating system: macOS-12.1-arm64-arm-64bit 64 Bits
Graphics card: Apple M1 Pro Apple 4.1 Metal - 76.3

Blender Version
Broken: version: 3.1.0 Alpha, branch: master, commit date: 2022-01-07 23:28, hash: 741ed5fcd2

I can reproduce the crash as well as viewport shading not updating using the boat boating blend file. For me, Blender crashes after 10 to 60s when using CPU rendering. I just go into viewport shading and start the animation, then leave Blender alone. I could not reproduce with GPU rendering (within a reasonable amount of time). **System Information** Operating system: macOS-12.1-arm64-arm-64bit 64 Bits Graphics card: Apple M1 Pro Apple 4.1 Metal - 76.3 **Blender Version** Broken: version: 3.1.0 Alpha, branch: master, commit date: 2022-01-07 23:28, hash: `741ed5fcd2`
Author

Added subscriber: @michael64

Added subscriber: @michael64
Author

@michael64 can you see if this is the same as #94736? I get a lot of crashes in rendered view with the M1 build (but not in the intel one); it is hard to see if it is all the same bug(s) or if I need to file multiple reports.

@michael64 can you see if this is the same as #94736? I get a lot of crashes in rendered view with the M1 build (but not in the intel one); it is hard to see if it is all the same bug(s) or if I need to file multiple reports.

@blenderrocket, this crash is very different from #94736.
As one can see in F11826548 thread 16 calls ccl::BVHEmbree::build which calls embree::sse2::BVHBuilderMorton::BuildPrim via tbb which crashes in thread 17.
The Cycles Metal implementation is not involved here at all.
I suspect this is the case even for the F12737533 but there macOS could not even create a proper crash report so I can't say for sure.

I tried to reproduce the crash on Apple M1 and got three crashes so far but always by doing random UI interactions and I found no way of forcing a crash or even make it more likely.
So multiple bugreports are definitely called for here.
Also if you like you could upgrade to macOS 12.1. This will not make the crash go away but it might help in generating a proper crash report when using Metal.

@blenderrocket, this crash is very different from #94736. As one can see in [F11826548](https://archive.blender.org/developer/F11826548/Animation_crash.txt) thread 16 calls ccl::BVHEmbree::build which calls embree::sse2::BVHBuilderMorton::BuildPrim via tbb which crashes in thread 17. The Cycles Metal implementation is not involved here at all. I suspect this is the case even for the [F12737533](https://archive.blender.org/developer/F12737533/Crash_metal.txt) but there macOS could not even create a proper crash report so I can't say for sure. I tried to reproduce the crash on Apple M1 and got three crashes so far but always by doing random UI interactions and I found no way of forcing a crash or even make it more likely. So multiple bugreports are definitely called for here. Also if you like you could upgrade to macOS 12.1. This will not make the crash go away but it might help in generating a proper crash report when using Metal.

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

The comments seem to mix up different issues.
Considering only the original .blend file from the report, is this issue still seen with the latest daily build and macOS 12.2?

Still can't replicate.


Operating system: macOS-12.2-arm64-arm-64bit 64 Bits
Graphics card: Apple M1 Apple 4.1 Metal - 76.3

The comments seem to mix up different issues. Considering only the original .blend file from the report, is this issue still seen with [the latest daily build ](https://builder.blender.org/download/daily/) and macOS 12.2? Still can't replicate. --- Operating system: `macOS-12.2-arm64-arm-64bit 64 Bits` Graphics card: `Apple M1 Apple 4.1 Metal - 76.3`
Author

Yes, both crashes and the UI freezing still occur with the latest 3.1 build
I get these crashes a lot (like every few minutes) whenever doing anything in cycles rendered view, not only with this file.

Crash log reproduced with the same .blend:
CrashLatest.txt

System Information
Operating system: macOS-12.2-arm64-arm-64bit 64 Bits
Graphics card: Apple M1 Max Apple 4.1 Metal - 76.3

Blender Version
Broken: version: 3.1.0 Beta, branch: master, commit date: 2022-02-09 17:06, hash: d1202bd641

Yes, both crashes and the UI freezing still occur with the latest 3.1 build I get these crashes a lot (like every few minutes) whenever doing anything in cycles rendered view, not only with this file. Crash log reproduced with the same .blend: [CrashLatest.txt](https://archive.blender.org/developer/F12860989/CrashLatest.txt) **System Information** Operating system: macOS-12.2-arm64-arm-64bit 64 Bits Graphics card: Apple M1 Max Apple 4.1 Metal - 76.3 **Blender Version** Broken: version: 3.1.0 Beta, branch: master, commit date: 2022-02-09 17:06, hash: `d1202bd641`

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'

In #93199#1305857, @blenderrocket wrote:
(...)

System Information
Operating system: macOS-12.2-arm64-arm-64bit 64 Bits
Graphics card: Apple M1 Max Apple 4.1 Metal - 76.3

Blender Version
Broken: version: 3.1.0 Beta, branch: master, commit date: 2022-02-09 17:06, hash: d1202bd641

It's strange, apparently it seems to be the exact same setup I used, but I can't replicate the problem.

> In #93199#1305857, @blenderrocket wrote: > (...) > > **System Information** > Operating system: macOS-12.2-arm64-arm-64bit 64 Bits > Graphics card: Apple M1 Max Apple 4.1 Metal - 76.3 > > **Blender Version** > Broken: version: 3.1.0 Beta, branch: master, commit date: 2022-02-09 17:06, hash: `d1202bd641` It's strange, apparently it seems to be the exact same setup I used, but I can't replicate the problem.
Author

Latest 3.2 dailies are also affected. One thing I noticed just now (as Leonard reported above) is that the crashes occur much faster/often when using the CPU than when using the GPU.

Latest 3.2 dailies are also affected. One thing I noticed just now (as Leonard reported above) is that the crashes occur much faster/often when using the CPU than when using the GPU.
Author

Still affects the latest 3.5 alphas

System Information
Operating system: macOS-13.0.1-arm64-arm-64bit 64 Bits
Graphics card: Apple M1 Max Apple 4.1 Metal - 83
Broken: version: 3.5.0 Alpha, branch: master, commit date: 2022-12-15 23:50, hash: e58f5422c3

Still affects the latest 3.5 alphas **System Information** Operating system: macOS-13.0.1-arm64-arm-64bit 64 Bits Graphics card: Apple M1 Max Apple 4.1 Metal - 83 Broken: version: 3.5.0 Alpha, branch: master, commit date: 2022-12-15 23:50, hash: `e58f5422c3`
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

@blenderrocket hi, does it crash if you run blender with -t 1 argument?

@blenderrocket hi, does it crash if you run blender with `-t 1` argument?
Author

It doesn't seem to crash then, I have been playing the animation for about 30 minutes without any crash.

It doesn't seem to crash then, I have been playing the animation for about 30 minutes without any crash.
Member

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'
Member

Added subscribers: @Michael-Jones, @brecht

Added subscribers: @Michael-Jones, @brecht
Member

Thanks. Looks like a threading issue then.
@brecht, @Michael-Jones , can you check?

Thanks. Looks like a threading issue then. @brecht, @Michael-Jones , can you check?
Philipp Oeser removed the
Interest
Render & Cycles
label 2023-02-09 14:02:54 +01:00
Author

Ok, I simplified this a lot: simply adding a particle system emitting metaballs with object scale set to 1 to the default cube will trigger the crash or UI freeze.

Open attached file and enable rendered view. Press space to start the animation playing.

Ok, I simplified this a lot: simply adding a particle system emitting metaballs with object scale set to 1 to the default cube will trigger the crash or UI freeze. Open attached file and enable rendered view. Press space to start the animation playing.
Author

And the corresponding crash log.

And the corresponding crash log.
Wouter Stomp changed title from Crash when playing animation in rendered view (cycles) to Crash when playing metaball particle animation in rendered view (cycles) 2023-11-02 22:15:31 +01:00
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#93199
No description provided.