Make Line Tool Crashes Blender When Object Has Subdivision Surface Modifier #110601

Closed
opened 2023-07-29 02:21:39 +02:00 by Omar · 3 comments

System Information
Operating system: Linux-5.19.0-43-generic-x86_64-with-glibc2.35 64 Bits, X11 UI
Graphics card: NVIDIA GeForce RTX 2060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 515.105.01

Blender Version
Broken: version: 3.6.1, branch: blender-v3.6-release, commit date: 2023-07-17 12:50, hash: 8bda729ef4dc
Worked:

Short description of error
Trying to use the Make Line tool on an object that has subsurface modifier will crash blender.

Exact steps for others to reproduce the error

  • Enable "Snap_Utilities_Line" built-in add-on.
  • Open provided file.
  • Left click in the 3d viewport.
  • An error will pop.
  • Multiple clicks or a few seconds later, blender crashes.
**System Information** Operating system: Linux-5.19.0-43-generic-x86_64-with-glibc2.35 64 Bits, X11 UI Graphics card: NVIDIA GeForce RTX 2060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 515.105.01 **Blender Version** Broken: version: 3.6.1, branch: blender-v3.6-release, commit date: 2023-07-17 12:50, hash: `8bda729ef4dc` Worked: **Short description of error** Trying to use the Make Line tool on an object that has subsurface modifier will crash blender. **Exact steps for others to reproduce the error** - Enable "Snap_Utilities_Line" built-in add-on. - Open provided file. - Left click in the 3d viewport. - An error will pop. - Multiple clicks or a few seconds later, blender crashes.
Omar added the
Type
Report
Priority
Normal
Status
Needs Triage
labels 2023-07-29 02:21:40 +02:00
Member

Can confirm the crash. Looks like the same thing as #81625. Likely crashed due to some GPU buffer issue.

Error: Python: Traceback (most recent call last):
  File "/home/yiming/Documents/Sources/BlenderMain/build_linux/bin/4.0/scripts/addons/mesh_snap_utilities_line/op_line.py", line 300, in modal
    self.snap_obj, self.prevloc, self.location, self.type, self.bm, self.geom, self.len = snap_utilities(
  File "/home/yiming/Documents/Sources/BlenderMain/build_linux/bin/4.0/scripts/addons/mesh_snap_utilities_line/common_utilities.py", line 180, in snap_utilities
    snp_obj, loc, elem, elem_co, view_vector, orig, bm, bm_geom = get_snap_bm_geom(
  File "/home/yiming/Documents/Sources/BlenderMain/build_linux/bin/4.0/scripts/addons/mesh_snap_utilities_line/common_utilities.py", line 92, in get_snap_bm_geom
    r_snp_obj, r_loc, r_elem, r_elem_co = sctx.snap_get(mcursor, main_snap_obj)
  File "/home/yiming/Documents/Sources/BlenderMain/build_linux/bin/4.0/scripts/addons/mesh_snap_utilities_line/snap_context_l/__init__.py", line 451, in snap_get
    snap_obj.data.append(GPU_Indices_Mesh(self.depsgraph, obj, draw_face, draw_edge, draw_vert))
  File "/home/yiming/Documents/Sources/BlenderMain/build_linux/bin/4.0/scripts/addons/mesh_snap_utilities_line/snap_context_l/mesh_drawing.py", line 362, in __init__
    ebo = gpu.types.GPUIndexBuf(type="POINTS", seq=self.looseverts)
ValueError: Each index must be an 4-bytes integer value
Can confirm the crash. Looks like the same thing as #81625. Likely crashed due to some GPU buffer issue. ``` Error: Python: Traceback (most recent call last): File "/home/yiming/Documents/Sources/BlenderMain/build_linux/bin/4.0/scripts/addons/mesh_snap_utilities_line/op_line.py", line 300, in modal self.snap_obj, self.prevloc, self.location, self.type, self.bm, self.geom, self.len = snap_utilities( File "/home/yiming/Documents/Sources/BlenderMain/build_linux/bin/4.0/scripts/addons/mesh_snap_utilities_line/common_utilities.py", line 180, in snap_utilities snp_obj, loc, elem, elem_co, view_vector, orig, bm, bm_geom = get_snap_bm_geom( File "/home/yiming/Documents/Sources/BlenderMain/build_linux/bin/4.0/scripts/addons/mesh_snap_utilities_line/common_utilities.py", line 92, in get_snap_bm_geom r_snp_obj, r_loc, r_elem, r_elem_co = sctx.snap_get(mcursor, main_snap_obj) File "/home/yiming/Documents/Sources/BlenderMain/build_linux/bin/4.0/scripts/addons/mesh_snap_utilities_line/snap_context_l/__init__.py", line 451, in snap_get snap_obj.data.append(GPU_Indices_Mesh(self.depsgraph, obj, draw_face, draw_edge, draw_vert)) File "/home/yiming/Documents/Sources/BlenderMain/build_linux/bin/4.0/scripts/addons/mesh_snap_utilities_line/snap_context_l/mesh_drawing.py", line 362, in __init__ ebo = gpu.types.GPUIndexBuf(type="POINTS", seq=self.looseverts) ValueError: Each index must be an 4-bytes integer value ```
Member
@mano-wii ^^

Fixed by ee1f3fe43f

This report was not automatically closed because it was reported in the wrong repository.

It should have been reported in the blender-addons repository instead of the blender repository.

Fixed by https://projects.blender.org/blender/blender-addons/commit/ee1f3fe43f110489ab9e74bd43f1f21613f40482 This report was not automatically closed because it was reported in the wrong repository. It should have been reported in the [blender-addons](https://projects.blender.org/blender/blender-addons) repository instead of the [blender](https://projects.blender.org/blender/blender) repository.
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2023-07-31 18:37:55 +02:00
Germano Cavalcante added
Status
Resolved
and removed
Status
Archived
labels 2023-07-31 18:38:19 +02: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
3 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#110601
No description provided.