Opened 10 years ago

Closed 10 years ago

#6834 closed defect (fixed)

Frontend crashes when rewind/fast forwarding a recording.

Reported by: tapio.sami@… Owned by: markk
Priority: minor Milestone: 0.22
Component: MythTV - Video Playback Version: head
Severity: low Keywords: vdpau
Cc: Ticket locked: no

Description

A show from one channel (I don't record other shows from that channel(YLE in Finland), so this might include the whole channel) is very prone to crash the FE. Hardly ever with just playing back the recording, but very frequently when I rewind/fast forward to seek the point where the show begins.

htpc:/home/mythtv# mythbackend --version Please include all output in bug reports. MythTV Version : 21210M MythTV Branch : trunk Network Protocol : 46 Library API : 0.22.20090811-1 QT Version : 4.5.2 Options compiled in:

linux debug using_alsa using_backend using_dvb using_frontend using_hdpvr using_iptv using_mheg using_opengl_video using_opengl_vsync using_qtwebkit using_v4l using_x11 using_xv using_xvmc using_xvmc_vld using_xvmcw using_bindings_perl using_bindings_python using_opengl using_vdpau using_ffmpeg_threads using_live using_mheg

Attachments (10)

yle-gdb1.txt (48.4 KB) - added by tapio.sami@… 10 years ago.
yle-myth1.log (61.7 KB) - added by tapio.sami@… 10 years ago.
yle-gdb2.txt (42.6 KB) - added by tapio.sami@… 10 years ago.
yle-myth2.log (45.1 KB) - added by tapio.sami@… 10 years ago.
yle-gdb3.txt (35.8 KB) - added by tapio.sami@… 10 years ago.
yle-myth3.log (202.2 KB) - added by tapio.sami@… 10 years ago.
yle-logs.rar (174.3 KB) - added by tapio.sami@… 10 years ago.
logs and backtraces with README
ffwd.gdb.txt (46.6 KB) - added by tapio.sami@… 10 years ago.
from different channel
ffwd.myth.log (79.8 KB) - added by tapio.sami@… 10 years ago.
from different channel
vdpau_flipqueue_locking.diff (3.0 KB) - added by markk 10 years ago.
Test patch - apply some locking around creation/deletion of flip queue.

Download all attachments as: .zip

Change History (18)

Changed 10 years ago by tapio.sami@…

Attachment: yle-gdb1.txt added

Changed 10 years ago by tapio.sami@…

Attachment: yle-myth1.log added

Changed 10 years ago by tapio.sami@…

Attachment: yle-gdb2.txt added

Changed 10 years ago by tapio.sami@…

Attachment: yle-myth2.log added

Changed 10 years ago by tapio.sami@…

Attachment: yle-gdb3.txt added

Changed 10 years ago by tapio.sami@…

Attachment: yle-myth3.log added

comment:1 Changed 10 years ago by tapio.sami@…

Here are couple of backtraces and logs. I have packaged them in rar file, cause of the size limitation. I have had quite a few logging options, in case I get a better logs to a backtrace of a rare crash... Maybe they help here also.

mythtv@htpc:~/bugreport$ mythbackend --version Please include all output in bug reports. MythTV Version : 21785M MythTV Branch : trunk Network Protocol : 48 Library API : 0.22.20090911-1 QT Version : 4.5.2 Options compiled in:

linux debug using_alsa using_backend using_dvb using_frontend using_hdpvr using_iptv using_mheg using_opengl_video using_opengl_vsync using_qtwebkit using_v4l using_x11 using_xv using_xvmc using_xvmc_vld using_xvmcw using_bindings_perl using_bindings_python using_opengl using_vdpau using_ffmpeg_threads using_live using_mheg

I will upload the show that caused these back traces. Maybe it helps to find the problem. It's available from URL below, I'm uploading there as I type this.

http://www.4shared.com/dir/18685654/d0534a68/sharing.html

Changed 10 years ago by tapio.sami@…

Attachment: yle-logs.rar added

logs and backtraces with README

comment:2 Changed 10 years ago by tapio.sami@…

This one seemed to happen just like the crashes I've reported earlier. But this time it was on a recording from another channel. I still have the same version of trunk as 2 days ago, 21785.

Changed 10 years ago by tapio.sami@…

Attachment: ffwd.gdb.txt added

from different channel

Changed 10 years ago by tapio.sami@…

Attachment: ffwd.myth.log added

from different channel

comment:3 Changed 10 years ago by Janne Grunau

Keywords: vdpau added
Owner: changed from Isaac Richards to markk
Status: newassigned

segfault is in X/vdpau

Changed 10 years ago by markk

Test patch - apply some locking around creation/deletion of flip queue.

comment:4 Changed 10 years ago by anonymous

Can you test the patch I've attached and see if it helps. thks. Mark

comment:5 Changed 10 years ago by markk

Status: assignedinfoneeded

comment:6 Changed 10 years ago by Tapio Sami <tapio.sami@…>

I've compiled your patch. Tomorrow comes the show that's been doing this with greatest propability, I'll report back after I've watched the show/tested rew&ffwd with it.

comment:7 Changed 10 years ago by Tapio Sami <tapio.sami@…>

It seems that the patch helps, no more segfaults. Thanks! While playing around with rew & ffwd I did get the FE stuck a couple of times. The video is paused, but the OSD is saying that we are rewinding with speed 5x. FE is unresponsive to keyboard. There is following lines coming to FE log, I used "-v all".

2009-10-03 13:30:18.162 WriteAudio?: Preparing 6144 bytes (1536 frames) 2009-10-03 13:30:18.165 AO: 21280 bytes free on soundcard 2009-10-03 13:30:18.167 AO: 21688 bytes free on soundcard 2009-10-03 13:30:18.168 NVP(0), Warning: Waited too long for decoder to pause

I have no idea if this is related to the fix or not.

comment:8 Changed 10 years ago by markk

Resolution: fixed
Status: infoneededclosed

(In [22245]) Add some locking around the creation/deletion of the VDPAU flip queue. Closes #6834.

Note: See TracTickets for help on using tickets.