tim_beynart
9 years agoChannel Surfer
Brightscript in Tasks, I am clueless, seeing "RENDER Thread" errors
Ok I have to implement Comscore in a SceneGraph app. All I have from the vendor is a BrightScript file we've been using in our SDK1 app.
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:
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:
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??
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??