Regression: Crashes when uses preview or final render modes #112678
Operating system: Mac Os Monterey 12.6.1
Graphics card: AMD Radeon R9 M380 2 GB
Broken: blender 3.6.2
Worked: Blender 3.4.1
Short description of error
Blender 3.6.2 crashes on MacOS when you change between preview or final render modes. I Think is a problem related with the Realtime Viewport compositing. I think it is not enabled at all on MacOS but maybe developers did not do it correctly and some render features are requesting missing elements.
Exact steps for others to reproduce the error
Simply make 3 or 4 render previews and then press F12 to obtain a final render (or viceversa). Blender Crashes immediately.
Hi, thanks for the report. Please share affected .blend file to verify and investigate the crash.
Crashed Thread:0 libembree4.dylib 0x113a29188 embree::TriangleMesh::setBuffer(RTCBufferType, unsigned int, RTCFormat, embree::Ref const&, unsigned long, unsigned long, unsigned int) + 216\ 1 libembree4.dylib 0x1139dafb5 rtcSetSharedGeometryBuffer + 261\ 2 Blender 0x1031c1143 ccl::BVHEmbree::set_tri_vertex_buffer(RTCGeometryTy*, ccl::Mesh const*, bool) + 499\ 3 Blender 0x1031c0a0e ccl::BVHEmbree::add_triangles(ccl::Object const*, ccl::Mesh const*, int) + 318\ 4 Blender 0x1031c026e ccl::BVHEmbree::build(ccl::Progress&, ccl::Stats*, RTCDeviceTy*, bool) + 398\ 5 Blender 0x1031ce8ec ccl::CPUDevice::build_bvh(ccl::BVH*, ccl::Progress&, bool) + 108\ 6 Blender 0x1037a2bd9 ccl::GeometryManager::device_update_bvh(ccl::Device*, ccl::DeviceScene*, ccl::Scene*, ccl::Progress&) + 665\ 7 Blender 0x10379ca8e ccl::GeometryManager::device_update(ccl::Device*, ccl::DeviceScene*, ccl::Scene*, ccl::Progress&) + 5614\ 8 Blender 0x10384b40d ccl::Scene::device_update(ccl::Device*, ccl::Progress&) + 1757\ 9 Blender 0x10384d043 ccl::Scene::update(ccl::Progress&) + 163\ 10 Blender 0x103956e2e ccl::Session::run_update_for_next_iteration() + 1390\ 11 Blender 0x1039563c4 ccl::Session::run_main_render_loop() + 100\ 12 Blender 0x103957433 ccl::Session::thread_render() + 259\ 13 Blender 0x103954f38 ccl::Session::thread_run() + 168\ 14 Blender 0x1061cd4a3 ccl:🧵:run(void*) + 19\ 15 libsystem_pthread.dylib 0x7ff804afa4e1 _pthread_start + 125\ 16 libsystem_pthread.dylib 0x7ff804af5f6b thread_start + 15\
Sorry, I can't do that. it's is a 4.8 million polygon model, very complex and with many separated objects linked to it. But it is not the model, Blender 3.4.1 works perfect with it. Never crashes. I tried to reproduce the fail in models with less polygons and with no linked elements attached, and it is not easy. In simple models blender 3.6.2 seems to work fine. But in complex models, the application always crashes, sometimes at the moment you press F12 even without having used the render preview mode. I attached for you a new crash report referred to another complex model with linked objects too.
Call stack in crashed thread is different this time. Both crash seems unrelated to each other.
Without example .blend file, we won't be able to investigate the crash further.
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 Blender 0x10ed7ce8d ghash_buckets_resize + 141
1 Blender 0x10ed7d816 BLI_ghash_ensure_p + 278
2 Blender 0x107847cb9 drw_duplidata_load + 185
3 Blender 0x107846b57 DRW_draw_render_loop_ex + 1095
4 Blender 0x10871a080 view3d_main_region_draw + 208
5 Blender 0x107c57c01 ED_region_do_draw + 337
6 Blender 0x10768d581 wm_draw_update + 1761
7 Blender 0x107689910 WM_main + 48
8 Blender 0x106e79f9e main + 878
9 dyld 0x11ae3652e start + 462\
I tried with several simpler files and with the new blender 3.6.4 and the problem is repeated over and over again. When working with files with few polygons, the problem is difficult to reproduce. But with heavier objects, it always happens. To this, just do several successive render previews, then you have to perform a final rendering two or three times at low resolution (1980 px). Immediately you have to make a new render preview and it is usually there when Blender closes.
I'm sending you the report (see the attachment) and also the smallest file which I managed to reproduced the problem easily.
You can download the file here:
I've been doing more tests and the problem also occurs not only when you move from the final render to the preview render, but also when you make a final render and then try to open the "Shader" tab.
Function calls in every crash-log are different. So reason is likely to be different for every case.
In recent file has noted metal specific function calls. In which render engine you're observing crash? (cycles?)
No, I do not use Eeve. I only use cycles in CPU mode because my computer does not support GPUs. What I have found is that the issue does not happen when I create a new file in Blender 3.6.4 and render it. But perhaps this is only true for very simple files because I have only so far used Blender 3.6.4 to create models with a few polygons. In any case, it does not appear that the files are the issue. It never occurs with Blender 3.4.1. I am currently modeling in Blender 3.6.4 (which I can do without problems using the most recent add-ons), but I am doing my final renders in Blender 3.4.1. And Blender 3.4.1 never fails.
I started a new test from scratch, and for a while everything went smoothly as I rendered in final and preview modes without any issues. However, as I was rendering a preview, the program abruptly crashed. This new file I tested is not particularly large because it only has 277 000 polygons. The crash report and the entire folder file with all the textures are attached.
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?