[MPlayer-advusers] SIGSEGV with -vo gl on sparc

Marco Graf grafmar at ee.ethz.ch
Thu Nov 10 12:07:35 CET 2005


Reimar at ee.ethz.ch wrote:
> Hi,
> On Tue, Nov 08, 2005 at 12:31:56PM +0100, Marco Graf wrote:
> 
>>"Better"
>>No SIGSEGV anymore but SIGILL:
> 
> 
> Please give me the glxinfo output, and use -vo gl:swapinterval=-1

no problems with -vo gl:swapinterval=-1
but with xlibmesa-dri package instead of mesag3 I get a SIGABRT (6)
instead of the SIGILL. But also no crash with -vo gl:swapinterval=-1

So here it is with the mesag3-package:

--8<--
#> glxinfo
name of display: :0.0
display: :0  screen: 0
direct rendering: No
server glx vendor string: Brian Paul
server glx version string: 1.4 Mesa 5.0
server glx extensions:
    GLX_MESA_copy_sub_buffer, GLX_MESA_pixmap_colormap,
    GLX_MESA_release_buffers, GLX_ARB_get_proc_address,
GLX_EXT_visual_info,
    GLX_EXT_visual_rating, GLX_SGI_video_sync, GLX_SGIX_fbconfig,
    GLX_SGIX_pbuffer
client glx vendor string: Brian Paul
client glx version string: 1.4 Mesa 5.0
client glx extensions:
    GLX_MESA_copy_sub_buffer, GLX_MESA_pixmap_colormap,
    GLX_MESA_release_buffers, GLX_ARB_get_proc_address,
GLX_EXT_visual_info,
    GLX_EXT_visual_rating, GLX_SGI_video_sync, GLX_SGIX_fbconfig,
    GLX_SGIX_pbuffer
GLX extensions:
    GLX_MESA_copy_sub_buffer, GLX_MESA_pixmap_colormap,
    GLX_MESA_release_buffers, GLX_ARB_get_proc_address,
GLX_EXT_visual_info,
    GLX_EXT_visual_rating, GLX_SGI_video_sync, GLX_SGIX_fbconfig,
    GLX_SGIX_pbuffer
OpenGL vendor string: Brian Paul
OpenGL renderer string: Mesa X11
OpenGL version string: 1.4 Mesa 5.0
OpenGL extensions:
    GL_ARB_depth_texture, GL_ARB_imaging, GL_ARB_multisample,
    GL_ARB_multitexture, GL_ARB_point_parameters, GL_ARB_shadow,
    GL_ARB_shadow_ambient, GL_ARB_texture_border_clamp,
    GL_ARB_texture_compression, GL_ARB_texture_cube_map,
    GL_ARB_texture_env_add, GL_ARB_texture_env_combine,
    GL_ARB_texture_env_crossbar, GL_ARB_texture_env_dot3,
    GL_ARB_texture_mirrored_repeat, GL_ARB_transpose_matrix,
    GL_ARB_window_pos, GL_ATI_texture_mirror_once, GL_EXT_abgr,
GL_EXT_bgra,
    GL_EXT_blend_color, GL_EXT_blend_func_separate, GL_EXT_blend_logic_op,
    GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_clip_volume_hint,
    GL_EXT_convolution, GL_EXT_compiled_vertex_array, GL_EXT_fog_coord,
    GL_EXT_histogram, GL_EXT_multi_draw_arrays, GL_EXT_packed_pixels,
    GL_EXT_paletted_texture, GL_EXT_point_parameters,
GL_EXT_polygon_offset,
    GL_EXT_rescale_normal, GL_EXT_secondary_color, GL_EXT_shadow_funcs,
    GL_EXT_shared_texture_palette, GL_EXT_stencil_wrap,
    GL_EXT_stencil_two_side, GL_EXT_texture3D, GL_EXT_texture_edge_clamp,
    GL_EXT_texture_env_add, GL_EXT_texture_env_combine,
    GL_EXT_texture_env_dot3, GL_EXT_texture_object,
GL_EXT_texture_lod_bias,
    GL_EXT_vertex_array, GL_HP_occlusion_test, GL_IBM_rasterpos_clip,
    GL_IBM_texture_mirrored_repeat, GL_INGR_blend_func_separate,
    GL_MESA_pack_invert, GL_MESA_resize_buffers, GL_MESA_ycbcr_texture,
    GL_MESA_window_pos, GL_NV_blend_square, GL_NV_point_sprite,
    GL_NV_texture_rectangle, GL_NV_texgen_reflection, GL_NV_vertex_program,
    GL_NV_vertex_program1_1, GL_SGI_color_matrix, GL_SGI_color_table,
    GL_SGIS_generate_mipmap, GL_SGIS_pixel_texture,
    GL_SGIS_texture_border_clamp, GL_SGIS_texture_edge_clamp,
    GL_SGIX_depth_texture, GL_SGIX_pixel_texture, GL_SGIX_shadow,
    GL_SGIX_shadow_ambient
glu version: 1.3
glu extensions:
    GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

   visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
 id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------
0x23 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16  0  0 0 None
0x24 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x25 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x26 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x27 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x28 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x29 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
0x2a 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
-->8--

--8<--
NU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-linux"...Using host libthread_db
library "/lib/libthread_d
b.so.1".

(gdb) run ESC[1 at -ESC[1 at v -vo
glESC[1@:ESC[1 at sESC[1 at wESC[1 at aESC[1 at pESC[1 at iESC[1 at nESC[1 at tESC[1
@eESC[1 at rESC[1 at vESC[1 at aESC[1 at lESC[1@=ESC[1 at -ESC[1 at 1
Starting program: /usr/local/bin/mplayer -v -vo gl:swapinterval=-1 bud.mpeg
warning: linux_test_for_tracefork: unexpected result from waitpid
(23313, status 0xb7f)
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 23312)]
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/stow/mplayer_cvs20051108/share/locale

MPlayer dev-CVS-051108-10:38-4.0.2 (C) 2000-2005 MPlayer Team
CPU: Sun Sparc

CommandLine: '-v' '-vo' 'gl:swapinterval=-1' 'bud.mpeg'
init_freetype
get_path('font/font.desc') -> '/home/grafmar/.mplayer/font/font.desc'
font: can't open file: /home/grafmar/.mplayer/font/font.desc
font: can't open file:
/usr/local/stow/mplayer_cvs20051108/share/mplayer/font/font.desc
Using Unoptimized OnScreenDisplay
Failed to open /dev/rtc: Permission denied (it should be readable by the
user.)
Using nanosleep() timing
get_path('input.conf') -> '/home/grafmar/.mplayer/input.conf'
Can't open input config file /home/grafmar/.mplayer/input.conf: No such
file or directory
Can't open input config file
/usr/local/stow/mplayer_cvs20051108/etc/mplayer/input.conf: No
such file or directory
Falling back on default (hardcoded) input config
get_path('bud.mpeg.conf') -> '/home/grafmar/.mplayer/bud.mpeg.conf'
Playing bud.mpeg.
get_path('sub/') -> '/home/grafmar/.mplayer/sub/'
[file] File size is 2605340 bytes
STREAM: [file] bud.mpeg
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename bud.mpeg ext: .mpeg
Checking for Nullsoft Streaming Video
Checking for MOV
Checking for VIVO
Checking for PVA
Checking for MPEG-TS...
TRIED UP TO POSITION 70694, FOUND 47, packet_size= 0, SEEMS A TS? 0
Checking for LMLM4 Stream Format
Invalid packet in LMLM4 stream: ch=2697 size=2067812130
LMLM4 Stream Format not found
system stream synced at 0x0 (144)!
==> Found video stream: 0
==> Found audio stream: 0
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)
MPEG-PS file format detected.
Searching for sequence header... OK!
VIDEO:  MPEG1  320x240  (aspect 8)  25.000 fps  563.2 kbps (70.4 kbyte/s)
[V] filefmt:2  fourcc:0x10000001  size:320x240  fps:25.00  ftime:=0.0400
get_path('sub/') -> '/home/grafmar/.mplayer/sub/'
get_path('default.sub') -> '/home/grafmar/.mplayer/default.sub'
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: using generic C decore!
MP3lib: init layer2&3 finished, tables done
^MMPEG 1.0, Layer II, 44100 Hz 96 kbit Stereo, BPF: 313
Channels: 2, copyright: No, original: No, CRC: Yes, emphasis: 0
AUDIO: 44100 Hz, 2 ch, s16be, 96.0 kbit/6.80% (ratio: 12000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
[gl] Using 4 as slice height (0 means image height).
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1152x864 with depth 24 and 32 bpp (":0.0" => local
display)
[x11] Detected wm supports layers.
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Current fstype setting honours LAYER FULLSCREEN ABOVE BELOW X atoms
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 320 x 240 (preferred colorspace: Mpeg PES)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
The selected video_out device is incompatible with this codec.
Also try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
Building audio filter chain for 44100Hz/2ch/s16be -> 0Hz/0ch/s8...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 44100Hz/2ch/s16be
[dummy] Was reinitialized: 44100Hz/2ch/s16be
ao2: 44100 Hz  2 chans  s16be
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
audio_setup: sample format: s16be (requested: s16be)
audio_setup: using 2 channels (requested: 2)
audio_setup: using 44100 Hz samplerate (requested: 44100)
audio_setup: frags:   8/8  (8192 bytes/frag)  free:  65536
AO: [oss] 44100Hz 2ch s16be (2 bytes per sample)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 44100Hz/2ch/s16be -> 44100Hz/2ch/s16be...
[dummy] Was reinitialized: 44100Hz/2ch/s16be
[dummy] Was reinitialized: 44100Hz/2ch/s16be
Starting playback...
VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO Config (320x240->320x240,flags=0,'MPlayer',0x32315659)
No accelerated colorspace conversion found
SwScaler: using unscaled Planar YV12 -> BGR 24-bit special converter
REQ: flags=0x437  req=0x0
VO: [gl] 320x240 => 320x240 BGR 24-bit
VO: Description: X11 (OpenGL)
VO: Author: Arpad Gereoffy <arpi at esp-team.scene.hu>
[gl] Creating 512x256 texture...
[gl] Resize: 320x240
*** [scale] Allocating mp_image_t, 320x240x12bpp YUV planar, 115200 bytes
[gl] Resize: 320x240
A:   0.9 V:   0.0 A-V:  0.821 ct:  0.000   1/  1 ??% ??% ??,?% 0 0

^M*** [scale] Allocating mp_image_t, 320x240x12bpp YUV planar, 115200 bytes
A:   0.9 V:   0.5 A-V:  0.403 ct:  0.004   2/  2 ??% ??% ??,?% 1 0

^M*** [vo] Allocating mp_image_t, 320x240x24bpp BGR packed, 230400 bytes
get_path('subfont.ttf') -> '/home/grafmar/.mplayer/subfont.ttf'
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
A:   1.3 V:   0.5 A-V:  0.729 ct:  0.008   3/  3 ??% ??% ??,?% 2 0

^M*** [scale] Allocating mp_image_t, 320x240x12bpp YUV planar, 115200 bytes
A:   1.4 V:   0.6 A-V:  0.885 ct:  0.012   4/  4 ??% ??% ??,?% 3 0
           ************************************************
           **** Your system is too SLOW to play this!  ****
           ************************************************

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
  - Try -ao sdl or use the OSS emulation of ALSA.
  - Experiment with different values for -autosync, 30 is a good start.
- Slow video output
  - Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
  - Don't try to play a big DVD/DivX on a slow CPU! Try some of the
lavdopts,
    e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
  - Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
  - Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
  - Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.
A:  13.0 V:   2.5 A-V: 10.479 ct:  0.204  52/ 52 43% 569% 24.1% 51 0

ds_fill_buffer: EOF reached (stream: audio)

Broken frame at 0x4B0A6
A:  26.2 V:   4.6 A-V: 21.567 ct:  0.416 105/105 27% 621% 26.3% 103 0
ds_fill_buffer: EOF reached (stream: video)
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)
A:  26.2 V:  26.4 A-V: -0.193 ct:  2.545 649/649 16% 646%  4.2% 103 0

^MEOF code: 1

Uninit audio filters...
[libaf] Removing filter dummy
uninit audio: mp3lib
uninit video: libmpeg2
vo: uninit ...

Exiting... (End of file)

Program exited normally.
-->8--

- mga




More information about the MPlayer-advusers mailing list