Since the beginning of the U.S. fracking revolution, oil producers have struggled with a vexing problem: after an initial burst,…