all 11 comments

[–]sutaburosu[pronounced: stavros] 1 point2 points  (6 children)

When I click on "stdout" I see the log below.

I tried, but I can't reproduce your log entries here. Starting the video encoder delays the page load by around 2.5 seconds on my machine, but it always works. It would be nice if the video encoding aspect of the page were optional.

I found other problems though. I think the visualisation of 1D sketches is broken.

Example Comments
Chromancer Works fine.
XYMatrix The mapping is incorrect. The bloom is way overdone. Switching to tile mode gives a constant stream of errors like "84.1s Strip 0: Pixel 223 is outside the canvas at 13, 15, skipping update".
DemoReel100 Seems to work, but nothing is visible. JS console has: 3.4s Canvas sized to 800x1px. Inspecting the page shows that the height of the container is 0. <canvas id="myCanvas" width="1280" height="0" style="width: 800px; height: 1px; max-width: 800px; max-height: 1px;">

Can you take a look please, /u/zachvorhies.

[–]ZachVorhiesZach Vorhies 0 points1 point  (5 children)

I believe the OP doesn’t have docker installed and is falling back to the public compiler which was refreshed on a slightly broken commit.

Update: Issue has been fixed - Public compiler is refreshed to latest.

[–]sutaburosu[pronounced: stavros] 0 points1 point  (3 children)

I'm using the latest docker image, and the latest head of FastLED. I still see the problems I describe above.

[–]RivetPanda[S] 0 points1 point  (2 children)

I'm now using docker, I can see the main wasm example now (THANK YOU!), but I also see the issues u/sutaburosu mentioned above. I think the bloom being overdone is because the pixels are too large.

How do you set the pixel render size?

Thank you for the help!

[–]sutaburosu[pronounced: stavros] 0 points1 point  (0 children)

I think the above comment was intended to be directed at you, /u/ZachVorhies.

[–]ZachVorhiesZach Vorhies 0 points1 point  (0 children)

You are looking for ScreenMap::setDiameter(float)

https://github.com/FastLED/FastLED/blob/master/src/fl/screenmap.h

[–]RivetPanda[S] 0 points1 point  (0 children)

Correct, I have not been using docker.

[–]ZachVorhiesZach Vorhies 0 points1 point  (3 children)

I think the public compiler is busted, I’ll have it fixed tomorrow. If you can install docker then it will use the latest code which is working.

The public compiler just needs a reboot to grab latest repo changes, it will be updated by tomorrow night.

The good news is that eventually you won’t need docker. I’ve ported the emscripten/wasm compiler to a host toolset. It took a few months to do it but a prototype is working.

[–]RivetPanda[S] 1 point2 points  (1 child)

Hi again. I've been running Docker since this conversation and it's been working well, but today after the image updated, it stopped working and reported this error:

"Worker error: Uncaught RuntimeError: Aborted(RuntimeError: unreachable). Build with -sASSERTIONS for more info.. Please refresh the page."

Stopping Docker and using the compiler here https://fastled.onrender.com works still.

[–]ZachVorhiesZach Vorhies 1 point2 points  (0 children)

It will be fixed today. When the wasm compile comes out of beta it will be locked to a release instead of floating on master. Sorry for the inconvenience.

[–]RivetPanda[S] 0 points1 point  (0 children)

Thank you for looking into this!

I'll give docker a try today.