Video Sequence Editor crash with prefetch and meta strips #76033

Closed
opened 2020-04-24 01:12:15 +02:00 by Dario Abatianni · 16 comments

System Information
Operating system: Linux-5.2.14-1-default-x86_64-with-glibc2.17 64 Bits
Graphics card: GeForce GTX 1660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 435.21

Blender Version
Broken: version: 2.83 (sub 14), branch: master, commit date: 2020-04-23 08:25, hash: 8dedbb1747
Worked: version: 2.83 'a322b43e3d'

Short description of error
VSE crashes when prefetching is enabled and a meta strip is on the timeline.

Exact steps for others to reproduce the error
Not sure how I managed to finally trigger it in a small example file, but I can't open it anymore to look, because it crashes Blender instantly :-D It probably has to do with disk caching, enabling all cache types (raw, preprocessed ...) and then creating a meta strip. I hope the attached blend file shows the behavior.
lockdown2020_crash_colors_smallest_file.blend

**System Information** Operating system: Linux-5.2.14-1-default-x86_64-with-glibc2.17 64 Bits Graphics card: GeForce GTX 1660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 435.21 **Blender Version** Broken: version: 2.83 (sub 14), branch: master, commit date: 2020-04-23 08:25, hash: `8dedbb1747` Worked: version: 2.83 'a322b43e3d' **Short description of error** VSE crashes when prefetching is enabled and a meta strip is on the timeline. **Exact steps for others to reproduce the error** Not sure how I managed to finally trigger it in a small example file, but I can't open it anymore to look, because it crashes Blender instantly :-D It probably has to do with disk caching, enabling all cache types (raw, preprocessed ...) and then creating a meta strip. I hope the attached blend file shows the behavior. [lockdown2020_crash_colors_smallest_file.blend](https://archive.blender.org/developer/F8491630/lockdown2020_crash_colors_smallest_file.blend)

Added subscriber: @Eisfuchs

Added subscriber: @Eisfuchs
Member

Added subscriber: @ankitm

Added subscriber: @ankitm
Member

I can open the file in d4ffd1d91f. Though the playback is all black.

I can open the file in d4ffd1d91f. Though the playback is all black.

In #76033#916618, @ankitm wrote:
I can open the file in d4ffd1d91f. Though the playback is all black.

Yes, it's just two black strips inside a meta strip. If it doesn't crash, I assume it's cache related. Is there a way for me to capture a meaningful backtrace without going all out and compiling the whole thing?

> In #76033#916618, @ankitm wrote: > I can open the file in d4ffd1d91f. Though the playback is all black. Yes, it's just two black strips inside a meta strip. If it doesn't crash, I assume it's cache related. Is there a way for me to capture a meaningful backtrace without going all out and compiling the whole thing?
Member

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

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

... to do with disk caching, enabling all cache types (raw, preprocessed ...) ...

even if you complete & share the trace, the developer still needs to redo the case on their system to test it. So if you can find a way to reliably redo it, share the steps, that would be great.

> ... to do with disk caching, enabling all cache types (raw, preprocessed ...) ... even if you complete & share the trace, the developer still needs to redo the case on their system to test it. So if you can find a way to reliably redo it, share the steps, that would be great.

I just reproduced it from scratch:

  • File / New / Video Editing
  • View / Cache / Raw Images
  • View / Cache / Preprocessed Images
  • View / Cache / Composite Images
  • Add / Color
  • Duplicate added color strip (shift+d), place it on the next channel on top
  • Preview / N-Panel / View / Prefetch frames
  • IMPORTANT: Save the file now, or it won't crash
  • Select both color strips
  • ctrl+g
  • CRASH

lockdown2020_crash_colors_smallest_file_2.blend

I just reproduced it from scratch: - File / New / Video Editing - View / Cache / Raw Images - View / Cache / Preprocessed Images - View / Cache / Composite Images - Add / Color - Duplicate added color strip (shift+d), place it on the next channel on top - Preview / N-Panel / View / Prefetch frames - IMPORTANT: Save the file now, or it won't crash - Select both color strips - ctrl+g - *CRASH* [lockdown2020_crash_colors_smallest_file_2.blend](https://archive.blender.org/developer/F8492544/lockdown2020_crash_colors_smallest_file_2.blend)
Member

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

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

Umm it doesn't crash with the steps you did. Someone else would have to try it.
But I do some undo/redo cycles & it crashes. So after ctrl + g, Undo some steps (cmd + Z), redo some steps (cmd + shift + Z), after 3-4 such cycles it crashes.

- 0	 seq_prefetch_is_cache_full at source/blender/blenkernel/intern/seqprefetch.c:164
- 1	 seq_prefetch_frames at source/blender/blenkernel/intern/seqprefetch.c:358
#2	 tslot_thread_start at source/blender/blenlib/intern/threads.c:258
Umm it doesn't crash with the steps you did. Someone else would have to try it. But I do some undo/redo cycles & it crashes. So after ctrl + g, Undo some steps (cmd + Z), redo some steps (cmd + shift + Z), after 3-4 such cycles it crashes. ``` - 0 seq_prefetch_is_cache_full at source/blender/blenkernel/intern/seqprefetch.c:164 - 1 seq_prefetch_frames at source/blender/blenkernel/intern/seqprefetch.c:358 #2 tslot_thread_start at source/blender/blenlib/intern/threads.c:258 ```

Do you have disk caching enabled in Preferences / System / Video Sequencer / Use Disk Cache and saved the blend file before creating the meta?

If I disable Disk Caching, the crash goes away. But with disk cache enabled, creating a meta strip crashes.disk_cache_prefetch_crash.mkv

Do you have disk caching enabled in Preferences / System / Video Sequencer / Use Disk Cache and saved the blend file before creating the meta? If I disable Disk Caching, the crash goes away. But with disk cache enabled, creating a meta strip crashes.[disk_cache_prefetch_crash.mkv](https://archive.blender.org/developer/F8494444/disk_cache_prefetch_crash.mkv)

Added subscriber: @iss

Added subscriber: @iss

In #76033#917604, @Eisfuchs wrote:
Do you have disk caching enabled in Preferences / System / Video Sequencer / Use Disk Cache and saved the blend file before creating the meta?

If I disable Disk Caching, the crash goes away. But with disk cache enabled, creating a meta strip crashes.disk_cache_prefetch_crash.mkv

Thanks for report.
Can you please upload created file /tmp/untitled.crash.txt?

> In #76033#917604, @Eisfuchs wrote: > Do you have disk caching enabled in Preferences / System / Video Sequencer / Use Disk Cache and saved the blend file before creating the meta? > > If I disable Disk Caching, the crash goes away. But with disk cache enabled, creating a meta strip crashes.[disk_cache_prefetch_crash.mkv](https://archive.blender.org/developer/F8494444/disk_cache_prefetch_crash.mkv) Thanks for report. Can you please upload created file /tmp/untitled.crash.txt?

untitled.crash.txt

Ah, sorry! I forgot that one! Here it is :-)

[untitled.crash.txt](https://archive.blender.org/developer/F8505845/untitled.crash.txt) Ah, sorry! I forgot that one! Here it is :-)

In #76033#921649, @Eisfuchs wrote:
untitled.crash.txt

Ah, sorry! I forgot that one! Here it is :-)

Thanks.

For a moment I thought I finally caught #76274, but nope, this is different issue. But thanks for report anyway.

> In #76033#921649, @Eisfuchs wrote: > [untitled.crash.txt](https://archive.blender.org/developer/F8505845/untitled.crash.txt) > > Ah, sorry! I forgot that one! Here it is :-) Thanks. For a moment I thought I finally caught #76274, but nope, this is different issue. But thanks for report anyway.

This issue was referenced by 98990f6ba4

This issue was referenced by 98990f6ba439b496e8680d5043ebb18365b9e054

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Richard Antalik self-assigned this 2020-05-01 21:24:27 +02:00
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#76033
No description provided.