Available memory 56921472 used 13078528 max 70000000
"sonnykr" wrote:
My images are around 300X500
and the memory usage is:Available memory 56921472 used 13078528 max 70000000
"TheEndless" wrote:
Can you share the code that's causing this? Are you verifying that roTextureRequestEvent.GetState() indicates the bitmap is ready (3)?
if (msg <> invalid and type(msg) = "roTextureRequestEvent")
' read the response received
state = msg.GetState()
id = msg.GetId()
uri = msg.GetURI()
' check if the image was downloaded successfully
if (state = 3)
DebugLog("AsyncTextureManager", "Image downloaded successfully. URL : " + uri)
if (type(msg.GetBitmap()) = "roBitmap" or type(msg.GetBitmap()) = "bitmap")
receivedBitmap = msg.GetBitmap()
' execute the successCallback
successCallback(receivedBitmap, context)
else
DebugLog("AsyncTextureManager", "Bitmap download Failed")
end if
end if
end if
receivedBitmap = msg.GetBitmap()
receivedBitmap = msg.GetBitmap()
if (type(receivedBitmap) = "roBitmap" or type(receivedBitmap) = "bitmap")
' execute the successCallback
successCallback(receivedBitmap, context)
else
DebugLog("AsyncTextureManager", "Bitmap download Failed")
end if
"sonnykr" wrote:
That was it! That solved the issue. Thank you TheEndless 🙂
We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.
Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality.
In the meantime, for additional assistance, visit our Support Site.
Thanks for your patience — we’re excited to share what’s next!