This happens when the "Make kart color depend on tyre" option is enabled, and you attempt to start a race with a kart that doesn't have any configured color-changeable materials (e.g. black hole). The fix should be to detect this at run-time and only dynamically change the color of the karts that support it.