Opened 6 years ago

Closed 6 years ago

#11867 closed Bug Report - General (Fixed)

after commit 836eb11d96 SB cannot connect to MB

Reported by: Yianni Vidalis <yiannividalis@…> Owned by: stuartm
Priority: minor Milestone: 0.27.1
Component: MythTV - General Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

MythTV Version : v0.28-pre-156-g836eb11
MythTV Branch : exported
Network Protocol : 77
Library API : 0.27.20130911-1
QT Version : 4.8.1
Options compiled in:
 linux profile use_hidesyms using_alsa using_oss using_backend using_bindings_perl using_bindings_python using_bindings_php using_dvb using_frontend using_ceton using_hdpvr using_ivtv using_libcrypto using_libfftw3 using_libudf using_lirc using_mheg using_opengl using_opengl_video using_qtwebkit using_qtscript using_qtdbus using_taglib using_v4l2 using_x11 using_xrandr using_profiletype using_mythlogserver using_bindings_perl using_bindings_python using_bindings_php using_mythtranscode using_opengl using_vdpau using_ffmpeg_threads using_mheg using_libass using_libudf

Attachments (2)

mythbackend.20130919090149.32036.log (17.2 KB) - added by Yianni Vidalis <yiannividalis@…> 6 years ago.
SB backend log
slave_disable_callbacks.patch (4.5 KB) - added by stuartm 6 years ago.
Make sure callbacks are disabled when the slave backend ANNounces.

Download all attachments as: .zip

Change History (12)

Changed 6 years ago by Yianni Vidalis <yiannividalis@…>

SB backend log

comment:1 Changed 6 years ago by stuartm

Milestone: unknown0.27.1
Owner: set to stuartm
Status: newaccepted

Feared this might be the case, seems like the slave backend functionality is pretty broken. This explains some of the behaviour mentioned in tickets like #11316

comment:2 Changed 6 years ago by Yianni Vidalis <yiannividalis@…>

Should I revert to the previous commit or do you have any patch for me try?

comment:3 Changed 6 years ago by stuartm

I have a patch, I'll attach it in a couple of minutes.

Changed 6 years ago by stuartm

Make sure callbacks are disabled when the slave backend ANNounces.

comment:4 Changed 6 years ago by Yianni Vidalis <yiannividalis@…>

Thanks, Stuart, I updated to latest commit and it works with the patch.

I tested recording from mythweb (the card is on the SB) and it works. I'm not at home, so I cannot perform more test for a couple of hours.

comment:5 Changed 6 years ago by Stuart Morgan <smorgan@…>

In 84fa3fe02d6731d06b4d64573253710405767923/mythtv:

Make sure callbacks are disabled when the slave backend ANNounces.

Refs #11867

comment:6 Changed 6 years ago by yiannividalis@…

Everything is working ok. You can close this ticket as fixed, and thanks for your help.

comment:7 Changed 6 years ago by David Scammell <davescammell@…>

Hi Stuart, I'm not completely sure this patch is working, at least for me, or i'm doing it wrong. When both MBE and SBE are compiled to MythTV Version : v0.28-pre-156-g836eb11 which if I got it right, was the version after the patch, I see very little/nothing recorded: (SBE) 2013-09-25 21:50:41.165800 ! [9625/9625] CoreContext? mythsocket.cpp:342 (SendReceiveStringList?) - Programmer Error! SendReceiveStringList?(ANN SlaveBackend? ilkley 192.168.1.91) used on socket with callbacks. 2013-09-25 21:50:41.166122 W [9625/9753] MythSocketThread?(-1) mainserver.cpp:5926 (connectionClosed) - MainServer?: Unknown socket closing MythSocket?(0x2b46f10) 2013-09-25 21:50:41.166526 E [9625/9625] CoreContext? mainserver.cpp:6266 (reconnectTimeout) - MainServer?: Failed to open master server socket, error was 2013-09-25 21:50:42.167166 N [9625/9625] CoreContext? mainserver.cpp:6214 (reconnectTimeout) - Connecting to master server: 192.168.1.80:6543 2013-09-25 21:50:42.174336 N [9625/9625] CoreContext? mainserver.cpp:6224 (reconnectTimeout) - Connected successfully 2013-09-25 21:50:42.175326 ! [9625/9625] CoreContext? mythsocket.cpp:342 (SendReceiveStringList?) - Programmer Error! SendReceiveStringList?(ANN SlaveBackend? ilkley 192.168.1.91) used on socket with callbacks. 2013-09-25 21:50:42.175638 W [9625/9754] MythSocketThread?(-1) mainserver.cpp:5926 (connectionClosed) - MainServer?: Unknown socket closing MythSocket?(0x2a268e0) 2013-09-25 21:50:42.175980 E [9625/9625] CoreContext? mainserver.cpp:6266 (reconnectTimeout) - MainServer?: Failed to open master server socket, error was 2013-09-25 21:50:43.176582 N [9625/9625] CoreContext? mainserver.cpp:6214 (reconnectTimeout) - Connecting to master server: 192.168.1.80:6543 2013-09-25 21:50:43.178516 N [9625/9625] CoreContext? mainserver.cpp:6224 (reconnectTimeout) - Connected successfully The MBE stays silent. I presumed both MBE and SBE should be compiled with the patch. If my assumption is wrong then i'll leave the MBE at that version and revert the SBE to fixes/0.27 [v0.28-pr e-36-g3137533) I get: (SBE) 2013-09-29 15:36:12.600371 I [28210/28210] CoreContext? serverpool.cpp:399 (listen) - Listening on TCP [fe80::6ab5:99ff:fe72:d10a%br0]:6543 2013-09-29 15:36:13.488440 I [28210/28210] CoreContext? bonjourregister.cpp:114 (BonjourCallback?) - Bonjour: Service registration complete: name 'Mythbackend on ilkley' type '_mythbackend._tcp.' domain: 'local.' 2013-09-29 15:36:13.600876 N [28210/28210] CoreContext? mainserver.cpp:6214 (reconnectTimeout) - Connecting to master server: 192.168.1.80:6543 2013-09-29 15:36:13.602728 N [28210/28210] CoreContext? mainserver.cpp:6224 (reconnectTimeout) - Connected successfully (good) MBE: 013-09-29 16:22:49.804290 E PlaybackSock?: IsBusy?: QUERY_REMOTEENCODER 25 gave us no response. 2013-09-29 16:22:49.804307 ! Programmer Error! SendReceiveStringList?(QUERY_REMOTEENCODER 26) used on socket with callbacks. 2013-09-29 16:22:49.804316 E PlaybackSock::SendReceiveStringList?(): No response. 2013-09-29 16:22:49.804327 E PlaybackSock?: IsBusy?: QUERY_REMOTEENCODER 26 gave us no response. 2013-09-29 16:22:49.804344 ! Programmer Error! SendReceiveStringList?(QUERY_REMOTEENCODER 27) used on socket with callbacks. 2013-09-29 16:22:49.804353 E PlaybackSock::SendReceiveStringList?(): No response. Over and over. It seems like, not unreasonably the two versions are now not compatible with the patch on one of them. I could try with the SBE including the patch and the MBE not but I think I'm clutching at straws. Any thoughts gratefully received. dave

comment:8 Changed 6 years ago by stuartm

v0.28-pre-156-g836eb11 is a day earlier than 84fa3fe02d6 , not after.

comment:9 Changed 6 years ago by Stuart Morgan <smorgan@…>

In 1224f055aa7960ffe2d6bfcd71300ff90d7e6b93/mythtv:

Make sure callbacks are disabled when the slave backend ANNounces.

Refs #11867
(cherry picked from commit 84fa3fe02d6731d06b4d64573253710405767923)

comment:10 Changed 6 years ago by stuartm

Resolution: Fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.