Grease pencil Time offset modifier crash #91454

Closed
opened 2021-09-16 13:57:18 +02:00 by Thawatchai Chunhachai · 21 comments

System Information
Operating system: Windows
Graphics card: RTX2060 (notebook)

Blender Version
Broken: 2.93.2
Worked: (newest version of Blender that worked as expected)

Short description of error
Grease pencil Time offset modifier crash when create a loop and go to frame 0
It's working fine if I'm in Frame 1- 200 and so on.

Exact steps for others to reproduce the error
create grease pencil object
Draw animation 10 frames
add time offset modifer > make it loop > custom frame range end at frame 12
go to frame 0
Blender will be very slow or crash.Ch010_Pg010_Pn010_Anim_bird_v09_scale.blend

**System Information** Operating system: Windows Graphics card: RTX2060 (notebook) **Blender Version** Broken: 2.93.2 Worked: (newest version of Blender that worked as expected) **Short description of error** Grease pencil Time offset modifier crash when create a loop and go to frame 0 It's working fine if I'm in Frame 1- 200 and so on. **Exact steps for others to reproduce the error** create grease pencil object Draw animation 10 frames add time offset modifer > make it loop > custom frame range end at frame 12 go to frame 0 Blender will be very slow or crash.[Ch010_Pg010_Pn010_Anim_bird_v09_scale.blend](https://archive.blender.org/developer/F10427578/Ch010_Pg010_Pn010_Anim_bird_v09_scale.blend)

Added subscriber: @Boat-Thawatchai-Chunhachai

Added subscriber: @Boat-Thawatchai-Chunhachai

Added subscriber: @antoniov

Added subscriber: @antoniov

Have you tested last build of 3.0? IIRC this bug was fixed in 3.0.

Have you tested last build of 3.0? IIRC this bug was fixed in 3.0.

Oh, Thanks it' works perfectly on the latest version.
Next time I'll try out the latest one first.
Thanks a lot Antonio :)

Oh, Thanks it' works perfectly on the latest version. Next time I'll try out the latest one first. Thanks a lot Antonio :)

after I try it again with the latest version of Blender 3.0 and if you scroll to time line back and forth before frame 1 (frame 0, frame -3,frame -5 ) Blender will sstart to slow down again.

after I try it again with the latest version of Blender 3.0 and if you scroll to time line back and forth before frame 1 (frame 0, frame -3,frame -5 ) Blender will sstart to slow down again.
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

The crash was fixed by af7233368d, but I can confirm blender is kind of hanging in negative keyframes in this file (this was also the case prior to f3bf87e588 though)
@antoniov: mind checking?

The crash was fixed by af7233368d, but I can confirm blender is kind of hanging in negative keyframes in this file (this was also the case prior to f3bf87e588 though) @antoniov: mind checking?
Member

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

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

@lichtwerk I have removed all modifers except TimeOffset and the loop is "sometimes"... when I stop the running, the program is always in this section.

image.png

It looks some task locking not related to GPencil itself.

@lichtwerk I have removed all modifers except TimeOffset and the loop is "sometimes"... when I stop the running, the program is always in this section. ![image.png](https://archive.blender.org/developer/F10442157/image.png) It looks some task locking not related to GPencil itself.

I can get the endless loop without any modifier.

I can get the endless loop without any modifier.
Member

In #91454#1221335, @antoniov wrote:
I can get the endless loop without any modifier.

Is this only in negative frames? mind sharing a file (without modifiers)?

> In #91454#1221335, @antoniov wrote: > I can get the endless loop without any modifier. Is this only in negative frames? mind sharing a file (without modifiers)?

Yes, only negatives using master compiled just now.

The file:

Chicken_NoTime.blend

The video with the problem.

2021-09-17 12-11-00.mp4

Yes, only negatives using `master` compiled just now. The file: [Chicken_NoTime.blend](https://archive.blender.org/developer/F10442669/Chicken_NoTime.blend) The video with the problem. [2021-09-17 12-11-00.mp4](https://archive.blender.org/developer/F10442673/2021-09-17_12-11-00.mp4)

@lichtwerk I have tested deleting both GP objects and when move to negative frames crash too.

Edit. False alarm.... it was slow, but no endless loop.

@lichtwerk I have tested deleting both GP objects and when move to negative frames crash too. Edit. False alarm.... it was slow, but no endless loop.

I hadn't seen the file has 2 GP objects and the othe rhas timeoffset too..if you remove the timeoffset of both the loop never happens...I'm going to do more tests

I hadn't seen the file has 2 GP objects and the othe rhas timeoffset too..if you remove the timeoffset of both the loop never happens...I'm going to do more tests

I have added some printf to this function:

{

deg::Depsgraph *deg_graph = reinterpret_cast<deg::Depsgraph *>(graph);
const Scene *scene = DEG_get_input_scene(graph);


deg_graph->tag_time_source();
deg_graph->frame = frame;
printf("a1->");
deg_graph->ctime = BKE_scene_frame_to_ctime(scene, frame);
printf("a2->");
deg_flush_updates_and_refresh(deg_graph);
printf("done\n");

}```

I have seen the result when the system loop is:

```a1->a2->done
a1->a2->done
a1->a2->done
a1->a2->done
a1->a2->done
a1->a2->done
a1->a2->done
a1->a2->```

It's clear the problem is in `deg_flush_updates_and_refresh(deg_graph);` that never ends. The error is in `deg::deg_evaluate_on_refresh(deg_graph);` step of the function.
I have added some printf to this function: ```void DEG_evaluate_on_framechange(Depsgraph *graph, float frame) { ``` deg::Depsgraph *deg_graph = reinterpret_cast<deg::Depsgraph *>(graph); const Scene *scene = DEG_get_input_scene(graph); ``` ``` deg_graph->tag_time_source(); deg_graph->frame = frame; printf("a1->"); deg_graph->ctime = BKE_scene_frame_to_ctime(scene, frame); printf("a2->"); deg_flush_updates_and_refresh(deg_graph); printf("done\n"); ``` }``` I have seen the result when the system loop is: ```a1->a2->done a1->a2->done a1->a2->done a1->a2->done a1->a2->done a1->a2->done a1->a2->done a1->a2->``` It's clear the problem is in `deg_flush_updates_and_refresh(deg_graph);` that never ends. The error is in `deg::deg_evaluate_on_refresh(deg_graph);` step of the function.

Added subscriber: @frogstomp-4

Added subscriber: @frogstomp-4

@frogstomp-4 could you try if you can replicate this bug?

@frogstomp-4 could you try if you can replicate this bug?

Could not reproduce in latest versions. The timeline is restricted so could not even scrub in negative frames.
Was this tested also agains latext 3.3 and above?

Could not reproduce in latest versions. The timeline is restricted so could not even scrub in negative frames. Was this tested also agains latext 3.3 and above?

Hi, I saw this in my email. I tried this scene with the negative frames in Blender 3.3 and it doesn't slow down or crash anymore :)

Hi, I saw this in my email. I tried this scene with the negative frames in Blender 3.3 and it doesn't slow down or crash anymore :)

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Antonio Vazquez self-assigned this 2022-09-29 09:46:15 +02:00

I'm going to close this task. If you find again any problem, please open a new report.

I'm going to close this task. If you find again any problem, please open a new report.
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
4 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#91454
No description provided.