Maniphest T71867

Grease Pencil Collection Instance Memory Leak
Closed, DuplicateBUG

Assigned To
None
Authored By
Michael Hermann (245)
Nov 24 2019, 7:45 PM
Tags
  • BF Blender
  • Grease Pencil
Subscribers
Antonio Vazquez (antoniov)
Julian Eisel (Severin)
Michael Hermann (245)
Sergey Sharybin (sergey)
Tokens
"Love" token, awarded by 245.

Description

System Information
Operating system: Linux-5.3.12-arch1-1-x86_64-with-arch 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 440.36

Blender Version
Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-11-20 14:27, hash: rB26bd5ebd42e3
Worked: (optional)

Short description of error
During Playback of a scene containing a Grease Pencil instance from another scene or blend-file, the memory consumption will increase steadily.
I could only reproduce this with GP Objects.

Exact steps for others to reproduce the error
Open the attached blend-file and press PLAY. Watch system memory consumption.

Event Timeline

Michael Hermann (245) created this task.Nov 24 2019, 7:45 PM
Antonio Vazquez (antoniov) lowered the priority of this task from 90 to 50.Nov 25 2019, 10:06 AM
Antonio Vazquez (antoniov) added a project: Grease Pencil.
Antonio Vazquez (antoniov) added subscribers: Sergey Sharybin (sergey), Antonio Vazquez (antoniov).

@Sergey Sharybin (sergey) I have tested and the problem is the function DRW_gpencil_freecache(ob); is not called in this situation from BKE_object_free_derived_caches function. I don't know why and no idea where add this call to be sure the instances memory cache is cleared. Could you take a look?

Dalai Felinto (dfelinto) added a project: Tracker Curfew.Dec 23 2019, 1:42 PM
Sybren A. Stüvel (sybren) changed the subtype of this task from "Report" to "Bug".Jan 20 2020, 4:29 PM
Sybren A. Stüvel (sybren) removed a project: Tracker Curfew.
Antonio Vazquez (antoniov) added a comment.Jan 20 2020, 6:45 PM

Not sure if this bug exists in the refactored engine. I will test it.

Antonio Vazquez (antoniov) closed this task as a duplicate of T66293: GPencil: Redesign Blend modes and cleanup Drawing Engine.Jan 20 2020, 6:49 PM
Julian Eisel (Severin) added a subscriber: Julian Eisel (Severin).Feb 20 2020, 10:55 AM

So is this actually solved in the refactor? This was a big issue for some artists here, so better to double check it doesn't get lost.

Antonio Vazquez (antoniov) added a comment.Feb 20 2020, 4:32 PM

I have tested the test file above in the refactored version and I'm unable to detect any memory leak. Also now, the engine does not need to call to BKE_object_free_derived_caches()function as before, so I think we can consider it as solved in refactored code.

Michael Hermann (245) awarded a token.Feb 21 2020, 9:22 PM