Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 06-17-09, 07:04 PM   #13
wbreu
Registered User
 
Join Date: Jun 2009
Posts: 9
Default Re: Segmention Fault with xine-vdpau and VDR

Hello stephen,

the file-upload is running.

files named with my nick.

Is this now a nvidia-vdpau-problem or a xine-vdpau-problem?

Great Job!

Wolfgang
wbreu is offline   Reply With Quote
Old 06-18-09, 01:42 AM   #14
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: Segmention Fault with xine-vdpau and VDR

You wrote:

If you need the full log from the console of VDR/xine-vdpau (ca. 8 MB), no problem.

Could you upload this, or attach it (it should compress very well)? There's one thing I'd like to check. Thanks.
Stephen Warren is offline   Reply With Quote
Old 06-18-09, 02:04 AM   #15
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: Segmention Fault with xine-vdpau and VDR

This is probably a xine bug.

I've decoded VDPAU's internal data structures, and found that there's at least one video surface allocated with size 1280x720 (VDPAU handle 4 in the core dump, which matches your earlier VDPAU_TRACE output). However, note that I also see handle 7, 8, 9, ... in VDPAU allocated as size 720x576.

If you look at your complete trace log, I suspect you'll find a vdp_video_surface_create call returning handle 4, with size parameters 1280x720. The allocation happens before the short log you uploaded starts.

Now, the vdp_video_surface_put_bits_y_cb_cr API doesn't specify the size of the data being uploaded to the surface. Instead, it requires that the application provide data that exactly matches the complete size of the surface. Hence, VDPAU is accessing 1280x720 pixels from the application data, but given the pitches xine is supplying, I guess there's only enough valid memory for 720x576 pixels to be read.

Hopefully, this is enough for the xine developers to look into the problem.
Stephen Warren is offline   Reply With Quote
Old 06-18-09, 09:57 AM   #16
crisalide
Registered User
 
Join Date: Dec 2008
Posts: 173
Default Re: Segmention Fault with xine-vdpau and VDR

Quote:
Originally Posted by Stephen Warren View Post
Now, the vdp_video_surface_put_bits_y_cb_cr API doesn't specify the size of the data being uploaded to the surface. Instead, it requires that the application provide data that exactly matches the complete size of the surface.
Ah, yes, soft_surface size update was only checking if (new_frame_size > current_frame_size).
r272 fixes that.
crisalide is offline   Reply With Quote
Old 06-18-09, 12:17 PM   #17
wbreu
Registered User
 
Join Date: Jun 2009
Posts: 9
Default Re: Segmention Fault with xine-vdpau and VDR

Hello stephen,

many thanks for your debugging!

I think the upload of the full-log is not necassery, or you need it for other things?

@crisalide,thank you for the very quick fixing in xine-vdpau

Wolfgang
wbreu is offline   Reply With Quote
Old 06-18-09, 12:18 PM   #18
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: Segmention Fault with xine-vdpau and VDR

Yes, since crisalide confirmed/fixed the issue, there's no need for the full log.
Stephen Warren is offline   Reply With Quote
Old 06-18-09, 01:40 PM   #19
wbreu
Registered User
 
Join Date: Jun 2009
Posts: 9
Default Re: Segmention Fault with xine-vdpau and VDR

Hello crisalide,

i've installed r272, the fix is great, the segfault never comes ever more.

Wolfgang
wbreu is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:34 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.