LibVLC media_player_new () function throws a segmentation error

media_player_new () causes a segmentation error.

import vlc
ins=vlc.Instance()
player=ins.media_player_new()

This is where it crashes:

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libvlc.dylib   0x000000010059aa78 libvlc_media_player_new + 24

libvlc.dylib is where the script is located: /Applications/VLC.app/Contents/MacOS/lib

vlc.py can be found here: git: //git.videolan.org/vlc/bindings/python.git

Any ideas why and how to debug?

+5
source share
1 answer

Run Python in 32-bit modes by running export VERSIONER_PYTHON_PREFER_32_BIT=yesThis is not an ideal solution, but it works for me.

Applying these patches will really solve the problem: http://trac.videolan.org/vlc/ticket/4686

+2
source

All Articles