Too many crashes

I got another crash last night, but this time I had launched Blender from the Terminal, so I saw where it saved the crash log. It’s surprisingly short, so I’ll just copy and paste it here:

# Blender 4.1.0, Commit date: 2024-03-25 20:42, Hash 40a5e739e270
bpy.context.space_data.use_filter_view_layers = True  # Property
bpy.context.space_data.use_filter_object_content = True  # Property
bpy.context.space_data.use_filter_children = True  # Property
bpy.context.space_data.use_filter_object_mesh = True  # Property
bpy.context.space_data.use_filter_object_camera = True  # Property
bpy.context.space_data.use_filter_object_grease_pencil = True  # Property
bpy.context.space_data.use_filter_object_empty = True  # Property
bpy.context.space_data.use_filter_object_others = True  # Property
bpy.context.scene.frame_start = 1  # Property
bpy.context.scene.frame_end = 282  # Property
bpy.context.space_data.shading.type = 'WIREFRAME'  # Property
bpy.context.space_data.show_gizmo = False  # Property
Saved "NCC1701_Alex_2023_2009Anim_082 Test new STarfield.blend"  # Info

# backtrace
0   Blender                             0x0000000102aa2c80 BLI_system_backtrace + 56
1   Blender                             0x000000010221213c _ZL16sig_handle_crashi + 356
2   libsystem_platform.dylib            0x000000019d61f584 _sigtramp + 56
3   Blender                             0x0000000102990eac BLI_gset_lookup + 80
4   Blender                             0x0000000102b35b70 _Z25WM_msg_publish_rna_paramsP8wmMsgBusPK15wmMsgParams_RNA + 304
5   Blender                             0x0000000102b35c24 _Z18WM_msg_publish_rnaP8wmMsgBusP10PointerRNAP11PropertyRNA + 40
6   Blender                             0x0000000102eb97e4 _ZL19rna_property_updateP8bContextP4MainP5SceneP10PointerRNAP11PropertyRNA + 236
7   Blender                             0x000000010308a9a4 _ZL16pyrna_py_to_propP10PointerRNAP11PropertyRNAPvP7_objectPKc + 140
8   Blender                             0x0000000106676608 PyObject_SetAttr + 152
9   Blender                             0x0000000106701d1c _PyEval_EvalFrameDefault + 12628
10  Blender                             0x00000001066feb28 _PyEval_Vector + 200
11  Blender                             0x000000010307be04 _Z24bpy_app_generic_callbackP4MainPP10PointerRNAiPv + 412
12  Blender                             0x0000000102283ea4 BKE_callback_exec_id_depsgraph + 144
13  Blender                             0x00000001025a0c28 BKE_scene_graph_update_for_newframe_ex + 136
14  Blender                             0x000000010387fbb4 RE_engine_frame_set + 140
15  Blender                             0x0000000102fea6c0 RenderEngine_frame_set_func + 56
16  Blender                             0x00000001040ba484 _ZN3ccl11BlenderSync11sync_motionERN2BL14RenderSettingsERNS1_9DepsgraphERNS1_11SpaceView3DERNS1_6ObjectEiiPPv + 1296
17  Blender                             0x00000001040ebd18 _ZN3ccl11BlenderSync9sync_dataERN2BL14RenderSettingsERNS1_9DepsgraphERNS1_11SpaceView3DERNS1_6ObjectEiiPPvRKNS_10DeviceInfoE + 444
18  Blender                             0x00000001040cfba4 _ZN3ccl14BlenderSession6renderERN2BL9DepsgraphE + 2060
19  Blender                             0x00000001040c7da4 _ZN3cclL11render_funcEP7_objectS1_ + 160
20  Blender                             0x0000000106672010 cfunction_call + 172
21  Blender                             0x0000000106626cfc _PyObject_MakeTpCall + 344
22  Blender                             0x0000000106706fdc _PyEval_EvalFrameDefault + 33812
23  Blender                             0x00000001066feb28 _PyEval_Vector + 200
24  Blender                             0x0000000103095124 _ZL14bpy_class_callP8bContextP10PointerRNAP11FunctionRNAP13ParameterList + 1240
25  Blender                             0x0000000102feafbc _ZL13engine_renderP12RenderEngineP9Depsgraph + 120
26  Blender                             0x0000000103880674 _ZL24engine_render_view_layerP6RenderP12RenderEngineP9ViewLayerbb + 644
27  Blender                             0x00000001038801f4 RE_engine_render + 876
28  Blender                             0x0000000103885954 _ZL23do_render_full_pipelineP6Render + 268
29  Blender                             0x000000010388748c RE_RenderAnim + 1424
30  Blender                             0x000000010370d8bc _ZL15render_startjobPvP17wmJobWorkerStatus + 80
31  Blender                             0x0000000102b11ffc _ZL13do_job_threadPv + 32
32  libsystem_pthread.dylib             0x000000019d5eef94 _pthread_start + 136
33  libsystem_pthread.dylib             0x000000019d5e9d34 thread_start + 8

# Python backtrace
  File "/Applications/Blender.app/Contents/Resources/4.1/scripts/addons/sun_position/sun_calc.py", line 354 in set_sun_rotations
  File "/Applications/Blender.app/Contents/Resources/4.1/scripts/addons/sun_position/sun_calc.py", line 81 in move_sun
  File "/Applications/Blender.app/Contents/Resources/4.1/scripts/addons/sun_position/sun_calc.py", line 195 in sun_handler
  File "/Applications/Blender.app/Contents/Resources/4.1/scripts/addons/cycles/engine.py", line 91 in render
  File "/Applications/Blender.app/Contents/Resources/4.1/scripts/addons/cycles/__init__.py", line 72 in render

Then in the usual macOS problem report, this is the part that matters:

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               Blender [39679]
Path:                  /Applications/Blender.app/Contents/MacOS/Blender
Identifier:            org.blenderfoundation.blender
Version:               4.1.0 (4.1.0 2024-03-26)
Code Type:             ARM-64 (Native)
Parent Process:        zsh [39668]
Responsible:           Terminal [39665]
User ID:               501

Date/Time:             2024-05-03 04:58:28.5997 -0400
OS Version:            macOS 14.4.1 (23E224)
Report Version:        12
Anonymous UUID:        55AF7720-02C9-926E-C7DA-7319E4A60559


Time Awake Since Boot: 220000 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGSEGV)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process:   Blender [39679]

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	       0x19d5ae248 swtch_pri + 8
1   libsystem_pthread.dylib       	       0x19d5ebdd0 cthread_yield + 32
2   libtbb.dylib                  	       0x10caa05f0 tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::receive_or_steal_task(long&, long) + 536
3   libtbb.dylib                  	       0x10caa00ac tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::local_wait_for_all(tbb::task&, tbb::task*) + 280
4   Blender                       	       0x102aa56a0 tbb::internal::task_group_base::wait() + 40
5   Blender                       	       0x102aa5664 BLI_task_pool_work_and_wait + 384
6   Blender                       	       0x102ad4084 blender::deg::(anonymous namespace)::evaluate_graph_threaded_stage(blender::deg::(anonymous namespace)::DepsgraphEvalState*, TaskPool*, blender::deg::(anonymous namespace)::EvaluationStage) + 340
7   Blender                       	       0x102ad3e0c blender::deg::deg_evaluate_on_refresh(blender::deg::Depsgraph*) + 316
8   Blender                       	       0x102ae45a8 deg_flush_updates_and_refresh(blender::deg::Depsgraph*, DepsgraphEvaluateSyncWriteback) + 64
9   Blender                       	       0x1025a0afc scene_graph_update_tagged(Depsgraph*, Main*, bool) + 368
10  Blender                       	       0x102afbcb0 wm_event_do_depsgraph(bContext*, bool) + 172
11  Blender                       	       0x102afbd70 wm_event_do_refresh_wm_and_depsgraph(bContext*) + 44
12  Blender                       	       0x102afc410 wm_event_do_notifiers(bContext*) + 1584
13  Blender                       	       0x102af5458 WM_main(bContext*) + 44
14  Blender                       	       0x10220db98 main + 856
15  dyld                          	       0x19d2660e0 start + 2360

Usually I don’t see thread crashed is 0, but this time it is.

Does this give you any indications on what the problem might be?

Are you using the sun_position addon?

Apparently I am. I think it shows red for Environment Texture because I used to have an HDRI map that I replaced with something else that somebody made for me here. So I just replaced it with that, but the crashes were happening since way before I changed that.

Are you saying that that addon could be the cause of the crashes?

I am not too familiar with crash reports, but it appears as if the addon was causing in (anyone who knows better, feel free to correct me).

If you regularly encounter the issue, it might be worth to test it without the addon to figure out whether it is more stable like that. (And possibly submit a bug report, if the suspicion is confirmed)