Segment fault when change parameter of one operator after undo #56498

Closed
opened 2018-08-22 14:10:51 +02:00 by Antonio Vazquez · 8 comments

Windows 10 - Last source code compiled with MSVSC2017

This error looks related to a previous bug that was solved with OPTYPE_USE_EVAL_DATA flag. I have added the flag to the operator GPENCIL_OT_paste, but I think in this case is not the solution.

  1. Open attached file and select GP object.
  2. Be sure "Lines" grease pencil layer is selected.
  3. Enter in edit mode and select some points (the file already has some selected).
  4. Press Ctrl+C.
  5. Select "Colors" grease pencil layer.
  6. Press Ctrl+V
  7. Go to F6 panel and select "merge" option.
  8. Crash.

The crash is in deg_tag_copy_on_write_id() function because id_cow field is NULL.

@mont29 I think you solved the previous bugs, could you take a look on this? Let me know if I can help you.PASTE.blend

Windows 10 - Last source code compiled with MSVSC2017 This error looks related to a previous bug that was solved with OPTYPE_USE_EVAL_DATA flag. I have added the flag to the operator GPENCIL_OT_paste, but I think in this case is not the solution. 1) Open attached file and select GP object. 2) Be sure "Lines" grease pencil layer is selected. 3) Enter in edit mode and select some points (the file already has some selected). 4) Press Ctrl+C. 5) Select "Colors" grease pencil layer. 6) Press Ctrl+V 7) Go to F6 panel and select "merge" option. 8) Crash. The crash is in deg_tag_copy_on_write_id() function because id_cow field is NULL. @mont29 I think you solved the previous bugs, could you take a look on this? Let me know if I can help you.[PASTE.blend](https://archive.blender.org/developer/F4337913/PASTE.blend)
Author
Member

Added subscribers: @mont29, @antoniov

Added subscribers: @mont29, @antoniov
Bastien Montagne self-assigned this 2018-08-22 15:28:50 +02:00

Crash has nothing to do with depsgraph, you are storing ID pointers (material ones) in a ghash accross redo step, with invalidate any pointer in Blender… will check, think you have to rather store ref to ID by its lib/name pair. Also, ghash here is int key, not string ones…

Crash has nothing to do with depsgraph, you are storing ID pointers (material ones) in a ghash accross redo step, with invalidate any pointer in Blender… will check, think you have to rather store ref to ID by its lib/name pair. Also, ghash here is int key, not string ones…
Author
Member

OK, I'm going to take a look how is done (this is not my code). I thought it was related to depshgraph issue.

Thanks!

OK, I'm going to take a look how is done (this is not my code). I thought it was related to depshgraph issue. Thanks!
Author
Member

Added subscriber: @JoshuaLeung

Added subscriber: @JoshuaLeung
Author
Member

@JoshuaLeung Could you take a look? It's no totally clear what you do here and why you use in sculpt the hash.

@JoshuaLeung Could you take a look? It's no totally clear what you do here and why you use in sculpt the hash.

This issue was referenced by 01973290a9

This issue was referenced by 01973290a9fd6c7e48ab4d19043eb3a26939cb4e

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Author
Member

Thanks @mont29, I will take note of this to don't make this mistake in the future.

Thanks @mont29, I will take note of this to don't make this mistake in the future.
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#56498
No description provided.