sequencer segfaults on loading a video clip #28602

Closed
opened 2011-09-10 04:28:38 +02:00 by bassam kurdali · 4 comments
Member

%%%as it sounds, loading this movie clip segfaults the sequencer, with the following stacktrace. I've attached the video in question.
OS Linux (10.10 ubuntu), nvidia gfx, 64 bit, intel cpu. ffmpeg from the blender ffmpeg lib in svn.
Program received signal SIGSEGV, Segmentation fault.
0x00007fffe0126000 in ?? ()
(gdb) bt

  • 0 0x00007fffe0126000 in ?? ()
  • 1 0x0000000001747a4f in hyscale_fast_MMX2 ()
  • 2 0x00007fffe0133fa0 in ?? ()
  • 3 0x00000000017378fa in swScale ()
  • 4 0x000000000171fe0b in sws_scale ()
  • 5 0x000000000106946f in ffmpeg_postprocess (anim=0x7fffe00e4f38)
  at source/blender/imbuf/intern/anim_movie.c:801

6 0x000000000106a2de in ffmpeg_fetchibuf (anim=0x7fffe00e4f38, position=0,

  tc=IMB_TC_NONE) at source/blender/imbuf/intern/anim_movie.c:1162

7 0x000000000106a9a8 in IMB_anim_absolute (anim=0x7fffe00e4f38, position=0,

  tc=IMB_TC_NONE, preview_size=IMB_PROXY_NONE)
  at source/blender/imbuf/intern/anim_movie.c:1401

8 0x0000000000f6339a in openanim (

  name=0x7fffffffdd20 "/home/bassam/reel/a1s16.mp4", flags=1, streamindex=0)
  at source/blender/blenkernel/intern/image.c:1382

9 0x0000000000f3792d in sequencer_add_movie_strip (C=0x37bdfa8,

  seqbasep=0x7fffe00e75c0, seq_load=0x7fffffffe020)
  at source/blender/blenkernel/intern/sequencer.c:3686

10 0x0000000000ba0480 in sequencer_add_generic_strip_exec (C=0x37bdfa8,

  op=0x7fffe00e3808, seq_load_func=0xf3788c <sequencer_add_movie_strip>)
  at source/blender/editors/space_sequencer/sequencer_add.c:330

11 0x0000000000ba0646 in sequencer_add_movie_strip_exec (C=0x37bdfa8,

  op=0x7fffe00e3808)
- Type <return> to continue, or q <return> to quit---
  at source/blender/editors/space_sequencer/sequencer_add.c:363

12 0x000000000091b7cd in wm_handler_fileselect_call (C=0x37bdfa8,

  handlers=0x3c16e98, handler=0x7fffe00e3448, event=0x7fffe00e3d08)
  at source/blender/windowmanager/intern/wm_event_system.c:1381

13 0x000000000091bda6 in wm_handlers_do (C=0x37bdfa8, event=0x7fffe00e3d08,

  handlers=0x3c16e98)
  at source/blender/windowmanager/intern/wm_event_system.c:1527

14 0x000000000091c9a5 in wm_event_do_handlers (C=0x37bdfa8)

  at source/blender/windowmanager/intern/wm_event_system.c:1821

15 0x000000000090530b in WM_main (C=0x37bdfa8)

  at source/blender/windowmanager/intern/wm.c:380

16 0x00000000009028f9 in main ()

%%%

%%%as it sounds, loading this movie clip segfaults the sequencer, with the following stacktrace. I've attached the video in question. OS Linux (10.10 ubuntu), nvidia gfx, 64 bit, intel cpu. ffmpeg from the blender ffmpeg lib in svn. Program received signal SIGSEGV, Segmentation fault. 0x00007fffe0126000 in ?? () (gdb) bt - 0 0x00007fffe0126000 in ?? () - 1 0x0000000001747a4f in hyscale_fast_MMX2 () - 2 0x00007fffe0133fa0 in ?? () - 3 0x00000000017378fa in swScale () - 4 0x000000000171fe0b in sws_scale () - 5 0x000000000106946f in ffmpeg_postprocess (anim=0x7fffe00e4f38) ``` at source/blender/imbuf/intern/anim_movie.c:801 ``` # 6 0x000000000106a2de in ffmpeg_fetchibuf (anim=0x7fffe00e4f38, position=0, ``` tc=IMB_TC_NONE) at source/blender/imbuf/intern/anim_movie.c:1162 ``` # 7 0x000000000106a9a8 in IMB_anim_absolute (anim=0x7fffe00e4f38, position=0, ``` tc=IMB_TC_NONE, preview_size=IMB_PROXY_NONE) at source/blender/imbuf/intern/anim_movie.c:1401 ``` # 8 0x0000000000f6339a in openanim ( ``` name=0x7fffffffdd20 "/home/bassam/reel/a1s16.mp4", flags=1, streamindex=0) at source/blender/blenkernel/intern/image.c:1382 ``` # 9 0x0000000000f3792d in sequencer_add_movie_strip (C=0x37bdfa8, ``` seqbasep=0x7fffe00e75c0, seq_load=0x7fffffffe020) at source/blender/blenkernel/intern/sequencer.c:3686 ``` # 10 0x0000000000ba0480 in sequencer_add_generic_strip_exec (C=0x37bdfa8, ``` op=0x7fffe00e3808, seq_load_func=0xf3788c <sequencer_add_movie_strip>) at source/blender/editors/space_sequencer/sequencer_add.c:330 ``` # 11 0x0000000000ba0646 in sequencer_add_movie_strip_exec (C=0x37bdfa8, ``` op=0x7fffe00e3808) ``` - Type <return> to continue, or q <return> to quit--- ``` at source/blender/editors/space_sequencer/sequencer_add.c:363 ``` # 12 0x000000000091b7cd in wm_handler_fileselect_call (C=0x37bdfa8, ``` handlers=0x3c16e98, handler=0x7fffe00e3448, event=0x7fffe00e3d08) at source/blender/windowmanager/intern/wm_event_system.c:1381 ``` # 13 0x000000000091bda6 in wm_handlers_do (C=0x37bdfa8, event=0x7fffe00e3d08, ``` handlers=0x3c16e98) at source/blender/windowmanager/intern/wm_event_system.c:1527 ``` # 14 0x000000000091c9a5 in wm_event_do_handlers (C=0x37bdfa8) ``` at source/blender/windowmanager/intern/wm_event_system.c:1821 ``` # 15 0x000000000090530b in WM_main (C=0x37bdfa8) ``` at source/blender/windowmanager/intern/wm.c:380 ``` # 16 0x00000000009028f9 in main () %%%
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'

%%%Looks like it's a regression in new FFmpeg. Or probably was changed in behavior so our usage isn't correct now.

Developer note: crash happens only when using SWS_FAST_BILINEAR rescaling and avpicture_fill() called before sws_scale(). Using SWS_BILINEAR or not using avpicture_fill() makes crash go away. This crash doesn't happen with FFmpeg-0.6.3 but happen with 0.8.1, 0.8.3 and 0.7.4.

Attaching smaller program to demonstrate the problem.

Peter, you know FFmpeg better than me, what do you think?%%%

%%%Looks like it's a regression in new FFmpeg. Or probably was changed in behavior so our usage isn't correct now. Developer note: crash happens only when using SWS_FAST_BILINEAR rescaling and avpicture_fill() called before sws_scale(). Using SWS_BILINEAR or not using avpicture_fill() makes crash go away. This crash doesn't happen with FFmpeg-0.6.3 but happen with 0.8.1, 0.8.3 and 0.7.4. Attaching smaller program to demonstrate the problem. Peter, you know FFmpeg better than me, what do you think?%%%

%%%This crash was caused by FFmpeg compiled with gcc-4.6. swscale has git issues with this version of compiler. Patch for FFmpeg is available on debian-multimedia repo, but it's not in FFmpeg sources yet. I've re-compiled FFmpeg with older gcc and commited libs to libs repo. Also, buildbot and release environments now using this libs.

Thanks for the report, closing now.%%%

%%%This crash was caused by FFmpeg compiled with gcc-4.6. swscale has git issues with this version of compiler. Patch for FFmpeg is available on debian-multimedia repo, but it's not in FFmpeg sources yet. I've re-compiled FFmpeg with older gcc and commited libs to libs repo. Also, buildbot and release environments now using this libs. Thanks for the report, closing now.%%%

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
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
2 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#28602
No description provided.