#30415 closed defect (invalid)
mplayer-devel segmentation fault when scaling
Reported by: | migmit@… | Owned by: | jeremyhu (Jeremy Huddleston Sequoia) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.0 |
Keywords: | Cc: | acho@…, macports@… | |
Port: | mplayer-devel |
Description (last modified by mf2k (Frank Schima))
I've installed Lion a couple of days ago, then port-uninstalled everything, port-cleaned everything (with --all option), then port-selfupdated and reinstalled the stuff I need. Now every time I try to use "scale" filter, mencoder gives me "Segmentation fault". Mplayer, by the way, works fine. Mencodering without scaling works fine. I've tried different sources, got the same result.
Here is what happens when I run mencoder (with debug variant enabled) in GDB:
(gdb) run Dropbox/Public/G.avi -nosound -vf scale=480:320 -ovc x264 -o G.avi Starting program: /opt/local/bin/mencoder Dropbox/Public/G.avi -nosound -vf scale=480:320 -ovc x264 -o G.avi Reading symbols for shared libraries +++++++++++++++++++++++................................................................................................................................... done MEncoder UNKNOWN-4.2.1 (C) 2000-2011 MPlayer Team 163 audio & 363 video codecs success: format: 0 data: 0x0 - 0x723102 AVI file format detected. [aviheader] Video stream found, -vid 0 VIDEO: [XVID] 500x400 24bpp 30.000 fps 1513.3 kbps (184.7 kbyte/s) [V] filefmt:3 fourcc:0x44495658 size:500x400 fps:30.000 ftime:=0.0333 Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1 Opening video filter: [scale w=480 h=320] ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Unsupported PixelFormat 61 Unsupported PixelFormat 53 Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4) ========================================================================== [mpeg4 @ 0x10097b700]Invalid and inefficient vfw-avi packed B frames detected Movie-Aspect is 1.25:1 - prescaling to correct movie aspect. [swscaler @ 0x10096c820]BICUBIC scaler, from yuv420p to yuv420p using MMX2 x264 [info]: using SAR=5/6 x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 x264 [info]: profile High, level 2.1 Pos: 0.0s 1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0] Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x0000000122800000 0x0000000100187fd1 in yuv2yuvX_MMX2 ()
Attachments (1)
Change History (18)
comment:1 Changed 13 years ago by migmit@…
comment:2 Changed 13 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|---|
Keywords: | scale segmentation fault removed |
Owner: | changed from macports-tickets@… to acho@… |
comment:3 Changed 13 years ago by macports@…
I have the same issue. I found it goes away when compiling x264 without the +asm variant.
comment:4 Changed 13 years ago by jmroot (Joshua Root)
Cc: | jeremyhu@… added |
---|
comment:5 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Please provide a crash report. Your gdb log doesn't provide much information. If you're going to do this in gdb, please provide a backtrace of the crashed thread and the output of 'info files' so I can see what library the crashing frame is in. My guess from the previous comment is that it's in libx264.dylib, but that does not match up with the backtrace sine libx264.dylib doesn't seem to have a yuv2yuvX_MMX2 symbol on my system.
comment:6 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Owner: | changed from acho@… to jeremyhu@… |
---|---|
Status: | new → assigned |
comment:7 Changed 13 years ago by jmroot (Joshua Root)
Cc: | acho@… added; jeremyhu@… removed |
---|
comment:8 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Cc: | macports@… added |
---|
So far, 2 people have complained that they have this issue, but neither has posted a crash log. There's nothing I can do without a crash log.
Changed 13 years ago by macports@…
Attachment: | mencoder_2012-05-06-181227_twappel.crash.gz added |
---|
Crash log
comment:9 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Does this occur with mplayer 1.1? What about the current mplayer-devel (updated today)?
comment:10 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Resolution: | → worksforme |
---|---|
Status: | assigned → closed |
No response, closing.
comment:11 Changed 12 years ago by macports@…
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
Sorry for the delay. I am on OS X 10.8 now, and the crash still occurs both with mplayer 1.1 and mplayer-devel. Let me know what else you need to be able to fix this.
$ port installed mplayer The following ports are currently installed:
MPlayer @1.1_1+mencoder_extras+x264 (active)
and later: $ port installed mplayer-devel The following ports are currently installed:
mplayer-devel @35203_0+mencoder_extras+x264 (active)
$ port installed x264 The following ports are currently installed:
x264 @20111210_0 x264 @20111210_0+asm (active)
comment:12 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Can you provide a sample video file that triggers this issue?
comment:13 Changed 12 years ago by macports@…
It is triggered with any video file. I tried all avi samples on http://istec.colostate.edu/me/facil/dynamics/avis.htm and mencoder crashes on all of them.
$ mencoder drop.avi -nosound -vf scale=480:320 -ovc x264 -o out.avi MEncoder UNKNOWN-4.2.1 (C) 2000-2012 MPlayer Team 198 audio & 412 video codecs success: format: 0 data: 0x0 - 0xa5000 libavformat version 54.27.101 (internal) AVI file format detected. [aviheader] Video stream found, -vid 0 VIDEO: [IV41] 256x240 24bpp 30.000 fps 882.5 kbps (107.7 kbyte/s) [V] filefmt:3 fourcc:0x31345649 size:256x240 fps:30.000 ftime:=0.0333 Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1 Opening video filter: [scale w=480 h=320] ========================================================================== Requested video codec family [indeo4] (vfm=vfw) not available. Enable it at compilation. Opening video decoder: [xanim] XAnim codecs Movie-Aspect is undefined - no prescaling applied. [swscaler @ 0x10cf02470]BICUBIC scaler, from yuv410p to yuv420p using MMX2 x264 [info]: using SAR=32/45 x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX x264 [info]: profile High, level 2.1 xacodec: failed to dlopen /opt/local/lib/codecs/vid_iv41.xa while dlopen(/opt/local/lib/codecs/vid_iv41.xa, 1): image not found VDecoder init failed :( Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family libavcodec version 54.56.100 (internal) Selected video codec: [ffindeo4] vfm: ffmpeg (FFmpeg Indeo 4) ========================================================================== Movie-Aspect is undefined - no prescaling applied. Segmentation fault: 111%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
comment:14 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Works for me... you'll need to provide more info...
~ $ wget http://istec.colostate.edu/me/facil/dynamics/files/drop.avi --2012-09-28 16:22:12-- http://istec.colostate.edu/me/facil/dynamics/files/drop.avi Resolving istec.colostate.edu (istec.colostate.edu)... 129.82.224.53 Connecting to istec.colostate.edu (istec.colostate.edu)|129.82.224.53|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 675840 (660K) [video/x-msvideo] Saving to: ‘drop.avi’ 100%[======================================>] 675,840 488KB/s in 1.4s 2012-09-28 16:22:14 (488 KB/s) - ‘drop.avi’ saved [675840/675840] ~ $ mencoder drop.avi -nosound -vf scale=480:320 -ovc x264 -o out.avi MEncoder UNKNOWN-4.2.1 (C) 2000-2012 MPlayer Team 198 audio & 412 video codecs success: format: 0 data: 0x0 - 0xa5000 libavformat version 54.27.101 (internal) AVI file format detected. [aviheader] Video stream found, -vid 0 VIDEO: [IV41] 256x240 24bpp 30.000 fps 882.5 kbps (107.7 kbyte/s) [V] filefmt:3 fourcc:0x31345649 size:256x240 fps:30.000 ftime:=0.0333 Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1 Opening video filter: [scale w=480 h=320] ========================================================================== Requested video codec family [indeo4] (vfm=vfw) not available. Enable it at compilation. Opening video decoder: [xanim] XAnim codecs Movie-Aspect is undefined - no prescaling applied. [swscaler @ 0x1027bb210]BICUBIC scaler, from yuv410p to yuv420p using MMX2 x264 [info]: using SAR=32/45 x264 [info]: using cpu capabilities: none! x264 [info]: profile High, level 2.1 xacodec: failed to dlopen /opt/local/lib/codecs/vid_iv41.xa while dlopen(/opt/local/lib/codecs/vid_iv41.xa, 1): image not found VDecoder init failed :( Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family libavcodec version 54.56.100 (internal) Selected video codec: [ffindeo4] vfm: ffmpeg (FFmpeg Indeo 4) ========================================================================== Movie-Aspect is undefined - no prescaling applied. Pos: 2.2s 67f (32%) 6.44fps Trem: 0min 0mb A-V:0.000 [0:0] Writing header... ODML: vprp aspect is 16384:15359. Writing header... ODML: vprp aspect is 16384:15359. Pos: 6.1s 182f (99%) 14.32fps Trem: 0min 0mb A-V:0.000 [467:0] Skipping frame! Pos: 6.1s 183f (100%) 14.40fps Trem: 0min 0mb A-V:0.000 [467:0] Flushing video frames. Writing index... Writing header... ODML: vprp aspect is 16384:15359. Video stream: 743.474 kbit/s (92934 B/s) size: 563801 bytes 6.067 secs 183 frames x264 [info]: frame I:1 Avg QP:24.92 size: 4192 x264 [info]: frame P:105 Avg QP:27.13 size: 3906 x264 [info]: frame B:76 Avg QP:28.28 size: 1966 x264 [info]: consecutive B-frames: 16.5% 83.5% 0.0% 0.0% x264 [info]: mb I I16..4: 13.0% 78.7% 8.3% x264 [info]: mb P I16..4: 3.7% 29.5% 4.6% P16..4: 32.0% 14.3% 4.0% 0.0% 0.0% skip:11.9% x264 [info]: mb B I16..4: 0.8% 3.2% 0.4% B16..8: 27.3% 10.0% 2.7% direct:12.5% skip:43.0% L0:38.6% L1:41.6% BI:19.8% x264 [info]: 8x8 transform intra:77.7% inter:79.5% x264 [info]: coded y,uvDC,uvAC intra: 71.4% 0.0% 0.0% inter: 33.6% 0.0% 0.0% x264 [info]: i16 v,h,dc,p: 19% 55% 4% 22% x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 9% 41% 13% 3% 5% 3% 13% 3% 9% x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 7% 50% 9% 3% 6% 3% 13% 3% 6% x264 [info]: i8c dc,h,v,p: 100% 0% 0% 0% x264 [info]: Weighted P-Frames: Y:77.1% UV:0.0% x264 [info]: ref P L0: 49.7% 17.6% 16.6% 7.7% 8.4% x264 [info]: ref B L0: 92.3% 7.7% x264 [info]: kb/s:743.47
comment:15 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)
My x264 port wasn't built with +asm, try x264 with -asm
comment:16 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Resolution: | → invalid |
---|---|
Status: | reopened → closed |
From the Portfile:
# # intel assembler optimizations using yasm continue # to exhibit problems in some cases (see #19835) # disable by default but can be enabled using +asm variant for the adventurous #
Sorry, forgot about formatting: