Slow startup
#1
Hi,

I have the problem that usually on the first start after coming from stand-by or booting, xbmc starts slowly.

Log: http://xbmclogs.com/show.php?id=275463

In the log in lines 273 and 274 you can see that it takes more than a minute between those two steps.

What is it doing there?

Thanks for your help

Regards
Jochen
Reply
#2
Its doing the check for a remote control software, the delay is most likely airplay/zeroconf turned on in settings without the apple bonjour service running?
Reply
#3
mmh airplay and zeroconf is disabled in settings
Reply
#4
I've looked at the code and it is trying to connect with the Infra Red Server Suite service on port 24000. This is because you appear to have an iMON infra-red remote control. Is this correct?

If it doesn't manage to connect it tries again every 5 seconds for 5 minutes, just in case the service started after XBMC started at boot time.

Because it can take up to 5 minutes it does this in a separate thread so as not to hold up XBMC, so it is unlikely that this is the cause of your problem otherwise had it been single-threaded the wait would have been 5 minutes not 1. Though what actually is happening in the specific minute you are pointing to I'm afraid I don't know. The actual code is shown below:

Code:
void CRemoteControl::Initialize()
{
  if (m_isConnecting || m_bInitialized) return;
  //trying to connect when there is nothing to connect to is kinda slow so kick it off in a thread.
  Create();
}

void CRemoteControl::Process()
{
  unsigned int iMsRetryDelay = 5000;
  unsigned int time = XbmcThreads::SystemClockMillis() - iMsRetryDelay;
  // try to connect 60 times @ a 5 second interval (5 minutes)
  // multiple tries because irss service might be up and running a little later then xbmc on boot.
  while (!m_bStop && m_iAttempt <= 60)
  {
    if (XbmcThreads::SystemClockMillis() - time >= iMsRetryDelay)
    {
      time = XbmcThreads::SystemClockMillis();
      if (Connect())
        break;

      if(m_iAttempt == 0)
        CLog::Log(LOGINFO, "CRemoteControl::Process - failed to connect to irss, will keep retrying every %d seconds", iMsRetryDelay / 1000);

      m_iAttempt++;
    }
    Sleep(1000);
  }
  m_iAttempt     = 0;
}
DEBUG log: http://kodi.wiki/view/Log_file/Easy
HTPC advice: http://mymediaexperience.com , http://lifehacker.com/5828747/how-to-bui...lete-guide
My HTPC: an Acer Revo RL80 Nettop PC:
Windows 10
Intel Core-i3-2377M @ 1.5GHz, 4GB DDR3 @ 665MHz, Intel HD3000
465GB SATA disk, DVD-RW, 1.8TB Seagate USB disk


Reply
#5
hi,

i did use an iMON remote a while back, but not anymore. Where can I disable that?

Thanks and Regards
Jochen
Reply
#6
You can use Windows 7 Device Manager to disable devices see:

http://pcsupport.about.com/od/windows7/h...dows-7.htm

I still don't think this is your problem, but I'm prepared to be proven wrong.
DEBUG log: http://kodi.wiki/view/Log_file/Easy
HTPC advice: http://mymediaexperience.com , http://lifehacker.com/5828747/how-to-bui...lete-guide
My HTPC: an Acer Revo RL80 Nettop PC:
Windows 10
Intel Core-i3-2377M @ 1.5GHz, 4GB DDR3 @ 665MHz, Intel HD3000
465GB SATA disk, DVD-RW, 1.8TB Seagate USB disk


Reply
#7
i cannot find anything related to that device there, is this also stored somewhere in the xbmc settings?

if this is not the cause, any other ideas?
Reply
#8
If you couldn't find it in the HUMAN INTERFACE DEVICES (HID) section of the Device Manager, then I wouldn't know where else to look I'm afraid.
DEBUG log: http://kodi.wiki/view/Log_file/Easy
HTPC advice: http://mymediaexperience.com , http://lifehacker.com/5828747/how-to-bui...lete-guide
My HTPC: an Acer Revo RL80 Nettop PC:
Windows 10
Intel Core-i3-2377M @ 1.5GHz, 4GB DDR3 @ 665MHz, Intel HD3000
465GB SATA disk, DVD-RW, 1.8TB Seagate USB disk


Reply

Logout Mark Read Team Forum Stats Members Help
Slow startup0