Crash on Material Linking in Grease Pencil Objects #62630

Closed
opened 2019-03-15 23:46:48 +01:00 by Telmo Silva · 15 comments

System Information
Operating system: Linux-4.20.14-200.fc29.x86_64-x86_64-with-fedora-29-Twenty_Nine 64 Bits
Graphics card: GeForce 940MX/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 418.43

Blender Version
Broken: version: 2.80 (sub 49), branch: master, commit date: 2019-03-15 18:31, hash: fb4bb61155

Short description of error
Blender crashes when changing Material Linking from Object to Data using Grease Pencil Objects in the "2D Animation Template" file

Exact steps for others to reproduce the error

  1. Start Blender
  2. Start new "2D Animation" File
  3. Go to Materials Tab
  4. Set "Link Material to Object or the Object's Data" from Data to Object, then back to Data.

The terminal outputs the following:

find_node_operation: Failed for (MATERIAL_UPDATE, '')
add_relation(Material -> GP Data) - Could not find op_from (OperationKey(type: SHADING, component name: '', operation code: MATERIAL_UPDATE))
add_relation(Material -> GP Data) - Failed, but op_to (ComponentKey(GDStroke, GEOMETRY)) was ok
Writing: /tmp/blender.crash.txt
Segmentation fault (core dumped)

Besides always happening in a 2D Animation Template File, it only happens sometimes in a General File

**System Information** Operating system: Linux-4.20.14-200.fc29.x86_64-x86_64-with-fedora-29-Twenty_Nine 64 Bits Graphics card: GeForce 940MX/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 418.43 **Blender Version** Broken: version: 2.80 (sub 49), branch: master, commit date: 2019-03-15 18:31, hash: `fb4bb61155` **Short description of error** Blender crashes when changing Material Linking from Object to Data using Grease Pencil Objects in the "2D Animation Template" file **Exact steps for others to reproduce the error** 1. Start Blender 2. Start new "2D Animation" File 3. Go to Materials Tab 4. Set "Link Material to Object or the Object's Data" from Data to Object, then back to Data. The terminal outputs the following: ``` find_node_operation: Failed for (MATERIAL_UPDATE, '') add_relation(Material -> GP Data) - Could not find op_from (OperationKey(type: SHADING, component name: '', operation code: MATERIAL_UPDATE)) add_relation(Material -> GP Data) - Failed, but op_to (ComponentKey(GDStroke, GEOMETRY)) was ok Writing: /tmp/blender.crash.txt Segmentation fault (core dumped) ``` Besides always happening in a 2D Animation Template File, it only happens sometimes in a General File
Author

Added subscriber: @nottelmo-4

Added subscriber: @nottelmo-4

Added subscriber: @ZedDB

Added subscriber: @ZedDB

I can not reproduce this on my end. Does this still happen with the latest blender beta?

I can not reproduce this on my end. Does this still happen with the latest blender beta?
Author

Are you using a "2D Animation" Template file?

Yes, it still crashes, even with factory settings.

Are you using a "2D Animation" Template file? Yes, it still crashes, even with factory settings.
Author

Running Blender from the terminal shows me this:

Traceback (most recent call last):
  File "/home/nottelmo/.software/blender_latest/2.80/scripts/modules/addon_utils.py", line 370, in enable
    raise Exception(f"Add-on '{module_name:s}' has not been upgraded to 2.8, ignoring")
Exception: Add-on 'io_scene_3ds' has not been upgraded to 2.8, ignoring
Traceback (most recent call last):
  File "/home/nottelmo/.software/blender_latest/2.80/scripts/modules/addon_utils.py", line 370, in enable
    raise Exception(f"Add-on '{module_name:s}' has not been upgraded to 2.8, ignoring")
Exception: Add-on 'io_scene_3ds' has not been upgraded to 2.8, ignoring
find_node_operation: Failed for (MATERIAL_UPDATE, '')
add_relation(Material -> GP Data) - Could not find op_from (OperationKey(type: SHADING, component name: '', operation code: MATERIAL_UPDATE))
add_relation(Material -> GP Data) - Failed, but op_to (ComponentKey(GDStroke, GEOMETRY)) was ok
Writing: /tmp/blender.crash.txt
Segmentation fault (core dumped)

Running Blender from the terminal shows me this: ``` Traceback (most recent call last): File "/home/nottelmo/.software/blender_latest/2.80/scripts/modules/addon_utils.py", line 370, in enable raise Exception(f"Add-on '{module_name:s}' has not been upgraded to 2.8, ignoring") Exception: Add-on 'io_scene_3ds' has not been upgraded to 2.8, ignoring Traceback (most recent call last): File "/home/nottelmo/.software/blender_latest/2.80/scripts/modules/addon_utils.py", line 370, in enable raise Exception(f"Add-on '{module_name:s}' has not been upgraded to 2.8, ignoring") Exception: Add-on 'io_scene_3ds' has not been upgraded to 2.8, ignoring find_node_operation: Failed for (MATERIAL_UPDATE, '') add_relation(Material -> GP Data) - Could not find op_from (OperationKey(type: SHADING, component name: '', operation code: MATERIAL_UPDATE)) add_relation(Material -> GP Data) - Failed, but op_to (ComponentKey(GDStroke, GEOMETRY)) was ok Writing: /tmp/blender.crash.txt Segmentation fault (core dumped) ```

Just to be clear, it still crashes for you with the build from March 19?

Just to be clear, it still crashes for you with the build from March 19?
Author

Yes, it does. Even March 26.

Yes, it does. Even March 26.

Added subscriber: @zeauro

Added subscriber: @zeauro

I can reproduce the crash. Ubuntu 16.04 64bits Titan Black 382b2a9

GP_mat_link.crash.txt

There is no crash if a material is assigned to slot as linked to Object before going back to Data link.
This back and forth only crashes when for a slot, a material is linked to Data and none is linked to Object.

If material linked to Data is deleted before changing slot link to Object, there is no crash.
To sum-up :
Material linked to Data, no Material Linked to Object -> crash
No Material linked to Data, no Material Linked to Object -> no crash
Material linked to Data, Material Linked to Object -> no crash
No Material linked to Data, Material Linked to Object -> no crash

I can reproduce the crash. Ubuntu 16.04 64bits Titan Black 382b2a9 [GP_mat_link.crash.txt](https://archive.blender.org/developer/F6909158/GP_mat_link.crash.txt) There is no crash if a material is assigned to slot as linked to Object before going back to Data link. This back and forth only crashes when for a slot, a material is linked to Data and none is linked to Object. If material linked to Data is deleted before changing slot link to Object, there is no crash. To sum-up : Material linked to Data, no Material Linked to Object -> crash No Material linked to Data, no Material Linked to Object -> no crash Material linked to Data, Material Linked to Object -> no crash No Material linked to Data, Material Linked to Object -> no crash

@zeauro could you provide some easy steps to reproduce? I still can't on my end it seems.

@zeauro could you provide some easy steps to reproduce? I still can't on my end it seems.

Added subscriber: @mont29

Added subscriber: @mont29

Is this still crashing currently?

Also… Please follow our submission template and guidelines, also read these tips about bug reports, and make a complete, valid bug report, with required info, precise description of the issue (only ONE issue per report!), precise steps to reproduce it, small and simple .blend and/or other files to do so if needed, etc.

Is this still crashing currently? Also… Please follow our [submission template and guidelines](https:*developer.blender.org/maniphest/task/edit/form/1/), also read [these tips about bug reports](https:*wiki.blender.org/wiki/Process/Bug_Reports), and make a complete, valid bug report, with required info, precise description of the issue (only ONE issue per report!), precise steps to reproduce it, **small and simple** .blend and/or other files to do so if needed, etc.
Author

No. It is not crashing anymore :) Thanks

No. It is not crashing anymore :) Thanks

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Bastien Montagne self-assigned this 2019-05-20 11:12:45 +02:00

Thanks, closing then. :)

Thanks, closing then. :)
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#62630
No description provided.