colloqi / piSignage

Digital Signage Player Software for Raspberry Pi, more details at
http://pisignage.com
596 stars 252 forks source link

Player 2 4.9.3 pisignage.js process crashing #213

Open davidflypei opened 1 year ago

davidflypei commented 1 year ago

I randomly have a player freezing output within a few minutes of starting content. Doesn't seem to matter the video that's playing. It's different every time. Sometimes the video freezes, and sometimes it is just a black screen. I can force it to play a playlist from the server. If it doesn't crash in that playlist, then it will continue with the normal content that it's supposed to till it crashes again.

Sometimes watchdog kills the video for some reason. All the asset durations are set correctly and work fine on the old player software. I think this is when the screen is going black. The video gets killed before it crashes so it crashes on a black screen.

Sometimes it crashes during the video which causes it to just freeze that frame. It's been 20 minutes since this log and this is still the last output. (other than my commands to get the log through the server) Watchdog hasn't killed anything.

Log Output ``` 2023-06-16T14:08:25: -------------------------------------------------------------------- 2023-06-16T14:08:25: -------------------------------------------------------------------- 2023-06-16T14:08:25: -------------------------------------------------------------------- 2023-06-16T14:08:25: [ Fri, 16 Jun 2023 17:08:25 GMT ]: Restarting the piSignage app 2023-06-16T14:08:25: log levels for messages: Main:info,Player:info,Network:info,Redux:undefined, 2023-06-16T14:08:25: -------------------------------------------------------------------- 2023-06-16T14:08:27: stderr in finding PID of cat /dev/input/by-id: 2023-06-16T14:08:27: Software details: version:4.9.3;473_11_script_2022-06-11, server:https://pisignage.com 2023-06-16T14:08:28: System Volume has been set to 0 2023-06-16T14:08:28: Network interfaces: [{"type":"wlan0","ip":"192.168.1.121","mac":"e4:5f:01:c3:e7:91"}] 2023-06-16T14:08:28: Ethernet MAC:e4:5f:01:c3:e7:8f, Wifi MAC:e4:5f:01:c3:e7:91 2023-06-16T14:08:32: nwdiag: {"LINK":"DOWN","DHCP":" 192.168.1.4","PING":"OK","DNS":"OK","NETSTATUS":"FAIL" } 2023-06-16T14:08:32: 2023-06-16T14:08:32: Ethernet MAC:e4:5f:01:c3:e7:8f, Wifi MAC:e4:5f:01:c3:e7:91 2023-06-16T14:08:32: Using Ethernet Mac Address for device-id: e4:5f:01:c3:e7:8f 2023-06-16T14:08:32: Player device id: *************** 2023-06-16T14:08:32: Screen resolution from xrandr: 1920,1080 2023-06-16T14:08:32: Available displays: [{"interfaceName":"HDMI-1","interfaceResolutionAndOffset":"1920x1080+0+0","offset":[0,0],"resolution":[1920,1080]}] 2023-06-16T14:08:32: Changing display:HDMI-1 value for resolution to --auto 2023-06-16T14:08:32: Changing display:HDMI-1 value for orientation to normal 2023-06-16T14:08:32: Screen resolution from xrandr: 1920,1080 2023-06-16T14:08:33: Available displays: [{"interfaceName":"HDMI-1","interfaceResolutionAndOffset":"1920x1080+0+0","offset":[0,0],"resolution":[1920,1080]}] 2023-06-16T14:08:33: Display Interfaces: [ 2023-06-16T14:08:33: { 2023-06-16T14:08:33: interfaceName: 'HDMI-1', 2023-06-16T14:08:33: interfaceResolutionAndOffset: '1920x1080+0+0', 2023-06-16T14:08:33: offset: [ 0, 0 ], 2023-06-16T14:08:33: resolution: [ 1920, 1080 ] 2023-06-16T14:08:33: } 2023-06-16T14:08:33: ] 2023-06-16T14:08:33: Screen resolution from xrandr: 1920,1080 2023-06-16T14:08:33: Server after change: https://pisignage.com 2023-06-16T14:08:33: License status: true 2023-06-16T14:08:33: (node:965) [DEP0106] DeprecationWarning: crypto.createDecipher is deprecated. 2023-06-16T14:08:33: (Use `node --trace-deprecation ...` to show where the warning was created) 2023-06-16T14:08:33: No USB devices for input are present 2023-06-16T14:08:33: [Error: ENOENT: no such file or directory, scandir '/dev/input/by-id'] { 2023-06-16T14:08:33: errno: -2, 2023-06-16T14:08:33: code: 'ENOENT', 2023-06-16T14:08:33: syscall: 'scandir', 2023-06-16T14:08:33: path: '/dev/input/by-id' 2023-06-16T14:08:33: } 2023-06-16T14:08:33: omxplayer is not available for playing videos 2023-06-16T14:08:33: cvlc is present at /usr/bin/cvlc 2023-06-16T14:08:33: 2023-06-16T14:08:33: mpv is present at /usr/bin/mpv 2023-06-16T14:08:33: 2023-06-16T14:08:33: Evince is present at /usr/bin/evince 2023-06-16T14:08:33: 2023-06-16T14:08:33: feh image program is present at /usr/bin/feh 2023-06-16T14:08:33: 2023-06-16T14:08:33: pqiv image program is present at /usr/bin/pqiv 2023-06-16T14:08:33: 2023-06-16T14:08:33: ticker program is present at /usr/local/bin/ticker 2023-06-16T14:08:33: 2023-06-16T14:08:33: WebUI server listening on port 8000 2023-06-16T14:08:33: the total SD card usage, total: 118G,used: 8.4G,available: 105G 2023-06-16T14:08:33: Starting websocket server with internal browser, port 9999 2023-06-16T14:08:34: exec command error: Error: Command failed: sed -i 's/"can_make_payment_enabled"\s*:\s*true/"can_make_payment_enabled":false/' /home/pi/apps-data/.config/chromium/kiosk/Default/Preferences 2023-06-16T14:08:34: sed: can't read /home/pi/apps-data/.config/chromium/kiosk/Default/Preferences: No such file or directory 2023-06-16T14:08:34: 2023-06-16T14:08:34: exec command error: Error: Command failed: sed -i 's/"credit_card_enabled"\s*:\s*true/"credit_card_enabled":false/' /home/pi/apps-data/.config/chromium/kiosk/Default/Preferences 2023-06-16T14:08:34: sed: can't read /home/pi/apps-data/.config/chromium/kiosk/Default/Preferences: No such file or directory 2023-06-16T14:08:34: 2023-06-16T14:08:34: exec command error: Error: Command failed: sed -i 's/"credentials_enable_autosignin"\s*:\s*true/"credentials_enable_autosignin":false/' /home/pi/apps-data/.config/chromium/kiosk/Default/Preferences 2023-06-16T14:08:34: sed: can't read /home/pi/apps-data/.config/chromium/kiosk/Default/Preferences: No such file or directory 2023-06-16T14:08:34: 2023-06-16T14:08:34: exec command error: Error: Command failed: sed -i 's/"credentials_enable_service"\s*:\s*true/"credentials_enable_service":false/' /home/pi/apps-data/.config/chromium/kiosk/Default/Preferences 2023-06-16T14:08:34: sed: can't read /home/pi/apps-data/.config/chromium/kiosk/Default/Preferences: No such file or directory 2023-06-16T14:08:34: 2023-06-16T14:08:34: exec command error: Error: Command failed: sed -i 's/"profile_enabled"\s*:\s*true/"profile_enabled":false/' /home/pi/apps-data/.config/chromium/kiosk/Default/Preferences 2023-06-16T14:08:34: sed: can't read /home/pi/apps-data/.config/chromium/kiosk/Default/Preferences: No such file or directory 2023-06-16T14:08:34: 2023-06-16T14:08:34: exec command error: Error: Command failed: sed -i 's/"can_make_payment_enabled"\s*:\s*true/"can_make_payment_enabled":false/' /home/pi/apps-data/.config/chromium/weblink-0/Default/Preferences 2023-06-16T14:08:34: sed: can't read /home/pi/apps-data/.config/chromium/weblink-0/Default/Preferences: No such file or directory 2023-06-16T14:08:34: 2023-06-16T14:08:34: exec command error: Error: Command failed: sed -i 's/"credit_card_enabled"\s*:\s*true/"credit_card_enabled":false/' /home/pi/apps-data/.config/chromium/weblink-0/Default/Preferences 2023-06-16T14:08:34: sed: can't read /home/pi/apps-data/.config/chromium/weblink-0/Default/Preferences: No such file or directory 2023-06-16T14:08:34: 2023-06-16T14:08:34: exec command error: Error: Command failed: sed -i 's/"credentials_enable_autosignin"\s*:\s*true/"credentials_enable_autosignin":false/' /home/pi/apps-data/.config/chromium/weblink-0/Default/Preferences 2023-06-16T14:08:34: sed: can't read /home/pi/apps-data/.config/chromium/weblink-0/Default/Preferences: No such file or directory 2023-06-16T14:08:34: 2023-06-16T14:08:34: exec command error: Error: Command failed: sed -i 's/"credentials_enable_service"\s*:\s*true/"credentials_enable_service":false/' /home/pi/apps-data/.config/chromium/weblink-0/Default/Preferences 2023-06-16T14:08:34: sed: can't read /home/pi/apps-data/.config/chromium/weblink-0/Default/Preferences: No such file or directory 2023-06-16T14:08:34: 2023-06-16T14:08:34: exec command error: Error: Command failed: sed -i 's/"profile_enabled"\s*:\s*true/"profile_enabled":false/' /home/pi/apps-data/.config/chromium/weblink-0/Default/Preferences 2023-06-16T14:08:34: sed: can't read /home/pi/apps-data/.config/chromium/weblink-0/Default/Preferences: No such file or directory 2023-06-16T14:08:34: 2023-06-16T14:08:34: exec command error: Error: Command failed: sed -i 's/"can_make_payment_enabled"\s*:\s*true/"can_make_payment_enabled":false/' /home/pi/apps-data/.config/chromium/weblink-1/Default/Preferences 2023-06-16T14:08:34: sed: can't read /home/pi/apps-data/.config/chromium/weblink-1/Default/Preferences: No such file or directory 2023-06-16T14:08:34: 2023-06-16T14:08:34: exec command error: Error: Command failed: sed -i 's/"credit_card_enabled"\s*:\s*true/"credit_card_enabled":false/' /home/pi/apps-data/.config/chromium/weblink-1/Default/Preferences 2023-06-16T14:08:34: sed: can't read /home/pi/apps-data/.config/chromium/weblink-1/Default/Preferences: No such file or directory 2023-06-16T14:08:34: 2023-06-16T14:08:34: exec command error: Error: Command failed: sed -i 's/"credentials_enable_autosignin"\s*:\s*true/"credentials_enable_autosignin":false/' /home/pi/apps-data/.config/chromium/weblink-1/Default/Preferences 2023-06-16T14:08:34: sed: can't read /home/pi/apps-data/.config/chromium/weblink-1/Default/Preferences: No such file or directory 2023-06-16T14:08:34: 2023-06-16T14:08:34: exec command error: Error: Command failed: sed -i 's/"credentials_enable_service"\s*:\s*true/"credentials_enable_service":false/' /home/pi/apps-data/.config/chromium/weblink-1/Default/Preferences 2023-06-16T14:08:34: sed: can't read /home/pi/apps-data/.config/chromium/weblink-1/Default/Preferences: No such file or directory 2023-06-16T14:08:34: 2023-06-16T14:08:34: exec command error: Error: Command failed: sed -i 's/"profile_enabled"\s*:\s*true/"profile_enabled":false/' /home/pi/apps-data/.config/chromium/weblink-1/Default/Preferences 2023-06-16T14:08:34: sed: can't read /home/pi/apps-data/.config/chromium/weblink-1/Default/Preferences: No such file or directory 2023-06-16T14:08:34: 2023-06-16T14:08:34: exec command error: Error: Command failed: sed -i 's/"can_make_payment_enabled"\s*:\s*true/"can_make_payment_enabled":false/' /home/pi/apps-data/.config/chromium/weblink-2/Default/Preferences 2023-06-16T14:08:34: sed: can't read /home/pi/apps-data/.config/chromium/weblink-2/Default/Preferences: No such file or directory 2023-06-16T14:08:34: 2023-06-16T14:08:34: exec command error: Error: Command failed: sed -i 's/"credit_card_enabled"\s*:\s*true/"credit_card_enabled":false/' /home/pi/apps-data/.config/chromium/weblink-2/Default/Preferences 2023-06-16T14:08:34: sed: can't read /home/pi/apps-data/.config/chromium/weblink-2/Default/Preferences: No such file or directory 2023-06-16T14:08:34: 2023-06-16T14:08:34: exec command error: Error: Command failed: sed -i 's/"credentials_enable_autosignin"\s*:\s*true/"credentials_enable_autosignin":false/' /home/pi/apps-data/.config/chromium/weblink-2/Default/Preferences 2023-06-16T14:08:34: sed: can't read /home/pi/apps-data/.config/chromium/weblink-2/Default/Preferences: No such file or directory 2023-06-16T14:08:34: 2023-06-16T14:08:34: exec command error: Error: Command failed: sed -i 's/"credentials_enable_service"\s*:\s*true/"credentials_enable_service":false/' /home/pi/apps-data/.config/chromium/weblink-2/Default/Preferences 2023-06-16T14:08:34: sed: can't read /home/pi/apps-data/.config/chromium/weblink-2/Default/Preferences: No such file or directory 2023-06-16T14:08:34: 2023-06-16T14:08:34: exec command error: Error: Command failed: sed -i 's/"profile_enabled"\s*:\s*true/"profile_enabled":false/' /home/pi/apps-data/.config/chromium/weblink-2/Default/Preferences 2023-06-16T14:08:34: sed: can't read /home/pi/apps-data/.config/chromium/weblink-2/Default/Preferences: No such file or directory 2023-06-16T14:08:34: 2023-06-16T14:08:34: exec command error: Error: Command failed: sed -i 's/"can_make_payment_enabled"\s*:\s*true/"can_make_payment_enabled":false/' /home/pi/apps-data/.config/chromium/weblink-3/Default/Preferences 2023-06-16T14:08:34: sed: can't read /home/pi/apps-data/.config/chromium/weblink-3/Default/Preferences: No such file or directory 2023-06-16T14:08:34: 2023-06-16T14:08:34: exec command error: Error: Command failed: sed -i 's/"credit_card_enabled"\s*:\s*true/"credit_card_enabled":false/' /home/pi/apps-data/.config/chromium/weblink-3/Default/Preferences 2023-06-16T14:08:34: sed: can't read /home/pi/apps-data/.config/chromium/weblink-3/Default/Preferences: No such file or directory 2023-06-16T14:08:34: 2023-06-16T14:08:34: exec command error: Error: Command failed: sed -i 's/"credentials_enable_autosignin"\s*:\s*true/"credentials_enable_autosignin":false/' /home/pi/apps-data/.config/chromium/weblink-3/Default/Preferences 2023-06-16T14:08:34: sed: can't read /home/pi/apps-data/.config/chromium/weblink-3/Default/Preferences: No such file or directory 2023-06-16T14:08:34: 2023-06-16T14:08:34: exec command error: Error: Command failed: sed -i 's/"credentials_enable_service"\s*:\s*true/"credentials_enable_service":false/' /home/pi/apps-data/.config/chromium/weblink-3/Default/Preferences 2023-06-16T14:08:34: sed: can't read /home/pi/apps-data/.config/chromium/weblink-3/Default/Preferences: No such file or directory 2023-06-16T14:08:34: 2023-06-16T14:08:34: exec command error: Error: Command failed: sed -i 's/"profile_enabled"\s*:\s*true/"profile_enabled":false/' /home/pi/apps-data/.config/chromium/weblink-3/Default/Preferences 2023-06-16T14:08:34: sed: can't read /home/pi/apps-data/.config/chromium/weblink-3/Default/Preferences: No such file or directory 2023-06-16T14:08:34: 2023-06-16T14:08:35: exec command error: Error: Command failed: sed -i 's/"can_make_payment_enabled"\s*:\s*true/"can_make_payment_enabled":false/' /home/pi/apps-data/.config/chromium/weblink-4/Default/Preferences 2023-06-16T14:08:35: sed: can't read /home/pi/apps-data/.config/chromium/weblink-4/Default/Preferences: No such file or directory 2023-06-16T14:08:35: 2023-06-16T14:08:35: exec command error: Error: Command failed: sed -i 's/"credit_card_enabled"\s*:\s*true/"credit_card_enabled":false/' /home/pi/apps-data/.config/chromium/weblink-4/Default/Preferences 2023-06-16T14:08:35: sed: can't read /home/pi/apps-data/.config/chromium/weblink-4/Default/Preferences: No such file or directory 2023-06-16T14:08:35: 2023-06-16T14:08:35: exec command error: Error: Command failed: sed -i 's/"credentials_enable_autosignin"\s*:\s*true/"credentials_enable_autosignin":false/' /home/pi/apps-data/.config/chromium/weblink-4/Default/Preferences 2023-06-16T14:08:35: sed: can't read /home/pi/apps-data/.config/chromium/weblink-4/Default/Preferences: No such file or directory 2023-06-16T14:08:35: 2023-06-16T14:08:35: exec command error: Error: Command failed: sed -i 's/"credentials_enable_service"\s*:\s*true/"credentials_enable_service":false/' /home/pi/apps-data/.config/chromium/weblink-4/Default/Preferences 2023-06-16T14:08:35: sed: can't read /home/pi/apps-data/.config/chromium/weblink-4/Default/Preferences: No such file or directory 2023-06-16T14:08:35: 2023-06-16T14:08:35: exec command error: Error: Command failed: sed -i 's/"profile_enabled"\s*:\s*true/"profile_enabled":false/' /home/pi/apps-data/.config/chromium/weblink-4/Default/Preferences 2023-06-16T14:08:35: sed: can't read /home/pi/apps-data/.config/chromium/weblink-4/Default/Preferences: No such file or directory 2023-06-16T14:08:35: 2023-06-16T14:08:35: Browser loading http://127.0.0.1:8000/layouts/1.html; Running as PID 1409 2023-06-16T14:08:41: Chrome loaded page for screen: 0 /layouts/1.html;?screen=0 2023-06-16T14:08:41: Socket is not available to send data: ["upload","****************","/home/pi/forever_out.log","2023-06-16T13:16:38: at /home/pi/player2/pisignage.js:1:111513\n2023-06-16T13:16:38: at Generator.next ()\n2023-06-16T13:25: 2023-06-16T14:08:41: Spawning wget -rNnHd,--no-directories,--no-if-modified-since,--follow-tags=a,--no-parent,--no-check-certificate,-t,20,--waitretry,60,--retry-connrefused,--no-cache,-R,Show All,https://pisignage.com/sync_folders/greathobbies/Show All; with PID 1535 2023-06-16T14:08:41: Setting the resolution watch 2023-06-16T14:08:41: Starting websocket client to wss://pisignage.com/websocket 2023-06-16T14:08:41: *** Cron job for reboot set at 0:0 2023-06-16T14:08:42: *** Changing Playlist *** to system_notice 6/16/2023, 2:08:41 PM 2023-06-16T14:08:42: cec support: opening a connection to the CEC adapter... 2023-06-16T14:08:42: requesting CEC bus information ... 2023-06-16T14:08:42: CEC bus information 2023-06-16T14:08:42: =================== 2023-06-16T14:08:42: device #1: Recorder 1 2023-06-16T14:08:42: address: 1.0.0.0 2023-06-16T14:08:42: active source: no 2023-06-16T14:08:42: vendor: Pulse Eight 2023-06-16T14:08:42: osd string: CECTester 2023-06-16T14:08:42: CEC version: 1.4 2023-06-16T14:08:42: power status: on 2023-06-16T14:08:42: language: eng 2023-06-16T14:08:42: 2023-06-16T14:08:42: 2023-06-16T14:08:42: currently active source: unknown (-1) 2023-06-16T14:08:42: ;stderr: 2023-06-16T14:08:42: *** CEC is NOT supported *** 2023-06-16T14:08:42: Chrome loaded page for screen: 0 /layouts/1.html;?screen=0&token=8 2023-06-16T14:08:42: Websocket: connected to server 2023-06-16T14:09:08: Device not ready, skipping onChange for playlist-observer 2023-06-16T14:09:08: Stopping Lounge music 2023-06-16T14:09:08: Device ready to play playlists 2023-06-16T14:09:08: Schedule is changed to playlist Planes 2023-06-16T14:09:08: *** Changing Playlist *** to Planes 6/16/2023, 2:09:08 PM 2023-06-16T14:09:08: Chrome loaded page for screen: 0 /layouts/1.html;?screen=0&token=21 2023-06-16T14:09:19: wget stopped with code 0 and signal null; downloadInProgressCount: 1 2023-06-16T14:09:20: Copied server files for the group Show All successfully. 2023-06-16T14:09:20: Stopping Lounge music 2023-06-16T14:09:20: *** Changing Playlist *** to Planes 6/16/2023, 2:09:20 PM 2023-06-16T14:09:20: Chrome loaded page for screen: 0 /layouts/1.html;?screen=0&token=35 2023-06-16T14:10:00: TypeError: Cannot read property 'main' of undefined 2023-06-16T14:10:00: at e (/home/pi/player2/pisignage.js:1:87325) 2023-06-16T14:10:00: at e.next () 2023-06-16T14:10:00: at Ni (/home/pi/player2/pisignage.js:1:84834) 2023-06-16T14:10:00: at a (/home/pi/player2/pisignage.js:1:87620) 2023-06-16T14:10:00: at /home/pi/player2/pisignage.js:1:87681 2023-06-16T14:10:00: at new Promise () 2023-06-16T14:10:00: at t (/home/pi/player2/pisignage.js:1:87560) 2023-06-16T14:10:00: at /home/pi/player2/pisignage.js:1:87726 2023-06-16T14:10:00: at /home/pi/player2/pisignage.js:1:111513 2023-06-16T14:10:00: at Generator.next () ```

Also doesn't seem to be specific to one version. I can't remember the version on it, but it was doing the same thing. I updated it and it's still doing the same thing. It seemed fine months ago, as I had it running at my desk for a few days. Nothing has really changed other than maybe some videos being edited using DaVinci Resolve. The player was sitting unused for a few months, and then the store it was for started getting it set up in their location a few days ago, and it's doing this. I'm kinda stumped.