Error: Failed to create height map file heightmap.csv
-
Probably DuetControlServer issue.
# CodeConsole Connected! G29 S3 Error: Failed to create height map file heightmap.csv G29 S3 P"/sys/heightmap.csv" Error: Failed to create height map file /sys/heightmap.csv G29 S3 P"0:/sys/heightmap.csv" Error: Failed to create height map file 0:/sys/heightmap.csv
DuetControlServer[9555]: [info] Processing G29 S3 DuetControlServer[9555]: [info] Sent G29 S3, remaining space 740 (2020 total), needed 28 DuetControlServer[9555]: [err] Failed to create directory 0:/sys DuetControlServer[9555]: [err] Failed to create folder 0:/sys while trying to open file 0:/sys/heightmap.csv DuetControlServer[9555]: [info] Completed G29 S3 DuetControlServer[9555]: Error: Failed to create height map file heightmap.csv DuetControlServer[9555]: [info] Processing G29 S3 P"/sys/heightmap.csv" DuetControlServer[9555]: [info] Sent G29 S3 P"/sys/heightmap.csv", remaining space 712 (1992 total), needed 56 DuetControlServer[9555]: [err] Failed to create directory /sys DuetControlServer[9555]: [err] Failed to create folder /sys while trying to open file /sys/heightmap.csv DuetControlServer[9555]: [info] Completed G29 S3 P"/sys/heightmap.csv" DuetControlServer[9555]: Error: Failed to create height map file /sys/heightmap.csv DuetControlServer[9555]: [info] Processing G29 S3 P"0:/sys/heightmap.csv" DuetControlServer[9555]: [info] Sent G29 S3 P"0:/sys/heightmap.csv", remaining space 712 (1992 total), needed 56 DuetControlServer[9555]: [err] Failed to create directory 0:/sys DuetControlServer[9555]: [err] Failed to create folder 0:/sys while trying to open file 0:/sys/heightmap.csv DuetControlServer[9555]: [info] Completed G29 S3 P"0:/sys/heightmap.csv" DuetControlServer[9555]: Error: Failed to create height map file 0:/sys/heightmap.csv
No problems creating or saving files from DWC2, even heightmap.csv. It just seems to be G29 that can't do it.
Running latest DSF. -
yep this is a bug - not sure when it will be squished but its a known issue.
-
I'll try and track it down.
-
Yeah I guess that you can't tell the firmware to NOT do any file operations on G29 so when it fails to save to the onboard SD card and can't (because it doesn't exist), it errors out and doesn't even save the heightmap to RAM. That means you can't even do an M374 (which is handled by the DSF) or a G29 S3 (because it's not in RAM and because it's NOT handled by the DSF but should be).
I'll let you guys deal with it.
-
@dc42 Would you be OK with an RRF pull request that skips file io for gcodes when UsingLinuxInterface() is true?
-
@dc42 Pull request https://github.com/dc42/RepRapFirmware/pull/321
Skips file I/O for heightmap ops when UsingLinuxInterface() is true.@chrishamm : Pull request https://github.com/chrishamm/DuetSoftwareFramework/pull/64
Fixes up the G29 S3 and M375 processing for Height maps.With both pull requests, heightmap ops should be fully operational.
-
@gtj0 would you please elaborate a little on how to "deploy" these changes? or x1,000,000 better.. do you have a bin for Duet 3 version v0.6 (MB6HC) that has the heighmap fix in it?
-
@triumphantduke All of the changes required to make this work have been merged into the codebases and I believe that @dc42 and @chrishamm are close to doing the next release. I hesitate to post binaries because of this. If you want to build it yourself, you'd need to build the v3-dev branch of RepRapFirmware and the master branch of DuetSoftwareFramework.