service engine light on 2002 Chevrolet Avalanche 1500

I just parked my truck and came back out side to it starteded up then all the sudden it started to vibrate really bad and service engine light came on while it was just idling felt like truck wanted to just die but while driving it works fine what could be causing this

1 answer 1 comment
Sounds like a misfire, leaking injector, failing fuel pump or could be something else. It's really hard to tell without running a few tests and checking for diagnostic trouble codes in the computer. I suggest starting with checking those codes with a scan tool.
OK ty