Page MenuHome

Crash when add new GP object after changes in Tool system
Closed, ArchivedPublic


Windows 10 - Last source compiled

  1. Open default scene
  2. Add a Grease pencil monkey
  3. Crash

The problem is in ED_gpencil_add_defaults() when calls to BKE_paint_ensure()


21: BLI_system_backtrace - 0xC323BCF0
20: BKE_paint_runtime_init - 0xC2A93430
19: BKE_paint_ensure - 0xC2A92C70
18: ED_gpencil_add_defaults - 0xC1F3D150
17: object_gpencil_add_exec - 0xC1ED3CE0
16: wm_operator_invoke - 0xC1962610



Event Timeline

Seems I am unable to reproduce...
@Antonio Vazquez (antoniov) : anything I could be missing?

@Philipp Oeser (lichtwerk) Try this:

  1. blender --factory-startup
  2. Select Default template (if you select 2D template works)
  3. Add a GP Object
  4. Assert crash

It looks the Toolsettings GPaint struct is not initializated (the same for uvsculpt). I think the fix is alloc the memory for these (gppaint and uvsculpt) but I don't know where.

@Antonio Vazquez (antoniov) I can't redo this with --factory-startup (rB0bd61227c246a488bd06b76fba213c44448379c7), is it fixed in a recent build?

@Campbell Barton (campbellbarton) If start with --factory-startup and click over splash to get default secene works, but if you open the Default template then crash.

It looks the Default template is wrong in some way.

also still cant reproduce (@Antonio Vazquez (antoniov): by Default template you mean General? -- just making sure there is no other custom template involved...)

Other templates work, so maybe it's something of my installation.

I'm going to try more templates and if you cannot reproduce and only it's me system, I will close the task.

It looks something related to development environment. Clear all, rebuild all and now works.

Sorry to spend your time on this.