willprice / python-omxplayer-wrapper

:tv: Control OMXPlayer, the Raspberry Pi media player, from Python
http://python-omxplayer-wrapper.readthedocs.io
GNU Lesser General Public License v3.0
253 stars 71 forks source link

Running as sudo causes crash #134

Closed tuxfoo closed 5 years ago

tuxfoo commented 5 years ago

Issue Report

I cannot run program as root/sudo, it causes program to crash.

Problem reproduction

Use any example script as a regular user and it works as expected. Then run it with sudo(or as root) and it will crash. dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

Environment details

Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 8.0 (jessie)
Release:        8.0
Codename:       jessie
python-dbus Version 1.2.0-3
Python 3.5.2
omxplayer Version  dfea8c9 
tuxfoo commented 5 years ago

I do not know what happened but the issue seemed to resolve itself. I have to deploy my program on a few more pi's next week so I will try to figure out the cause and solution.

willprice commented 5 years ago

Hmmm interesting. If it happens again check /tmp and see what omxplayer* files are present, it could be that one of the files that contains the dbus address didn't get cleaned up from a previous crash.