Your Digital Media Has Never Looked So Good

 
joetesta
Topic Author
Posts: 771
Joined: Wed Apr 20, 2011 11:48 am

Low End Device Crash during playback

Thu Feb 08, 2018 3:00 pm

Trying to debug on issue where on Roku LT, video playback often results in channel crash / exit to Home screen after 5+ minutes of video playback.
Any ideas?
tyvmia
aspiring
 
DadOfTwo
Posts: 30
Joined: Thu Feb 02, 2017 8:11 am
Contact:

Re: Low End Device Crash during playback

Thu Feb 08, 2018 3:06 pm

What does the debug trace say? Is it a runtime execution timeout?
 
destruk
Posts: 2590
Joined: Sat Dec 18, 2010 4:58 pm

Re: Low End Device Crash during playback

Thu Feb 08, 2018 3:15 pm

Did you try the new IgnoreStreamErrors metadata value to see if it still crashes, or just skips at 5 minutes?

When set to true the media player will not stop playback when it runs into a streaming related error for this content. Instead, it will skip to the next item in the content list. If this was the last item in the content list the media player will send a regular completion event (like isFullResult).
Channels are still notified of any errors via an isRequestFailed notification but a new attribute in the event’s GetInfo object tells the channel the error was ignored. See the changes related to isRequestFailed for more information. The default value is false.



Available since firmware version 7.5



video_details = {

    streamFormat: "mp4"

    ignoreStreamErrors: true

    streams: [{bitrate: 537, height: 360, width: 640, url: “https://..."}]
}
 
joetesta
Topic Author
Posts: 771
Joined: Wed Apr 20, 2011 11:48 am

Re: Low End Device Crash during playback

Thu Feb 08, 2018 4:43 pm

Thank you guys!

This is all debug shows:
02-08 23:41:06.823 [ui.frm.plugin.running.exit] Exiting PLUGIN_RUNNING for dev

Have not yet tried "IgnoreStreamErrors" but going to now, thank you!
aspiring
 
joetesta
Topic Author
Posts: 771
Joined: Wed Apr 20, 2011 11:48 am

Re: Low End Device Crash during playback

Thu Feb 08, 2018 5:30 pm

joetesta wrote:
Have not yet tried "IgnoreStreamErrors" but going to now, thank you!

Same result.  Seems like some sort of memory issue.  Will keep digging, thank you again.
aspiring
 
Veeta
Posts: 146
Joined: Tue Aug 12, 2014 4:44 am
Location: http://www.veeta.tv
Contact:

Re: Low End Device Crash during playback

Thu Feb 08, 2018 6:25 pm

It takes some time before the video cache gets completely warmed up and reaching steady state.  If your app has a lot of memory used in brightscript then it may be causing this.  Do you happen to be using RAF?
 
joetesta
Topic Author
Posts: 771
Joined: Wed Apr 20, 2011 11:48 am

Re: Low End Device Crash during playback

Fri Feb 09, 2018 1:25 am

Veeta wrote:
  Do you happen to be using RAF?

yes.  is there any recommendation about this?
Going to look into SG memory usage some more.
thank you!
Joe
aspiring
 
joetesta
Topic Author
Posts: 771
Joined: Wed Apr 20, 2011 11:48 am

Re: Low End Device Crash during playback

Fri Feb 09, 2018 2:51 am

Think I got it working, we weren't disposing all the nodes in some cases - thanks for all your help!
aspiring
 
joetesta
Topic Author
Posts: 771
Joined: Wed Apr 20, 2011 11:48 am

Re: Low End Device Crash during playback

Fri Feb 09, 2018 9:31 am

joetesta wrote:
Think I got it working, we weren't disposing all the nodes in some cases - thanks for all your help!

argh spoke too soon - after multiple video plays, the player will crash within 5 minutes.  Checked sgnodes_all and that got me further but not seeing anything extra in there now at this later crash point.
aspiring
 
Veeta
Posts: 146
Joined: Tue Aug 12, 2014 4:44 am
Location: http://www.veeta.tv
Contact:

Re: Low End Device Crash during playback

Fri Feb 09, 2018 1:17 pm

Check 'free' for general system usage.  You can use 'bsc' and 'bcsc' on the console to find brightscript objects but it has to be within the scope of the component that you're interested... basically each component is like an isolated VM that can have its own memory usage so it's hard to see a global usage except for 'free'.

Check that short-lived task nodes are being released once they have finished (e.g.`mytask = invalid`) especially if they are fetching large content structures.  
 
joetesta
Topic Author
Posts: 771
Joined: Wed Apr 20, 2011 11:48 am

Re: Low End Device Crash during playback

Mon Feb 12, 2018 11:38 am

Thanks again for your help Veeta, made big progress w system memory and seems this crashing is cleared up!
aspiring
 
abhishek
Posts: 36
Joined: Thu Mar 03, 2016 10:49 pm

Re: Low End Device Crash during playback

Fri Feb 16, 2018 4:36 am

DadOfTwo wrote:
What does the debug trace say? Is it a runtime execution timeout?

I am also facing the same issue. Have you found any solution?
 
DadOfTwo
Posts: 30
Joined: Thu Feb 02, 2017 8:11 am
Contact:

Re: Low End Device Crash during playback

Fri Feb 16, 2018 10:08 am

Have a look at some of Veeta's suggestions above. Or there's lots of advice here on managing memory and how to optimise your SG app - https://sdkdocs.roku.com/display/sdkdoc/Debugging+SceneGraph+Applications 
 
User avatar
SolveLLC
Posts: 309
Joined: Mon Aug 02, 2010 1:38 pm

Re: Low End Device Crash during playback

Fri Feb 16, 2018 12:22 pm

I think this is related to the same bug we submitted a couple of weeks ago.
 
asrikanth1990
Posts: 9
Joined: Fri Feb 23, 2018 2:02 am

Re: Low End Device Crash during playback

Thu Apr 19, 2018 9:33 pm

HI 

I am little new to brightscript,  and am facing similar issues. For shorter videos everything works fine , but when it is over 20 min the app is crashing..

How do we release SG references..   I am just adding contentNode = invalid after usage.  

but when i run bsc, I can still see 8-9 references of RoSGNode ,, Am i doing something wrong here?

Who is online

Users browsing this forum: No registered users and 7 guests