You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is, it's difficult to decide what values of queue lengths are sensible and what are not. A value that might be sensible on one system might cause another one to run out of memory, due to it having less free memory than the first. We could allocate additional queue entries until either the request has been satisfied fully or no more memory is available, but in the latter case the system would be likely to run out of memory the next time a configuration command is used that requires memory, or after a few ore variables have been created.
Thank you for the detailed reply - I was maybe a little vage what I would expect from the firmware.
It looks like there is some code checking if there is enough ram available, but from some number onwards this check will fail and RRF will just crash.
M595 P1000000 <- will fail with an error
M595 P2000000000 <- will fail with an error
M595 P2019866849 <- will fail with an error
M595 P2019866850 <- will crash
so it looks like there is a buffer overflow in the check.
Duet Forum Discussion Thread
https://forum.duet3d.com/topic/34266/bug-m595-crashes-for-very-large-input-length
Which Duet products are you using?
Firmware Version
RepRapFirmware 3.5.0-rc.2
Duet Web Control Version
DWC 3.5.0-rc.2
Are you using a Single Board Computer (RaspberryPi) with your Duet?
Please upload the results of sending M122 in the gcode console.
Please upload the content of your config.g file.
Please upload the content of any other releveant macro files.
No response
Details specific to your printer.
No response
Links to additional info.
No response
What happened?
Expected result
Set the queue length to an invalid value should refuse the value and report an error.
Observed result
Warning: Lost connection to Duet (Timeout while waiting for transfer ready pin)
Steps to reproduce
M595 P4294967295
The text was updated successfully, but these errors were encountered: