3.4b1 - Duet 3 mini + SBC - Cannot set macro file finished
-
Running a print file, I got a heater fault at the beginning of the print so the print cancelled.
I cleared the fault and tried to restart to print using the print again button but it got stuck with a rotating circle.
This was in the console logWarning: Cannot set macro file finished because there is no file ID
I was able to get an M122=== Diagnostics === RepRapFirmware for Duet 3 Mini 5+ version 3.4.0beta1 (2021-07-10 16:20:41) running on Duet 3 Mini5plus Ethernet (SBC mode) Board ID: P2P4H-PA67A-G65J0-40TFU-L2D0Z-ZTS4L Used output buffers: 1 of 40 (14 max) === RTOS === Static ram: 102724 Dynamic ram: 93040 of which 0 recycled Never used RAM 45084, free system stack 120 words Tasks: SBC(ready,131.0%,319) HEAT(delaying,2.6%,251) Move(notifyWait,31.0%,274) CanReceiv(notifyWait,0.0%,941) CanSender(notifyWait,0.0%,357) CanClock(delaying,1.4%,332) TMC(delaying,64.6%,114) MAIN(running,1457.8%,441) IDLE(ready,0.3%,29) AIN(delaying,82.8%,264), total 1771.6% Owned mutexes: Telnet(MAIN) === Platform === Last reset 28:26:29 ago, cause: power up Last software reset time unknown, reason: User, none spinning, available RAM 49820, slot 2 Software reset code 0x0012 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x00000000 BFAR 0xe000ed38 SP 0x00000000 Task SBC Freestk 0 n/a Error status: 0x00 MCU revision 3, ADC conversions started 102390099, completed 102390099, timed out 0, errs 0 Step timer max interval 1491 MCU temperature: min 41.9, current 44.4, max 58.1 Supply voltage: min 23.7, current 23.8, max 23.9, under voltage events: 0, over voltage events: 0, power good: yes Heap OK, handles allocated/used 99/1, heap memory allocated/used/recyclable 2048/498/494, gc cycles 1 Driver 0: position 16230, standstill, SG min/max 0/432, read errors 0, write errors 0, ifcnt 25, reads 55689, writes 4, timeouts 0, DMA errors 0 Driver 1: position 12650, standstill, SG min/max 16/204, read errors 0, write errors 0, ifcnt 22, reads 55691, writes 3, timeouts 0, DMA errors 0 Driver 2: position 2286, standstill, SG min/max 4/202, read errors 0, write errors 0, ifcnt 22, reads 55691, writes 3, timeouts 0, DMA errors 0 Driver 3: position 0, standstill, SG min/max 0/410, read errors 0, write errors 0, ifcnt 25, reads 55690, writes 4, timeouts 0, DMA errors 0 Driver 4: position 0, standstill, SG min/max 0/412, read errors 0, write errors 0, ifcnt 25, reads 55689, writes 4, timeouts 0, DMA errors 0 Driver 5: position 0, assumed not present Driver 6: position 0, assumed not present Date/time: 2021-07-21 18:18:27 Cache data hit count 4294967295 Slowest loop: 71.46ms; fastest: 0.05ms === Storage === Free file entries: 10 SD card 0 not detected, interface speed: 0.0MBytes/sec SD card longest read time 0.0ms, write time 0.0ms, max retries 0 === Move === DMs created 83, maxWait 3253532ms, bed compensation in use: none, comp offset 0.000 === MainDDARing === Scheduled moves 58, completed moves 58, hiccups 0, stepErrors 0, LaErrors 0, Underruns [55, 0, 250], CDDA state -1 === AuxDDARing === Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1 === Heat === Bed heaters = 0 -1, chamberHeaters = -1 -1 === GCodes === Segments left: 0 Movement lock held by File HTTP* is doing "T0" in state(s) 0 Telnet* is doing "M122" in state(s) 0 File* is idle in state(s) 0 15 0, running macro USB is idle in state(s) 0 Aux is idle in state(s) 0 Trigger* is idle in state(s) 0 Queue* is idle in state(s) 0 LCD is idle in state(s) 0 SBC is idle in state(s) 0 Daemon is idle in state(s) 0 Aux2 is idle in state(s) 0 Autopause* is idle in state(s) 0 Code queue is empty. === CAN === Messages queued 312341, received 0, lost 0, longest wait 0ms for reply type 0, peak Tx sync delay 0, free buffers 17 (min 17), ts 173511/0/0 Tx timeouts 0,20,173511,0,0,138810 last cancelled message type 4514 dest 127 === SBC interface === State: 4, failed transfers: 1, checksum errors: 0 Last transfer: 4ms ago RX/TX seq numbers: 9775/9775 SPI underruns 0, overruns 0 Disconnects: 0, timeouts: 0, IAP RAM available 0x10aa4 Buffer RX/TX: 0/0-0 === Duet Control Server === Duet Control Server v3.4-b1 HTTP: Buffered code: T0 ==> 24 bytes Number of flush requests: 1 File: Finishing macro homez.g, started by G28 Z ;re-home z > Next stack level Executing macro bed.g, started by G32 > Next stack level Code buffer space: 4096 Configured SPI speed: 8000000Hz Full transfers per second: 39.16, max wait times: 184.0ms/0.0ms Codes per second: 16.26 Maximum length of RX/TX data transfers: 3552/1688 File /opt/dsf/sd/gcodes/CE3_X_Axis_Motor_Mount.gcode is selected, processing, paused ok
I had to emergency restart the machine to be able to rerun the print
-
@jay_s_uk Please share the affected macros and I'll have a look. You should be able to check what macros are running by starting DCS with logLevel debug (changable in /opt/dsf/conf/config.json or via command line parameter -l). Also share daemon.g if you are using that.
-
@chrishamm must be this one.
Normally it runs without issue
bed.g -
@chrishamm I had this happen again in 3.4b2.
I think what is happening is that during my start gcode, I run G32. I had a heater fault occur during running G32, resulting in the print pausing. When the fault is cleared, G32 is resumed but must not be resumed with a macro ID, causing it to fail at the end of the macro.
Hopefully that helps