Closed V1EngineeringInc closed 2 weeks ago
Confirmed by another user with a different know good file.
started with known good file, got a panic and reboot?
Edited that sentence.
The file works as expected with 3.8.4-pre9. I am out of ideas to help you out, I have a few boards to test with, just let me know how I can help.
I can reproduce the issue. I'll see what the backtrace shows and look at the latest commits.
@dymk - the differences between 3.8.4-pre9 and main are all in your looping code. Could you take a shot at debugging?
Looks like this fixes it. @michmela44 figured it out, I just validated it. Not sure if there are any other issues with that code, but it resolved the problem we saw.
Here was my stacktrace:
Grbl 3.9 [FluidNC v3.9.0 (wifi) '$' for help]
WebSocket disconnect 0
[MSG:INFO: WebUI: Request from 192.168.0.120]
Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x400e4965 PS : 0x00060530 A0 : 0x800dcc3c A1 : 0x3ffb20b0
A2 : 0x00000000 A3 : 0x00000001 A4 : 0x80000020 A5 : 0x00000007
A6 : 0x00000005 A7 : 0x00000001 A8 : 0x00000000 A9 : 0x3ffb2090
A10 : 0x580ea9b9 A11 : 0x3ffc643c A12 : 0x3ffc6339 A13 : 0x3ffc57b4
A14 : 0x00003a97 A15 : 0x3f40d0d8 SAR : 0x0000001d EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000 LBEG : 0x4008bbe8 LEND : 0x4008bbfe LCOUNT : 0xffffffff
Backtrace: 0x400e4962:0x3ffb20b0 0x400dcc39:0x3ffb20d0 0x400dcc6c:0x3ffb2100 0x401fdca1:0x3ffb2120 0x400fc275:0x3ffb2150 0x400fc5f5:0x3ffb21b0 0x400fc665:0x3ffb21d0 0x400fd6b1:0x3ffb2210 0x400ee0e4:0x3ffb2250 0x40128d81:0x3ffb2290
#0 0x400e4962 in Job::save() at FluidNC/src/Job.cpp:37
#1 0x400dcc39 in _ZL7runFilePKcS0_19AuthenticationLevelR7Channel$isra$58 at FluidNC/src/FileCommands.cpp:257
(inlined by) runFile at FluidNC/src/FileCommands.cpp:251
#2 0x400dcc6c in runSDFile(char const*, AuthenticationLevel, Channel&) at FluidNC/src/FileCommands.cpp:269
#3 0x401fdca1 in WebCommand::action(char const*, AuthenticationLevel, Channel&) at FluidNC/src/Settings.cpp:539
#4 0x400fc275 in do_command_or_setting(char const*, char const*, AuthenticationLevel, Channel&) at FluidNC/src/ProcessSettings.cpp:898
#5 0x400fc5f5 in settings_execute_line(char*, Channel&, AuthenticationLevel) at FluidNC/src/ProcessSettings.cpp:1024
#6 0x400fc665 in execute_line(char*, Channel&, AuthenticationLevel) at FluidNC/src/ProcessSettings.cpp:1041
#7 0x400fd6b1 in protocol_main_loop() at FluidNC/src/Protocol.cpp:289 (discriminator 4)
#8 0x400ee0e4 in loop() at FluidNC/src/Main.cpp:152
#9 0x40128d81 in loopTask(void*) at C:/Users/jeyea/.platformio/packages/framework-arduinoespressif32/cores/esp32/main.cpp:50
ELF file SHA256: e4c469edd0e307f2
It works for me too.
There is some test stuff for the PR. We should see if that still runs.
https://github.com/bdring/FluidNC/tree/main/fixture_tests/fixtures
the activeChannel become 1, when open a file. but the stack is empty. so get a panic and reboot.
Each of the 21 uses of Job::active() needs to be checked carefully to see if the change to its definition is appropriate for that situation. The change was:
bool Job::active() {
- return !job.empty();
+ return !job.empty() || activeChannel;
}
My suspicion is that the change is good for most of the uses in Flowcontrol.cpp, but not for most of the uses elsewhere. @dymk should weigh in.
3.9.1 works as expected. Thanks guys!
Wiki Search Terms
None
Controller Board
JAckpot
Machine Description
Known good Lowrider, board, config, and file. All previously tested through all the 3.8-PreX
Input Circuits
No response
Configuration file
Startup Messages
User Interface Software
Fluidterm, webuiV2
What happened?
Try to start a know good file, board reboots. Fluid term screenshot shown below.
GCode File
strut_plate.txt
Other Information