Sign in to follow this  
jfhs

Pixi v3 not working on Kindle Fire HD

Recommended Posts

Hi there!

 

Today I tried running the game I currently develop using Pixi on a Amazon Kindle Fire HD device (7" first generation). It didn't work at all (but it worked when I still used v2) and so I checked the v3 examples online and found that none of these work. All that is shown is the background color of the canvas (see attached screenshot).

 

I tried running the examples in both the Silk browser that comes with Fire OS as well as with a sideloaded Firefox Aurora and both browsers show a similar behaviour.

 

When I remote-debug the examples in Firefox, the only error I get is:

Error: WebGL: Exceeded 2 live WebGL contexts for this principal, losing the least recently used one. pixi.js:11246:13

 

The examples here don't work at all for me on the device:

http://pixijs.github.io/examples/

 

I also tried running examples for older versions of pixi and these seem to work just fine, both in Silk and Firefox:

http://www.goodboydigital.com/pixijs/examples/15/indexAll.html

http://www.goodboydigital.com/pixi-js-v2-fastest-2d-webgl-renderer/

 

Has support for older Kindle Fire HD devices been dropped or is this a bug? I didn't find a list of supported devices or platforms/browsers for pixi. Is there such a thing?

 

Has anyone tested Pixi v3 on a newer Kindle Fire HD device? Does it work there?

 

Thanks!

 

EDIT: When I use the CanvasRenderer in my game directly and not PIXI.autoDetectRenderer(), then it works in both browsers on Kindle Fire HD.

post-13852-0-94009800-1431689603_thumb.p

Share this post


Link to post
Share on other sites

Has support for older Kindle Fire HD devices been dropped or is this a bug? I didn't find a list of supported devices or platforms/browsers for pixi. Is there such a thing?

 

Technically we never supported those environments (idk what FF version is on Kindle), the "official" list is here: https://github.com/GoodBoyDigital/pixi.js/wiki/FAQs#what-browsers-are-supported

 

That being said, we definitely want to try and make it work. I wish we had more information about what was going wrong, because I don't own a Kindle to try it myself :(

 

Is there an emulator or something that this reproduces on?

Share this post


Link to post
Share on other sites

Hi xerver,

 

there once was an emulator for Kindle Fire devices but it has been discontinued. It never supported the Silk browser though, so it wouldn't have been of much help either, I'm afraid.

 

I just tried running the Khronos WebGL conformance tests in Silk and it tells me the browser doesn't support WebGL at all and refuses to run any further tests. If that's the case, maybe you should check out how their test differs from the auto-detect in pixi?

 

In Aurora the tests kind of work, but then the browser always tells me that a script is causing the page to be slow and the whole screen becomes black for a few seconds (even the Fire OS UI)... and then after maybe 15 minutes the system reboots. Maybe WebGL isn't supported well enough by the device and so Amazon disabled it for Silk but since Aurora (which is not in Amazon's app shop) doesn't know about it it tries to run WebGL and then fails?

 

If that helps you could point me to a test site and I could give you the console output or something.

 

Edit while editing: Huh? As I'm writing this I tried the examples again on github.io for Pixi v3 and now they work in Silk and PIXI.autoDetectRenderer() returns the CanvasRenderer. Maybe there was an update for Silk which I didn't get before? (Fire OS seems to update automatically without notifiying the user.)

 

In Aurora it still doesn't work though, but it is not officially supported by Amazon, so I doubt anyone other than developers use it at all there.

 

So maybe the problem just magically solved itself. ;)

Share this post


Link to post
Share on other sites

> I just tried running the Khronos WebGL conformance tests in Silk and it tells me the browser doesn't support WebGL at all and refuses to run any further tests. If that's the case, maybe you should check out how their test differs from the auto-detect in pixi?

That is interesting, I will definitely look into that more.

> Edit while editing: Huh? As I'm writing this I tried the examples again on github.io for Pixi v3 and now they work in Silk and PIXI.autoDetectRenderer() returns the CanvasRenderer. Maybe there was an update for Silk which I didn't get before? (Fire OS seems to update automatically without notifiying the user.)

That is pretty mind blowing...weird...

Sounds like WebGL isn't supported on the device, but the Silk browser is trying to do software emulation to make it work. I would just do some sniffing and for canvasrenderer for your cases.

Share this post


Link to post
Share on other sites

@xerver:

 

Yes, sniffing was my solution as well. Now I'm a little confused whether I should take it out again, I probably should. I guess something just went wrong on my device, maybe the graphics unit was on vacation or something, who knows. But it seems to run pretty well either way. :)

 

@Mat:

 

Good to know it works so well there, thanks for the heads up! Awesome!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.