Closed GoogleCodeExporter closed 8 years ago
debuggig info(segfault)
http://kuh3h3.naru.to/gnome-mplayer-bug.txt
Original comment by kuh...@gmail.com
on 30 Apr 2011 at 9:56
Can you run gnome-player -v from a terminal and capture the output
Original comment by kdeko...@gmail.com
on 30 Apr 2011 at 11:16
^_^[/media/sdc1]$ gnome-player -v
GNOME Mplayer v1.0.4beta
read mplayer config values: vo = xv
Running with GIO support
Using audio device: Default
The volume on 'Default' is 1.000000
Using match: type='signal',interface='com.gnome.mplayer'
Using match: type='signal',interface='org.gnome.SettingsDaemon'
Using match: type='signal',interface='org.gnome.SettingsDaemon.MediaKeys'
Proxy connections and Command connected
opening playlist
playlist detection = 0
adding file:///media/sdc1/ss.mp4 to playlist (cancel = 0)
getting file metadata for /media/sdc1/ss.mp4
mplayer -vo null -ao null -nomsgcolor -nomsgmodule -frames 0 -noidx -identify
-nocache -noidle /media/sdc1/ss.mp4
playing - file:///media/sdc1/ss.mp4
is playlist 0
Looking for cover art at /media/sdc1/cover.jpg
Looking for cover art at /media/sdc1/Folder.jpg
in media state change with state = 1
setting up mplayer
volume = 1.000000
mplayer -profile gnome-mplayer -vo xv -vf-add screenshot -quiet -slave -noidle
-noconsolecontrols -identify -volume 100 -softvol -osdlevel 0 -delay 0.000000
-subdelay 0.000000 -subpos 0 -wid 0x2c0005a -brightness 0 -contrast 0 -hue 0
-saturation 0 -nomsgcolor -nomsgmodule -ass -embeddedfonts -ass-font-scale 1.00
-ass-color ffffff00 /media/sdc1/ss.mp4
MPlayer SVN-r33333-4.5.2 (C) 2000-2011 MPlayer Team
ERROR: mplayer: could not connect to socket
162 audio & 361 video codecs
ERROR: mplayer: No such file or directory
ERROR: Failed to open LIRC support. You will not be able to use your remote
control.
Playing /media/sdc1/ss.mp4.
ERROR:
ERROR:
ERROR: MPlayer interrupted by signal 15 in module: preinit_libvo
killed
Original comment by kuh...@gmail.com
on 1 May 2011 at 12:24
when i kill gnome-mplayer, i have to go console(ctrl+alt+f2).
all gnome-session freezing,so can not input even keyboard typing.
Original comment by kuh...@gmail.com
on 1 May 2011 at 12:31
Please run this command and post the output
mplayer -profile gnome-mplayer -vo xv -vf-add screenshot -quiet -slave -noidle
-noconsolecontrols -identify -volume 100 -softvol -osdlevel 0 -delay 0.000000
-subdelay 0.000000 -subpos 0 -brightness 0 -contrast 0 -hue 0 -saturation 0
-nomsgcolor -nomsgmodule -ass -embeddedfonts -ass-font-scale 1.00 -ass-color
ffffff00 /media/sdc1/ss.mp4
Original comment by kdeko...@gmail.com
on 1 May 2011 at 12:33
umm this run is ok. no problems.
[/media/sdc1]$ mplayer -profile gnome-mplayer -vo xv -vf-add screenshot -quiet
-slave -noidle -noconsolecontrols -identify -volume 100 -softvol -osdlevel 0
-delay 0.000000 -subdelay 0.000000 -subpos 0 -brightness 0 -contrast 0 -hue 0
-saturation 0 -nomsgcolor -nomsgmodule -ass -embeddedfonts -ass-font-scale 1.00
-ass-color ffffff00 /media/sdc1/ss.mp4
MPlayer SVN-r33333-4.5.2 (C) 2000-2011 MPlayer Team
162 audio & 361 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing /media/sdc1/ss.mp4.
Cache fill: 2.35% (295963 bytes)
libavformat file format detected.
ID_VIDEO_ID=0
[lavf] stream 0: video (h264), -vid 0
ID_AUDIO_ID=0
[lavf] stream 1: audio (mp3), -aid 0, -alang und
VIDEO: [H264] 1024x576 24bpp 29.974 fps 1134.7 kbps (138.5 kbyte/s)
Clip info:
major_brand: isom
ID_CLIP_INFO_NAME0=major_brand
ID_CLIP_INFO_VALUE0=isom
minor_version: 512
ID_CLIP_INFO_NAME1=minor_version
ID_CLIP_INFO_VALUE1=512
compatible_brands: isomiso2avc1mp41
ID_CLIP_INFO_NAME2=compatible_brands
ID_CLIP_INFO_VALUE2=isomiso2avc1mp41
creation_time: 1970-01-01 00:00:00
ID_CLIP_INFO_NAME3=creation_time
ID_CLIP_INFO_VALUE3=1970-01-01 00:00:00
title: ss.mp4
ID_CLIP_INFO_NAME4=title
ID_CLIP_INFO_VALUE4=ss.mp4
encoder: Lavf52.78.3
ID_CLIP_INFO_NAME5=encoder
ID_CLIP_INFO_VALUE5=Lavf52.78.3
ID_CLIP_INFO_N=6
Load subtitles in /media/sdc1/
ID_FILENAME=/media/sdc1/ss.mp4
ID_DEMUXER=lavfpref
ID_VIDEO_FORMAT=H264
ID_VIDEO_BITRATE=1134736
ID_VIDEO_WIDTH=1024
ID_VIDEO_HEIGHT=576
ID_VIDEO_FPS=29.974
ID_VIDEO_ASPECT=1.7778
ID_AUDIO_FORMAT=85
ID_AUDIO_BITRATE=120608
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
ID_START_TIME=0.00
ID_LENGTH=1.90
ID_SEEKABLE=1
ID_CHAPTERS=0
Opening video filter: [ass auto=1]
[ass] auto-open
Opening video filter: [screenshot]
Opening video filter: [eq2]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
ID_VIDEO_CODEC=ffh264
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
ID_AUDIO_BITRATE=192000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=mp3
[Mixer] No hardware mixing, inserting volume filter.
Starting playback...
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
ID_VIDEO_ASPECT=1.7778
[swscaler @ 0x8a92620]using unscaled yuv420p -> rgb24 special converter
VO: [xv] 1024x576 => 1024x576 Planar YV12 [zoom]
Exiting... (End of file)
ID_EXIT=EOF
Original comment by kuh...@gmail.com
on 1 May 2011 at 12:38
Ok, I'll keep looking into it. The code runs fine on all three of my machines
each with a different os. So I'll have to see what I am missing.
Original comment by kdeko...@gmail.com
on 1 May 2011 at 12:44
If you go into the source code and edit the file
src/libgmtk/gmtk_media_player.c and change line 160 from
//gtk_widget_set_size_request(player->socket, 16, 16);
to
gtk_widget_set_size_request(player->socket, 16, 16);
And then recompile and rerun the code, does it still hang?
If you can't do that, can you try changing the vo from xv to x11 and see if
that prevents the hang.
Original comment by kdeko...@gmail.com
on 1 May 2011 at 12:17
sorry .your two suggestion(line 160 chane-recompile, vo change xv => x11) not
working.
same hang.
Original comment by kuh...@gmail.com
on 1 May 2011 at 1:27
Can you try SVN now. Not sure if it will help or not.
Original comment by kdeko...@gmail.com
on 1 May 2011 at 1:53
i`ll try it.
umm i think svn rev 2033 has no problems. there is maybe problems in changes
from rev 2034 to 2039.
especially window id related code.
Original comment by kuh...@gmail.com
on 1 May 2011 at 2:00
can`t compile svn 2042.
gmtk_audio_meter.c(69): error: struct "_GtkWidgetClass" has no field "draw"
widget_class->draw = gmtk_audio_meter_draw;
^
compilation aborted for gmtk_audio_meter.c (code 2)
i`ll go to rev 2033 back.
Original comment by kuh...@gmail.com
on 1 May 2011 at 2:15
Try r2044 and run configure before you try to compile. You pulled in my
config.h which uses GTK3
Original comment by kdeko...@gmail.com
on 1 May 2011 at 2:37
rev.2044 compile ok ,loading ok. no video no audio.
gnome-mplayer window (white screen) only hang but gnome session no hang, i can
kill it (with mouse).
Original comment by kuh...@gmail.com
on 1 May 2011 at 2:48
I think I've found a way to duplicate the problem I am seeing that is similar
to the problem you are seeing, but it difficult to do. I have to load a DVD,
but the error only happens when the disk is spun down first
Basically, the thread reading functions for some reason are not reading. I'm
trying to capture why but have not been able to figure it out yet.
Original comment by kdeko...@gmail.com
on 1 May 2011 at 2:50
rev.2044 debug message.
(gnm:26989): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in
cast to `GtkCheckMenuItem'
(gnm:26989): Gtk-CRITICAL **: IA__gtk_check_menu_item_get_active: assertion
`GTK_IS_CHECK_MENU_ITEM (check_menu_item)' failed
(gnm:26989): GLib-CRITICAL **: g_async_queue_length: assertion `queue' failed
(gnm:26989): GLib-CRITICAL **: g_async_queue_lock: assertion `queue' failed
(gnm:26989): GLib-CRITICAL **: g_async_queue_length_unlocked: assertion `queue'
failed
(gnm:26989): GLib-CRITICAL **: g_async_queue_unlock: assertion `queue' failed
(gnm:26989): GLib-CRITICAL **: g_async_queue_unref: assertion `queue' failed
(gnm:26989): GLib-CRITICAL **: g_thread_pool_unprocessed: assertion
`real->running' failed
(gnm:26989): GLib-CRITICAL **: g_thread_pool_free: assertion `real->running'
failed
(gnm:26989): GLib-CRITICAL **: g_thread_pool_unprocessed: assertion
`real->running' failed
(gnm:26989): GLib-CRITICAL **: g_thread_pool_free: assertion `real->running'
failed
(gnm:26989): GLib-CRITICAL **: g_thread_pool_unprocessed: assertion
`real->running' failed
(gnm:26989): GLib-CRITICAL **: g_thread_pool_free: assertion `real->running'
failed
^C
(gnm:26989): GLib-GObject-WARNING **: invalid unclassed pointer in cast to
`GmtkMediaPlayer'
(gnm:26989): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in
cast to `GtkCheckMenuItem'
(gnm:26989): Gtk-CRITICAL **: IA__gtk_check_menu_item_get_active: assertion
`GTK_IS_CHECK_MENU_ITEM (check_menu_item)' failed
(gnm:26989): GLib-GObject-WARNING **: invalid unclassed pointer in cast to
`GmtkMediaPlayer'
^C
(gnm:26989): GLib-GObject-WARNING **: invalid unclassed pointer in cast to
`GmtkMediaPlayer'
(gnm:26989): GLib-CRITICAL **: g_thread_pool_unprocessed: assertion
`real->running' failed
(gnm:26989): GLib-CRITICAL **: g_thread_pool_free: assertion `real->running'
failed
(gnm:26989): Gtk-CRITICAL **: IA__gtk_main_quit: assertion `main_loops != NULL'
failed
^C
(gnm:26989): GLib-GObject-WARNING **: invalid unclassed pointer in cast to
`GmtkMediaPlayer'
(gnm:26989): GLib-CRITICAL **: g_thread_pool_unprocessed: assertion
`real->running' failed
Original comment by kuh...@gmail.com
on 1 May 2011 at 3:15
When did those come out? When you killed the process?
Original comment by kdeko...@gmail.com
on 1 May 2011 at 3:29
Can you please give SVN r2046 a try?
Original comment by kdeko...@gmail.com
on 1 May 2011 at 6:11
r2046 loading ok, video audio ok,
but after play complete, hang or not.sometimes hang, somteimes not.
when hang, message is " in media state change with-state = o " and all
gnome-session hang, have to go console and kill it.
when hang not, message is " in media state change with-state = o "
"thread_query, player is dead" and no problems.
~~~check your media state related(thread query) code.
gui.c line 1522
gmtk_media_player_set_state(GMTK_MEDIA_PLAYER(media), MEDIA_STATE_QUIT);
while (gtk_events_pending()) {
gtk_main_iteration();
}
if (control_id == 0) {
g_thread_pool_stop_unused_threads();
if (retrieve_metadata_pool != NULL) {
while (gtk_events_pending() || g_thread_pool_unprocessed(retrieve_metadata_pool)) {
gtk_main_iteration();
}
g_thread_pool_free(retrieve_metadata_pool, TRUE, TRUE);
}
} else {
while (gtk_events_pending()) {
gtk_main_iteration();
}
dbus_cancel();
}
Original comment by kuh...@gmail.com
on 2 May 2011 at 5:09
I think I figured this out in r2053, I was making GTK changes from the thread.
Pretty sure that is what was causing the hang ups.
Original comment by kdeko...@gmail.com
on 2 May 2011 at 2:45
great thanks.now everythings ok.
Original comment by kuh...@gmail.com
on 2 May 2011 at 3:07
whew... thanks for testing
Original comment by kdeko...@gmail.com
on 2 May 2011 at 3:15
Original issue reported on code.google.com by
kuh...@gmail.com
on 30 Apr 2011 at 9:35