Page MenuHome

Crash with a rotation on z of a camera (follow path and track to)
Closed, ResolvedPublic


System Information
Arch Linux 18.04 - Nvidia Geforce Titan Z

Blender Version
Broken: blender-2.80-dc3b3d94538
Worked: blender-2.79b-f4dc9f9d68b

Short description of error
Blender crash when i want to rotate on z axe the camera.
It will be nice to have this z normal rotation possible. Or have a nice horizontal orientation of the camera

Exact steps for others to reproduce the error
I have made :
A simple follow path of a Camera and a BezierCurve and a Track to constraint of the camera to an Empty

  • Open
  • Rotate on z (blue one) with Normal orientation gizmo




Event Timeline

Bastien Montagne (mont29) triaged this task as Confirmed, Medium priority.Jul 17 2018, 12:12 PM

@Sergey Sharybin (sergey) par->curve_cache is NULL, there is some ifdef’ed code above that handles that case, comments says this should not happen anymore… Since it seems related to depsgraph, I’ll assign to you for now. :)

eeeh, par->curve_cache in object.c’s ob_parcurve() function, here is the whole crash backtrace:

==14927==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000030 (pc 0x56268f5dfdec bp 0x7ffc23360410 sp 0x7ffc233601d0 T0)
==14927==The signal is caused by a READ memory access.
==14927==Hint: address points to the zero page.
    #0 0x56268f5dfdeb in ob_parcurve /home/i74700deb64/blender/__work__/src/source/blender/blenkernel/intern/object.c:1729
    #1 0x56268f5e1fc5 in BKE_object_get_parent_matrix /home/i74700deb64/blender/__work__/src/source/blender/blenkernel/intern/object.c:2018
    #2 0x56268f5e2360 in solve_parenting /home/i74700deb64/blender/__work__/src/source/blender/blenkernel/intern/object.c:2066
    #3 0x56268f5e2844 in BKE_object_where_is_calc_time_ex /home/i74700deb64/blender/__work__/src/source/blender/blenkernel/intern/object.c:2123
    #4 0x56268f5e2eab in BKE_object_where_is_calc /home/i74700deb64/blender/__work__/src/source/blender/blenkernel/intern/object.c:2188
    #5 0x56268d4fd388 in ObjectToTransData /home/i74700deb64/blender/__work__/src/source/blender/editors/transform/transform_conversions.c:5669
    #6 0x56268d50699e in createTransObject /home/i74700deb64/blender/__work__/src/source/blender/editors/transform/transform_conversions.c:6854
    #7 0x56268d51652e in createTransData /home/i74700deb64/blender/__work__/src/source/blender/editors/transform/transform_conversions.c:8636
    #8 0x56268d444698 in initTransform /home/i74700deb64/blender/__work__/src/source/blender/editors/transform/transform.c:2259
    #9 0x56268d548011 in transformops_data /home/i74700deb64/blender/__work__/src/source/blender/editors/transform/transform_ops.c:367
    #10 0x56268d54875c in transform_invoke /home/i74700deb64/blender/__work__/src/source/blender/editors/transform/transform_ops.c:481
    #11 0x56268d0007a5 in wm_operator_invoke /home/i74700deb64/blender/__work__/src/source/blender/windowmanager/intern/wm_event_system.c:1321
    #12 0x56268d004beb in wm_handler_operator_call /home/i74700deb64/blender/__work__/src/source/blender/windowmanager/intern/wm_event_system.c:2040
    #13 0x56268d0065f4 in wm_handlers_do_intern /home/i74700deb64/blender/__work__/src/source/blender/windowmanager/intern/wm_event_system.c:2325
    #14 0x56268d007eca in wm_handlers_do /home/i74700deb64/blender/__work__/src/source/blender/windowmanager/intern/wm_event_system.c:2573
    #15 0x56268d00b05f in wm_event_do_handlers /home/i74700deb64/blender/__work__/src/source/blender/windowmanager/intern/wm_event_system.c:3027
    #16 0x56268cff07f4 in WM_main /home/i74700deb64/blender/__work__/src/source/blender/windowmanager/intern/wm.c:471
    #17 0x56268cfe5f38 in main /home/i74700deb64/blender/__work__/src/source/creator/creator.c:521
    #18 0x7fb1d11b9a86 in __libc_start_main (/lib/x86_64-linux-gnu/
    #19 0x56268cfe52f9 in _start (/home/i74700deb64/blender/__work__/build_blender28_debug/bin/blender+0x32ac2f9)

I have change Damped Track by a Track to and i have a nice horizontal rotation of the camera.
The Track to block the rotations this is right. But there is a crash again if i move this normal x,y,z rotation gizmo.
On the Track to constraint, Is it possible to release the z axe rotation ?

Note: most certainly same issue as T55770

Sergey Sharybin (sergey) closed this task as Resolved.Jan 25 2019, 4:54 PM

Can no longer reproduce the issue. Considering it solved by all the recent changes.
If the issue is still happening make a new report with updates file and steps to reproduce the issue.

For until then considering this solved and closing. Thanks for the report.