I'm paranoid about running out of fuel so consequently I've never ran out of fuel in anything - car, truck, airplane, motorcycle....
Oh, the motorcycle. Well I have an explanation for that, and yes, ultimately it was my fault but.....
BMW uses a conductive strip level sensor for the fuel gauge in their bikes that are so equipped. This sensor fails sometimes. Mind you, I've always used the trip odometer vs. the fuel gauge, but BMW's crappy programming ALSO randomly displays either the #2 trip odometer, or the odometer, instead of whatever you last set it at.
Well there was a perfect storm. The one day I forgot to display the trip odometer (I never forgot to set it at my last fueling point) was the day when the fuel gauge decided to fail. And the failure mode is to display the last working fuel sensed by the unit. So, with a little less than a quarter tank displayed, my engine quit on me on the freeway. I pulled over. WTF out of gas??? I toggled through the display settings to display the trip odometer - sure enough, 320 miles. Oops.
I loved that bike, but ******n it had some quirky problems.