Page MenuHome

Crash using scene.ray_cast
Closed, ResolvedPublic

Description

System Information
Linux mint 18 nvidia 1070

Blender Version
Broken: Blender 2.80 (sub 32), Commit date: 2018-11-24 00:24, Hash 31e3b7790af
Worked: 2.8 10bab568d33 (2018-11-14)

Short description of error
calling scene.raycast lead to instant Segfault crash

Exact steps for others to reproduce the error

C.scene.ray_cast(view_layer=C.view_layer, origin=Vector((10,10,10)), direction=Vector((-1,-1,-1)))

Blender 2.80 (sub 32), Commit date: 2018-11-24 00:24, Hash 31e3b7790af

backtrace

/home/stephen/blender-28-git/build_linux_full/bin/blender(BLI_system_backtrace+0x33) [0x55c7fdd2b833]
/home/stephen/blender-28-git/build_linux_full/bin/blender(+0xc238e0) [0x55c7fd2958e0]
/lib/x86_64-linux-gnu/libc.so.6(+0x3ef20) [0x7faaf6996f20]
/home/stephen/blender-28-git/build_linux_full/bin/blender(+0xd8de0c) [0x55c7fd3ffe0c]
/home/stephen/blender-28-git/build_linux_full/bin/blender(ED_transform_snap_object_project_ray_ex+0x87) [0x55c7fd404c97]
/home/stephen/blender-28-git/build_linux_full/bin/blender(+0x15ed2d0) [0x55c7fdc5f2d0]
/home/stephen/blender-28-git/build_linux_full/bin/blender(Scene_ray_cast_call+0x5f) [0x55c7fdc5f42f]
/home/stephen/blender-28-git/build_linux_full/bin/blender(RNA_function_call+0x12) [0x55c7fdb98402]
/home/stephen/blender-28-git/build_linux_full/bin/blender(+0xfe6000) [0x55c7fd658000]
/home/stephen/blender-28-git/build_linux_full/bin/blender(_PyObject_FastCallKeywords+0x11f) [0x55c7fef0dfbf]
/home/stephen/blender-28-git/build_linux_full/bin/blender(_PyEval_EvalFrameDefault+0x3fc4) [0x55c7fd28cf64]
/home/stephen/blender-28-git/build_linux_full/bin/blender(_PyEval_EvalCodeWithName+0xa5a) [0x55c7fefcff7a]
/home/stephen/blender-28-git/build_linux_full/bin/blender(PyEval_EvalCode+0x23) [0x55c7fefd0053]
/home/stephen/blender-28-git/build_linux_full/bin/blender(+0x295b2f9) [0x55c7fefcd2f9]
/home/stephen/blender-28-git/build_linux_full/bin/blender(_PyCFunction_FastCallKeywords+0x28a) [0x55c7fef0e3fa]
/home/stephen/blender-28-git/build_linux_full/bin/blender(_PyEval_EvalFrameDefault+0x8d1e) [0x55c7fd291cbe]
/home/stephen/blender-28-git/build_linux_full/bin/blender(+0xc15eb7) [0x55c7fd287eb7]
/home/stephen/blender-28-git/build_linux_full/bin/blender(_PyEval_EvalFrameDefault+0x628e) [0x55c7fd28f22e]
/home/stephen/blender-28-git/build_linux_full/bin/blender(_PyEval_EvalCodeWithName+0xa5a) [0x55c7fefcff7a]
/home/stephen/blender-28-git/build_linux_full/bin/blender(_PyFunction_FastCallKeywords+0x8f) [0x55c7fef0da2f]
/home/stephen/blender-28-git/build_linux_full/bin/blender(_PyEval_EvalFrameDefault+0x628e) [0x55c7fd28f22e]
/home/stephen/blender-28-git/build_linux_full/bin/blender(+0xc15eb7) [0x55c7fd287eb7]
/home/stephen/blender-28-git/build_linux_full/bin/blender(_PyEval_EvalFrameDefault+0x628e) [0x55c7fd28f22e]
/home/stephen/blender-28-git/build_linux_full/bin/blender(+0xc15eb7) [0x55c7fd287eb7]
/home/stephen/blender-28-git/build_linux_full/bin/blender(_PyEval_EvalFrameDefault+0x72b5) [0x55c7fd290255]
/home/stephen/blender-28-git/build_linux_full/bin/blender(+0xc15eb7) [0x55c7fd287eb7]
/home/stephen/blender-28-git/build_linux_full/bin/blender(_PyFunction_FastCallDict+0x2b7) [0x55c7fef0d987]
/home/stephen/blender-28-git/build_linux_full/bin/blender(+0xfe6b24) [0x55c7fd658b24]
/home/stephen/blender-28-git/build_linux_full/bin/blender(+0x1631f86) [0x55c7fdca3f86]
/home/stephen/blender-28-git/build_linux_full/bin/blender(+0xc28936) [0x55c7fd29a936]
/home/stephen/blender-28-git/build_linux_full/bin/blender(+0xc2bb45) [0x55c7fd29db45]
/home/stephen/blender-28-git/build_linux_full/bin/blender(+0xc2c0e5) [0x55c7fd29e0e5]
/home/stephen/blender-28-git/build_linux_full/bin/blender(+0xc2c99c) [0x55c7fd29e99c]
/home/stephen/blender-28-git/build_linux_full/bin/blender(wm_event_do_handlers+0x5fa) [0x55c7fd29f3ea]
/home/stephen/blender-28-git/build_linux_full/bin/blender(WM_main+0x20) [0x55c7fd2963b0]
/home/stephen/blender-28-git/build_linux_full/bin/blender(main+0x35a) [0x55c7fd26eb3a]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7faaf6979b97]
/home/stephen/blender-28-git/build_linux_full/bin/blender(_start+0x2a) [0x55c7fd29200a]

Event Timeline

scene.ray_cast crash in addons running into 3d view too, (since ~1 week - at least 2018-11-14 was ok)
Since the addon is huge (archipack),
i do try into console to make report as simple as possible, so you probably spotted another issue ?

Into archipack, use the "Add Object->Draw Wall" (pencil icon) tool and click on screen to start, consistently crash on first ray_cast at same file location (transform_snap_object.c line 214).

Anyway, will wait and see once the patch get accepted - merged.
Thank you !

If I get some time before the patch is reviewed I'll test addons, though I suspect the patch has fixed raycasting for them as well.