Crash on making material local #80104

Closed
opened 2020-08-25 13:42:46 +02:00 by Ilja Razinkov · 17 comments

Blender Version
Broken: 2.83, 2.90.0, Commit date: 2020-08-24 16:27, Hash 1bced5884c
Worked: 279

src.blend
main.blend

  • Open main.blend
  • On the selected Cube, make its material local
  • Crash

image.png

source/blender/blenkernel/intern/lib_id.c:117:69: runtime error: member access within null pointer of type 'struct Library'

Full backtrace: P1602

Issue goes away if

    • you delete Plane in the main file [linked -- also uses ani_matGlass_v09], save and reopen, ani_matGlass_v09 is then single-user on Cube, make local then works.
  • or - in the src file you delete those two OSL shader nodes from ani_matGlass_v09:
    image.png
**Blender Version** Broken: 2.83, 2.90.0, Commit date: 2020-08-24 16:27, Hash 1bced5884c3d Worked: 279 [src.blend](https://archive.blender.org/developer/F8814808/src.blend) [main.blend](https://archive.blender.org/developer/F8814806/main.blend) - Open main.blend - On the selected Cube, make its material local - Crash ![image.png](https://archive.blender.org/developer/F8814834/image.png) ``` source/blender/blenkernel/intern/lib_id.c:117:69: runtime error: member access within null pointer of type 'struct Library' ``` Full backtrace: [P1602](https://archive.blender.org/developer/P1602.txt) Issue goes away if - - [x] you delete `Plane` in the `main` file [linked -- also uses `ani_matGlass_v09`], save and reopen, `ani_matGlass_v09` is then single-user on `Cube`, make local then works. - or - [x] in the `src` file you delete those two OSL shader nodes from `ani_matGlass_v09`: ![image.png](https://archive.blender.org/developer/F8814825/image.png)
Author

Added subscriber: @IPv6

Added subscriber: @IPv6

Added subscriber: @dfelinto

Added subscriber: @dfelinto

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

This report does not contain all the requested information, which is required for us to investigate the issue. Please let us know how to reproduce from scratch or attach a simplified file where the issue happens.

This report does not contain all the requested information, which is required for us to investigate the issue. Please let us know how to reproduce from scratch or attach a simplified file where the issue happens.
Author

In #80104#1002473, @dfelinto wrote:
This report does not contain all the requested information, which is required for us to investigate the issue. Please let us know how to reproduce from scratch or attach a simplified file where the issue happens.

ok, sorry, see attachment.
MakeLocalCrashExample.zip

Just open "mainFile.blend" and click chain icon (make local) for material ani_matGlass_v09
Screenshot 2020-08-25 at 17.05.07.png

For me this gives instant crash
mainFile.crash.txt

> In #80104#1002473, @dfelinto wrote: > This report does not contain all the requested information, which is required for us to investigate the issue. Please let us know how to reproduce from scratch or attach a simplified file where the issue happens. ok, sorry, see attachment. [MakeLocalCrashExample.zip](https://archive.blender.org/developer/F8810506/MakeLocalCrashExample.zip) Just open "mainFile.blend" and click chain icon (make local) for material ani_matGlass_v09 ![Screenshot 2020-08-25 at 17.05.07.png](https://archive.blender.org/developer/F8810503/Screenshot_2020-08-25_at_17.05.07.png) For me this gives instant crash [mainFile.crash.txt](https://archive.blender.org/developer/F8810505/mainFile.crash.txt)

I get a crash when I run this in 2.83 as well, yet in the report you said it worked in 2.83. Do you have a sample file that works in 2.83 but not in 2.90?

I get a crash when I run this in 2.83 as well, yet in the report you said it worked in 2.83. Do you have a sample file that works in 2.83 but not in 2.90?
Author

No, i just recoll that is was ok before at least with this material. But library constantly changes, so seems im wrong regarding 2.83 Its not widely used feature (by me), so i really cant recall when it started to happen //
It was perfectly fine in 2.79 though, i switched moth ago or so

No, i just recoll that is was ok before at least with this material. But library constantly changes, so seems i`m wrong regarding 2.83 Its not widely used feature (by me), so i really can`t recall when it started to happen // It was perfectly fine in 2.79 though, i switched moth ago or so
Dalai Felinto changed title from [2.90] Crash on making material local to Crash on making material local 2020-08-25 16:58:50 +02:00

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'

Crash: //source/blender/blenkernel/intern/lib_id.c:117:69: runtime error: member access within null pointer of type 'struct Library'
Full backtrace: P1602

Crash: `//source/blender/blenkernel/intern/lib_id.c:117:69: runtime error: member access within null pointer of type 'struct Library'` Full backtrace: [P1602](https://archive.blender.org/developer/P1602.txt)

Added subscriber: @mont29

Added subscriber: @mont29

@mont29 this is a very interesting issue. If I start deleting things from the file the issue goes away. That said it is not really a "simple file". I will leave to you to make a call on whether this is an ok "minimal file" or not. You can still delete all but MAani_matGlass_v09 material from the library.blend and still get the crash, roughly:

for m in D.materials:
  if m.name != 'ani_matGlass_v09':
    m.user_clear()
# save, re-open, save
@mont29 this is a very interesting issue. If I start deleting things from the file the issue goes away. That said it is not really a "simple file". I will leave to you to make a call on whether this is an ok "minimal file" or not. You can still delete all but MAani_matGlass_v09 material from the library.blend and still get the crash, roughly: ``` for m in D.materials: if m.name != 'ani_matGlass_v09': m.user_clear() # save, re-open, save ```
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

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

Here are some simplified files:
src.blend
main.blend

Issue goes away if

    • you delete Plane in the main file [linked -- also uses ani_matGlass_v09], save and reopen, ani_matGlass_v09 is then single-user on Cube, make local then works.
  • or - in the src file you delete those two OSL shader nodes:
    image.png
Here are some simplified files: [src.blend](https://archive.blender.org/developer/F8814808/src.blend) [main.blend](https://archive.blender.org/developer/F8814806/main.blend) Issue goes away if - - [x] you delete `Plane` in the `main` file [linked -- also uses `ani_matGlass_v09`], save and reopen, `ani_matGlass_v09` is then single-user on `Cube`, make local then works. - or - [x] in the `src` file you delete those two OSL shader nodes: ![image.png](https://archive.blender.org/developer/F8814825/image.png)

This issue was referenced by cbb5201f09

This issue was referenced by cbb5201f09bd88a5c7e58fe74ee4178fb2aec27f

This issue was referenced by ddbf41d88d

This issue was referenced by ddbf41d88d43a544c65c18f756fca7ab28ce5620
Bastien Montagne self-assigned this 2020-08-27 16:00:01 +02:00

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Thomas Dinges added this to the 2.90 milestone 2023-02-08 16:25:40 +01: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
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#80104
No description provided.