Project

General

Profile

Bug #5067

HTSP channelAdd method returns wrong values

Added by Arnaud Grasset over 6 years ago. Updated over 6 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
HTSP
Target version:
-
Start date:
2018-04-09
Due date:
% Done:

100%

Estimated time:
Found in version:
4.3-1218~ga441514ba
Affected Versions:

Description

When tvheadend sends back the initial data dump after a enableAsyncMetadata message is sent, the values returned in the "channelAdd" message are wrong:

Doc says:
eventId u32 optional ID of the current event on this channel.
nextEventId u32 optional ID of the next event on the channel.

But eventId and nextEventId are always the same event until the next restart of the tvheadend service. So if I don't restart tvheadend daily, the channelAdd method returns the eventId of an event that is one week/one month (or more) old.

History

#1

Updated by Jaroslav Kysela over 6 years ago

It would mean that the old EPG events are not freed. I suggest you to check the traces to analyze the issue: --trace epg.

#2

Updated by Arnaud Grasset over 6 years ago

You are right. The real problem is that EPG events do not get deleted.

My tests:
- I compiled the last 4.2 version from git with debug enabled. Everything worked perfectly, logs showed old EPG events being destoyed as soon as they expired.
- I compiled the git master (4.3) with debug enabled and installed it. EPG events were not deleted and debug and trace showed nothing. There was no error, just nothing happened when an EPG event expired.

#3

Updated by Arnaud Grasset over 6 years ago

Finally I have still the same problem with 4.2 version..

Solved it by disabling over-the-air EPG on my adapters.

#4

Updated by Jaroslav Kysela over 6 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset commit:tvheadend|518d57bee25cf89ea04ec80e7974f64778b03ed0.

Also available in: Atom PDF