Regression in 2.3.2-dev: Anycubic Kobra 3 can't start printing, the gcode stuck in parsing state #625

Open
opened 2026-04-05 16:24:24 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @Felixoid on 2/23/2026

Is there an existing issue for this problem?

  • I have searched the existing issues

OrcaSlicer Version

2.3.2-dev

Operating System (OS)

Linux

OS Version

Arch linux

Additional system information

No response

Printer

Anycubic Kobra 3

How to reproduce

  1. Build ANY gcode
  2. upload it to the printer, e.g., using a network plugin or start printing from the screen
  3. Launch from the screen interfaces ->
    • the screen is frozen forever in parsing state (screenshot 1)
  4. Upload and print using Mainsail
    • the dashboard shows printing status Standby (screenshot 2), the printer's screen doesn't switch to the printing
Image Image

Actual results

The printer can't parse G-code files.

Expected results

The print starts.

Project file & Debug log uploads

Project.zip contains gcodes from the bad and good revisions

Project2.zip with smaller files

debug_Mon_Feb_23_21_39_39_3403531.log

Checklist of files to include

  • Log file
  • Project file

Anything else?

The gklib.log file processing a file from Project2.zip

2026-02-23T22:07:23.975Z DEBUG project/Webhooks.go:882 web hook do script:SDCARD_PRINT_FILE FILENAME="/useremain/app/gk/gcodes/Hook_6mm_PLA_0.16_6m56s.gcode"
2026-02-23T22:07:24.025Z DEBUG project/extras_virtual_sdcard.go:1202 Load gcode file: /useremain/app/gk/gcodes/Hook_6mm_PLA_0.16_6m56s.gcode
2026-02-23T22:07:24.027Z DEBUG project/extras_virtual_sdcard.go:1224 File opened:/useremain/app/gk/gcodes/Hook_6mm_PLA_0.16_6m56s.gcode Size:837505
2026-02-23T22:07:24.033Z DEBUG project/extras_virtual_sdcard.go:1225 File selected
2026-02-23T22:07:24.162Z ERROR project/Webhooks.go:873 panic:1 runtime error: slice bounds out of range [:3] with length 1goroutine 1 [running]:
runtime/debug.Stack()
        /home/liuxiaobo/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.23.11.linux-386/src/runtime/debug/stack.go:26 +0x78
k3c/project.(*GCodeHelper)._handle_script.func1()
        /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/Webhooks.go:872 +0xa0
panic({0x6be1f0, 0xdf7970})
        /home/liuxiaobo/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.23.11.linux-386/src/runtime/panic.go:791 +0xfc
k3c/project.(*VirtualSD).getCodeInfo(0xd56008, {0xf4ea80, 0x36})
        /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/extras_virtual_sdcard.go:2513 +0x3cf8
k3c/project.(*VirtualSD).Cmd_SDCARD_PRINT_FILE(0xd56008, {0x6ce598, 0x10a2600})
        /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/extras_virtual_sdcard.go:1120 +0x244
k3c/project.(*GCodeDispatch).Register_command.func1({0x6ce598, 0x10a2600})
        /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/gcode.go:541 +0x1ec
k3c/project.(*GCodeDispatch).Process_commands(0xc80150, {0xfc61a8, 0x1, 0x1}, 0x0)
        /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/gcode.go:691 +0x550
k3c/project.(*GCodeDispatch).Run_script(0xc80150, {0xc280c0, 0x53})
        /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/gcode.go:727 +0x124
k3c/project.(*GCodeHelper)._handle_script(0xcb0040, 0x10501b0)
        /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/Webhooks.go:883 +0x108
k3c/project.(*ClientConnection)._process_request1(0xc92240, 0xc2a360, 0x10501b0)
        /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/Webhooks.go:555 +0x5c
k3c/project.(*ClientConnection)._process_request(0xc92240, 0x10501b0)
        /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/Webhooks.go:540 +0x58
k3c/project.(*ClientConnection)._process_received.func1({0x66e3c8, 0xf8a1e0})
        /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/Webhooks.go:487 +0x24
k3c/project.(*ReactorCallback).invoke1(0xe30360, 0x4082c140874e1b1f)
        /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/Reactor.go:144 +0x7c
k3c/project.(*ReactorCallback).invoke(0xe30360, 0x4082c140874e1b1f)
        /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/Reactor.go:138 +0x44
k3c/project.(*EPollReactor)._check_timers(0xcbb2c8, 0x4082c140874e1b1f, 0x1)
        /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/Reactor.go:879 +0x120
k3c/project.(*EPollReactor)._dispatch_loop(0xcbb2c8, {0x0, 0x0})
        /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/Reactor.go:788 +0xc4
k3c/project/greenlet.(*ReactorGreenlet).goGreenlet(0xc780f0)
        /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/greenlet/greenlet.go:63 +0xf0
k3c/project/greenlet.(*ReactorGreenlet).Switch(...)
        /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/greenlet/greenlet.go:114
k3c/project.(*EPollReactor).Run(0xcbb2c8)
        /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/Reactor.go:836 +0x184
k3c/project.(*Printer).Run(0xc780a0)
        /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/k3c.go:354 +0x1c4
k3c/project.K3C.Main({})
        /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/k3c.go:595 +0xe58
main.main()
        /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/main/K3cMain.go:24 +0xe4

Here are two bisects with preserved gcodes, the first bad PR is #10780

# bad: [e7d2bbd6a96f59d9a9c51525dd7be6f569939664] Fix preheat regression bugs  (#12438)
# good: [737948be1f5b108b191420d4c670b511f8118604] [Profiles] Fix bed_exclude_area excluding the whole bed on Anycubic Kobra 3 (#10914)
git bisect start '--first-parent' 'main' 'v2.3.1'
# bad: [2a0cfdb3560388ffaedffabe80e34fb606c325e7] Fill Adaptive disconnecting from walls at low density. Disable rotation as infill type does not support it (#11728)
git bisect bad 2a0cfdb3560388ffaedffabe80e34fb606c325e7
# bad: [8f5a5a9b166d06603f2c777d8037671c69a4335c] Fix extrusion rate smoothing unnecessarily slowing down the entire line (#11249)
git bisect bad 8f5a5a9b166d06603f2c777d8037671c69a4335c
# bad: [e922411371603a5be33f294fcd17587de2f03701] Add instances (#6237)
git bisect bad e922411371603a5be33f294fcd17587de2f03701
# bad: [e922411371603a5be33f294fcd17587de2f03701] Add instances (#6237)
git bisect bad e922411371603a5be33f294fcd17587de2f03701
# good: [e6a4ddf32d65297c540e658a69ce80cdd9c2004e] Feature: Ability to change flow ratios by extrusion path types (Code + Docs) (#10641)
git bisect good e6a4ddf32d65297c540e658a69ce80cdd9c2004e
# bad: [ff0507e5a30f9e70688c8e9ac3ac74cf1a1ef389] Profile folder optimizations (Anycubic, Artillery, Bambu Lab, BIQU, Creality, Flashforge, Prusa, Ratrig, Sovol, Volumic, Voron, VzBot, Z-Bolt, Wanhao and more) (#10806)
git bisect bad ff0507e5a30f9e70688c8e9ac3ac74cf1a1ef389
# good: [3cb6da6f6159cc0f42080637f3d7dae24073e195] Part skip from Orca for Bambu printers (#10875)
git bisect good 3cb6da6f6159cc0f42080637f3d7dae24073e195
# bad: [6e967563eb10225ec2a56b57b1d69fad15433e8d] Update TURKISH translations (#10934)
git bisect bad 6e967563eb10225ec2a56b57b1d69fad15433e8d
# bad: [f5bbe52ac9bfbb1396bc723dba8f9a1ab72d717e] Optimize FillTpmsFK using optimized MarchingSquares from #10747. (#10876)
git bisect bad f5bbe52ac9bfbb1396bc723dba8f9a1ab72d717e
# bad: [339636b91fb438b97bd3fd1c8b1746621a5a8c80] H2D/H2S support (#10780)
git bisect bad 339636b91fb438b97bd3fd1c8b1746621a5a8c80
# first bad commit: [339636b91fb438b97bd3fd1c8b1746621a5a8c80] H2D/H2S support (#10780)
# * f5bbe52ac9 Optimize FillTpmsFK using optimized MarchingSquares from #10747. (#10876)
# *   339636b91f H2D/H2S support (#10780)
# |\
# | * 9510b1a930 Disable filament merge option if not SEMM
# | * 2915e3035f bump profile version
# | * 497ff94e09 Disable filament delete option if not SEMM
# | *   b2047ba563 Merge branch 'main' into dev/h2d-2
# | |\
# | |/
# |/|
# * |   3cb6da6f61 Part skip from Orca for Bambu printers (#10875)
# |\ \

I'll continue bisecting to distinguish the first broken commit more precisely

*Originally created by @Felixoid on 2/23/2026* ### Is there an existing issue for this problem? - [x] I have searched the existing issues ### OrcaSlicer Version 2.3.2-dev ### Operating System (OS) Linux ### OS Version Arch linux ### Additional system information _No response_ ### Printer Anycubic Kobra 3 ### How to reproduce 1. Build ANY gcode 2. upload it to the printer, e.g., using a network plugin or start printing from the screen 3. Launch from the screen interfaces -> - the screen is frozen forever in ` parsing` state (screenshot 1) 4. Upload and print using Mainsail - the dashboard shows printing status `Standby` (screenshot 2), the printer's screen doesn't switch to the printing <img width="408" height="720" alt="Image" src="https://github.com/user-attachments/assets/86fb3ede-389f-4643-a4e4-acc8f95eaaa5" /> <img width="693" height="493" alt="Image" src="https://github.com/user-attachments/assets/9b376b6e-d4a8-4a74-a07d-c9a4300a4a52" /> ### Actual results The printer can't parse G-code files. ### Expected results The print starts. ### Project file & Debug log uploads [Project.zip](https://github.com/user-attachments/files/25499833/Project.zip) contains gcodes from the bad and good revisions [Project2.zip](https://github.com/user-attachments/files/25501732/Project2.zip) with smaller files [debug_Mon_Feb_23_21_39_39_3403531.log](https://github.com/user-attachments/files/25499839/debug_Mon_Feb_23_21_39_39_3403531.log) ### Checklist of files to include - [x] Log file - [x] Project file ### Anything else? The `gklib.log` file processing a file from Project2.zip ``` 2026-02-23T22:07:23.975Z DEBUG project/Webhooks.go:882 web hook do script:SDCARD_PRINT_FILE FILENAME="/useremain/app/gk/gcodes/Hook_6mm_PLA_0.16_6m56s.gcode" 2026-02-23T22:07:24.025Z DEBUG project/extras_virtual_sdcard.go:1202 Load gcode file: /useremain/app/gk/gcodes/Hook_6mm_PLA_0.16_6m56s.gcode 2026-02-23T22:07:24.027Z DEBUG project/extras_virtual_sdcard.go:1224 File opened:/useremain/app/gk/gcodes/Hook_6mm_PLA_0.16_6m56s.gcode Size:837505 2026-02-23T22:07:24.033Z DEBUG project/extras_virtual_sdcard.go:1225 File selected 2026-02-23T22:07:24.162Z ERROR project/Webhooks.go:873 panic:1 runtime error: slice bounds out of range [:3] with length 1goroutine 1 [running]: runtime/debug.Stack() /home/liuxiaobo/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.23.11.linux-386/src/runtime/debug/stack.go:26 +0x78 k3c/project.(*GCodeHelper)._handle_script.func1() /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/Webhooks.go:872 +0xa0 panic({0x6be1f0, 0xdf7970}) /home/liuxiaobo/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.23.11.linux-386/src/runtime/panic.go:791 +0xfc k3c/project.(*VirtualSD).getCodeInfo(0xd56008, {0xf4ea80, 0x36}) /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/extras_virtual_sdcard.go:2513 +0x3cf8 k3c/project.(*VirtualSD).Cmd_SDCARD_PRINT_FILE(0xd56008, {0x6ce598, 0x10a2600}) /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/extras_virtual_sdcard.go:1120 +0x244 k3c/project.(*GCodeDispatch).Register_command.func1({0x6ce598, 0x10a2600}) /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/gcode.go:541 +0x1ec k3c/project.(*GCodeDispatch).Process_commands(0xc80150, {0xfc61a8, 0x1, 0x1}, 0x0) /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/gcode.go:691 +0x550 k3c/project.(*GCodeDispatch).Run_script(0xc80150, {0xc280c0, 0x53}) /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/gcode.go:727 +0x124 k3c/project.(*GCodeHelper)._handle_script(0xcb0040, 0x10501b0) /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/Webhooks.go:883 +0x108 k3c/project.(*ClientConnection)._process_request1(0xc92240, 0xc2a360, 0x10501b0) /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/Webhooks.go:555 +0x5c k3c/project.(*ClientConnection)._process_request(0xc92240, 0x10501b0) /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/Webhooks.go:540 +0x58 k3c/project.(*ClientConnection)._process_received.func1({0x66e3c8, 0xf8a1e0}) /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/Webhooks.go:487 +0x24 k3c/project.(*ReactorCallback).invoke1(0xe30360, 0x4082c140874e1b1f) /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/Reactor.go:144 +0x7c k3c/project.(*ReactorCallback).invoke(0xe30360, 0x4082c140874e1b1f) /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/Reactor.go:138 +0x44 k3c/project.(*EPollReactor)._check_timers(0xcbb2c8, 0x4082c140874e1b1f, 0x1) /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/Reactor.go:879 +0x120 k3c/project.(*EPollReactor)._dispatch_loop(0xcbb2c8, {0x0, 0x0}) /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/Reactor.go:788 +0xc4 k3c/project/greenlet.(*ReactorGreenlet).goGreenlet(0xc780f0) /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/greenlet/greenlet.go:63 +0xf0 k3c/project/greenlet.(*ReactorGreenlet).Switch(...) /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/greenlet/greenlet.go:114 k3c/project.(*EPollReactor).Run(0xcbb2c8) /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/Reactor.go:836 +0x184 k3c/project.(*Printer).Run(0xc780a0) /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/k3c.go:354 +0x1c4 k3c/project.K3C.Main({}) /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/project/k3c.go:595 +0xe58 main.main() /data/liuxiaobo/k3_sys_cartesian/1.0/k3c/main/K3cMain.go:24 +0xe4 ``` Here are two bisects with preserved gcodes, the first bad PR is #10780 ``` # bad: [e7d2bbd6a96f59d9a9c51525dd7be6f569939664] Fix preheat regression bugs (#12438) # good: [737948be1f5b108b191420d4c670b511f8118604] [Profiles] Fix bed_exclude_area excluding the whole bed on Anycubic Kobra 3 (#10914) git bisect start '--first-parent' 'main' 'v2.3.1' # bad: [2a0cfdb3560388ffaedffabe80e34fb606c325e7] Fill Adaptive disconnecting from walls at low density. Disable rotation as infill type does not support it (#11728) git bisect bad 2a0cfdb3560388ffaedffabe80e34fb606c325e7 # bad: [8f5a5a9b166d06603f2c777d8037671c69a4335c] Fix extrusion rate smoothing unnecessarily slowing down the entire line (#11249) git bisect bad 8f5a5a9b166d06603f2c777d8037671c69a4335c # bad: [e922411371603a5be33f294fcd17587de2f03701] Add instances (#6237) git bisect bad e922411371603a5be33f294fcd17587de2f03701 # bad: [e922411371603a5be33f294fcd17587de2f03701] Add instances (#6237) git bisect bad e922411371603a5be33f294fcd17587de2f03701 # good: [e6a4ddf32d65297c540e658a69ce80cdd9c2004e] Feature: Ability to change flow ratios by extrusion path types (Code + Docs) (#10641) git bisect good e6a4ddf32d65297c540e658a69ce80cdd9c2004e # bad: [ff0507e5a30f9e70688c8e9ac3ac74cf1a1ef389] Profile folder optimizations (Anycubic, Artillery, Bambu Lab, BIQU, Creality, Flashforge, Prusa, Ratrig, Sovol, Volumic, Voron, VzBot, Z-Bolt, Wanhao and more) (#10806) git bisect bad ff0507e5a30f9e70688c8e9ac3ac74cf1a1ef389 # good: [3cb6da6f6159cc0f42080637f3d7dae24073e195] Part skip from Orca for Bambu printers (#10875) git bisect good 3cb6da6f6159cc0f42080637f3d7dae24073e195 # bad: [6e967563eb10225ec2a56b57b1d69fad15433e8d] Update TURKISH translations (#10934) git bisect bad 6e967563eb10225ec2a56b57b1d69fad15433e8d # bad: [f5bbe52ac9bfbb1396bc723dba8f9a1ab72d717e] Optimize FillTpmsFK using optimized MarchingSquares from #10747. (#10876) git bisect bad f5bbe52ac9bfbb1396bc723dba8f9a1ab72d717e # bad: [339636b91fb438b97bd3fd1c8b1746621a5a8c80] H2D/H2S support (#10780) git bisect bad 339636b91fb438b97bd3fd1c8b1746621a5a8c80 # first bad commit: [339636b91fb438b97bd3fd1c8b1746621a5a8c80] H2D/H2S support (#10780) # * f5bbe52ac9 Optimize FillTpmsFK using optimized MarchingSquares from #10747. (#10876) # * 339636b91f H2D/H2S support (#10780) # |\ # | * 9510b1a930 Disable filament merge option if not SEMM # | * 2915e3035f bump profile version # | * 497ff94e09 Disable filament delete option if not SEMM # | * b2047ba563 Merge branch 'main' into dev/h2d-2 # | |\ # | |/ # |/| # * | 3cb6da6f61 Part skip from Orca for Bambu printers (#10875) # |\ \ ``` I'll continue bisecting to distinguish the first broken commit more precisely
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/OrcaSlicer#625