libVLC 函数 media_player_new() 抛出分段错误 [英] libVLC function media_player_new() throws Segmentation Fault
问题描述
media_player_new() 抛出分段错误.
media_player_new() throws segmentation fault.
import vlc
ins=vlc.Instance()
player=ins.media_player_new()
这里是它崩溃的地方:
Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libvlc.dylib 0x000000010059aa78 libvlc_media_player_new + 24
libvlc.dylib 位于脚本所在的位置:/Applications/VLC.app/Contents/MacOS/lib
libvlc.dylib is in the place where script is looking: /Applications/VLC.app/Contents/MacOS/lib
vlc.py 可以在这里找到:git://git.videolan.org/vlc/bindings/python.git
vlc.py can be found here: git://git.videolan.org/vlc/bindings/python.git
任何想法为什么或如何调试?
Any ideas why or how to debug?
推荐答案
通过运行 export VERSIONER_PYTHON_PREFER_32_BIT=yes
以 32 位模式启动 Python 这不是一个理想的解决方案,但它对我有用.
Launch Python in 32 bit modes by running export VERSIONER_PYTHON_PREFER_32_BIT=yes
This is not an ideal solution, but it works for me.
应用这些补丁将真正解决问题:http://trac.videolan.org/vlc/ticket/4686
Applying these patches will fix the issue for real: http://trac.videolan.org/vlc/ticket/4686
这篇关于libVLC 函数 media_player_new() 抛出分段错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!