Page MenuHome

Crash on making material local
Closed, ResolvedPublicBUG

Description

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


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

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

  • [1] 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 [2] in the src file you delete those two OSL shader nodes from ani_matGlass_v09:

Event Timeline

Dalai Felinto (dfelinto) changed the task status from Needs Triage to Needs Information from User.Tue, Aug 25, 3:50 PM

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.

ok, sorry, see attachment.

Just open "mainFile.blend" and click chain icon (make local) for material ani_matGlass_v09

For me this gives instant crash

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?

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 (dfelinto) renamed this task from [2.90] Crash on making material local to Crash on making material local.Tue, Aug 25, 4:58 PM
Dalai Felinto (dfelinto) changed the task status from Needs Information from User to Needs Triage.
Dalai Felinto (dfelinto) updated the task description. (Show Details)

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

@Bastien Montagne (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
Philipp Oeser (lichtwerk) changed the task status from Needs Triage to Confirmed.Thu, Aug 27, 1:54 PM
Philipp Oeser (lichtwerk) changed the subtype of this task from "Report" to "Bug".

Here are some simplified files:


Issue goes away if

  • [1] 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 [2] in the src file you delete those two OSL shader nodes:

Bastien Montagne (mont29) triaged this task as High priority.
Bastien Montagne (mont29) edited projects, added BF Blender (2.90); removed BF Blender.