What does NTSTATUS 0xC01E033C (STATUS_GRAPHICS_INVALID_STRIDE) mean?

 
Previous Next
STATUS_GRAPHICS_INVALID_VISIBLEREGION_SIZE STATUS_GRAPHICS_INVALID_PIXELFORMAT

STATUS_GRAPHICS_INVALID_STRIDE

The primary surface stride is inconsistent

STATUS_GRAPHICS_INVALID_STRIDE is a Windows NTSTATUS value from the graphics/display facility. For STATUS_GRAPHICS_INVALID_STRIDE, it belongs to the WDDM kernel display stack rather than to a Win32 GDI error alone, so the useful context is usually the adapter, VidPN object, child device, present path, or primary allocation involved in the call.

Stride is the byte distance between adjacent rows in a surface. It must satisfy pixel-format, alignment, and allocation-layout requirements. This status means the row pitch supplied with the primary surface cannot be reconciled with the selected mode and surface format.

The most useful checks are arithmetic checks. A stride that is too small for width and bytes per pixel, not aligned as the driver requires, or inherited from an old mode can corrupt scan-out. The error should be investigated before the allocation is presented, not after pixels appear distorted.

What to check for STATUS_GRAPHICS_INVALID_STRIDE

  • Compute the minimum row size from width and pixel format, then compare it with the supplied stride.
  • Check hardware and driver alignment requirements for primary allocations.
  • Invalidate cached stride values after mode, format, or rotation changes.

References for STATUS_GRAPHICS_INVALID_STRIDE


Looking for a different code? Search another status or error code.