Forum Discussion

sonnykr's avatar
sonnykr
Visitor
11 years ago

[Solved] roTextureRequestEvent getBitmap() fails

Hey All,

Im using roTextureManager to download some images, but when I do msg.GetBitmap(), the console freezes and Roku restarts. Or, some times, it succeeds, and returns a bitmap with 0 width and height. Has anybody encountered this problem, with roTextureManager before?


Thanks

13 Replies

  • RokuKC's avatar
    RokuKC
    Roku Employee
    "sonnykr" wrote:
    That's true, I never expected calling GetBitmap() multiple times would cause a crash. May be this should be added to the documentation. Especially since it causes Roku to restart.


    Issue confirmed. Thanks for the bug report.
  • "RokuKC" wrote:
    "sonnykr" wrote:
    That's true, I never expected calling GetBitmap() multiple times would cause a crash. May be this should be added to the documentation. Especially since it causes Roku to restart.


    Issue confirmed. Thanks for the bug report.


    Oh cool. Thanks RokuKC!
  • "TheEndless" wrote:
    Interesting.. you're calling GetBitmap() three times in that code, and it doesn't blow up until the last one. I wouldn't expect it to ...

    In practice it was getting called only 2x - because of the short-circuiting of the OR - so it was bombing on the 2nd call to getBitmap(). It would be disconcerting if it was err-ing on the 3rd call but now is just a regular bug, phew 8-)

    Also, i don't think there is type()="bitmap" ever, is there? I trust when getBitmap() <> invalid, it's always roBitmap.