Uploaded image for project: 'MediaPortal 1'
  1. MediaPortal 1
  2. MP1-3418

System may sleep while programs are being inserted to the database after an EPG grabber has finished

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.1.0 RC 1
    • 1.0.2
    • TvServer
    • None

    Description

      After WebEPG or XMLTV has finished grabbing program data, the system may go to sleep before programs get written to the database. When this happens the system may not wake up for recordings because EPG data for these scheduler is not yet available before the sleep. The system will then wake up again for the next EPG grab.

      h4. Additional Information
      Because the actual writing to the database occurs in a separate thread AFTER WebEPG/XMLTV finishes it's import, it does not prevent the system from going to sleep. So it often happens that the system goes to sleep during writing to the database, leaving the EPG half populated.
      Also WebEPG will insert programs to the database in batches (one for each channel). This complicates things even more.

      See: http://forum.team-mediaportal.com/xmltv-137/stay-awake-whilst-loading-epg-73426/

      One solution is to have a queue of programs to insert, and a thread that services the queue. Each grabber should queue grabbed programs and wait until the queue is empty before allowing standby. As soon as the queue is empty it can also trigger the UpdateProgramStates() (gibman's tvguide speed up).

      Attachments

        Activity

          People

            arion_p arion_p (Inactive)
            arion_p arion_p (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: