DSC SPI fault after finishing print - 3.2 beta 1



  • I have just ran a print successfully but as soon as the tool was docked, DSF lost connection to the duet.

    Here is an output from the raspberry pi

    journalctl -u duetcontrolserver.service -f
    -- Logs begin at Wed 2020-09-16 22:17:01 BST. --
    Sep 17 14:57:13 raspberrypi DuetControlServer[1232]:    at DuetControlServer.SPI.Channel.Manager.HandleReply(MessageTypeFlags flags, String reply) in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/SPI/Channel/Manager.cs:line 133
    Sep 17 14:57:13 raspberrypi DuetControlServer[1232]:    at DuetControlServer.SPI.Interface.HandleMessage() in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/SPI/Interface.cs:line 966
    Sep 17 14:57:13 raspberrypi DuetControlServer[1232]:    at DuetControlServer.SPI.Interface.Run() in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/SPI/Interface.cs:line 700
    Sep 17 14:57:13 raspberrypi DuetControlServer[1232]: [fatal] SPI task faulted
    Sep 17 14:57:13 raspberrypi DuetControlServer[1232]:    System.NullReferenceException: Object reference not set to an instance of an object.
    Sep 17 14:57:13 raspberrypi DuetControlServer[1232]:    at DuetControlServer.Commands.Code.get_FirmwareTask() in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Commands/Generic/Code.cs:line 553
    Sep 17 14:57:13 raspberrypi DuetControlServer[1232]:    at DuetControlServer.SPI.Channel.Processor.HandleReply(MessageTypeFlags flags, String reply) in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/SPI/Channel/Processor.cs:line 808
    Sep 17 14:57:13 raspberrypi DuetControlServer[1232]:    at DuetControlServer.SPI.Channel.Manager.HandleReply(MessageTypeFlags flags, String reply) in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/SPI/Channel/Manager.cs:line 133
    Sep 17 14:57:13 raspberrypi DuetControlServer[1232]:    at DuetControlServer.SPI.Interface.HandleMessage() in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/SPI/Interface.cs:line 966
    Sep 17 14:57:13 raspberrypi DuetControlServer[1232]:    at DuetControlServer.SPI.Interface.Run() in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/SPI/Interface.cs:line 700
    
    

    I am running RR3 3.2 beta 1 on a duet 3 with SBC
    DSF Version 3.2.0-beta1+1
    DWC Version 3.2.0-beta1+2

    A reboot of the system was required to recover



  • Just had the same thing happen again after another print



  • Just had the error again at the end of a print. different gcode file, no idea of the cause

    journalctl -u duetcontrolserver.service -f
    -- Logs begin at Wed 2020-09-23 11:17:01 BST. --
    Sep 24 20:30:52 raspberrypi DuetControlServer[404]:    at DuetControlServer.SPI.Channel.Manager.HandleReply(MessageTypeFlags flags, String reply) in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/SPI/Channel/Manager.cs:line 133
    Sep 24 20:30:52 raspberrypi DuetControlServer[404]:    at DuetControlServer.SPI.Interface.HandleMessage() in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/SPI/Interface.cs:line 966
    Sep 24 20:30:52 raspberrypi DuetControlServer[404]:    at DuetControlServer.SPI.Interface.Run() in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/SPI/Interface.cs:line 700
    Sep 24 20:30:52 raspberrypi DuetControlServer[404]: [fatal] SPI task faulted
    Sep 24 20:30:52 raspberrypi DuetControlServer[404]:    System.NullReferenceException: Object reference not set to an instance of an object.
    Sep 24 20:30:52 raspberrypi DuetControlServer[404]:    at DuetControlServer.Commands.Code.get_FirmwareTask() in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/Commands/Generic/Code.cs:line 553
    Sep 24 20:30:52 raspberrypi DuetControlServer[404]:    at DuetControlServer.SPI.Channel.Processor.HandleReply(MessageTypeFlags flags, String reply) in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/SPI/Channel/Processor.cs:line 808
    Sep 24 20:30:52 raspberrypi DuetControlServer[404]:    at DuetControlServer.SPI.Channel.Manager.HandleReply(MessageTypeFlags flags, String reply) in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/SPI/Channel/Manager.cs:line 133
    Sep 24 20:30:52 raspberrypi DuetControlServer[404]:    at DuetControlServer.SPI.Interface.HandleMessage() in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/SPI/Interface.cs:line 966
    Sep 24 20:30:52 raspberrypi DuetControlServer[404]:    at DuetControlServer.SPI.Interface.Run() in /home/christian/Duet3D/DuetSoftwareFramework/src/DuetControlServer/SPI/Interface.cs:line 700
    
    



  • Moderator

    Thanks for the report.


  • administrators

    @Phaedrux said in DSC SPI fault after finishing print - 3.2 beta 1:

    Thanks for the report.

    Hmm, odd. It looks like you were running some kind of macro when it occurred. Perhaps a tool change or something else?

    I'll try to work out a fix. You may want to increase BufferedPrintCodes to 48 or 64 in /opt/dsf/conf/config.json and check if that helps for now.



  • I'll give that a go.
    And at the end of the print, it'll run tfree and that's when it dies on me.
    Doesn't always happen.


Log in to reply