This is common on any engine and is almost always caused by a failing crankshaft position sensor or camshaft position sensor. You did not list the engine size, so I can only make general recommendations. The camshaft position sensor can be on the engine, or in the distributor, if your engine uses one. Both of these sensors often fail by becoming heat-sensitive, then they work again once they cool down for about an hour. While driving, natural air flow keeps them cool. When you stop a hot engine, "hot soak" causes the heat to migrate up to the sensors, causing them to fail.
You might be able to read a diagnostic fault code indicating which circuit needs to bee diagnosed, but often fault codes for these sensors don't set just from cranking the engine. They usually only set while a stalled engine is coasting to a stop. Cycle the ignition switch from "off" to "run" three times within five seconds, leave it in "run", then watch the code numbers appear in the odometer display. If you get any codes, post them in your reply and I will interpret them for you, or you can go here:
https://www.2carpros.com/trouble_codes/obd2
When there is no fault code to indicate which circuit has the problem, you need a scanner to view live data. Both sensors will be listed with a " no" or "present" during cranking to indicate whether their signals are showing up at the engine computer.
SPONSORED LINKS
Sunday, October 29th, 2017 AT 4:14 PM