Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Random Segfaults with mythfronted
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Nicias
Guru
Guru


Joined: 06 Dec 2005
Posts: 446

PostPosted: Mon Jun 15, 2009 5:33 pm    Post subject: Random Segfaults with mythfronted Reply with quote

I noticed that occassionally my frontend takes a while to start. I looked into logs the logs and I see that is segfaulting over and over before actually starting. Sometimes a dozen times. (The reason it keeps trying is I start it inside a 'while' loop in a bash script, incase I accidentally quit so that it starts again.)
Here is the relevant part of the log that cycles:
Code:
2009-06-14 18:20:41.491 user: 1001 effective user: 1001 before privileged thread
2009-06-14 18:20:41.491 user: 1001 effective user: 1001 run_priv_thread
2009-06-14 18:20:41.492 user: 1001 effective user: 1001 after privileged thread
2009-06-14 18:20:41.497 New DB connection, total: 2
2009-06-14 18:20:41.498 Connected to database 'mythconverg' at host: localhost
2009-06-14 18:20:41.504 mythfrontend version: 0.21.20080304-1 www.mythtv.org
2009-06-14 18:20:41.504 Enabled verbose msgs:  important general playback
2009-06-14 18:20:41.643 The theme (blootube) is missing a themeinfo.xml file
2009-06-14 18:20:41.644 The theme (blootube-osd) is missing a themeinfo.xml file
2009-06-14 18:20:41.645 Theme blootube-osd missing preview image.
2009-06-14 18:20:41.717 The theme (MythTVMediaCenter) is missing a themeinfo.xml file
2009-06-14 18:20:41.717 The theme (MythTVMediaCenterOSD) is missing a themeinfo.xml file
2009-06-14 18:20:41.717 Theme MythTVMediaCenterOSD missing preview image.
2009-06-14 18:20:41.874 The theme (blootube) is missing a themeinfo.xml file
2009-06-14 18:20:41.879 The theme (blootube-osd) is missing a themeinfo.xml file
2009-06-14 18:20:41.928 The theme (MythTVMediaCenter) is missing a themeinfo.xml file
2009-06-14 18:20:41.935 The theme (MythTVMediaCenterOSD) is missing a themeinfo.xml file
2009-06-14 18:20:41.986 max_width: 1024 max_height: 768
2009-06-14 18:20:42.219 No theme dir: /home/myth/.mythtv/themes/Retro
2009-06-14 18:20:42.223 Primary screen 0.
2009-06-14 18:20:42.225 Using screen 0, 1024x768 at 0,0
2009-06-14 18:20:42.227 No theme dir: /home/myth/.mythtv/themes/Retro
2009-06-14 18:20:42.228 Switching to square mode (Retro)
2009-06-14 18:20:42.273 Using the Qt painter
2009-06-14 18:20:42.274 JoystickMenuClient Error: Joystick disabled - Failed to
read /home/myth/.mythtv/joystickmenurc

and here is the dmesg output
Code:
mythfrontend[1228]: segfault at 6eaf9d68 ip b5e84170 sp bf97e6fc error 6
mythfrontend[1241]: segfault at 6f732e4c ip 6f732e4c sp bfe9c41c error 4
I think it does one line of those for every cycle in the other log. The backend log doesn't seem to notice anything. I also randomly crashes if I ask it to watch some rtjpeg recordings I have. When that happens I get this output in the frontend log:
Code:
2009-06-14 18:31:11.738 TV: Attempting to change from None to WatchingPreRecorded
2009-06-14 18:31:11.742 RingBuf(/mnt/media/tv/1006_20090614180100.nuv): OpenFile (/mnt/media/tv/1006_20090614180100.nuv, 12)
2009-06-14 18:31:11.743 RingBuf(/mnt/media/tv/1006_20090614180100.nuv): CalcRead AheadThresh(24 KB)
                         -> threshhold(64 KB) min read(0 KB) blk size(32 KB)
2009-06-14 18:31:11.822 detectInterlace(Ignore Scan, Interlaced Scan, 29.97,480) ->Interlaced Scan
2009-06-14 18:31:14.395 Opening audio device '/dev/dsp'. ch 2(2) sr 32000
2009-06-14 18:31:14.395 Opening OSS audio device '/dev/dsp'.
2009-06-14 18:31:14.406 RingBuf(/mnt/media/tv/1006_20090614180100.nuv): CalcReadAheadThresh(1 KB)
                         -> threshhold(64 KB) min read(0 KB) blk size(32 KB) 
2009-06-14 18:31:14.414 VideoOutput: Allowed renderers: xv-blit,xshm,xlib
2009-06-14 18:31:14.415 VideoOutput: Allowed renderers (filt: nuppel): xlib,xshm,xv-blit
2009-06-14 18:31:14.422 VDP: Accepting: cmp(>= 0 0) dec(ffmpeg) cpus(0) rend(xv-blit) osd(softblend) osdfade(enabled) deint(none,none) filt()
2009-06-14 18:31:14.422 VDP: LoadBestPreferences(2048x2048, 0)
2009-06-14 18:31:14.423 VDP: LoadBestPreferences(2048x2048, 60)
2009-06-14 18:31:14.423 VDP: LoadBestPreferences(640x480, 60)
2009-06-14 18:31:14.423 VideoOutput: Preferred renderer: xv-blit
2009-06-14 18:31:14.423 VideoOutput: Trying video renderer: xv-blit
2009-06-14 18:31:14.428 VDP: Accepting: cmp(>= 0 0) dec(ffmpeg) cpus(0) rend(xv-blit) osd(softblend) osdfade(enabled) deint(none,none) filt()
2009-06-14 18:31:14.429 VDP: LoadBestPreferences(2048x2048, 0)
2009-06-14 18:31:14.429 VDP: LoadBestPreferences(2048x2048, 60)
2009-06-14 18:31:14.464 VideoOutputXv: ctor
2009-06-14 18:31:14.473 XOff: 0, YOff: 0
2009-06-14 18:31:14.474 VDP: LoadBestPreferences(640x480, 60)
2009-06-14 18:31:14.475 Display Rect  left: 0, top: 0, width: 1024, height:768, aspect: 1.33333
2009-06-14 18:31:14.475 Video Rect    left: 0, top: 0, width: 640, height: 480, aspect: 1.33333
2009-06-14 18:31:14.479 VideoOutputXv: Pixel dimensions: Screen 1024x768, window 1024x768
2009-06-14 18:31:14.481 VideoOutputXv: Estimated display dimensions: 260x195 mm Aspect: 1.33333
2009-06-14 18:31:14.481 VideoOutputXv: Estimated window dimensions: 260x195 mm Aspect: 1.33333
2009-06-14 18:31:14.482 VideoOutputXv: InitSetupBuffers() render: xv-blit, allowed: xv-blit,xshm,xlib
2009-06-14 18:31:14.488 VDP: Accepting: cmp(>= 0 0) dec(ffmpeg) cpus(0) rend(xv-blit) osd(softblend) osdfade(enabled) deint(none,none) filt()
2009-06-14 18:31:14.488 VDP: LoadBestPreferences(2048x2048, 0)
2009-06-14 18:31:14.488 VDP: LoadBestPreferences(2048x2048, 60)
2009-06-14 18:31:14.488 VDP: LoadBestPreferences(640x480, 60)
2009-06-14 18:31:14.489 VideoOutputXv: @ j=0 Looking for flag[s]: XvInputMask XvImageMask  10
2009-06-14 18:31:14.489 VideoOutputXv: Adaptor#0: SIS 300/315/330 series Video Overlay has flag[s]: XvInputMask XvImageMask
2009-06-14 18:31:14.490 VideoOutputXv: Has XVideo flags...
2009-06-14 18:31:14.491 VideoOutputXv: Has XV_BRIGHTNESS...
2009-06-14 18:31:14.491 VideoOutputXv: Here...
2009-06-14 18:31:14.491 VideoOutputXv: Grabbed xv port 56
2009-06-14 18:31:14.492 VideoOutputXv: XVideo surface found on port 56
2009-06-14 18:31:14.492 VideoOutputXv: XVideo Adaptor Name: 'SIS 300/315/330 series Video Overlay'
2009-06-14 18:31:14.493 VideoOutputXv: XVideo Format #0 is 'YUY2'
2009-06-14 18:31:14.493 VideoOutputXv: XVideo Format #1 is 'YV12'
2009-06-14 18:31:14.493 VideoOutputXv: XVideo Format #2 is 'UYVY'
2009-06-14 18:31:14.493 VideoOutputXv: XVideo Format #3 is 'I420'
2009-06-14 18:31:14.493 VideoOutputXv: XVideo Format #4 is 'RV15'
2009-06-14 18:31:14.494 VideoOutputXv: XVideo Format #5 is 'RV16'
2009-06-14 18:31:14.494 VideoOutputXv: XVideo Format #6 is 'YVYU'
2009-06-14 18:31:14.494 VideoOutputXv: Using XVideo Format 'YV12'
2009-06-14 18:31:14.495 VideoOutputXv: CreateShmImages(32): video_dim: 640x480
2009-06-14 18:31:14.554 VDP: SetVideoRenderer(xv-blit)
2009-06-14 18:31:14.554 VDP: SetVideoRender(xv-blit) == GetVideoRenderer()
2009-06-14 18:31:14.555 Display Rect  left: 0, top: 0, width: 1024, height: 768, aspect: 1.33333
2009-06-14 18:31:14.555 Video Rect    left: 0, top: 0, width: 640, height: 480, aspect: 1.33333
2009-06-14 18:31:14.559 Over/underscan. V: 0.04, H: 0.04
2009-06-14 18:31:14.560 Display Rect  left: 0, top: 0, width: 1024, height: 768, aspect: 1.33333
2009-06-14 18:31:14.560 Video Rect    left: 26, top: 19, width: 589, height: 442, aspect: 1.33333
2009-06-14 18:31:14.560 VDP: LoadBestPreferences(640x480, 29.97)
2009-06-14 18:31:14.562 NVP: LoadFilters(''..) -> 0
2009-06-14 18:31:14.564 The theme (blootube-osd) is missing a themeinfo.xml file
2009-06-14 18:31:14.565 OSD Theme Dimensions W: 640 H: 480
2009-06-14 18:31:15.244 NVP: ClearAfterSeek(1)
2009-06-14 18:31:15.244 VideoOutputXv: ClearAfterSeek()
2009-06-14 18:31:15.244 VideoOutputXv: DiscardFrames(0)
2009-06-14 18:31:15.244 VideoBuffers::DiscardFrames(0): AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
2009-06-14 18:31:15.245 VideoBuffers::DiscardFrames(0): AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA -- done
2009-06-14 18:31:15.245 VideoOutputXv: DiscardFrames() 3: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA -- done()
2009-06-14 18:31:15.246 TV: StartPlayer(): took 3433 ms to start player.
2009-06-14 18:31:15.248 TV: Changing from None to WatchingPreRecorded
2009-06-14 18:31:15.252 VDP: GetFilteredDeint() : xv-blit -> 'none'
2009-06-14 18:31:15.255 FilterManager: failed to load filter 'none', no such filter exists
2009-06-14 18:31:15.255 Couldn't load deinterlace filter none
2009-06-14 18:31:15.255 Using deinterlace method
2009-06-14 18:31:15.257 nVidiaVideoSync: Could not open device /dev/nvidia0, No such file or directory
2009-06-14 18:31:15.257 DRMVideoSync: Could not open device /dev/dri/card0, No such file or directory
2009-06-14 18:31:15.258 RTCVideoSync: Could not set RTC frequency, Permission denied.
2009-06-14 18:31:15.260 Realtime priority would require SUID as root.
2009-06-14 18:31:15.262 Using audio as timebase
2009-06-14 18:31:15.262 Video timing method: USleep with busy wait
2009-06-14 18:31:15.263 Refresh rate: 16628, frame interval: 33366
2009-06-14 18:31:15.263 NVP: Waiting for prebuffer.. 0 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

When I ask it to watch those recordings and it works, what happens is all of the above and then this:
Code:

2009-06-14 18:39:50.083 Dec: DoFastForward(320 (0), do discard frames)
2009-06-14 18:39:50.083 NVD: SeekReset(300, 0, do flush, do discard)
2009-06-14 18:39:50.083 VideoOutputXv: DiscardFrames(1)
2009-06-14 18:39:50.084 VideoBuffers::DiscardFrames(1): UAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
2009-06-14 18:39:50.084 VideoBuffers::DiscardFrames(): AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA -- done()
2009-06-14 18:39:50.084 VideoBuffers::DiscardFrames(1): AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA -- done
2009-06-14 18:39:50.084 VideoOutputXv: DiscardFrames() 3: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA -- done()
2009-06-14 18:39:50.085 NVP: ClearAfterSeek(0)
2009-06-14 18:39:50.185 NVP: Waiting for prebuffer.. 1 AUUUUUUUULAAAAAAAAAAAAAAAAAAAAA
2009-06-14 18:39:50.262 RingBuf(/mnt/media/tv/1006_20090614180100.nuv): CalcReadAheadThresh(173867522 KB)
                         -> threshhold(64 KB) min read(0 KB) blk size(32 KB)
'video_output' mean = '33534.76', std. dev. = '2098.05', fps = '29.82'
2009-06-14 18:39:54.101 TV: Attempting to change from WatchingPreRecorded to None

(The last line is me backing out of watching the recording)
What is going on here?
Back to top
View user's profile Send private message
russTypeS
n00b
n00b


Joined: 14 May 2002
Posts: 12

PostPosted: Tue Jun 16, 2009 7:33 pm    Post subject: Reply with quote

This looks a lot like the problem I'm having:
https://forums.gentoo.org/viewtopic-t-765737-highlight-.html
Back to top
View user's profile Send private message
Nicias
Guru
Guru


Joined: 06 Dec 2005
Posts: 446

PostPosted: Tue Jun 16, 2009 9:28 pm    Post subject: Reply with quote

It does sound similiar. Do you have trouble playing any recordings? I never have trouble with my mpeg2 recordings, so you might not get that problem.

Does anything even happen when mythfrontend doesn't start?
Back to top
View user's profile Send private message
russTypeS
n00b
n00b


Joined: 14 May 2002
Posts: 12

PostPosted: Tue Jun 16, 2009 9:47 pm    Post subject: Reply with quote

It's rare that I can get mythfrontend to start at all, usually it just sits there and retries every few minutes until the box eventually crashes. Every now and then it will start but it usually doesn't last long.

Recordings are another issue all together. They record without audio. This is strange because when I just dump the raw mpeg stream off the card it has audio.

I also see mythfilldatabase segfaults in the log sometimes. We are both running the same version of mythtv. I read that the ~x86 version is broken or I would try it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum