{"action":"created","issue":{"url":"https://api.github.com/repos/KenT2/pipresents-gapless/issues/61","repository_url":"https://api.github.com/repos/KenT2/pipresents-gapless","labels_url":"https://api.github.com/repos/KenT2/pipresents-gapless/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/KenT2/pipresents-gapless/issues/61/comments","events_url":"https://api.github.com/repos/KenT2/pipresents-gapless/issues/61/events","html_url":"https://github.com/KenT2/pipresents-gapless/issues/61","id":257420735,"node_id":"MDU6SXNzdWUyNTc0MjA3MzU=","number":61,"title":"OMX Player crashing after reboot","user":{"login":"mlein01","id":31928626,"node_id":"MDQ6VXNlcjMxOTI4NjI2","avatar_url":"https://avatars0.githubusercontent.com/u/31928626?v=4","gravatar_id":"","url":"https://api.github.com/users/mlein01","html_url":"https://github.com/mlein01","followers_url":"https://api.github.com/users/mlein01/followers","following_url":"https://api.github.com/users/mlein01/following{/other_user}","gists_url":"https://api.github.com/users/mlein01/gists{/gist_id}","starred_url":"https://api.github.com/users/mlein01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlein01/subscriptions","organizations_url":"https://api.github.com/users/mlein01/orgs","repos_url":"https://api.github.com/users/mlein01/repos","events_url":"https://api.github.com/users/mlein01/events{/privacy}","received_events_url":"https://api.github.com/users/mlein01/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-09-13T15:18:38Z","updated_at":"2018-09-12T10:45:29Z","closed_at":null,"author_association":"NONE","body":"I have an issue on my RasPi 3 running Gapless.\r\nVideo Memory is at 256MB and yet I still occasionally get a \"**Profile Error: omxplayer ended before loading track**\" when running a show.\r\n\r\n> References:\r\n> https://github.com/KenT2/pipresents-gapless/issues/1\r\n> https://github.com/KenT2/pipresents-gapless/issues/13\r\n\r\nThis only happens a few times after reboot, When trying to start the show with\r\n`DISPLAY=:0 /usr/bin/python /<parent>/pipresents-1.3b-gapless/pipresents.py -f -p cs_project` manually, this works fine for the rest of the time until I reboot the machine.\r\n\r\nWhen starting the show after reboot manually, everything works. When starting it with the same command above embedded in a .sh file, it fails some of the time...\r\n\r\nI see the issue at line 3.81 from the log below - Any idea?:\r\n```\r\n0.68 PiPresents: Pi Presents is starting, Version:1.3.1h\r\n0.68 PiPresents: sys.path[0] -  location of code: /<parent>/pipresents-1.3b-gapless\r\n0.68 PiPresents: User is: pi\r\n0.68 PiPresents: pp_home directory is: /home/pi/pp_home\r\n0.68 PiPresents: Trying pp_home at: /home/pi/pp_home (1)\r\n0.68 PiPresents: Found Requested Home Directory, using pp_home at: /home/pi/pp_home\r\n0.68 PiPresents: Found Requested profile - pp_profile directory is: /home/pi/pp_home/pp_profiles/cs_project\r\n0.87 PiPresents: native screen dimensions are 800 x 480 pixcels\r\n0.87 PiPresents: commanded screen dimensions are 800 x 480 pixcels\r\n0.89 KbdDriver: Fallback keys.cfg found at /<parent>/pipresents-1.3b-gapless/pp_config/keys.cfg\r\n0.89 KbdDriver: keys.cfg read from /<parent>/pipresents-1.3b-gapless/pp_config/keys.cfg\r\n0.89 ShowManager: Starting Show: mediashow from: start\r\n\r\n\r\n\r\n0.89 MediaShow: mediashow 0: Starting show\r\n0.90 MediaShow: mediashow 0: Waiting for trigger: start\r\n0.90 MediaShow: mediashow 0: Track type is: video\r\n0.90 MediaShow: Track type is: video\r\n0.90 MediaShow: Track to load is: /<parent>/localfiles/A.mp4\r\n0.90 VideoPlayer: Load track received from show Id: 0 /<parent>/localfiles/A.mp4\r\n0.97 OMXDriver: Send command to omxplayer: /usr/bin/omxplayer --no-keys  --no-osd -o hdmi --vol 0  --win \" 0 0 800 480 \"     --dbus_name 'org.mpris.MediaPlayer2.omxplayer15053151259' '/<parent>/localfiles/A.mp4'\r\n0.99 OMXDriver: waiting for bus address file /tmp/omxplayerdbus.pi\r\n1.41 OMXDriver: connected to omxplayer dbus after 4 centisecs\r\n1.41 OMXDriver: pause received after load\r\n1.41 OMXDriver: not paused so send pause after load\r\n2.90 VideoPlayer: Loading complete from show Id: 0 /<parent>/localfiles/A.mp4\r\n2.90 VideoPlayer: Got video duration from track, frezing at: 980087000 microsecs.\r\n2.90 VideoPlayer:       Entering state : loaded from show Id: 0\r\n2.91 MediaShow: Show Id 0 load complete with status: normal  message: video loaded\r\n2.91 VideoPlayer: >show track received from show Id: 0\r\n2.91 OMXDriver: Unpause received  to start showing\r\n2.91 OMXDriver: Is paused so Track unpaused  to start showing\r\n2.94 VideoPlayer: >showing track from show Id: 0\r\n3.81 VideoPlayer: end play signal received with reason: nice_day at: 611119\r\n3.81 VideoPlayer:       Entering state : closing from show Id: 0\r\n3.86 VideoPlayer:       State machine: closing\r\n3.86 VideoPlayer:             <omx process is dead\r\n3.86 VideoPlayer:       Entering state : closed from show Id: 0\r\n3.86 MediaShow: Closed after showing track with reason: normal and message: omxplayer closed\r\n3.86 MediaShow: mediashow 0: Track type is: image\r\n3.86 MediaShow: Track type is: image\r\n3.86 MediaShow: Track to load is: /<parent>/localfiles/picture.JPG\r\n4.23 MediaShow: Show Id 0 load complete with status: loaded  message: image track loaded\r\n4.24 ImagePlayer: >show track received from show Id: 0\r\n17.29 MediaShow: pause at end of showing track with reason: pause_at_end and message: user quit or duration exceeded\r\n17.29 MediaShow: mediashow 0: Track type is: image\r\n17.29 MediaShow: Track type is: image\r\n```\r\n\r\nThe script I referenced earlier is this:\r\n```\r\nFile: /<parent>/prog_display_files.sh\r\n\r\n#!/bin/bash\r\n####################################################################\r\n# Variables\r\n####################################################################\r\ncd /<parent>\r\npath=`pwd`\r\nconfig=/boot/project.conf\r\n\r\nexport XAUTHORITY=/home/pi/.Xauthority\r\nexport DISPLAY=:0\r\nexport PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\r\n\r\n####################################################################\r\n# Main Program Logic\r\n####################################################################\r\nrunuser -l pi -c 'DISPLAY=:0 /usr/bin/python /<parent>/pipresents-1.3b-gapless/pipresents.py -f -p cs_project -d' >> /<parent>/pipresents.log # added for debugging\r\n\r\nexit 0\r\n```"},"comment":{"url":"https://api.github.com/repos/KenT2/pipresents-gapless/issues/comments/420601806","html_url":"https://github.com/KenT2/pipresents-gapless/issues/61#issuecomment-420601806","issue_url":"https://api.github.com/repos/KenT2/pipresents-gapless/issues/61","id":420601806,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDYwMTgwNg==","user":{"login":"shobikag24","id":43204882,"node_id":"MDQ6VXNlcjQzMjA0ODgy","avatar_url":"https://avatars3.githubusercontent.com/u/43204882?v=4","gravatar_id":"","url":"https://api.github.com/users/shobikag24","html_url":"https://github.com/shobikag24","followers_url":"https://api.github.com/users/shobikag24/followers","following_url":"https://api.github.com/users/shobikag24/following{/other_user}","gists_url":"https://api.github.com/users/shobikag24/gists{/gist_id}","starred_url":"https://api.github.com/users/shobikag24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shobikag24/subscriptions","organizations_url":"https://api.github.com/users/shobikag24/orgs","repos_url":"https://api.github.com/users/shobikag24/repos","events_url":"https://api.github.com/users/shobikag24/events{/privacy}","received_events_url":"https://api.github.com/users/shobikag24/received_events","type":"User","site_admin":false},"created_at":"2018-09-12T10:45:29Z","updated_at":"2018-09-12T10:45:29Z","author_association":"NONE","body":"Hi All, Even I'm getting this error \"Profile Error: omxplayer ended before loading track\". I've read the issues and replies above and in that @KenT2 mentioned pipresents should be upgraded but I'm using the latest version 1.3.5 even though I'm getting the same issue. Please help me out!"}}
{"actor":{"display_login":"shobikag24"}}