Closed ghost closed 3 years ago
I can confirm the issue is reproducible Firefox Preview Nighlty 201216 (Build #2015781675).
Though it is still an issue in 84.1.2, I've updated the code that provides the screenshot without errors, for my use case.
Since I've solved my issue and updated the production code, I'm going to close this. If the FF Fenix team want to have a reproducible code, I can provide a zip file containing the old version.
The current code doesn't improve the performance, it still takes a considerable amount of time, compared to other browsers, to process the image.
Steps to reproduce
Expected behavior
Take screenshot and show to the user.
Actual behavior
Script is terminated by timeout, no screenshot is taken.
Debug log
Debugging logs (where `$0` is the scene): Image (where $0 is the scene): ![debug log](https://user-images.githubusercontent.com/23178554/100291876-57669b80-2f55-11eb-972e-5d2c70d973fe.png)Aditional information
This is the script that runs when trying to take a screenshot:
https://github.com/aframevr/aframe/blob/cfd869b271cef9454e0c7979af1fb59c880194bc/src/components/scene/screenshot.js#L239-L250
it is expensive, so maybe Firefox is not handling memory correctly.
In Chromium based browsers and Safari it works as expected. Samsung Internet example:
Related: https://github.com/aframevr/aframe/issues/4736
Device information
┆Issue is synchronized with this Jira Task