Crash in single bouquet mode on BACK after RADIO, EXIT

Issue #493 resolved
prl created an issue

Using RADIO, EXIT in single bouquet mode (MENU>Setup>TV>Channel selection>Enable multiple bouquets disabled) can cause a later crash on BACK.

The problem is that ChannelSelection.upPath() assumes that self.servicePath always has at least two elements, the bouquet list serviceref and the current bouquet service list serviceref.

In single bouquet mode, self.servicePath only contains the current bouquet service list serviceref.

This leaves self.servicePath empty after ChannelSelection.upPath() has been called, and when self.servicePath is used to create an entry in the history list, its self.history entry has only a single element (the channel serviceref), while ChannelSelection.setHistoryPath() expects that it should have at least two entries, the channel and at least the current bouquet service list serviceref, so when ChannelSelection.setHistoryPath() tries to use that history entry it crashes with an index error.

Replication steps

If MENU>Setup>TV>Channel selection>Enable multiple bouquets is enabled, disable it and ensure single-bouquet setup is "set" using FAV, BLUE, select channel.

Then RADIO, EXIT, TV, (re-)select current channel, CH+ (or CH-), BACK, Crash.

Comments (2)

  1. Peter Urbanec

    Fix Bug #493: Crash in single bouquet mode on BACK after RADIO, EXIT

    [ChannelSelection]

    Change pathUp() so that it correctly handles self.servicePath when it has 2 or more elements (multiple bouquets enabled) or only one element (single bouquet mode).

    → <<cset 2bea992f4adc>>

  2. Log in to comment