System Information
Operating system and graphics card
macOS X Mojave with GTX 980
Blender Version
Broken: 2.80. 59f0db430a9
Worked: no solution
Short description of error
Object.ray_cast is broken in Blender 2.80.
I have attached a blend that contains a simple ray_cast that works in 2.79 and fails in 2.80. Run blender from a console to see the error messages.
Exact steps for others to reproduce the error
Click Run Script to see the result of ray_cast in Blender 2.80