teachingtechYT.github.io icon indicating copy to clipboard operation
teachingtechYT.github.io copied to clipboard

Using Ublock Origin (likely other script blockers) breaks the generated gcode

Open ashmandias opened this issue 3 years ago • 5 comments

If you try to generate gcode with ublock origin active, you get a file that has a NaN instead of valid numbers in many places. For example:

G1 XNaN YNaN E0.0614 F1800 G1 XNaN YNaN E0.7693 G1 XNaN YNaN E0.8307 G1 XNaN YNaN E1.5386 G1 XNaN YNaN E1.6000 G1 XNaN YNaN E2.3079 G1 XNaN YNaN E2.3692 G1 XNaN YNaN E3.0772

If you take the gcode 'firstlayer' file and run it through the gcode viewer, it generates a single square, instead of the expected five -- which might be easy to overlook.

Ideally there would be a sanity check script that would throw a warning if the string NaN is found in the resulting file.

It might also make sense to add a blurb to the warning on the introduction page.

ashmandias avatar Jan 24 '22 19:01 ashmandias

made an account to say thank you, didn't even think of the blocker on my new browser.

mikedaf avatar May 11 '22 19:05 mikedaf

Damn, I thought site is broken and made my own firstlayer in Fusion..

Disableing all kinds of shield (adblockers) in Brave didn't work tho, had to use FireFox with all adblockers turned off

McSneaky avatar May 18 '22 20:05 McSneaky

Printed in incognito Chrome (I don't use Chrome so no extensions are installed) worked. Blocked Firefox yielded a bunch of NaNs and one square only too.

slepiavka avatar May 26 '22 21:05 slepiavka

doesn't happen to me, firefox 102, ublock origin

pawrequest avatar Aug 08 '22 20:08 pawrequest

I just ran into this issue and caused the mother of all clogs because I didn't check the gcode... incognito chrome fixed everything right up

PowahSerg avatar Sep 19 '22 15:09 PowahSerg