“Show background behind subtitles” causes spinner, no response and restart.

Moderators: Gully, peteru

Post Reply
Tezza967
Newbie
Posts: 7
Joined: Sat Mar 03, 2018 11:24

“Show background behind subtitles” causes spinner, no response and restart.

Post by Tezza967 » Mon Sep 10, 2018 16:28

“Show background behind subtitles” causes spinner, no response and restart.

Bug report. U4 17.5 firmware 20180417

Problem. While viewing live TV or recorded program, the spinner appears, subtitles stop updating, and the unit is completely unresponsive to buttons on the remote control, to OpenWebif or FTP access. Picture and sound continue OK.

Using OpenWebif, “Box info” can show that amount of free main memory progressively reduces from over 580,000 kB to 20,000 odd kB and then the spinner/no response problem occurs, and an eventual restart.

Cause found:- Selecting “Show background behind subtitles” triggers this problem.

Testing method.

Enabled the debug logging from OpenWebif, Settings, Log settings.

I recalled some of the few changes I had previously made was reconfigured subtitles with a larger font (42) and selected “show background behind subtitles”, so testing was focused on subtitles and their configuration. See earlier discussion on “U4 spinner and reboot message“ viewtopic.php?f=47&t=12761

6 September. Mid morning. To eliminate the possibility of a previous bad update, downloaded beyonwiz-17.5-beyonwizu4-20180417-usb.zip again, and used a different USB drive. Created timer/settings backup and updated U4 again. Restored from those timer/settings backup. Problem continued as before with spinner and freeze.

7 September about 9:40am. Factory reset to remove any configuration changes I had made previously in that backup. No configuration was changed after factory reset apart from setting a password for FTP access. Viewed ABC HD. Enabled English subtitles. No timers set yet. Timeshift recording left at factory setting. No problem seen over several hours.

7 September 1:25pm. Increased subtitle font size to 42 and selected “show background behind subtitles”. From 13458 seconds on in debug log Enigma2-2018-09-07_09-41-00.log . ABC HD did not have subtitles, so tuned to ABC2. Not sure of the amount of subtitles in those programs over this time, but there was a slow reduction in free memory.
Main Memory: 585588 kB free / 2097152 kB total Box Uptime: 3:47 1:27pm
Main Memory: 569256 kB free / 2097152 kB total Box Uptime: 4:24
Main Memory: 524600 kB free / 2097152 kB total Box Uptime: 6:08 At 22134 in log
Switched to ABC HD at 25169 seconds = 4:40pm
First spinner appeared at 28856 seconds = approx 5:41 pm. Last entry in that debug log is at 29955 seconds
Restarted at 5 59pm, 29958 seconds. See Enigma2_crash_2018-09-07_17-59-40.log

New debug log Enigma2-2018-09-07_17-59-50.log
Main Memory: 570736 kB free / 2097152 kB total Box Uptime: 8:50
Main Memory: 186280 kB free / 2097152 kB total Box Uptime: 10:06
Free memory reduced (heading for a crash) after only 1 hour 16 minutes. No spinner yet.

7:50pm Decreased subtitle font size from 42 to 32 (I think that’s the factory setting) and unselected “show background behind subtitles”. From 36546 seconds on in log. Still tuned to ABC HD
Main Memory: 184488 kB free / 2097152 kB total Box Uptime: 10:25 At 8:06pm
Main Memory: 184624 kB free / 2097152 kB total Box Uptime: 11:52 At 9:33pm
Free memory seems to have stabilised at 184000 odd over 1 hour 30 mins with font size 32 and no background behind subtitles. Operation stable.

Restarted GUI at 9:35pm to get back to “normal” amount of free memory. 42841 seconds in old log
New log started Enigma2-2018-09-07_21-34-56.log Still tuned to ABC HD
Main Memory: 595860 kB free / 2097152 kB total Box Uptime: 11:55 9:35pm 7Sept
Main Memory: 585664 kB free / 2097152 kB total Box Uptime: 1d 0:55 10:36am 8Sept
No significant change in free memory after 13 hours with font size 32 and no background behind subtitles. Operation stable.

Changed font size up to 42 at about 10:37am 8 Sept via U4 OpenWebif. Doesn’t show in debug log.
Main Memory: 585312 kB free / 2097152 kB total Box Uptime: 1d 1:01 10:42am 8 Sept
Main Memory: 574020 kB free / 2097152 kB total Box Uptime: 1d 21:53 7:34am 9 Sept
No significant change in free memory over 21 hours with increased font size to 42 and no background behind subtitles. Operation stable.

Added “Show background behind subtitles” 7:40am 9 September via U4 OpenWebif. Doesn’t show in debug log. On ABC HD. 7:40am 9 Sept is about 165565 seconds in log.
Main Memory: 570524 kB free / 2097152 kB total Box Uptime: 1d 21:59 7:40am 9 Sept
Main Memory: 519348 kB free / 2097152 kB total Box Uptime: 1d 22:02
Main Memory: 489004 kB free / 2097152 kB total Box Uptime: 1d 22:03
Main Memory: 454468 kB free / 2097152 kB total Box Uptime: 1d 22:05
Main Memory: 336900 kB free / 2097152 kB total Box Uptime: 1d 22:11 7:52am
Main Memory: 212368 kB free / 2097152 kB total Box Uptime: 1d 22:18 7:59am
Main Memory: 165096 kB free / 2097152 kB total Box Uptime: 1d 22:22 8:03 am
Main Memory: 101064 kB free / 2097152 kB total Box Uptime: 1d 22:25 8:06 am
Main Memory: 57020 kB free / 2097152 kB total Box Uptime: 1d 22:27 8:08 am
Main Memory: 28244 kB free / 2097152 kB total Box Uptime: 1d 22:28 8:09 am
Rapid, progressive reduction in free memory. Spinner appeared at 8:10am, just 30 minutes after the configuration change. Crashed 8:13am and restarted. Enigma2_crash_2018-09-09_08-13-02.log.

Enigma2-2018-09-09_08-15-34.log restart and new debug log
Main Memory: 262480 kB free / 2097152 kB total Box Uptime: 1d 22:50 8:31 am
Main Memory: 142676 kB free / 2097152 kB total Box Uptime: 1d 22:55 8:36am
Spinner by 8:44am. Just 30 minutes from restart to spinner. Crashed 9:07am and restarted. Enigma2_crash_2018-09-09_09-07-32.log

Removed “Show background behind subtitles” 9:08 am 9 September On ABC HD
Main Memory: 601572 kB free / 2097152 kB total Box Uptime: 1d 23:27
Main Memory: 580500 kB free / 2097152 kB total Box Uptime: 2d 4:19 2:pm
Free memory and operation again stable over 5 hours with font size 42 and no background behind subtitles.

At 2:03pm 9 Sept, restored previous setup with the backup made on 6 Sept.
Main Memory: 593724 kB free / 2097152 kB total Box Uptime: 0:01
Immediately removed “Show background behind subtitles” from that setup. Font size left at 42.
Main Memory: 600808 kB free / 2097152 kB total Box Uptime: 0:03
Main Memory: 589436 kB free / 2097152 kB total Box Uptime: 17:42 7:30am 10 Sept
Again, free memory and operation again stable over 17 hours with font size 42 and no background behind subtitles.

Summary. Adding “Show background behind subtitles” consistently causes the problem.
There is no problem without this added.

Tezza
Attachments
Enigma2-2018-09-09_08-15-34.log
(61.31 KiB) Downloaded 34 times
Enigma2-2018-09-07_21-34-56-Extracts.log
(60.21 KiB) Downloaded 31 times
Enigma2-2018-09-07_17-59-50.log
(96.05 KiB) Downloaded 29 times
Enigma2-2018-09-07_09-41-00-Extracts.log
(194.31 KiB) Downloaded 26 times
Enigma2_crash_2018-09-09_09-07-32.log
(16.84 KiB) Downloaded 28 times
Enigma2_crash_2018-09-09_08-13-02.log
(16.84 KiB) Downloaded 30 times
Enigma2_crash_2018-09-07_17-59-40.log
(16.84 KiB) Downloaded 23 times

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: “Show background behind subtitles” causes spinner, no response and restart.

Post by adoxa » Mon Sep 10, 2018 17:01

Yep, subtitles have a memory leak - good work. In lib/gui/esubtitle.cpp, two instances of:

Code: Select all

eTextPara *para = new eTextPara(area);
should be:

Code: Select all

ePtr<eTextPara> para = new eTextPara(area);
Fix submitted (full disclosure: it's all theoretical, I'm afraid I didn't actually test anything).

Grumpy_Geoff
Uber Wizard
Posts: 6490
Joined: Thu Mar 05, 2009 22:54
Location: Perth

Re: “Show background behind subtitles” causes spinner, no response and restart.

Post by Grumpy_Geoff » Mon Sep 10, 2018 17:57

Tezza967 wrote:
Mon Sep 10, 2018 16:28
...Summary. Adding “Show background behind subtitles” consistently causes the problem.
There is no problem without this added.

So this wasn't as silly as it sounded then. This may have allowed you to get to the cause sooner ;-)
Grumpy_Geoff wrote:
Tue Sep 04, 2018 16:10
Have you tried disabling subtitles for a while to see if that makes a difference?

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

Re: “Show background behind subtitles” causes spinner, no response and restart.

Post by peteru » Tue Sep 11, 2018 01:33

Good work Tezza967 and Adoxa. I have also found another location with a memory leak - this time in eListboxServiceContent

Fixes applied and a new build is in progress. I'll try to get an update out overnight or during the day on Tuesday.

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

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

Re: “Show background behind subtitles” causes spinner, no response and restart.

Post by prl » Tue Sep 11, 2018 10:35

I've been able to update a T2, T3, T4 and U4 to the new 20180910beta firmware.

Of course, to get the new beta firmware you'll need to have switched to the beta feed.
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”