Crash when pressing Ctrl with Measure Tool enabled #91717

Closed
opened 2021-09-26 08:58:58 +02:00 by s12a · 9 comments

System Information
Operating system: Windows-10-10.0.22000-SP0 64 Bits
Graphics card: Radeon (TM) RX 480 Graphics ATI Technologies Inc. 4.5.14742 Core Profile Context 21.8.2 27.20.22025.1006

Blender Version
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-09-25 07:31, hash: 505422220d

Short description of error
Blender instantly crashes when pressing the Ctrl key with the Measure Tool selected, as well as in other situations that I haven't been able to efficiently pinpoint. This seems due to the presence of a certain Curve object in the scene: if I delete it the problem cannot be reproduced anymore.

Exact steps for others to reproduce the error

  1. Open the attached .blend file and activate the Measure Tool (already done in this file)
  2. Hover the pointer on the 3D viewport
  3. Press Ctrl with the Measure Tool enabled
  4. Blender crashes

Another way to reproduce a similar insta-crash condition with the same file is clicking on the "Add Cube" tool icon on the left toolbar and then hovering the arrow on the 3D viewport.

ctrlcrasher.blend

**System Information** Operating system: Windows-10-10.0.22000-SP0 64 Bits Graphics card: Radeon (TM) RX 480 Graphics ATI Technologies Inc. 4.5.14742 Core Profile Context 21.8.2 27.20.22025.1006 **Blender Version** Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-09-25 07:31, hash: `505422220d` **Short description of error** Blender instantly crashes when pressing the `Ctrl` key with the Measure Tool selected, as well as in other situations that I haven't been able to efficiently pinpoint. This seems due to the presence of a certain Curve object in the scene: if I delete it the problem cannot be reproduced anymore. **Exact steps for others to reproduce the error** 1) Open the attached .blend file and activate the Measure Tool (already done in this file) 2) Hover the pointer on the 3D viewport 3) Press `Ctrl` with the Measure Tool enabled 4) Blender crashes Another way to reproduce a similar insta-crash condition with the same file is clicking on the "Add Cube" tool icon on the left toolbar and then hovering the arrow on the 3D viewport. [ctrlcrasher.blend](https://archive.blender.org/developer/F10603259/ctrlcrasher.blend)
Author

Added subscriber: @s12a

Added subscriber: @s12a

Added subscriber: @iss

Added subscriber: @iss

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

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

Can confirm, crash on BLI_assert_unreachable()

>	blender.exe!BKE_mesh_wrapper_minmax(const Mesh * me, float * min, float * max) Line 163	C

 	blender.exe!BKE_mesh_boundbox_get(Object * ob) Line 1183	C
 	blender.exe!raycastMesh(SnapObjectContext * sctx, const float * ray_start, const float * ray_dir, Object * ob_eval, const Mesh * me_eval, const float[4] * obmat, const unsigned int ob_index, bool use_hide, bool use_backface_culling, float * ray_depth, float * r_loc, float * r_no, int * r_index, ListBase * r_hit_list) Line 727	C
 	blender.exe!raycast_obj_fn(SnapObjectContext * sctx, Object * ob_eval, float[4] * obmat, eSnapEditType edit_mode_type, bool use_backface_culling, bool is_object_active, void * data) Line 1091	C
 	blender.exe!iter_snap_objects(SnapObjectContext * sctx, Depsgraph * depsgraph, const SnapObjectParams * params, void(*)(SnapObjectContext *, Object *, float[4] *, eSnapEditType, bool, bool, void *) sob_callback, void * data) Line 515	C
 	blender.exe!raycastObjects(SnapObjectContext * sctx, Depsgraph * depsgraph, const SnapObjectParams * params, const float * ray_start, const float * ray_dir, float * ray_depth, float * r_loc, float * r_no, int * r_index, Object * * r_ob, float[4] * r_obmat, ListBase * r_hit_list) Line 1182	C
 	blender.exe!transform_snap_context_project_view3d_mixed_impl(SnapObjectContext * sctx, Depsgraph * depsgraph, const unsigned short snap_to_flag, const SnapObjectParams * params, const float * mval, const float * prev_co, float * dist_px, float * r_loc, float * r_no, int * r_index, Object * * r_ob, float[4] * r_obmat) Line 3065	C
 	blender.exe!ED_transform_snap_object_project_view3d_ex(SnapObjectContext * sctx, Depsgraph * depsgraph, const unsigned short snap_to, const SnapObjectParams * params, const float * mval, const float * prev_co, float * dist_px, float * r_loc, float * r_no, int * r_index, Object * * r_ob, float[4] * r_obmat) Line 3230	C
 	blender.exe!ED_gizmotypes_snap_3d_update(wmGizmo * gz, Depsgraph * depsgraph, const ARegion * region, const View3D * v3d, const wmWindowManager * wm, const float * mval_fl) Line 387	C
 	blender.exe!snap_gizmo_test_select(bContext * C, wmGizmo * gz, const int * mval) Line 649	C
 	blender.exe!gizmo_find_intersected_3d(bContext * C, const int * co, wmGizmo * * visible_gizmos, const int visible_gizmos_len, int * r_part) Line 674	C
 	blender.exe!wm_gizmomap_highlight_find(wmGizmoMap * gzmap, bContext * C, const wmEvent * event, int * r_part) Line 776	C
 	blender.exe!wm_handlers_do_gizmo_handler(bContext * C, wmWindowManager * wm, wmEventHandler_Gizmo * handler, wmEvent * event, ListBase * handlers, const bool do_debug_handler) Line 2838	C
 	blender.exe!wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 3074	C
 	blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 3133	C
 	blender.exe!wm_event_do_handlers(bContext * C) Line 3626	C
 	blender.exe!WM_main(bContext * C) Line 650	C
 	blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 562	C
Can confirm, crash on `BLI_assert_unreachable()` ``` > blender.exe!BKE_mesh_wrapper_minmax(const Mesh * me, float * min, float * max) Line 163 C blender.exe!BKE_mesh_boundbox_get(Object * ob) Line 1183 C blender.exe!raycastMesh(SnapObjectContext * sctx, const float * ray_start, const float * ray_dir, Object * ob_eval, const Mesh * me_eval, const float[4] * obmat, const unsigned int ob_index, bool use_hide, bool use_backface_culling, float * ray_depth, float * r_loc, float * r_no, int * r_index, ListBase * r_hit_list) Line 727 C blender.exe!raycast_obj_fn(SnapObjectContext * sctx, Object * ob_eval, float[4] * obmat, eSnapEditType edit_mode_type, bool use_backface_culling, bool is_object_active, void * data) Line 1091 C blender.exe!iter_snap_objects(SnapObjectContext * sctx, Depsgraph * depsgraph, const SnapObjectParams * params, void(*)(SnapObjectContext *, Object *, float[4] *, eSnapEditType, bool, bool, void *) sob_callback, void * data) Line 515 C blender.exe!raycastObjects(SnapObjectContext * sctx, Depsgraph * depsgraph, const SnapObjectParams * params, const float * ray_start, const float * ray_dir, float * ray_depth, float * r_loc, float * r_no, int * r_index, Object * * r_ob, float[4] * r_obmat, ListBase * r_hit_list) Line 1182 C blender.exe!transform_snap_context_project_view3d_mixed_impl(SnapObjectContext * sctx, Depsgraph * depsgraph, const unsigned short snap_to_flag, const SnapObjectParams * params, const float * mval, const float * prev_co, float * dist_px, float * r_loc, float * r_no, int * r_index, Object * * r_ob, float[4] * r_obmat) Line 3065 C blender.exe!ED_transform_snap_object_project_view3d_ex(SnapObjectContext * sctx, Depsgraph * depsgraph, const unsigned short snap_to, const SnapObjectParams * params, const float * mval, const float * prev_co, float * dist_px, float * r_loc, float * r_no, int * r_index, Object * * r_ob, float[4] * r_obmat) Line 3230 C blender.exe!ED_gizmotypes_snap_3d_update(wmGizmo * gz, Depsgraph * depsgraph, const ARegion * region, const View3D * v3d, const wmWindowManager * wm, const float * mval_fl) Line 387 C blender.exe!snap_gizmo_test_select(bContext * C, wmGizmo * gz, const int * mval) Line 649 C blender.exe!gizmo_find_intersected_3d(bContext * C, const int * co, wmGizmo * * visible_gizmos, const int visible_gizmos_len, int * r_part) Line 674 C blender.exe!wm_gizmomap_highlight_find(wmGizmoMap * gzmap, bContext * C, const wmEvent * event, int * r_part) Line 776 C blender.exe!wm_handlers_do_gizmo_handler(bContext * C, wmWindowManager * wm, wmEventHandler_Gizmo * handler, wmEvent * event, ListBase * handlers, const bool do_debug_handler) Line 2838 C blender.exe!wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 3074 C blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 3133 C blender.exe!wm_event_do_handlers(bContext * C) Line 3626 C blender.exe!WM_main(bContext * C) Line 650 C blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 562 C ```

Added subscriber: @deadpin

Added subscriber: @deadpin

This is most likely related to #91734 as well. The measure tool isn't necessary to crash the file here. Load the file, select the box selection tool, select one of the curve objects and start to move around and attempt to snap somewhere with CTRL.

This is most likely related to #91734 as well. The measure tool isn't necessary to crash the file here. Load the file, select the box selection tool, select one of the curve objects and start to move around and attempt to snap somewhere with CTRL.
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Indeed a duplicate of #91734 (Crash snapping mesh if a beveled curve is present), will merge these reports.

Indeed a duplicate of #91734 (Crash snapping mesh if a beveled curve is present), will merge these reports.
Member

Closed as duplicate of #91734

Closed as duplicate of #91734
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
4 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#91717
No description provided.