Crash whilst watching on time shift

Moderators: Gully, peteru

Post Reply
User avatar
netmask
Wizard
Posts: 3658
Joined: Sun Aug 05, 2007 15:20
Location: Inner West, Sydney, Australia

Crash whilst watching on time shift

Post by netmask » Sun Jun 18, 2017 21:17

Unfortunately my T3 didn't save a crash report so briefly this is what occurred
Watching Dr Who ABC1HD, phone rang so put it on pause. Then resumed play and continued to about 20 seconds before the end (gggrrrr) black screen came up with a sorry a reboot. Rebooted automatically and everything seems to be back to normal. Latest firmware is installed via USB. Did a search in logs for a crash report but not present. Early reports where there. Sorry not much to go on and it is the first crash in months. Maybe something to do with time shift? Once I resumed play after the phone call I didn't navigate or do anything with the remote.
BeyonWiz T3 and V2
LED TV SONY Bravia 75" Local dimming ~ Retired Samsung ES8000 65" ~
Yamaha A1070 amp
Zidoo UHD3000
Qnap TS851-4G
Pioneer Bluray BDP-150-K
Windows 11 Professional
Netgear R7000
Chromecast

User avatar
MrQuade
Uber Wizard
Posts: 11844
Joined: Sun Jun 24, 2007 13:40
Location: Perth

Re: Crash whilst watching on time shift

Post by MrQuade » Sun Jun 18, 2017 21:32

netmask wrote:
Sun Jun 18, 2017 21:17
black screen came up with a sorry a reboot. Rebooted automatically and everything seems to be back to normal.
So it did display a crash screen with all the text on it, or was it a black screen? Also, did it fully reboot, or was it just a GUI reboot? That sentence doesn't make it clear.

Did you check both /home/root/logs and /hdd/logs? Perhaps you changed it and forgot or forgot to change it after a firmware update?
Logitech Harmony Ultimate+Elite RCs
Beyonwiz T2/3/U4/V2, DP-S1 PVRs
Denon AVR-X3400h, LG OLED65C7T TV
QNAP TS-410 NAS, Centos File Server (Hosted under KVM)
Ubiquiti UniFi Managed LAN/WLAN, Draytek Vigor130/Asus RT-AC86U Internet
Pixel 4,5&6, iPad 3 Mobile Devices

User avatar
netmask
Wizard
Posts: 3658
Joined: Sun Aug 05, 2007 15:20
Location: Inner West, Sydney, Australia

Re: Crash whilst watching on time shift

Post by netmask » Sun Jun 18, 2017 23:08

Ha ha! You are right - just found it. I was looking in the wrong log folder.
So attached
Enigma2_crash_2017-06-18_20-24-00.log
(16.77 KiB) Downloaded 53 times
BeyonWiz T3 and V2
LED TV SONY Bravia 75" Local dimming ~ Retired Samsung ES8000 65" ~
Yamaha A1070 amp
Zidoo UHD3000
Qnap TS851-4G
Pioneer Bluray BDP-150-K
Windows 11 Professional
Netgear R7000
Chromecast

User avatar
netmask
Wizard
Posts: 3658
Joined: Sun Aug 05, 2007 15:20
Location: Inner West, Sydney, Australia

Re: Crash whilst watching on time shift

Post by netmask » Sun Jun 18, 2017 23:11

A full crash screen with all the text on it and not sure about just a GUI or a complete reboot as I rushed into my bedroom to attempt to see the finale of Dr Who ! It will have to be catch up I fear or tomorrow afternoon :)
BeyonWiz T3 and V2
LED TV SONY Bravia 75" Local dimming ~ Retired Samsung ES8000 65" ~
Yamaha A1070 amp
Zidoo UHD3000
Qnap TS851-4G
Pioneer Bluray BDP-150-K
Windows 11 Professional
Netgear R7000
Chromecast

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Crash whilst watching on time shift

Post by prl » Mon Jun 19, 2017 11:58

The crash happened when the box needed to change channels in order to do the recording and you hadn't already asked to save timeshift.

The code preparing the options popup for this case and crashes when testing whether to put the choice box choice "Save timeshift in movie dir and zap" before or after "Zap" option, and it tests on what seems to be an unimplemented method of InfoBar. The code seems to be incorrect in the same way in OpenViX.

The effect of the test is deciding whether the choice list order should be:
"Zap"
"Save timeshift and zap"
"Don't zap"
"Save timeshift in movie dir and zap"
"Don't zap and disable timer"
"Don't zap and remove timer"

or

"Save timeshift and zap"
"Zap"
"Don't zap"
"Save timeshift in movie dir and zap"
"Don't zap and disable timer"
"Don't zap and remove timer"

Implementation of the required InfoBar.timeshiftActivated() method (probably in the InfoBarTimeshift mixin) should be easy, and should probably be fixed in OpenViX, too.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

User avatar
netmask
Wizard
Posts: 3658
Joined: Sun Aug 05, 2007 15:20
Location: Inner West, Sydney, Australia

Re: Crash whilst watching on time shift

Post by netmask » Mon Jun 19, 2017 12:13

Ah yes I had a regular timer for Dr Who but then had to go to timeshift when a predictable phone call occurred - in future aeroplane mode!. Then I had a zap timer only to ABC2 or whatever to watch Whovians. Crash! Thanks for the info I will workaround it in future......
BeyonWiz T3 and V2
LED TV SONY Bravia 75" Local dimming ~ Retired Samsung ES8000 65" ~
Yamaha A1070 amp
Zidoo UHD3000
Qnap TS851-4G
Pioneer Bluray BDP-150-K
Windows 11 Professional
Netgear R7000
Chromecast

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Crash whilst watching on time shift

Post by prl » Mon Jun 19, 2017 12:50

netmask wrote:
Mon Jun 19, 2017 12:13
Ah yes I had a regular timer for Dr Who but then had to go to timeshift when a predictable phone call occurred - in future aeroplane mode!. Then I had a zap timer only to ABC2 or whatever to watch Whovians. Crash! Thanks for the info I will workaround it in future......

Yes, a zap timer (or zap+record) timer triggering on a different channel while you're viewing timeshifted will also exercise the same code (and should provide a simpler replication setup).
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Crash whilst watching on time shift

Post by prl » Mon Jun 19, 2017 13:55

Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Crash whilst watching on time shift

Post by prl » Mon Jun 19, 2017 17:04

Curiouser and curiouser.

Although the test on InfoBar.timeshiftActivated() is intended to change the order of the choices, the code building the choice list is only ever called in situations where InfoBar.timeshiftActivated() should return True.

And also, there are two "save timeshift" choices, "Save timeshift and zap" and "Save timeshift in movie dir and zap".

The only difference between the two is that "Save timeshift in movie dir and zap" does:
self.InfoBarInstance.save_timeshift_in_movie_dir = True

Which seems sort-of reasonable, except that InfoBar.save_timeshift_in_movie_dir is never initialised, set anywhere else, or referenced anywhere else.

So it would seem that the correct way to fix the problem is to put the "Save timeshift and zap" in the choices list where it would go if InfoBar.timeshiftActivated() returned True, and to get rid of the "Save timeshift in movie dir and zap" choice and its associated code.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Crash whilst watching on time shift

Post by prl » Mon Jun 19, 2017 17:34

I've verified this as a bug in OpenViX, too.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Crash whilst watching on time shift

Post by prl » Mon Jun 19, 2017 17:46

This looks like the result of a merge from OpenPLi into OpenViX and thence into the Beyonwiz code that dragged in references to things in OpenPLi that OpenViX and Beyonwiz don't implement.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

IanSav
Uber Wizard
Posts: 16846
Joined: Tue May 29, 2007 15:00
Location: Melbourne, Australia

Re: Crash whilst watching on time shift

Post by IanSav » Mon Jun 19, 2017 20:03

Hi,

I think this is one of the reasons why PeterU doesn't take code from OpenPli. Their code base has significantly diverged from the OE-Alliance.

Regards,
Ian.

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Crash whilst watching on time shift

Post by prl » Mon Jun 19, 2017 22:42

Yes. That came to my attention when I was working on the EPGSearch plugin, which has a special version for OpenPLi.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Crash whilst watching on time shift

Post by prl » Tue Jun 20, 2017 12:28

The OpenPLi-sourced incompatibilities just keep on coming. Once the code is cleaned up to allow it to actually try to save the timeshift buffer, that calls a non-existent InfobarTimeshift method. :roll:
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Crash whilst watching on time shift

Post by prl » Wed Jun 21, 2017 18:28

And on it goes. In order to reliably test my fixes, I've submitted a fix to Bug #490: Save current timeshift event sometimes saves the event's .sc file (where sometimes = ~50% of the time ;)).

I've also included the fix to Bug #375: Timeshift fails with misleading error message if timeshift location contains directory named "timeshift", which means that if the fix as a whole is accepted, it should slightly reduce the differences between the OpenVix Timeshift.py and the Beyonwiz one.

I've offered to make a minimalist fix for the #450 fix if the one I've submitted causes too many upstream merge issues for them, but I hope they decide to Do It The Right (aka My) Way :D
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

IanSav
Uber Wizard
Posts: 16846
Joined: Tue May 29, 2007 15:00
Location: Melbourne, Australia

Re: Crash whilst watching on time shift

Post by IanSav » Wed Jun 21, 2017 18:40

Hi Prl,

While I haven't heard anything directly, your submissions to OpenViX are now getting fairly prompt attention and merges. :D

Regards,
Ian.

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Crash whilst watching on time shift

Post by prl » Wed Jun 21, 2017 18:58

IanSav wrote:
Wed Jun 21, 2017 18:40
... While I haven't heard anything directly, your submissions to OpenViX are now getting fairly prompt attention and merges. :D ...

Yes, I'd noticed, thanks. This one is slightly different since it does a lot more than is strictly needed to fix the timeshift save bug and is spread out in the code in a way that would tend to make upstream merges messier. Unless they push the changes upstream, too ;). Just fixing the bug is a one-liner. Though as a side benefit it fixes another, somewhat obscure bug, and stops eBackgroundFileEraser mangling directory links in some other slightly obscure cases.

Read all about it here.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Crash whilst watching on time shift

Post by prl » Wed Jun 21, 2017 19:09

Huevos commented 5 minutes ago

Can you please the minimal bug fix... And maybe we can also push that to PLi if the bug also exists there too.
:(
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

IanSav
Uber Wizard
Posts: 16846
Joined: Tue May 29, 2007 15:00
Location: Melbourne, Australia

Re: Crash whilst watching on time shift

Post by IanSav » Wed Jun 21, 2017 22:43

Hi Prl,
prl wrote:
Wed Jun 21, 2017 19:09
Huevos commented 5 minutes ago

Can you please the minimal bug fix... And maybe we can also push that to PLi if the bug also exists there too.
:(
Oh well, the rest of the fix can roll out as you continue to improve the OpenViX. We will eventually get it up to Beyonwiz specs. ;)

Regards,
Ian.

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Crash whilst watching on time shift

Post by prl » Thu Jun 22, 2017 11:28

IanSav wrote:
Wed Jun 21, 2017 22:43
Hi Prl,
prl wrote:
Wed Jun 21, 2017 19:09
Huevos commented 5 minutes ago

Can you please the minimal bug fix... And maybe we can also push that to PLi if the bug also exists there too.
:(
Oh well, the rest of the fix can roll out as you continue to improve the OpenViX. We will eventually get it up to Beyonwiz specs. ;)
...

The problem is that the fix I submitted to OpenViX includes the fix for Bug #375: Timeshift fails with misleading error message if timeshift location contains directory named "timeshift", where the bulk of the changes in what I submitted to OpenViX are made. The actual Beyonwiz fix for Bug #490: Save current timeshift event sometimes saves the event's .sc file is just a small modification to that.

If the fix for #375 is rejected, it doesn't make much sense to fix #490 the way I'd like to. So the minimalist fix I submitted is just:

Code: Select all

diff --git a/lib/python/Components/Timeshift.py b/lib/python/Components/Timeshift.py
index e7624e1..4c37d20 100644
--- a/lib/python/Components/Timeshift.py
+++ b/lib/python/Components/Timeshift.py
@@ -610,7 +610,7 @@ class InfoBarTimeshift:
 			# print 'TEST1'
 			for filename in os.listdir(config.usage.timeshift_path.value):
 				# print 'filename',filename
-				if filename.startswith("timeshift.") and not filename.endswith(".del") and not filename.endswith(".copy"):
+				if filename.startswith("timeshift.") and not filename.endswith((".del", ".copy", ".sc")):
 					statinfo = os.stat("%s%s" % (config.usage.timeshift_path.value,filename))
 					if statinfo.st_mtime > (time()-5.0):
 						savefilename=filename

This leaves the testing for the "timeshift.XXXXXX" files as imprecise as it was before my #375 fixes.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

IanSav
Uber Wizard
Posts: 16846
Joined: Tue May 29, 2007 15:00
Location: Melbourne, Australia

Re: Crash whilst watching on time shift

Post by IanSav » Thu Jun 22, 2017 11:49

Hi Prl,

When I get back to Enigma2 development I can advocate for the fuller change in the OpenViX developer forum.

Regards,
Ian.

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Crash whilst watching on time shift

Post by prl » Thu Jun 22, 2017 11:56

I've already put a comment in the minimalist pull request that they reconsider the rejection of the first fix, but your support in the OpenViX forum would be welcome. Thanks.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Crash whilst watching on time shift

Post by prl » Fri Jun 23, 2017 14:29

The minimalist fix for the bug that saves the wrong timeshift file has been merged into the OpenViX repository. At least now I can go ahead and submit the fix for the original problem.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

User avatar
peteru
Uber Wizard
Posts: 9741
Joined: Tue Jun 12, 2007 23:06
Location: Sydney, Australia
Contact:

Re: Crash whilst watching on time shift

Post by peteru » Fri Jun 23, 2017 15:56

All the OpenViX updates from Dev branch as of about this time yesterday have made it to the Beyonwiz next branch.

The Beyonwiz next branch was merged into master overnight and 17.5 build for the T4 has been made available.

The next step is to look at the backlog of pull requests against Beyonwiz master and start applying them. Hopefully these pull requests won't create too many conflicts with OpenViX merges later on.

"Beauty lies in the hands of the beer holder."
Blog.

IanSav
Uber Wizard
Posts: 16846
Joined: Tue May 29, 2007 15:00
Location: Melbourne, Australia

Re: Crash whilst watching on time shift

Post by IanSav » Fri Jun 23, 2017 16:16

Hi PeterU,

I rebased my pending pull requests against the new master and there were no issues.

I need to check but I think one of the pull requests is already in the OpenViX merge you recently performed.

Regards,
Ian.

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Crash whilst watching on time shift

Post by prl » Fri Jun 23, 2017 17:09

peteru wrote:
Fri Jun 23, 2017 15:56
...
The Beyonwiz next branch was merged into master overnight and 17.5 build for the T4 has been made available.
...

I rebased my pull requests after that merge of next onto master was done. There were no conflicts in the rebases.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Crash whilst watching on time shift

Post by prl » Sat Jun 24, 2017 09:35

prl wrote:
Fri Jun 23, 2017 17:09
peteru wrote:
Fri Jun 23, 2017 15:56
...
The Beyonwiz next branch was merged into master overnight and 17.5 build for the T4 has been made available.
...

I rebased my pull requests after that merge of next onto master was done. There were no conflicts in the rebases.

I did, but I forgot to pull first. I've now redone the rebases, and they show "changes already merged" for the fixes for #520 and #591. The pull request for #590 still needs to be applied.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Crash whilst watching on time shift

Post by prl » Mon Jun 26, 2017 13:31

I have submitted fixes to Bug #592: Crash on zap in RecordTimer when timeshifted to the Beyonwiz and the OpenViX repositories.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Crash whilst watching on time shift

Post by prl » Mon Jun 26, 2017 17:12

Fix merged into the Beyonwiz repository.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

Post Reply

Return to “Bug Reporting and Feature Requests”