Animated curves flickers when Motion Blur and Persistent Data are enabled #99281

Open
opened 2022-06-29 21:55:49 +02:00 by Thomas · 22 comments

If there is an animated curve and Motion Blur + Persistent Data are enabled, the curves will randomly appear and disappear. Here is a simplified file that reproduces the issue on master. Render the animation an notice how the curves flicker.

curvesAnimatedCyclesIssue.blend

Original Report

System Information
Operating system: Windows-10-10.0.19043-SP0 64 Bits
Display Graphics card: Radeon RX 580 Series 4.5.14800 Core Profile Context 22.3.1 30.0.15002.1004
CUDA enabled Graphics card: NVIDIA GeForce GTX 1650 Driver version. DCH 472.12
CPU: Ryzen 7 2700 (16 threads, 8 cores)

Blender Version
Broken: version: 3.2.0, branch: master, commit date: 2022-06-08 10:22, hash: e05e1e3691
Worked: (newest version of Blender that worked as expected)

Description of error
Objects disappear from what seems to be random frames close to the beginning of keyframed object transformations in renders produced with Cycles (only).
This appears to be the same bug as archived #40313 .

glitch closeup.gif

Bug is more prevalent in blender version: 3.1.2 however is still present.
Render Examples:
3.1:
3.1 build.mkv
3.2:
3.2 build.mkv

This Project was using AnimAll addon to animate some of the objects featuring the glitch, these appare to be the only ones still glitching in 3.2. However testing this Addon in a controlled environment does not feature this behaviour, which might suggest its cause is elsewhere, but might be aggravated by animating individual vertices.

Exact steps for others to reproduce the error

  • Open Attached Blend file
  • Render Animation in Cycles using files settings.

This render was made using GPU Compute with CUDA and CPU enabled in system preferences.
Edit: works on CPU only also. Updated .Blend file with packed textures.

File removed now simplified is available

If there is an animated curve and Motion Blur + Persistent Data are enabled, the curves will randomly appear and disappear. Here is a simplified file that reproduces the issue on master. Render the animation an notice how the curves flicker. [curvesAnimatedCyclesIssue.blend](https://archive.blender.org/developer/F13262313/curvesAnimatedCyclesIssue.blend) ### Original Report **System Information** Operating system: Windows-10-10.0.19043-SP0 64 Bits Display Graphics card: Radeon RX 580 Series 4.5.14800 Core Profile Context 22.3.1 30.0.15002.1004 CUDA enabled Graphics card: NVIDIA GeForce GTX 1650 Driver version. DCH 472.12 CPU: Ryzen 7 2700 (16 threads, 8 cores) **Blender Version** Broken: version: 3.2.0, branch: master, commit date: 2022-06-08 10:22, hash: `e05e1e3691` Worked: (newest version of Blender that worked as expected) **Description of error** Objects disappear from what seems to be random frames close to the beginning of keyframed object transformations in renders produced with Cycles (only). This appears to be the same bug as archived [#40313 ](https://developer.blender.org/T40313). ![glitch closeup.gif](https://archive.blender.org/developer/F13258244/glitch_closeup.gif) Bug is more prevalent in blender version: 3.1.2 however is still present. Render Examples: 3.1: [3.1 build.mkv](https://archive.blender.org/developer/F13239274/3.1_build.mkv) 3.2: [3.2 build.mkv](https://archive.blender.org/developer/F13239281/3.2_build.mkv) This Project was using AnimAll addon to animate some of the objects featuring the glitch, these appare to be the only ones still glitching in 3.2. However testing this Addon in a controlled environment does not feature this behaviour, which might suggest its cause is elsewhere, but might be aggravated by animating individual vertices. **Exact steps for others to reproduce the error** * Open Attached Blend file * Render Animation in Cycles using files settings. This render was made using GPU Compute with CUDA and CPU enabled in system preferences. Edit: works on CPU only also. Updated .Blend file with packed textures. File removed now simplified is available

#100765 was marked as duplicate of this issue

#100765 was marked as duplicate of this issue
Author

Added subscriber: @Geo0rbit

Added subscriber: @Geo0rbit
Member

Added subscriber: @OmarEmaraDev

Added subscriber: @OmarEmaraDev
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

It is not clear which objects are disappearing in the attached video, can you clarify that?
Also, the attached file does not include the textures, are they necessary for reproduction?
Is this specific GPU+CPU rendering or can it be replicated using CPU only?

It is not clear which objects are disappearing in the attached video, can you clarify that? Also, the attached file does not include the textures, are they necessary for reproduction? Is this specific GPU+CPU rendering or can it be replicated using CPU only?
Author

I can confirm running on CPU only also produces this error.

I am unfamiliar with including textures in portable .blend files, the project relies heavily on Alpha channels, so it would ceritnaly help readability when debugging.

Objects will dissapear for a frame then re-appear, this happens continuously with the cables on the right side of the background (3.1 and 3.2), which are on a cyclic loop animation curve modifier, I believe they dissapear just before there next cycle.
Attached bellow is an example of a non cyclic element disappearing for a frame (only on 3.1).

On frame 93 and 95 of the exported file the foreground element highlighted in blue is rendered but at 94 it disappears (frame 3000 from the file).

frame 93.jpg f 93 frame 94.jpg f 94

Hide from render keyframes are in use but not at this point in the timeline and not on this object.

I can confirm running on CPU only also produces this error. I am unfamiliar with including textures in portable .blend files, the project relies heavily on Alpha channels, so it would ceritnaly help readability when debugging. Objects will dissapear for a frame then re-appear, this happens continuously with the cables on the right side of the background (3.1 and 3.2), which are on a cyclic loop animation curve modifier, I believe they dissapear just before there next cycle. Attached bellow is an example of a non cyclic element disappearing for a frame (only on 3.1). On frame 93 and 95 of the exported file the foreground element highlighted in blue is rendered but at 94 it disappears (frame 3000 from the file). ![frame 93.jpg](https://archive.blender.org/developer/F13258130/frame_93.jpg) f 93 ![frame 94.jpg](https://archive.blender.org/developer/F13258133/frame_94.jpg) f 94 Hide from render keyframes are in use but not at this point in the timeline and not on this object.
Member

I can't replicate the disappearance from frames 2999 to 3001, but that was without the FX layer, which I guess you disabled it in the file, so it is not important for replication?
Can you try rendering using factory settings to rule out any interference with add-ons? File > Defaults > Load Factory Settings.

I can't replicate the disappearance from frames 2999 to 3001, but that was without the FX layer, which I guess you disabled it in the file, so it is not important for replication? Can you try rendering using factory settings to rule out any interference with add-ons? File > Defaults > Load Factory Settings.
Author

The FX layer should be disabled from viewport but not from render due to performance when previewing in evee, therefore should not effect the result eitherway, as its being rendered in cycles as described in the steps.

To replicte it is vital to render an animation to ffmpeg NOT indervidual frames to image, the example for frames 2999 - 3001 will only appear in renders done with blender 3.1.2.
To view this artifact in 3.2.0 you need to look at the cables in the background.
This 'artifact' does not appare to be resolution dependent.

2999-3001.mkv
this version captures both the cables and the foreground element dissapareing (3.1) -ive burnt the frame numbers into the file. performing the render twice seems to yeald consistant results rather than random. I cant confirm if thats identical to longer renders though, it seems like the timing is different to me on when these objects disappear.

The FX layer should be disabled from viewport but not from render due to performance when previewing in evee, therefore should not effect the result eitherway, as its being rendered in cycles as described in the steps. To replicte it is vital to render an animation to ffmpeg NOT indervidual frames to image, the example for frames 2999 - 3001 will only appear in renders done with blender 3.1.2. To view this artifact in 3.2.0 you need to look at the cables in the background. This 'artifact' does not appare to be resolution dependent. [2999-3001.mkv](https://archive.blender.org/developer/F13261298/2999-3001.mkv) this version captures both the cables and the foreground element dissapareing (3.1) -ive burnt the frame numbers into the file. performing the render twice seems to yeald consistant results rather than random. I cant confirm if thats identical to longer renders though, it seems like the timing is different to me on when these objects disappear.
Author

In 3.2.0 this artifact is much less relibibly re-produced, I connot replicate this with a slice of frames, instead, the cables only disappear on a longer render.

At frame 2958 the 3rd cable will disappear.

2938-2965.mkv

In this slice though it does not show up.

2957-2959.mkv

Perhas a memory issue? I did these renders at approximately 64% ram usage @ 16gb.

In 3.2.0 this artifact is much less relibibly re-produced, I connot replicate this with a slice of frames, instead, the cables only disappear on a longer render. At frame 2958 the 3rd cable will disappear. [2938-2965.mkv](https://archive.blender.org/developer/F13261361/2938-2965.mkv) In this slice though it does not show up. [2957-2959.mkv](https://archive.blender.org/developer/F13261360/2957-2959.mkv) Perhas a memory issue? I did these renders at approximately 64% ram usage @ 16gb.
Author

after re-rendering the animation from 2938-2965 (3.2) it did not disappear at the same point, so I suppose it might be more random than I thought.

Much to my surprise when rendering with factory settings + CUDA the artifact still occures.

Factory settings 2938-2965.mkv

I dont want to render this just on cpu unless i really have to, especially considering ive already identified the glitch can occur with those settings.

Its probably worth noteing without having tested shape keys, to my knowledge I wouldn't have been able to animate these background elements without AnimAll. Im more concerned that elements not being effected by AnimAll might not be safe from this artifact either, and its just much less likely to occur on 3.2. i.e something has accidentally partially fixed it in the codebase.

after re-rendering the animation from 2938-2965 (3.2) it did not disappear at the same point, so I suppose it might be more random than I thought. Much to my surprise when rendering with factory settings + CUDA the artifact still occures. [Factory settings 2938-2965.mkv](https://archive.blender.org/developer/F13261386/Factory_settings_2938-2965.mkv) I dont want to render this just on cpu unless i really have to, especially considering ive already identified the glitch can occur with those settings. Its probably worth noteing without having tested shape keys, to my knowledge I wouldn't have been able to animate these background elements without AnimAll. Im more concerned that elements not being effected by AnimAll might not be safe from this artifact either, and its just much less likely to occur on 3.2. i.e something has accidentally partially fixed it in the codebase.
Member

I could replicate the 3.1 (2999-3001) issue reliably, and I suspect it is due to Persistent Data, can you confirm that disabling Render > Performance > Persistent Data resolves the issue?

I could replicate the 3.1 (2999-3001) issue reliably, and I suspect it is due to Persistent Data, can you confirm that disabling Render > Performance > Persistent Data resolves the issue?
meghanewgirl1 commented 2022-07-06 09:07:36 +02:00 (Migrated from localhost:3001)

Added subscriber: @meghanewgirl1

Added subscriber: @meghanewgirl1
meghanewgirl1 commented 2022-07-06 09:07:36 +02:00 (Migrated from localhost:3001)

Changed status from 'Needs User Info' to: 'Archived'

Changed status from 'Needs User Info' to: 'Archived'
meghanewgirl1 commented 2022-07-06 09:07:36 +02:00 (Migrated from localhost:3001)

This comment was removed by @meghanewgirl1

*This comment was removed by @meghanewgirl1*
Member

Changed status from 'Archived' to: 'Needs User Info'

Changed status from 'Archived' to: 'Needs User Info'

Added subscriber: @ThomasDinges

Added subscriber: @ThomasDinges
Member

Can also reproduce on master on the range 2938-2965 as you demonstrated. The issue also seems to be persistent data. Trying to see if the file can be simplified.

Can also reproduce on master on the range 2938-2965 as you demonstrated. The issue also seems to be persistent data. Trying to see if the file can be simplified.
Member

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'
Member

It seems Motion Blur + Persistent Data is the cause, might be similar to #96822. Here is a simplified file that reproduces the issue on master.

curvesAnimatedCyclesIssue.blend

It seems Motion Blur + Persistent Data is the cause, might be similar to #96822. Here is a simplified file that reproduces the issue on master. [curvesAnimatedCyclesIssue.blend](https://archive.blender.org/developer/F13262313/curvesAnimatedCyclesIssue.blend)
Omar Emara changed title from Objects Disappear from Frames During Object Transformation in Cycles Render to Animated curves flickers when Motion Blur and Persistent Data are enabled 2022-07-06 11:11:11 +02:00
Author

This does seem to be the same Artifact.
Thanks for simplfying the file I wasnt sure if that would make the bug go away considering it seems to be coming from multiple objects.
So basically 94205e1d02 fixed this issue in 3.2 but it doesnt fix it for animated curves?

Interestingly the bug disappears for me on the simplified file when you do the following with persistent data and motion blur on:

  • slide the keyframes of the curves into the rendered frame zone (between start and end frame).
  • Scale animation curve in until the majority of the animation is within the start and end frame zone.
  • select all objects in viewport.
  • render animation.

If thats interesting to you heres the file: curvesAnimatedCyclesIssue03.blend

So far I am unable to reproduce the bug from scratch nativly in 3.2, is it possible its bad data from the file made in 3.1?

For the time being then if the bug shows up, a valid work around is to disable motion blur, unless its vital to the project in which case you can disable persistent data at a significant loss to cycles render times.

This does seem to be the same Artifact. Thanks for simplfying the file I wasnt sure if that would make the bug go away considering it seems to be coming from multiple objects. So basically 94205e1d0295 fixed this issue in 3.2 but it doesnt fix it for animated curves? Interestingly the bug disappears for me on the simplified file when you do the following with persistent data and motion blur on: - slide the keyframes of the curves into the rendered frame zone (between start and end frame). - Scale animation curve in until the majority of the animation is within the start and end frame zone. - select all objects in viewport. - render animation. If thats interesting to you heres the file: [curvesAnimatedCyclesIssue03.blend](https://archive.blender.org/developer/F13262887/curvesAnimatedCyclesIssue03.blend) So far I am unable to reproduce the bug from scratch nativly in 3.2, is it possible its bad data from the file made in 3.1? For the time being then if the bug shows up, a valid work around is to disable motion blur, unless its vital to the project in which case you can disable persistent data at a significant loss to cycles render times.
Member

Added subscribers: @Blenderpro707, @mod_moder

Added subscribers: @Blenderpro707, @mod_moder
Philipp Oeser removed the
Interest
Render & Cycles
label 2023-02-09 14:03:47 +01:00

Having the same bug with 4.0 and 4.1 alpha, with a pretty high reproduction rate using the attached file (if creating a new bug is preferable, please let me know).

System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3080 Ti/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 546.33

Blender Version
Broken: version: 4.1.0 Alpha, branch: main, commit date: 2023-12-14 12:12, hash: 5197dd2a7a1b
Worked: (newest version of Blender that worked as expected)

Short description of error
The attached file is an object with no deformation, for which position has been animated (to cause motion blur).
Rendering an animation involving curves + cycles persistent data + motion blur shows geometry deformation on random frames.

Exact steps for others to reproduce the error
Render (Ctrl+F12) the attached file and observe some geometry glitches on some frames.
The file involves curves + cycles persistent data + motion blur.
Removing persistant data or motion blur fixes the issue.
The issue is present when rendering with CPU or GPU.
The issue seems to be more frequent (affects more frames) if cycles invocation rate is high (use GPU and lower the resolution and number of samples to increase the error occurence).

I hope this old bug will get a chance to be reconsidered in light of this file as it's helping a lot to reproduce the issue.

Having the same bug with 4.0 and 4.1 alpha, with a pretty high reproduction rate using the attached file (if creating a new bug is preferable, please let me know). **System Information** Operating system: Windows-10-10.0.19045-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3080 Ti/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 546.33 **Blender Version** Broken: version: 4.1.0 Alpha, branch: main, commit date: 2023-12-14 12:12, hash: `5197dd2a7a1b` Worked: (newest version of Blender that worked as expected) **Short description of error** The attached file is an object with no deformation, for which position has been animated (to cause motion blur). Rendering an animation involving curves + cycles persistent data + motion blur shows geometry deformation on random frames. **Exact steps for others to reproduce the error** Render (Ctrl+F12) the attached file and observe some geometry glitches on some frames. The file involves curves + cycles persistent data + motion blur. Removing persistant data or motion blur fixes the issue. The issue is present when rendering with CPU or GPU. The issue seems to be more frequent (affects more frames) if cycles invocation rate is high (use GPU and lower the resolution and number of samples to increase the error occurence). I hope this old bug will get a chance to be reconsidered in light of this file as it's helping a lot to reproduce the issue.
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
5 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#99281
No description provided.