JdeRobot / RoboticsAcademy

Learn Robotics with JdeRobot
https://jderobot.github.io/RoboticsAcademy
GNU General Public License v3.0
307 stars 217 forks source link

[3D reconstruction] Does not work on Chrome or Chromium based browsers #2583

Closed javizqh closed 17 hours ago

javizqh commented 1 week ago

The 3D canvas that appears on Firefox does not appear on Chrome or Chromium based browsers causing the exercise to crash when you execute GUI.ShowNewPoints() a couple of times.

Firefox Screenshot from 2024-06-20 13-27-28

Chromium or Chrome Screenshot from 2024-06-20 13-27-12

javizqh commented 1 week ago

In Chromium the width of the canvas is set to 0, while in Firefox it has an actual width.

Same happens with the images from the exercise. In Firefox they fit within the UI, but in Chromium the images appear bigger than they should, not displaying the image properly

javizqh commented 1 week ago

After the PR the issue that remains is that the camera images are not displayed properly on chrome:

Chrome:

Screenshot from 2024-06-20 14-08-09 Screenshot from 2024-06-20 14-07-59

Firefox:

Screenshot from 2024-06-20 14-09-42

Apoorvgarg-creator commented 1 week ago

@javizqh Are you working on this issue ? I see you have raised one PR and still some problem is occurring on this.

If possible, we can work together on this issue.

javizqh commented 1 week ago

I made a quick fix in order to have the exercise working at least.

pawanw17 commented 1 week ago

Unfortunately, I never faced the crash issue, I used Chrome on Ubuntu 20.04 while testing

Apoorvgarg-creator commented 18 hours ago

Hi @javizqh For me It is running perfectly fine in Chrome

javizqh commented 18 hours ago

Tell @pawanw17 to test it, if It works for him we can close this issue

pawanw17 commented 17 hours ago

Looks fine to me: image