Blender crashes when merging mesh.vertices with a python script #88022

Open
opened 2021-05-04 11:59:09 +02:00 by Alejandro Gonzalvo · 5 comments

System Information
Operating system: Pop_OS 20.04
Graphics card: Intel 4th Generation Core Proc

Blender Version
Broken: 2.82a

Short description of error
Link to stackoverflow question:

https://stackoverflow.com/questions/67382479/blender-crashes-when-merging-mesh-vertices-with-a-python-script

I have reuploaded the question here because I think It could be an error with blender code rather than mine. The steps to reproduce the crash would be creating an icosphere mesh, setting the max_distance variable to 0.3 and just moving nodes nearby to other ones and clicking run_script then. At some point it will close and save an ico.crash.txt. I have attached mine.

ico.crash.txt

#88022.blend

#88022.webm

**System Information** Operating system: Pop_OS 20.04 Graphics card: Intel 4th Generation Core Proc **Blender Version** Broken: 2.82a **Short description of error** Link to stackoverflow question: https://stackoverflow.com/questions/67382479/blender-crashes-when-merging-mesh-vertices-with-a-python-script I have reuploaded the question here because I think It could be an error with blender code rather than mine. The steps to reproduce the crash would be creating an icosphere mesh, setting the max_distance variable to 0.3 and just moving nodes nearby to other ones and clicking run_script then. At some point it will close and save an ico.crash.txt. I have attached mine. [ico.crash.txt](https://archive.blender.org/developer/F10052697/ico.crash.txt) [#88022.blend](https://archive.blender.org/developer/F10056572/T88022.blend) [#88022.webm](https://archive.blender.org/developer/F10056574/T88022.webm)

Added subscriber: @alejandrogonzalvo

Added subscriber: @alejandrogonzalvo
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Can confirm a crash here.

There might be something wrong with the script (havent checked in depth), but would be good by the Python or Modeling module to check.

Two different stacktraces:

1   bm_face_create_from_mpoly   bmesh_mesh_convert.c 172  0x3d3369d 
2   BM_mesh_bm_from_me          bmesh_mesh_convert.c 414  0x3d3481c 
3   BKE_mesh_to_bmesh_ex        mesh.c               1014 0x3650fcd 
4   BKE_mesh_to_bmesh           mesh.c               1024 0x3651062 
5   EDBM_mesh_make              editmesh_utils.c     311  0x486feb2 
6   ED_object_editmode_enter_ex object_edit.c        793  0x493558e 
7   editmode_toggle_exec        object_edit.c        888  0x493590e 
8   wm_operator_invoke          wm_event_system.c    1362 0x3bbd606 
9   wm_operator_call_internal   wm_event_system.c    1557 0x3bbdc42 
10  WM_operator_name_call_ptr   wm_event_system.c    1605 0x3bbde3f 
11  ED_object_mode_set_ex       object_modes.c       222  0x493dd4f 
12  object_mode_set_exec        object_edit.c        1677 0x493768f 
13  wm_operator_invoke          wm_event_system.c    1362 0x3bbd606 
14  wm_operator_call_internal   wm_event_system.c    1591 0x3bbdda8 
15  WM_operator_call_py         wm_event_system.c    1663 0x3bbe01f 
16  pyop_call                   bpy_operator.c       285  0x45c07a5 
17  cfunction_call              methodobject.c       548  0xdf63b34 
18  _PyObject_MakeTpCall        call.c               191  0xdf25830 
19  _PyObject_VectorcallTstate  abstract.h           116  0x35ac429 
20  _PyObject_VectorcallTstate  abstract.h           103  0x35ac429 
... <More> 
1   add_newell_cross_v3_v3v3                                                                                                                                                                                                                                                                  math_vector_inline.c 969  0x365531d 
2   mesh_calc_ngon_normal                                                                                                                                                                                                                                                                     mesh_evaluate.c      2178 0x365ab45 
3   BKE_mesh_calc_poly_normal                                                                                                                                                                                                                                                                 mesh_evaluate.c      2193 0x365abe7 
4   mesh_calc_normals_poly_cb                                                                                                                                                                                                                                                                 mesh_evaluate.c      225  0x3655c23 
5   RangeTask::operator()(tbb::blocked_range<int> const&) const::{lambda()#1}::operator()() const                                                                                                                                                                                             task_range.cc        97   0xfee16f8 
6   tbb::interface7::internal::delegated_function<RangeTask::operator()(tbb::blocked_range<int> const&) const::{lambda()#1} const, void>::operator()() const                                                                                                                                  task_arena.h         96   0xfee2556 
7   tbb::interface7::internal::isolate_within_arena(tbb::interface7::internal::delegate_base&, long)                                                                                                                                                                                                                    0x3b9fa35 
8   tbb::interface7::internal::isolate_impl<void, RangeTask::operator()(tbb::blocked_range<int> const&) const::{lambda()#1} const>(RangeTask::operator()(tbb::blocked_range<int> const&) const::{lambda()#1} const&)                                                                          task_arena.h         216  0xfee1a68 
9   tbb::interface7::this_task_arena::isolate<RangeTask::operator()(tbb::blocked_range<int> const&) const::{lambda()#1}>(RangeTask::operator()(tbb::blocked_range<int> const&) const::{lambda()#1} const&)                                                                                    task_arena.h         472  0xfee17b6 
10  RangeTask::operator()                                                                                                                                                                                                                                                                     task_range.cc        93   0xfee1739 
11  tbb::interface9::internal::start_for<tbb::blocked_range<int>, RangeTask, tbb::auto_partitioner const>::run_body                                                                                                                                                                           parallel_for.h       115  0xfee370d 
12  tbb::interface9::internal::dynamic_grainsize_mode<tbb::interface9::internal::adaptive_mode<tbb::interface9::internal::auto_partition_type>>::work_balance<tbb::interface9::internal::start_for<tbb::blocked_range<int>, RangeTask, tbb::auto_partitioner const>, tbb::blocked_range<int>> partitioner.h        423  0xfee2edd 
13  tbb::interface9::internal::partition_type_base<tbb::interface9::internal::auto_partition_type>::execute<tbb::interface9::internal::start_for<tbb::blocked_range<int>, RangeTask, tbb::auto_partitioner const>, tbb::blocked_range<int>>                                                   partitioner.h        256  0xfee2b3d 
14  tbb::interface9::internal::start_for<tbb::blocked_range<int>, RangeTask, tbb::auto_partitioner const>::execute                                                                                                                                                                            parallel_for.h       142  0xfee2632 
15  tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::process_bypass_loop(tbb::internal::context_guard_helper<false>&, tbb::task *, long)                                                                                                                                                           0x3bb0895 
16  tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::local_wait_for_all(tbb::task&, tbb::task *)                                                                                                                                                                                                   0x3bb0b4b 
17  tbb::internal::generic_scheduler::local_spawn_root_and_wait(tbb::task *, tbb::task *&)                                                                                                                                                                                                                              0x3bae3e0 
18  tbb::task::spawn_root_and_wait                                                                                                                                                                                                                                                            task.h               809  0x366c091 
19  tbb::interface9::internal::start_for<tbb::blocked_range<int>, RangeTask, tbb::auto_partitioner const>::run                                                                                                                                                                                parallel_for.h       95   0xfee1c56 
20  tbb::parallel_for<tbb::blocked_range<int>, RangeTask>                                                                                                                                                                                                                                     parallel_for.h       201  0xfee1887 
... <More>                                                                                                                                                                                                                                                                                                                        

Can confirm a crash here. There might be something wrong with the script (havent checked in depth), but would be good by the Python or Modeling module to check. Two different stacktraces: ``` 1 bm_face_create_from_mpoly bmesh_mesh_convert.c 172 0x3d3369d 2 BM_mesh_bm_from_me bmesh_mesh_convert.c 414 0x3d3481c 3 BKE_mesh_to_bmesh_ex mesh.c 1014 0x3650fcd 4 BKE_mesh_to_bmesh mesh.c 1024 0x3651062 5 EDBM_mesh_make editmesh_utils.c 311 0x486feb2 6 ED_object_editmode_enter_ex object_edit.c 793 0x493558e 7 editmode_toggle_exec object_edit.c 888 0x493590e 8 wm_operator_invoke wm_event_system.c 1362 0x3bbd606 9 wm_operator_call_internal wm_event_system.c 1557 0x3bbdc42 10 WM_operator_name_call_ptr wm_event_system.c 1605 0x3bbde3f 11 ED_object_mode_set_ex object_modes.c 222 0x493dd4f 12 object_mode_set_exec object_edit.c 1677 0x493768f 13 wm_operator_invoke wm_event_system.c 1362 0x3bbd606 14 wm_operator_call_internal wm_event_system.c 1591 0x3bbdda8 15 WM_operator_call_py wm_event_system.c 1663 0x3bbe01f 16 pyop_call bpy_operator.c 285 0x45c07a5 17 cfunction_call methodobject.c 548 0xdf63b34 18 _PyObject_MakeTpCall call.c 191 0xdf25830 19 _PyObject_VectorcallTstate abstract.h 116 0x35ac429 20 _PyObject_VectorcallTstate abstract.h 103 0x35ac429 ... <More> ``` ``` 1 add_newell_cross_v3_v3v3 math_vector_inline.c 969 0x365531d 2 mesh_calc_ngon_normal mesh_evaluate.c 2178 0x365ab45 3 BKE_mesh_calc_poly_normal mesh_evaluate.c 2193 0x365abe7 4 mesh_calc_normals_poly_cb mesh_evaluate.c 225 0x3655c23 5 RangeTask::operator()(tbb::blocked_range<int> const&) const::{lambda()#1}::operator()() const task_range.cc 97 0xfee16f8 6 tbb::interface7::internal::delegated_function<RangeTask::operator()(tbb::blocked_range<int> const&) const::{lambda()#1} const, void>::operator()() const task_arena.h 96 0xfee2556 7 tbb::interface7::internal::isolate_within_arena(tbb::interface7::internal::delegate_base&, long) 0x3b9fa35 8 tbb::interface7::internal::isolate_impl<void, RangeTask::operator()(tbb::blocked_range<int> const&) const::{lambda()#1} const>(RangeTask::operator()(tbb::blocked_range<int> const&) const::{lambda()#1} const&) task_arena.h 216 0xfee1a68 9 tbb::interface7::this_task_arena::isolate<RangeTask::operator()(tbb::blocked_range<int> const&) const::{lambda()#1}>(RangeTask::operator()(tbb::blocked_range<int> const&) const::{lambda()#1} const&) task_arena.h 472 0xfee17b6 10 RangeTask::operator() task_range.cc 93 0xfee1739 11 tbb::interface9::internal::start_for<tbb::blocked_range<int>, RangeTask, tbb::auto_partitioner const>::run_body parallel_for.h 115 0xfee370d 12 tbb::interface9::internal::dynamic_grainsize_mode<tbb::interface9::internal::adaptive_mode<tbb::interface9::internal::auto_partition_type>>::work_balance<tbb::interface9::internal::start_for<tbb::blocked_range<int>, RangeTask, tbb::auto_partitioner const>, tbb::blocked_range<int>> partitioner.h 423 0xfee2edd 13 tbb::interface9::internal::partition_type_base<tbb::interface9::internal::auto_partition_type>::execute<tbb::interface9::internal::start_for<tbb::blocked_range<int>, RangeTask, tbb::auto_partitioner const>, tbb::blocked_range<int>> partitioner.h 256 0xfee2b3d 14 tbb::interface9::internal::start_for<tbb::blocked_range<int>, RangeTask, tbb::auto_partitioner const>::execute parallel_for.h 142 0xfee2632 15 tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::process_bypass_loop(tbb::internal::context_guard_helper<false>&, tbb::task *, long) 0x3bb0895 16 tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::local_wait_for_all(tbb::task&, tbb::task *) 0x3bb0b4b 17 tbb::internal::generic_scheduler::local_spawn_root_and_wait(tbb::task *, tbb::task *&) 0x3bae3e0 18 tbb::task::spawn_root_and_wait task.h 809 0x366c091 19 tbb::interface9::internal::start_for<tbb::blocked_range<int>, RangeTask, tbb::auto_partitioner const>::run parallel_for.h 95 0xfee1c56 20 tbb::parallel_for<tbb::blocked_range<int>, RangeTask> parallel_for.h 201 0xfee1887 ... <More> ```
Philipp Oeser removed the
Interest
Modeling
label 2023-02-09 15:28:33 +01:00
Member

Just noting this still crashes in current main (maybe for other reasons because I had a different stacktrace), but it still crsahes.

Just noting this still crashes in current main (maybe for other reasons because I had a different stacktrace), but it still crsahes.
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
2 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#88022
No description provided.