Exception errors and runtime errors uploading

Uploading a sketch to Ramps 1.4 using Arduino 1.8.19. getting a load of runtime and exception errors BUT...
Verify works fine, no issues.

Here is the list of errors:

"
Exception 0x8b04488b 0xccccccd5 0x8b64cccc 0xc001
PC=0xc001

runtime: unknown pc 0xc001
stack: frame={sp:0x0, fp:0x0} stack=[0x13846000,0x13848000)

runtime: unknown pc 0xc001
stack: frame={sp:0x0, fp:0x0} stack=[0x13846000,0x13848000)

eax 0x45cd0000
ebx 0x58003ffd
ecx 0x3ffed555
edx 0x55555555
edi 0x99999800
esi 0x99999999
ebp 0x8e39f671
esp 0x0
eip 0xc001
eflags 0x0
cs 0x0
fs 0x6800ffff
gs 0x0
C:\Program Files (x86)\Arduino\arduino-builder returned 2
Error compiling for board Arduino Mega or Mega 2560.
"

Now to repeat, verify works fine and I can upload other sketches fine.

Why does Verify work fine but upload produce these errors?
What do I do?

Thanks,
Charles.

Hi @lowry3d. I did a quick search and found this that looked interesting:

https://github.com/golang/go/issues/40878

(the arduino-builder tool mentioned in the error message is written in the Go programming language)

In that issue, they discovered the problem was caused by interference from the antivirus software ("webroot" for that user, but others might have the same sort of problem).

Try :warning: TEMPORARILY :warning: disabling your antivirus for a single compilation upload to see if the problem goes away, then turn the antivirus back on.

If the problem doesn't occur with the antivirus off you will need to adjust the settings of your antivirus to put the appropriate file, folder, or process on the "allow list" so it doesn't interfere with compilation.

:warning: Please be cautious about working without an antivirus. This is only about temporarily disabling it for a quick test. If you don't feel comfortable doing that, fine. You can try going straight to configuring the antivirus to not interfere with the Arduino software.

Verify just runs the compiler, upload calls code to talk to the device. Apparently the code that is trying to talk to the device has a problem. Show the full error messages.

Thank you both for these excellent suggestions!

My system isn't running an antivirus or firewall, given it's an isolated laptop. So I doubt the error is there, although it does upload the sketch fine when I enable one simple setting.
Uploading a Marlin sketch for a laser cutter. When I set Extruder 1 (one extruder enabled), it verifies and uploads fine. When I set Extruder 0 (no extruder) it verifies but errors on upload.

I am going to have to enable verbose mode to see what other messages I get.

I also have a linux system and anotherWin7 laptop, I will try on those as well to see if these errors come up.

Should know sometime tomorrow.

Thanks again!

Ok found what caused the issue.

Had to reset the eeprom. Yes, when extruder set to 0 the eeprom must be reset because the feedrates for 3 axis plus an extruder requires 4 values for such things as steps/mm, acceleration, etc. whereas 3 axis with no extruder only requires 3 values.

Well, having an eeprom with values for 4 steppers crashes when only 3 steppers are used.

So resetting the eeprom to factory by sending the M502 command followed by M500 command followed by choosing factory reset on the display after upload allowed rewriting the eeprom with the proper values.

Who would have guessed?