Segmentation fault when converted to mesh via API #96796

Closed
opened 2022-03-26 11:03:18 +01:00 by Julien Duroure · 10 comments
Member

System Information
Operating system: Ubuntu 21.10
Graphics card: RTX 3060

Blender Version
Broken: build of 2022-03-26 https://builder.blender.org/download/daily/blender-3.2.0-alpha+master.1909fd2781c4-linux.x86_64-release.tar.xz
Worked: build of 2022-03-25 https://builder.blender.org/download/daily/blender-3.2.0-alpha+master.315210c22bae-linux.x86_64-release.tar.xz
Worked: 3.1

Short description of error

Segmentation fault running the following code, on default cube

import bpy
blender_object  = bpy.context.object
depsgraph = bpy.context.evaluated_depsgraph_get()
blender_mesh_owner = blender_object.evaluated_get(depsgraph)
blender_mesh = blender_mesh_owner.to_mesh(preserve_all_data_layers=True, depsgraph=depsgraph)

Exact steps for others to reproduce the error

  • Open Blender
  • Select the default cube
  • run script
**System Information** Operating system: Ubuntu 21.10 Graphics card: RTX 3060 **Blender Version** Broken: build of 2022-03-26 https://builder.blender.org/download/daily/blender-3.2.0-alpha+master.1909fd2781c4-linux.x86_64-release.tar.xz Worked: build of 2022-03-25 https://builder.blender.org/download/daily/blender-3.2.0-alpha+master.315210c22bae-linux.x86_64-release.tar.xz Worked: 3.1 **Short description of error** Segmentation fault running the following code, on default cube ``` import bpy blender_object = bpy.context.object depsgraph = bpy.context.evaluated_depsgraph_get() blender_mesh_owner = blender_object.evaluated_get(depsgraph) blender_mesh = blender_mesh_owner.to_mesh(preserve_all_data_layers=True, depsgraph=depsgraph) ``` **Exact steps for others to reproduce the error** - Open Blender - Select the default cube - run script
Author
Member

Added subscriber: @JulienDuroure

Added subscriber: @JulienDuroure

#96865 was marked as duplicate of this issue

#96865 was marked as duplicate of this issue

Added subscriber: @Morgan-Bengtsson

Added subscriber: @Morgan-Bengtsson

It seems it is caused by this commit: 0c33e84020deca84c987dffa1302651f59c27158

It seems it is caused by this commit: [0c33e84020deca84c987dffa1302651f59c27158 ](https://git.blender.org/gitweb/gitweb.cgi/blender.git/commit/0c33e84020deca84c987dffa1302651f59c27158)
Author
Member

Added subscriber: @Sergey

Added subscriber: @Sergey
Author
Member

Hello @Sergey
Seems a regression (with segfault) is made by your commit 0c33e84020. Can you please have a look?
Thanks

Hello @Sergey Seems a regression (with segfault) is made by your commit 0c33e84020deca84c987dffa1302651f59c27158. Can you please have a look? Thanks
Member

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

Changed status from 'Needs Triage' to: 'Confirmed'
Sergey Sharybin self-assigned this 2022-03-28 11:50:20 +02:00

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'

Turns out the issue has been fixed by Bastien in 587efa99494! Thanks Bastien! :)

Turns out the issue has been fixed by Bastien in 587efa99494! Thanks Bastien! :)
Author
Member

Added subscribers: @Be_rt, @RadCatStudios101

Added subscribers: @Be_rt, @RadCatStudios101
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
5 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#96796
No description provided.