So my 2008 pontiac wave is missing and sometimes staling while ide. It ony misses or surges when it's hot, it will work perfectly when it's cold. After about 15 min of driving the problem starts. It was giving codes p2135(throttle position sensor) and p0340(crankshaft position sensor) Both sensors were replaced as we as the throttlebody. All new parts. But the problem persists. However the codes are gone. No codes are showing now. So obviously that wasn't causing the issue. Also changed the pugs and wires which also did nothing.*
The engine wont miss if it's in park or neutral, it's nice and smooth. There is some oil in the spark plugs but it's been there for years and never caused any issues. When i got the car the seal on top of engine was bad and leaking oil which i replaced(no oil leaking now). I can see that causing a problem now all of a sudden. My battery is bad which my mechanic says could cause issues if it wont accept the proper voltage from the alternator but why would it only cause issues when it's warm? I can't see that being the problem.