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: 
TheEndless
Channel Surfer

Re: Rant: Dev.Installer, i hate your passive-aggressive guts

"EnTerr" wrote:
"TheEndless" wrote:
It basically dumps a list of everything currently consuming graphics memory along with a used/available total at the end. Extremely useful for troubleshooting 2d API development issues. ... Did it just recently start happening, or has it always happened with that particular dev channel?

It has happened months ago too but i cannot quantify it, i did not get annoyed as much (maybe because i did not use Dev.Installer often). Since i reproduced it with the SourceForge example, perhaps you can replay it? Telnet 8080 is also alive, this coma is amazing:
>r2d2_bitmaps
RoGraphics instance 0x2ee696c1
address width height bpp size name
Available memory 38000000 used 0 max 38000000
RoGraphics instance 0x4c6e3ac1
address width height bpp size name
0x70b9d511 64 64 4 16384
Available memory 37983616 used 16384 max 38000000

That's weird. You appear to have two RoGraphics instances, and the width and height of the image in memory doesn't match what's in the SimpleAnimatedSprite.zip (1200x300). Is that the output you're seeing when you run the unmodified SDK example you linked earlier? This is the output I get:
>r2d2_bitmaps
RoGraphics instance 0x18eeebfc
address width height bpp size name
0x18e004f4 1200 300 4 1556480 /tmp/plugin/MIAAAAfCPXkR/pkg:/assets/bitmapset.png
Available memory 36443520 used 1556480 max 38000000
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
EnTerr
Roku Guru

Re: Rant: Dev.Installer, i hate your passive-aggressive guts

"TheEndless" wrote:
That's weird. You appear to have two RoGraphics instances, and the width and height of the image in memory doesn't match what's in the SimpleAnimatedSprite.zip (1200x300). Is that the output you're seeing when you run the unmodified SDK example you linked earlier? This is the output I get:

Well perhaps this is because your player is not wedged. Did you try it on 3xxx player?
Yes, what i pasted was from the textbook example.
But wait, there is development: i left the player alone for a while and when i returned, it was running the screen saver! So it's in a very precarious condition. But no, it did not start responding to physical or virtual remote any better, nor telnet 8085 (telnet works in the sense it shows me the last screen but ^C is no go).

Here are 2 r2d2_bitmaps - 1st when SimpleAnimatedSprite is deployed (looks like yours) and 2nd after it was re-deployed and comatosed the box:
>r2d2_bitmaps
RoGraphics instance 0x44318266
address width height bpp size name
0x2fd11e86 1200 300 4 1556480 /tmp/plugin/ADAAAAtOJjzA/pkg:/assets/bitmapset.png
Available memory 36443520 used 1556480 max 38000000
>
>r2d2_bitmaps
RoGraphics instance 0x44318266
address width height bpp size name
Available memory 38000000 used 0 max 38000000
RoGraphics instance 0x1f121946
address width height bpp size name
0x1abf7546 64 64 4 16384
Available memory 37983616 used 16384 max 38000000
0 Kudos
TheEndless
Channel Surfer

Re: Rant: Dev.Installer, i hate your passive-aggressive guts

"EnTerr" wrote:
Here are 2 r2d2_bitmaps - 1st when SimpleAnimatedSprite is deployed (looks like yours) and 2nd after it was re-deployed and comatosed the box:

Ah ha! It only happens if you install the new version while the channel is still running. If you exit it first, then no hang, no second RoGraphics instance.

My build script sends two Home key presses via ECP (one to exit screensaver, a second to exit running channel) before installing, so that could be why I've not run across this before.

BTW, you can force the box to reboot with the remote when this happens by using the core dump "Konami" code: Home x 5, Up, Rew x 2, FF x 2
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos