Patent ID: 8081886

Claim:
An image forming apparatus comprising: a conveying device configured to convey a recording medium along a conveyance path; an image forming portion configured to form an image on the recording medium conveyed by the conveying device and placed at an image forming position; a first sensor configured to detect the recording medium at a first position located on an upstream side in the conveyance path relative to the image forming; a second sensor configured to detect the recording medium at a second position located on a downstream side in the conveyance path relative to the image forming position; a nonvolatile memory; and a processor configured to: perform a first judgment to determine whether a trailing edge of the recording medium is detected by the first sensor and the recording medium is detected by the second sensor; store data regarding occurrence of a jam in the nonvolatile memory if a result of the first determination indicates that the trailing edge of the recording medium is detected by the first sensor and the recording medium is not detected by the second sensor; perform a second judgment to determine whether the recording medium is detected by the second sensor within a predetermined period after the recording medium is detected by the first sensor; and erase the data regarding occurrence of a jam from the nonvolatile memory if a result of the second judgment indicates that the recording medium is detected by the second sensor within the predetermined period.