Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pb with multithread #1897

Closed
bobdenar opened this issue Sep 20, 2014 · 4 comments
Closed

Pb with multithread #1897

bobdenar opened this issue Sep 20, 2014 · 4 comments

Comments

@bobdenar
Copy link

Hi,

On synology the package crash now on startup :

Traceback (most recent call last):
File "/usr/local/headphones/share/Headphones/Headphones.py", line 22, in
from headphones import webstart, logger
File "/volume1/@appstore/headphones/share/Headphones/headphones/init.py", line 30, in
from headphones import versioncheck, logger, version
File "/volume1/@appstore/headphones/share/Headphones/headphones/versioncheck.py", line 23, in
from headphones import logger, version, request
File "/volume1/@appstore/headphones/share/Headphones/headphones/logger.py", line 39, in
queue = multiprocessing.Queue()
File "/usr/local/python/lib/python2.7/multiprocessing/init.py", line 218, in Queue
return Queue(maxsize)
File "/usr/local/python/lib/python2.7/multiprocessing/queues.py", line 63, in init
self._rlock = Lock()
File "/usr/local/python/lib/python2.7/multiprocessing/synchronize.py", line 147, in init
SemLock.init(self, SEMAPHORE, 1, 1)
File "/usr/local/python/lib/python2.7/multiprocessing/synchronize.py", line 75, in init
sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
OSError: [Errno 13] Permission denied

It there a way of disabling multithread usage ?

@basilfx
Copy link
Contributor

basilfx commented Sep 20, 2014

It has something to do with the running user that has no permission to /dev/shm. See http://stackoverflow.com/questions/2009278/python-multiprocessing-permission-denied.

I will submit a patch shortly, that will disable the feature. Do note that you have to manually upgrade (see Troubleshooting wiki).

@AdeHub
Copy link
Collaborator

AdeHub commented Sep 20, 2014

Can you try again with latest master

@AdeHub AdeHub reopened this Sep 20, 2014
@bobdenar
Copy link
Author

I managed to start using the site you mentioned. I've reverted the change (unmount /dev/shm and delete dir) and it is still working with your patch.

Thanks.

@AdeHub
Copy link
Collaborator

AdeHub commented Sep 20, 2014

Presuming this is ok now

@AdeHub AdeHub closed this as completed Sep 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants