FFMPEG: Video crashing since last FFMPEG SVN lib update #91602

Closed
opened 2021-09-22 12:35:55 +02:00 by Ulysse Martin · 19 comments

System Information
Operating system: Windows-10-10.0.22000-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.12

Blender Version
Blender version used: Last blender 3.0 alpha master:
90b485845c

Broken: Current svn library (linux/windows)
Worked: Previous svn library

Short description of error
One of my test videos is crashing since last FFMPEG svn libraries update.

.blend:

video_test.blend

Video:

a.avi

Exact steps for others to reproduce the error

  • Put .blend and video in the same folder.
  • Open .blend and switch to eevee rendered mode.
  • Crash.

The crash happens at the beginning of video opening in:

avformat_find_stream_info(formatCtx, nullptr)

On windows, it is working when checking out previous SVN libraries:

Sans titre.jpg

**System Information** Operating system: Windows-10-10.0.22000-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.12 **Blender Version** Blender version used: Last blender 3.0 alpha master: 90b485845caf5ea9177be50cdd6d7117153f844e Broken: Current svn library (linux/windows) Worked: Previous svn library **Short description of error** One of my test videos is crashing since last FFMPEG svn libraries update. .blend: [video_test.blend](https://archive.blender.org/developer/F10541062/video_test.blend) Video: [a.avi](https://archive.blender.org/developer/F10541067/a.avi) **Exact steps for others to reproduce the error** - Put .blend and video in the same folder. - Open .blend and switch to eevee rendered mode. - > Crash. The crash happens at the beginning of video opening in: avformat_find_stream_info(formatCtx, nullptr) On windows, it is working when checking out previous SVN libraries: ![Sans titre.jpg](https://archive.blender.org/developer/F10541138/Sans_titre.jpg)
Author

Added subscriber: @you.le

Added subscriber: @you.le

Added subscriber: @iss

Added subscriber: @iss

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

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

I can reproduce crash, but even debugger can't catch it. Do you have full stack trace?

I can reproduce crash, but even debugger can't catch it. Do you have full stack trace?
Author

Hi, no I haven't an helpful stacktrace.

On windows, Visual Studio 2019 exits without even catch the exception. There is no debugging symbols for FFMPEG in lib > win64_vc15 > ffmpeg.
On linux mint with qtcreator, the debugger stops at avformat_find_stream_info but all what is after is not readable.

I think it needs debugging symbols but I don't know how to get it. I think maybe Nexyion (Jorg Muller) or LazyDodo (Ray Molenkamp) might know how to handle this kindof problems.

Hi, no I haven't an helpful stacktrace. On windows, Visual Studio 2019 exits without even catch the exception. There is no debugging symbols for FFMPEG in lib > win64_vc15 > ffmpeg. On linux mint with qtcreator, the debugger stops at avformat_find_stream_info but all what is after is not readable. I think it needs debugging symbols but I don't know how to get it. I think maybe Nexyion (Jorg Muller) or LazyDodo (Ray Molenkamp) might know how to handle this kindof problems.

Added subscriber: @LazyDodo

Added subscriber: @LazyDodo

Checked with ffprobe included in libs, I got following message: Assertion static_size <= (sizeof(table) / sizeof((table)- [x])) failed at libavcodec/rl.c:76. No idea what this is related to..

I have ffprobe version N-101936-gff01514fe3 complied here, it doesn't crash. Then some archaic version, also doesn't crash.

@LazyDodo does this ring a bell by a chance?

Checked with ffprobe included in libs, I got following message: `Assertion static_size <= (sizeof(table) / sizeof((table)- [x])) failed at libavcodec/rl.c:76`. No idea what this is related to.. I have `ffprobe version N-101936-gff01514fe3` complied here, it doesn't crash. Then some archaic version, also doesn't crash. @LazyDodo does this ring a bell by a chance?
Member

Added subscriber: @EAW

Added subscriber: @EAW
Member

The last 3 commits look like they might be relevant:

https://git.ffmpeg.org/gitweb/ffmpeg.git/history/HEAD:/libavcodec/rl.c

The last 3 commits look like they might be relevant: https://git.ffmpeg.org/gitweb/ffmpeg.git/history/HEAD:/libavcodec/rl.c

I have looked at those commits, but this is some deep internal workings so best I can posibly do is checkout same commit as we use for libs and technically bisect build options. But again this could be caused by any ffmpeg deps. In such case primary suspect would be libx264...

I have looked at those commits, but this is some deep internal workings so best I can posibly do is checkout same commit as we use for libs and technically bisect build options. But again this could be caused by any ffmpeg deps. In such case primary suspect would be libx264...
Ray molenkamp self-assigned this 2021-09-23 00:39:02 +02:00
Member

We have local modifications in that file due to mac throwing a warning over that large stack allocation at runtime which are the root cause for this issue, will fix.

We have local modifications in that file due to mac throwing a warning over that large stack allocation at runtime which are the root cause for this issue, will fix.

This issue was referenced by None@62702

This issue was referenced by None@62702
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Member

Added subscriber: @ZedDB

Added subscriber: @ZedDB
Member

Fixed the windows binaries crash is gone (mac + linux still need to be updated), but it looks a little glitchy on the left side, ffplay with the same dll's seems to have no issues, so this is likely a problem on the blender side.

{F10552556,width=100%}

@ZedDB i remember you being on a little binge of ffmpeg compat related fixes a while ago, mind taking a look at this one?

Fixed the windows binaries crash is gone (mac + linux still need to be updated), but it looks a little glitchy on the left side, ffplay with the same dll's seems to have no issues, so this is likely a problem on the blender side. {[F10552556](https://archive.blender.org/developer/F10552556/image.png),width=100%} @ZedDB i remember you being on a little binge of ffmpeg compat related fixes a while ago, mind taking a look at this one?
Author

Thanks very much @ everyone and @LazyDodo for the fix!

Thanks very much @ everyone and @LazyDodo for the fix!

This issue was referenced by None@62705

This issue was referenced by None@62705

This issue was referenced by None@62713

This issue was referenced by None@62713

This issue was referenced by None@62715

This issue was referenced by None@62715
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#91602
No description provided.