System Information
Operating system: Kubuntu 20.04, Windows 10
Graphics card: GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 450.102.04
Blender Version
Broken: version: 2.91.2, branch: master, commit date: 2021-01-19 16:15, hash: rB5be9ef417703
Broken: version: 2.93.0 Alpha, branch: master (modified), commit date: 2021-01-25 09:32, hash: rB5f55022276a8
Worked: version: 2.83.9, branch: master, commit date: 2020-11-11 06:30, hash: rB4abfc0bcd5c8
Short description of error
In a very specific configuration, some grease pencil frames are only rendered in graphical mode, but not in background mode. It apparently involves saving the file with the current frame before the first animation frame.
Exact steps for others to reproduce the error
- Open the attached file, and press CTRL + F12 to render the animation
- In the resulting file, all frames are correctly rendered
- Render the same file in the background by using the following command: blender --factory-startup -b grease_pencil_render_bug.blend -a
- Keyframe 103 is skipped, and keyframe 105 appears only at frame 106.
OR
- Create new 2D animation file
- Set first frame to 101, last frame to 110
- Draw something at frames 101, 103, 105, 107, 110
- Delete existing frame 1
- Set the current frame to before the first frame (e.g. 60)
- Save file
- Press CTRL + F12 to render the animation
- In the resulting file, all frames are correctly rendered
- Render the same file in the background by using the following command: blender --factory-startup -b grease_pencil_render_bug.blend -a
- Frames 103-105 are skipped.
Here are the resulting animations
Rendered in the foreground, expected:
Rendered in the background, frames 103-105 skipped: