- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Brightscript in Tasks, I am clueless, seeing "RENDER Thread" errors
So I include their file in a task like this, where my code is comscore.brs and the vendor code is comscore_4.1503.03.brs:
<?xml version="1.0" encoding="utf-8" ?>
<component name = "comscore" extends = "task" >
<interface>
<function name="setConfig" />
</interface>
<script type="text/brightscript" uri="pkg:/components/cpc/tasks/metrics/comscore.brs"/>
<script type="text/brightscript" uri="pkg:/components/cpc/tasks/metrics/vendor/comscore_4.1503.03.brs"/>
</component>
This is a Task Node added to a Group Node added to the Home Scene. When I run the app I get this infuriating error:
BRIGHTSCRIPT: ERROR: roUrlTransfer: creating MAIN|TASK-only component failed on RENDER thread: pkg:/components/cpc/tasks/metrics/vendor/comscore_4.1503.03.brs(719)
How can my task code be running on a render thread? I am calling methods on thei library from functions defined in comscore.brs and triggered using the "continuous server" approach to a task (using observeField with a port).
WTF is this error??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Brightscript in Tasks, I am clueless, seeing "RENDER Thread" errors
I was calling a function using callFunc on my Task, and this in turn used the library code. Apparently callFunc activity does not happen inside the sandbox of a Task.
Once I refactored my code to abandon callFunc and instead use a field observer it started behaving.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Brightscript in Tasks, I am clueless, seeing "RENDER Thread" errors
If that's comScore vCE by any chance, so it happens RAF supports that already (inquire within 🙂 ).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Brightscript in Tasks, I am clueless, seeing "RENDER Thread" errors
Where are the docs for RAF? All I saw was a reference to Comscore in some release notes, but no details. It was easier to just use what I have on hand, which is already familiar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Brightscript in Tasks, I am clueless, seeing "RENDER Thread" errors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Brightscript in Tasks, I am clueless, seeing "RENDER Thread" errors
Yeah I have basically memorized that page, but my point is that there is no documentation beyond this single sentence:
Added support for comScore vCE campaign measurement service
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Brightscript in Tasks, I am clueless, seeing "RENDER Thread" errors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Brightscript in Tasks, I am clueless, seeing "RENDER Thread" errors
Our Comscore implementation is different from vCE, though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Brightscript in Tasks, I am clueless, seeing "RENDER Thread" errors
I think there are multiple issues causing the same error because I am not using callFunc anywhere in my app and I am still seeing the error. It is so frustrating. In my case I am creating a roUrlTransfer object and using it in the very next line to set the url where the app crashes(intermittently). interesting thing is I see "BRIGHTSCRIPT ERROR: creating MAIN|TASK-only component failed on RENDER thread" in the terminal just before the crash but it says that the actual cause of the crash is 'Dot' operator attempted on invalid component because apparently the request object is invalid !! No clue how the request object could be invalid. Any thoughts appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Brightscript in Tasks, I am clueless, seeing "RENDER Thread" errors
@tim_beynart Can you please share what to do exactly in the task. We also have comscore.brs with us, but not sure how should it be implemented using tasks