FS#37199 - [VLC 2.1] Segfault

Attached to Project: Arch Linux
Opened by Dainis (XURL) - Friday, 04 October 2013, 20:12 GMT
Last edited by Bartłomiej Piotrowski (Barthalion) - Monday, 11 November 2013, 11:10 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Bartłomiej Piotrowski (Barthalion)
Architecture i686
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 9
Private No

Details

Description:

VLC 2.1.0-0-gedd8835 segfaults.

Additional info:

Attached output of "vlc -vvv".

Commit info:

https://projects.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/vlc&id=dcc9974c11b804d83ef21a3e38f00f4ef67dd4f2
   debug (7.9 KiB)
This task depends upon

Closed by  Bartłomiej Piotrowski (Barthalion)
Monday, 11 November 2013, 11:10 GMT
Reason for closing:  Fixed
Comment by Adam Hirst (aphirst) - Friday, 04 October 2013, 23:33 GMT
I can confirm the same behaviour. Updated my system, it installed ffmpeg-compat in addition to the VLC package update (2.1.0-3). Segfaults on startup, prior to drawing an application window.

Problem persists even if I pacman -Rsn vlc, delete all VLC config and cache files, and reinstall VLC.

Attached: output of vlc -vvv
   vlc.log (4.7 KiB)
Comment by Rafal Kupiec (belliash) - Saturday, 05 October 2013, 06:19 GMT
same behaviour here
Comment by Bartłomiej Piotrowski (Barthalion) - Saturday, 05 October 2013, 10:53 GMT
Sorry, I'm unable to reproduce the issue on x86_64.
Comment by Anthony Vital (anthon) - Saturday, 05 October 2013, 14:54 GMT
This happened when I had VDPAU (with nvidia drivers) decode enabled in vlc-2.1.0-2. After upgrade to vlc-2.1.0-3, VDPAU is not available anymore so vlc defaulted to VA API, resulting in a segfault.
I downgraded to vlc-2.1.0-2 and while VDPAU works as expected, choosing VA API makes vlc segfaults.
So two problems here:
- vlc-2.1.0-3 doesn't show the VDPAU option any more.
- vlc-2.1.0-2 (and maybe before) segfaults with VA API enabled.
   vlc.log (22.2 KiB)
Comment by Anthony Vital (anthon) - Monday, 07 October 2013, 15:11 GMT
Please ignore my last comment, it seems unrelated since it's not a segfault and it doesn't happen if no file is played.
Comment by Perfect_Gentleman (Perfect_Gentleman) - Tuesday, 08 October 2013, 13:03 GMT
confirm, vlc-2.1.0-3 doesn't show the VDPAU option any more.
Comment by Tom Yan (tom.ty89) - Wednesday, 09 October 2013, 17:25 GMT
The workaround for segfault in ArchWiki's VLC page works for me.
Comment by Adam Hirst (aphirst) - Wednesday, 09 October 2013, 18:06 GMT
Thanks Tom, that works for me as well. There isn't any explanation as to what this actually does on the wiki page, or why it ended up needing to be done for some people on this version upgrade but no others (certainly not for me any time before) - might there be a forum thread somewhere or some IRC logs shedding light on this?
Comment by Bartłomiej Piotrowski (Barthalion) - Wednesday, 09 October 2013, 18:27 GMT
Actually this command is executed in post_install and post_upgrade, so I don't understand why it would fix anything.
Comment by Adam Hirst (aphirst) - Wednesday, 09 October 2013, 18:35 GMT
In that case that's very, very odd. Might there be some reason it fails when ran during post_install/upgrade, or might it be worth attempting to do pre_install (if that's a thing)?

Oh, btw, I am also noticing that the VDPAU option has disappeared.
Comment by Bartłomiej Piotrowski (Barthalion) - Wednesday, 09 October 2013, 19:13 GMT
Please confirm if VLC built against extra/ffmpeg works for you.

http://pkgbuild.com/~barthalion/tmp/vlc-bugs/
Comment by Adam Hirst (aphirst) - Wednesday, 09 October 2013, 19:34 GMT
It does for me, yes, as far as I can tell. Loads fine, doesn't seem to implode if I enable VDPAU

EDIT 1: Doesn't seem to actually USE VDPAU for decoding, claims every file's profile is "not supported" if I run vlc with -vvv. Other players like mpv etc. use VDPAU just fine...

EDIT 2: Hang on, VLC randomly crashed in the middle of a file as I clicked the "Audio" menu option; unable to reproduce as yet...
Comment by Markus Holtermann (MarkusH) - Wednesday, 09 October 2013, 22:23 GMT
Not sure if it is related: I have vlc 2.1.0-3 with build date Fri 04 Oct 2013 07:15:39 PM CEST installed on x86_64. Each time I tried to play an mp3 file VLC just crashed. Downgrading taglib from 1.9 (testing) to 1.8 solved the problem.
Comment by Tom Yan (tom.ty89) - Monday, 14 October 2013, 09:02 GMT
https://projects.archlinux.org/svntogit/packages.git/tree/trunk/vlc.install?h=packages/vlc
I notice that there is a "/" after "-f " in this file while there isn't one in the ArchWiki page. Would that be a reason?
(I am NOT talking about the missing one at the beginning, which I believe it should be correct)

Btw, it also mentioned that one should reinstall AFTER running the command...
Can we set a "pre_upgrade" if necessary? LOL
Comment by slack3r (slack3r) - Tuesday, 22 October 2013, 09:11 GMT
Segfault me too.

Steps to reproduce:

1 - Start VLC

2 - Select: Tool--->Preferences--->Video

3 - Change 'Show Settings' from "Simple" to "All"

4 - Expand Video--->Output Modules

5 - Select "XVideo"

It crashes with segfault error (core dumped).

dmesg reports:
vlc[697]: segfault at 10 ip b7498280 sp b48d61e0 error 4 in libvlccore.so.7.0.0[b7401000+108000]

Package version: vlc-2.1.0-3-i686
Comment by Tom Yan (tom.ty89) - Tuesday, 22 October 2013, 09:18 GMT
It seems a bit unstable for me too. Moving the timeslider when playing a DVD could crash VLC. But I guess these are not the same issue as the first one? Btw is VLC 2.1 supposed to build with ffmpeg 2.0?
Comment by Tom Yan (tom.ty89) - Tuesday, 22 October 2013, 09:24 GMT
To slack3r: maybe you should try deleting the vlc folders in your home directory? (.config, .local/share, .cache)
Comment by slack3r (slack3r) - Tuesday, 22 October 2013, 09:28 GMT
@Tom Yan

Yes, I did it but nothing to do.
Comment by Tom Yan (tom.ty89) - Tuesday, 22 October 2013, 09:36 GMT
It only crash when you pick XVideo? Shouldn't XVideo be the default?
Comment by slack3r (slack3r) - Tuesday, 22 October 2013, 10:19 GMT
@Tom Yan

Yes, it crash when I try to pick XVideo settings in "advanced" mode. The default video output is Automatic.
Take a look: http://postimg.org/image/de04ukmud/

Also, when I play a video I get this notice:
[0xb0745678] main vout display error: Failed to resize display
Comment by Andrei Amuraritei (sirdeiu) - Wednesday, 23 October 2013, 18:46 GMT
@Barthalion Installing vlc from your http://pkgbuild.com/~barthalion/tmp/vlc-bugs/ works with VDPAU. You can enable it from VLC preferences and it is being used also. Just enable VDPAU in Input/Codecs and play .mkv file.
Thanks.
Comment by Adam Hirst (aphirst) - Tuesday, 29 October 2013, 19:31 GMT
I updated to extra/vlc 2.1.0-4 and thought I'd touch base again. For me, the VDPAU option is still missing from the menus (as with 2.1.0-3). I'm about to try Barthalion's build (again), and I'll report back with what I find.

EDIT: It runs, and _appears_ to use VDPAU (you can select it, at least), but subtitles don't seem to work. I get a popup error:

No suitable decoder module:
VLC does not support the audio or video format "ssa ". Unfortunately there is no way for you to fix this.

I have libass and stuff installed, since it all works fine with mpv.
Comment by Bartłomiej Piotrowski (Barthalion) - Tuesday, 29 October 2013, 19:44 GMT
That's because I haven't rebuilt "my" packages against new libass. I'll push VLC built against extra/ffmpeg in the following days.

Loading...