computergeek1507 / fpp-plugin-tplink

MIT License
5 stars 1 forks source link

EP40 crashes FPPD #5

Open chris4851 opened 2 years ago

chris4851 commented 2 years ago

When I include the Kasa EP40 via FPP command TPLink Set Switch into my playlist to either turn on or turn off, FPPD crashes and stops. I have 3 EP25's installed and they run without issues. It is only when I include the EP40 that it crashes.

TheOneCalledScott commented 1 year ago

I think I'm having the same problem though the EP40 is my first TP-Link device so didn't know it was just this hardware. It also seems (for me at least) to not be the running of the command no just the presence of the plugin, but the entry of a device in the config.

Everything works fine with the plugin installed but not configured, but once I add the device, I only get a minute or two (I've seen as short as 45s and as long as 90s or so) before the playlist I'm running stops and I see a message that FPPD Daemon is not running. FPPD will restart on its own but it then repeats. If I remove the device in FPP TP-Link Config, everything works fine again. I checked the fppd.log file on debug and see where it's outputting the sequence, then a half second pause, then FPPD starting but no error.

2022-11-01 10:49:46.061 (1714) [Sync] /opt/fpp/src/MultiSync.cpp:1345: SendSeqSyncPacket( 'This is Halloween.fseq', 3552, 88.82) 2022-11-01 10:49:46.126 (1738) [HTTP] /opt/fpp/src/httpAPI.cpp:99: API Req: /fppd/status 2022-11-01 10:49:46.126 (1738) [HTTP] /opt/fpp/src/httpAPI.cpp:131: URL: status 2022-11-01 10:49:46.127 (1738) [HTTP] /opt/fpp/src/httpAPI.cpp:474: API - Getting fppd status 2022-11-01 10:49:46.135 (1685) [ChannelOut] /opt/fpp/src/channeloutput/channeloutputthread.cpp:429: Media Position: 88.91, Offset: 0.000, Frames Sent: 3555, Expected: 3556, Diff: -1 2022-11-01 10:49:46.899 (5053) [General] /opt/fpp/src/log.cpp:333: ========================================= 2022-11-01 10:49:46.899 (5053) [General] /opt/fpp/src/log.cpp:334: FPP 6.1.1 2022-11-01 10:49:46.899 (5053) [General] /opt/fpp/src/log.cpp:335: Branch: v6.1 2022-11-01 10:49:46.899 (5053) [General] /opt/fpp/src/log.cpp:336: ========================================= 2022-11-01 10:49:46.901 (5053) [Command] /opt/fpp/src/commands/Commands.cpp:410: Loading Command Presets

I'm happy to do more specific testing if it will help.

TheOneCalledScott commented 1 year ago

So it looks like at least part (maybe all) of the problem was just user error on my side. I thought the TP-Link Config was a required setup step between installation of the plugin and using a TP-Link command in a playlist. With some advice from the FPP, Falcon Player Facebook Group (thanks Gil), I was able to configure the commands without the TP-Link Config and everything is now working.

My setup, for @chris4851 or anyone else researching this, was to set up command presets then call them from a PowerOn playlist that then can be called as part of multiple seasonal playlists. Direct commands should work too, but this is where I landed. Chris, not sure if this is related to your problem or not but hopefully it will help someone.

image

image

Thanks @computergeek1507 for your development work with this plugin.

jpkroeker commented 1 year ago

I experienced the same problem, but I was trying to control a Kasa KP400 from within a sequence, not from a command. FPPD would die at random times. fppd.log didn't provide any clues to what was happening, but I found the following in syslog.

Dec 1 16:57:29 FPPmaster fppd[15477]: 2022-12-01 16:56:42.895 (15880) [General] /opt/fpp/src/fppd.cpp:982: Dec 1 16:57:29 FPPmaster systemd[1]: fppd.service: Main process exited, code=killed, status=11/SEGV Dec 1 16:57:29 FPPmaster systemd[1]: fppd.service: Failed with result 'signal'. Dec 1 16:57:29 FPPmaster systemd[1]: fppd.service: Consumed 12.826s CPU time. Dec 1 16:57:29 FPPmaster systemd[1]: fppd.service: Scheduled restart job, restart counter is at 69. Dec 1 16:57:29 FPPmaster systemd[1]: Stopped FPPd.

Not sure if this helps at all. If there is other information that I can provide, let me know.

Merry Christmas!!