Cleanup/Fix VSE readfile code, fully deprecate SEQ_TYPE_SOUND_HD
. #111135
No reviewers
Labels
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#111135
Loading…
Reference in New Issue
No description provided.
Delete Branch "mont29/blender:tmp-vse-readfile-cleanup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This fixes a few related issues in VSE code:
runtime data).
SEQ_TYPE_SOUND_HD
deprecated type of strips wasextremely confusing (versioning done partly in 'lib_link' code, partly
in some 2.50 do_version code).
SEQ_TYPE_SOUND_HD
strip type outside ofversioning code.
SEQ_TYPE_SOUND_HD
type inside ofversioning code (!).
Note that the actual conversion from
SEQ_TYPE_SOUND_HD
toSEQ_TYPE_SOUND_RAM
is now done in the 'after setup' versioningprocess, where it is somewhat safer to add IDs. This implies that
SEQ_TYPE_SOUND_HD
must be taken into account throughout the wholeregular versioning process (before and after liblink).
Conversion logic itself has been moved to the VSE code.
@ -881,4 +884,2 @@
}
if (seq->sound) {
seq->scene_sound = nullptr;
if (seq->type == SEQ_TYPE_SOUND_HD) {
This is the piece of code that is making me doubt. By the look of it, if
seq->type == SEQ_TYPE_SOUND_HD
, seq type is updated, butsound
ID pointer itself is happily kept as a fully invalid non-null pointer!It looks so obviously wrong, that it makes me wondering if there is not some completely undocumented, non-standard handling of this
SEQ_TYPE_SOUND_HD
case somewhere else. But could not find anything.I have looked at occurences, and there is no versioning apart from this piece of code, that as you said, shouldn't work. Will have to create old file to see how this behaves in practice.
There is some suspecious code in the
seq_sound_proxy_update_cb
, which allocates sound datablock. Perhaps that is what makes the sound to be a non-stale pointer?I have created test file in 2.49, and it loads correctly in 4.0.
Haven't checked why it works yet, can do tomorrow only.
Form my understanding the code under question came from the sound project for 2.5:
6c5c58e057
.It is indeed coming from
6c5c58e057
, and matching with evil done inseq_sound_proxy_update_cb
.This needs to be handled separately, from
setup_app_data
...Also related note, current
main
code will assert onBLI_assert(bmain->is_locked_for_linking == false || ELEM(type, ID_WS, ID_GR, ID_NT));
inlib_id.c
f11f5374d7
toe7fc6bfdba
@blender-bot build
@Sergey @iss think this is now ready for proper review. Test file from @iss does seem to behave properly now, and does not trigger any warning/assert anymore for me.
On a top level seems fine to me. I wouldn't be able to get any deeper check to this. Would be nice if Richard confirms 2.49/2.50 files works fine, as he was able to run those older versions.
I have tested the file now and it does not play. Path seems to be correct, but looking at properties in side panel it seems that it is not being loaded. Will check what is the issue.
Eh sorry, turns out, that I am dumb and used lite build. File works OK after all.