joetesta
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2018
02:00 PM
Low End Device Crash during playback
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
Any ideas?
tyvmia
aspiring
14 REPLIES 14
DadOfTwo
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2018
02:06 PM
Re: Low End Device Crash during playback
What does the debug trace say? Is it a runtime execution timeout?
destruk
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2018
02:15 PM
Re: Low End Device Crash during playback
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://..."}]
}
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
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2018
03:43 PM
Re: Low End Device Crash during playback
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!
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
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2018
04:30 PM
Re: Low End Device Crash during playback
"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
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2018
05:25 PM
Re: Low End Device Crash during playback
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
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2018
12:25 AM
Re: Low End Device Crash during playback
"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
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2018
01:51 AM
Re: Low End Device Crash during playback
Think I got it working, we weren't disposing all the nodes in some cases - thanks for all your help!
aspiring
joetesta
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2018
08:31 AM
Re: Low End Device Crash during playback
"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
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2018
12:17 PM
Re: Low End Device Crash during playback
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.
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.