When printing to OctoPrint from Cura, OctoPrint will frequently act as though the print has finished already

What is the problem?

After I slice a model in Cura (5.5.0) and click "Print With OctoPrint", Octoprint will frequently load the model, take it to 100% right away, and do nothing else. The code displayed on the terminal is:

Changing monitoring state from "Operational" to "Starting"
Send: N0 M110 N0125
Recv: ok
Changing monitoring state from "Starting" to "Printing"
Changing monitoring state from "Printing" to "Finishing"
Send: N1 M400
38
Recv: ok
Changing monitoring state from "Finishing" to "Operational"

What did you already try to solve it?

Restarting my PC, the printer, and the RaspberryPi

Have you tried running in safe mode?

Yes

Did running in safe mode solve the problem?

No

Systeminfo Bundle

You can download this in OctoPrint's System Information dialog ... no bundle, no support!)

browser.user_agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
connectivity.connection_check: 1.1.1.1:53
connectivity.connection_ok: True
connectivity.enabled: True
connectivity.online: True
connectivity.resolution_check: octoprint.org
connectivity.resolution_ok: True
env.hardware.cores: 4
env.hardware.freq: 1000.0
env.hardware.ram: 380948480
env.os.bits: 32
env.os.id: linux
env.os.platform: linux
env.plugins.pi_support.model: Raspberry Pi Zero 2 W Rev 1.0
env.plugins.pi_support.octopi_camera_stack: webcamd
env.plugins.pi_support.octopi_version: 1.0.0
env.plugins.pi_support.octopiuptodate_build: 1.0.0-1.10.3-20241105092907
env.plugins.pi_support.octopiuptodate_build_short: 2024.11.05.092907
env.plugins.pi_support.throttle_check_enabled: True
env.plugins.pi_support.throttle_check_functional: True
env.plugins.pi_support.throttle_state: 0x0
env.python.pip: 22.3
env.python.version: 3.9.2
env.python.virtualenv: True
octoprint.last_safe_mode.date: 2025-04-01T21:59:58Z
octoprint.last_safe_mode.reason: settings
octoprint.safe_mode: False
octoprint.version: 1.10.3
printer.firmware: Marlin 2.1.1 (May 20 2023 00:19:16)
systeminfo.generated: 2025-04-02T23:14:54Z
systeminfo.generator: zipapi

Additional information about your setup

OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible

OctoPrint Version 1.10.3
Build 2024.11.05.092907 with "webcamd", based on OctoPi 1.0.0, running on Raspberry Pi Zero 2 W Rev 1.0
Elegoo Neptune 3 Pro

Hello @Crunchy409 !

  1. Check, if there is a non command line at the end of the gcode-file.
  2. Attach the systeminfo bundle to your next post.

Thanks for the response!!
I have attached the bundle.

I never thought to look at the straight gcode- thanks for that incredibly simple solution! I noticed immediately that the gcode output from Cura lacked.... gcode! It was almost purely a huge long string representing the thumbnail produced by a thumbnail plugin for Cura. I uninstalled this plugin and haven't had any trouble since. I appreciate your time!

octoprint-systeminfo-20250403001454.zip (461.3 KB)