VLC run on arm bug:can't creat thread(Operation not permit)

*nix specific usage questions
eric.gl.CN
Blank Cone
Blank Cone
Posts: 51
Joined: 19 Mar 2009 03:18

VLC run on arm bug:can't creat thread(Operation not permit)

Postby eric.gl.CN » 19 Mar 2010 04:06

hi pal,
I have try to cross compile vlc and run it on arm, I already successfully cross compile it(use uclibc, I'm not sure wther it cause the problem). But when I run it , problems come:

Code: Select all

test@172 local]$ vlc VLC media player 1.0.1 Goldeneye [0x83170] main playlist fetcher error: cannot spawn secondary preparse thread [0x2c728] main playlist error: cannot create playlist fetcher [0x2c728] main playlist error: cannot spawn preparse thread [0x2c728] main playlist error: cannot create playlist preparser [0x2c728] main playlist error: cannot spawn playlist thread [0x831a8] main interface error: interface thread could not be created at interface/interface.c:151 (Operation not permitted) [0x831a8] main interface error: cannot spawn interface thread [0x122d8] main interface error: no suitable interface module [0x12170] main libvlc error: interface "signals" initialization failed [0x122d8] main interface error: no interface module matched "globalhotkeys,none" [0x122d8] main interface error: no suitable interface module [0x12170] main libvlc error: interface "globalhotkeys,none" initialization failed [0x12170] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. Remote control interface initialized. Type `help' for help. [0x12320] main interface error: interface thread could not be created at interface/interface.c:151 (Operation not permitted) [0x12320] main interface error: cannot spawn interface thread *** LibVLC Exception not handled: Interface initialization failed Set a breakpoint in 'libvlc_exception_not_handled' to debug.
it seems the vlc can not create the thread, so I check the source code, I find following:

Code: Select all

pthread_attr_t attr; pthread_attr_init (&attr); ret = pthread_attr_setstacksize (&attr, 512*1024); ret = pthread_create (p_handle, &attr, entry, data);
VLC use attr struct to create new thread , and change the stacksize,
If I change the code as this

Code: Select all

ret = pthread_create (p_handle, NULL, entry, data);
the vlc can run , but it will quit automaticlly without any error. maybe it has relationship whit the thread.......

and plus, I write a threadtest.c file use following code to create thread and it success

Code: Select all

pthread_attr_t attr; pthread_attr_init (&attr); ret = pthread_attr_setstacksize (&attr, 512*1024); ret = pthread_create (p_handle, &attr, entry, data);
I confused.....I doubt that VLC has any user permission to run the program just as create thead? cause VLC can not run with root. Maybe my board have a wrong user permission

Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 13 guests