Closed AndreasEpp closed 1 month ago
I have tested this now with the brand new fluidnc-3.8.4-pre5-win64 and the issue seems to be resolved. The file gets executed without crashing. I even tried a file that is 16 times as long as this one. Still no crashes. I will close this issue. Thank you for the good work!
Wiki Search Terms
Crash, LocalFS, Local Storage, Flash
Controller Board
ESPDUINO-32 ESP32 NodeMCU ESP32 D1 Mini NodeMCU
Machine Description
The machine is a 4 axis camera motion control rig with slide, pan, tilt and focus axes. (Not the most traditional machine one here, I know.) Slide, pan, and tilt have endstops and homing. User pin outputs can trigger the focus and trigger of the camera. You can see it working here https://youtube.com/shorts/NohEinu3J5U?feature=share
To recreate the error I have reduced the setup to just the board plugged into the USB of my laptop. I have changed the config file to just the four axes, without homing, but with the user output pins. It behaves exactly the same as the full setup.
Input Circuits
Configuration file
Startup Messages
User Interface Software
FluidTerm
What happened?
I execute a gcode file from local storage via
$LocalFS/Run=moco.nc
. After about one third of the file fluidnc crashes and reboots with the following output:Other, shorter files run fine from local storage.
GCode File
G94 G0X0.00Z45.00Y45.00 G93 G4 P1 G1X0.00Z45.00Y45.00F1440.00 G1X0.00Z45.00Y45.00F1440.00 G1X0.02Z45.00Y45.00F1440.00 G1X0.10Z45.02Y44.98F1440.00 G1X0.22Z45.04Y44.96F1440.00 G1X0.38Z45.07Y44.93F1440.00 G1X0.60Z45.11Y44.89F1440.00 G1X0.86Z45.15Y44.85F1440.00 G1X1.16Z45.21Y44.79F1440.00 G1X1.52Z45.27Y44.73F1440.00 G1X1.91Z45.34Y44.66F1440.00 G1X2.35Z45.42Y44.58F1440.00 G1X2.84Z45.51Y44.49F1440.00 G1X3.37Z45.61Y44.39F1440.00 G1X3.95Z45.71Y44.29F1440.00 G1X4.56Z45.82Y44.18F1440.00 G1X5.22Z45.94Y44.06F1440.00 G1X5.93Z46.07Y43.93F1440.00 G1X6.67Z46.20Y43.80F1440.00 G1X7.46Z46.34Y43.66F1440.00 G1X8.29Z46.49Y43.51F1440.00 G1X9.16Z46.65Y43.35F1440.00 G1X10.07Z46.81Y43.19F1440.00 G1X11.02Z46.98Y43.02F1440.00 G1X12.01Z47.16Y42.84F1440.00 G1X13.04Z47.35Y42.65F1440.00 G1X14.11Z47.54Y42.46F1440.00 G1X15.22Z47.74Y42.26F1440.00 G1X16.36Z47.95Y42.05F1440.00 G1X17.55Z48.16Y41.84F1440.00 G1X18.77Z48.38Y41.62F1440.00 G1X20.02Z48.60Y41.40F1440.00 G1X21.32Z48.84Y41.16F1440.00 G1X22.65Z49.08Y40.92F1440.00 G1X24.02Z49.32Y40.68F1440.00 G1X25.42Z49.58Y40.42F1440.00 G1X26.86Z49.83Y40.17F1440.00 G1X28.33Z50.10Y39.90F1440.00 G1X29.84Z50.37Y39.63F1440.00 G1X31.38Z50.65Y39.35F1440.00 G1X32.96Z50.93Y39.07F1440.00 G1X34.56Z51.22Y38.78F1440.00 G1X36.20Z51.52Y38.48F1440.00 G1X37.88Z51.82Y38.18F1440.00 G1X39.58Z52.12Y37.88F1440.00 G1X41.32Z52.44Y37.56F1440.00 G1X43.09Z52.76Y37.24F1440.00 G1X44.89Z53.08Y36.92F1440.00 G1X46.72Z53.41Y36.59F1440.00 G1X48.58Z53.74Y36.26F1440.00 G1X50.47Z54.08Y35.92F1440.00 G1X52.39Z54.43Y35.57F1440.00 G1X54.33Z54.78Y35.22F1440.00 G1X56.31Z55.14Y34.86F1440.00 G1X58.32Z55.50Y34.50F1440.00 G1X60.35Z55.86Y34.14F1440.00 G1X62.41Z56.23Y33.77F1440.00 G1X64.49Z56.61Y33.39F1440.00 G1X66.61Z56.99Y33.01F1440.00 G1X68.75Z57.37Y32.63F1440.00 G1X70.91Z57.76Y32.24F1440.00 G1X73.10Z58.16Y31.84F1440.00 G1X75.32Z58.56Y31.44F1440.00 G1X77.56Z58.96Y31.04F1440.00 G1X79.83Z59.37Y30.63F1440.00 G1X82.12Z59.78Y30.22F1440.00 G1X84.43Z60.20Y29.80F1440.00 G1X86.76Z60.62Y29.38F1440.00 G1X89.12Z61.04Y28.96F1440.00 G1X91.50Z61.47Y28.53F1440.00 G1X93.90Z61.90Y28.10F1440.00 G1X96.33Z62.34Y27.66F1440.00 G1X98.77Z62.78Y27.22F1440.00 G1X101.24Z63.22Y26.78F1440.00 G1X103.73Z63.67Y26.33F1440.00 G1X106.23Z64.12Y25.88F1440.00 G1X108.76Z64.58Y25.42F1440.00 G1X111.31Z65.03Y24.97F1440.00 G1X113.87Z65.50Y24.50F1440.00 G1X116.45Z65.96Y24.04F1440.00 G1X119.05Z66.43Y23.57F1440.00 G1X121.67Z66.90Y23.10F1440.00 G1X124.31Z67.38Y22.62F1440.00 G1X126.96Z67.85Y22.15F1440.00 G1X129.63Z68.33Y21.67F1440.00 G1X132.31Z68.82Y21.18F1440.00 G1X135.02Z69.30Y20.70F1440.00 G1X137.73Z69.79Y20.21F1440.00 G1X140.46Z70.28Y19.72F1440.00 G1X143.21Z70.78Y19.22F1440.00 G1X145.97Z71.27Y18.73F1440.00 G1X148.74Z71.77Y18.23F1440.00 G1X151.53Z72.28Y17.72F1440.00 G1X154.33Z72.78Y17.22F1440.00 G1X157.15Z73.29Y16.71F1440.00 G1X159.97Z73.79Y16.21F1440.00 G1X162.81Z74.31Y15.69F1440.00 G1X165.66Z74.82Y15.18F1440.00 G1X168.52Z75.33Y14.67F1440.00 G1X171.39Z75.85Y14.15F1440.00 G1X174.27Z76.37Y13.63F1440.00 G1X177.16Z76.89Y13.11F1440.00 G1X180.06Z77.41Y12.59F1440.00 G1X182.97Z77.93Y12.07F1440.00 G1X185.88Z78.46Y11.54F1440.00 G1X188.81Z78.99Y11.01F1440.00 G1X191.75Z79.51Y10.49F1440.00 G1X194.69Z80.04Y9.96F1440.00 G1X197.64Z80.57Y9.43F1440.00 G1X200.59Z81.11Y8.89F1440.00 G1X203.55Z81.64Y8.36F1440.00 G1X206.52Z82.17Y7.83F1440.00 G1X209.50Z82.71Y7.29F1440.00 G1X212.48Z83.25Y6.75F1440.00 G1X215.46Z83.78Y6.22F1440.00 G1X218.45Z84.32Y5.68F1440.00 G1X221.44Z84.86Y5.14F1440.00 G1X224.44Z85.40Y4.60F1440.00 G1X227.44Z85.94Y4.06F1440.00 G1X230.44Z86.48Y3.52F1440.00 G1X233.44Z87.02Y2.98F1440.00 G1X236.45Z87.56Y2.44F1440.00 G1X239.46Z88.10Y1.90F1440.00 G1X242.47Z88.64Y1.36F1440.00 G1X245.48Z89.19Y0.81F1440.00 G1X248.49Z89.73Y0.27F1440.00 G1X251.51Z90.27Y-0.27F1440.00 G1X254.52Z90.81Y-0.81F1440.00 G1X257.53Z91.36Y-1.36F1440.00 G1X260.54Z91.90Y-1.90F1440.00 G1X263.55Z92.44Y-2.44F1440.00 G1X266.56Z92.98Y-2.98F1440.00 G1X269.56Z93.52Y-3.52F1440.00 G1X272.56Z94.06Y-4.06F1440.00 G1X275.56Z94.60Y-4.60F1440.00 G1X278.56Z95.14Y-5.14F1440.00 G1X281.55Z95.68Y-5.68F1440.00 G1X284.54Z96.22Y-6.22F1440.00 G1X287.52Z96.75Y-6.75F1440.00 G1X290.50Z97.29Y-7.29F1440.00 G1X293.48Z97.83Y-7.83F1440.00 G1X296.45Z98.36Y-8.36F1440.00 G1X299.41Z98.89Y-8.89F1440.00 G1X302.36Z99.43Y-9.43F1440.00 G1X305.31Z99.96Y-9.96F1440.00 G1X308.25Z100.49Y-10.49F1440.00 G1X311.19Z101.01Y-11.01F1440.00 G1X314.12Z101.54Y-11.54F1440.00 G1X317.03Z102.07Y-12.07F1440.00 G1X319.94Z102.59Y-12.59F1440.00 G1X322.84Z103.11Y-13.11F1440.00 G1X325.73Z103.63Y-13.63F1440.00 G1X328.61Z104.15Y-14.15F1440.00 G1X331.48Z104.67Y-14.67F1440.00 G1X334.34Z105.18Y-15.18F1440.00 G1X337.19Z105.69Y-15.69F1440.00 G1X340.03Z106.21Y-16.21F1440.00 G1X342.85Z106.71Y-16.71F1440.00 G1X345.67Z107.22Y-17.22F1440.00 G1X348.47Z107.72Y-17.72F1440.00 G1X351.26Z108.23Y-18.23F1440.00 G1X354.03Z108.73Y-18.73F1440.00 G1X356.79Z109.22Y-19.22F1440.00 G1X359.54Z109.72Y-19.72F1440.00 G1X362.27Z110.21Y-20.21F1440.00 G1X364.98Z110.70Y-20.70F1440.00 G1X367.69Z111.18Y-21.18F1440.00 G1X370.37Z111.67Y-21.67F1440.00 G1X373.04Z112.15Y-22.15F1440.00 G1X375.69Z112.62Y-22.62F1440.00 G1X378.33Z113.10Y-23.10F1440.00 G1X380.95Z113.57Y-23.57F1440.00 G1X383.55Z114.04Y-24.04F1440.00 G1X386.13Z114.50Y-24.50F1440.00 G1X388.69Z114.97Y-24.97F1440.00 G1X391.24Z115.42Y-25.42F1440.00 G1X393.77Z115.88Y-25.88F1440.00 G1X396.27Z116.33Y-26.33F1440.00 G1X398.76Z116.78Y-26.78F1440.00 G1X401.23Z117.22Y-27.22F1440.00 G1X403.67Z117.66Y-27.66F1440.00 G1X406.10Z118.10Y-28.10F1440.00 G1X408.50Z118.53Y-28.53F1440.00 G1X410.88Z118.96Y-28.96F1440.00 G1X413.24Z119.38Y-29.38F1440.00 G1X415.57Z119.80Y-29.80F1440.00 G1X417.89Z120.22Y-30.22F1440.00 G1X420.17Z120.63Y-30.63F1440.00 G1X422.44Z121.04Y-31.04F1440.00 G1X424.68Z121.44Y-31.44F1440.00 G1X426.90Z121.84Y-31.84F1440.00 G1X429.09Z122.24Y-32.24F1440.00 G1X431.25Z122.63Y-32.63F1440.00 G1X433.39Z123.01Y-33.01F1440.00 G1X435.51Z123.39Y-33.39F1440.00 G1X437.59Z123.77Y-33.77F1440.00 G1X439.65Z124.14Y-34.14F1440.00 G1X441.68Z124.50Y-34.50F1440.00 G1X443.69Z124.86Y-34.86F1440.00 G1X445.67Z125.22Y-35.22F1440.00 G1X447.61Z125.57Y-35.57F1440.00 G1X449.53Z125.92Y-35.92F1440.00 G1X451.42Z126.26Y-36.26F1440.00 G1X453.28Z126.59Y-36.59F1440.00 G1X455.11Z126.92Y-36.92F1440.00 G1X456.91Z127.24Y-37.24F1440.00 G1X458.68Z127.56Y-37.56F1440.00 G1X460.42Z127.88Y-37.88F1440.00 G1X462.12Z128.18Y-38.18F1440.00 G1X463.80Z128.48Y-38.48F1440.00 G1X465.44Z128.78Y-38.78F1440.00 G1X467.04Z129.07Y-39.07F1440.00 G1X468.62Z129.35Y-39.35F1440.00 G1X470.16Z129.63Y-39.63F1440.00 G1X471.67Z129.90Y-39.90F1440.00 G1X473.14Z130.17Y-40.17F1440.00 G1X474.58Z130.42Y-40.42F1440.00 G1X475.98Z130.68Y-40.68F1440.00 G1X477.35Z130.92Y-40.92F1440.00 G1X478.68Z131.16Y-41.16F1440.00 G1X479.98Z131.40Y-41.40F1440.00 G1X481.23Z131.62Y-41.62F1440.00 G1X482.45Z131.84Y-41.84F1440.00 G1X483.64Z132.05Y-42.05F1440.00 G1X484.78Z132.26Y-42.26F1440.00 G1X485.89Z132.46Y-42.46F1440.00 G1X486.96Z132.65Y-42.65F1440.00 G1X487.99Z132.84Y-42.84F1440.00 G1X488.98Z133.02Y-43.02F1440.00 G1X489.93Z133.19Y-43.19F1440.00 G1X490.84Z133.35Y-43.35F1440.00 G1X491.71Z133.51Y-43.51F1440.00 G1X492.54Z133.66Y-43.66F1440.00 G1X493.33Z133.80Y-43.80F1440.00 G1X494.07Z133.93Y-43.93F1440.00 G1X494.78Z134.06Y-44.06F1440.00 G1X495.44Z134.18Y-44.18F1440.00 G1X496.05Z134.29Y-44.29F1440.00 G1X496.63Z134.39Y-44.39F1440.00 G1X497.16Z134.49Y-44.49F1440.00 G1X497.65Z134.58Y-44.58F1440.00 G1X498.09Z134.66Y-44.66F1440.00 G1X498.48Z134.73Y-44.73F1440.00 G1X498.84Z134.79Y-44.79F1440.00 G1X499.14Z134.85Y-44.85F1440.00 G1X499.40Z134.89Y-44.89F1440.00 G1X499.62Z134.93Y-44.93F1440.00 G1X499.78Z134.96Y-44.96F1440.00 G1X499.90Z134.98Y-44.98F1440.00 G1X499.98Z135.00Y-45.00F1440.00
Other Information
I have tried shortening the lines by omitting one axis, but the behavior is the same. From reading other issues here (e.g. #1322, #1308 ) it seems that there is "flash unsafe code" in ISRs left. Just a guess.
I would like to add that your work here is fantastic and much appreciated! FluidNC Rocks!