Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
joetesta
Roku Guru

crash in Roku_Ads()

Seeing this fairly often using Roku_Ads(); the app launches and about 1 out of 10 times it does not get past "m.RAF = Roku_Ads()"
Any ideas or suggestions?
tyvmia


Current Function:
076:  ??
077:  ??
078:  ??
079:  ??
080:  ??
081:  ??
082:  ??
083:  ??
084:* ??
085:  ??
086:  ??
087:  ??
088:  ??
Execution timeout (runtime error &h23) in roku_ads_lib:/Roku_Ads_Beacons.brs(84)
084: ??
Backtrace:
#4  Function roku_ads_util_getstringfromurl(url_ As String) As Dynamic
   file/line: roku_ads_lib:/Roku_Ads_Beacons.brs(84)
#3  Function roku_ads_checkallowedfeature(keytype_ As String, util_ As Object) As Boolean
   file/line: roku_ads_lib:/Roku_Ads.brs(744)
#2  Function roku_ads_constructor() As Object
   file/line: roku_ads_lib:/Roku_Ads.brs(439)
#1  Function roku_ads() As Object
   file/line: roku_ads_lib:/Roku_Ads.brs(40)
#0  Function init() As Void
   file/line: pkg:/components/tasks/player/ad-beacons.brs(5)
Local Variables:
No variable info.
Threads:
ID    Location                                Source Code
 0    pkg:/source/main.brs(65)                m.screen.show()
 1*   ...ads_lib:/Roku_Ads_Beacons.brs(84)    ??
  *selected
aspiring
0 Kudos
1 REPLY 1
tim_beynart
Channel Surfer

Re: crash in Roku_Ads()

We ran into this when we instantiated RAF at application startup. Roku suggested we instantiate RAF inside a long running task that starts when content is requested.
This seems to have resolved the issue.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.