Crash when add new GP object after changes in Tool system #57651

Closed
opened 2018-11-06 13:16:36 +01:00 by Antonio Vazquez · 13 comments

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()

Crash:

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
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() Crash: ``` 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 ```
Author
Member

Added subscriber: @antoniov

Added subscriber: @antoniov
Campbell Barton was assigned by Antonio Vazquez 2018-11-06 13:17:15 +01:00
Author
Member

Added subscriber: @ideasman42

Added subscriber: @ideasman42
Author
Member

@ideasman42 I think this is for you.

@ideasman42 I think this is for you.
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Seems I am unable to reproduce...
@antoniov : anything I could be missing?

Seems I am unable to reproduce... @antoniov : anything I could be missing?
Author
Member

@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
@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
Author
Member

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.

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.

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

@antoniov I can't redo this with `--factory-startup` (0bd61227c2), is it fixed in a recent build?
Author
Member

@ideasman42 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.

@ideasman42 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.
Member

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

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

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.

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.
Author
Member

Changed status from 'Open' to: 'Archived'

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

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

Sorry to spend your time on this.

It looks something related to development environment. Clear all, rebuild all and now works. Sorry to spend your time on this.
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#57651
No description provided.