select or move over the transform tool
Closed, ResolvedPublic

Description

System Information
windows 10 64 bits and GeForce GTX 1080 Ti

Blender Version
Broken: 2.80 a421cfa8d31
Worked: (optional)

Short description of error
blender crash

Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps

There's 2 ways to crash blender:

  1. the faster way

select the Move tool with the mouse
Hold Shift and select the transform tool
if blender not crash immediately select the Move tool again
repeat the previous steps until blender crash

  1. the slower

select the Move tool with the mouse
Hold Shift and move the mouse up and down over the other tools (transform, rotation, scale)

with these 2 methods blender crash immediately or you have to wait 10, 15 seconds

Philipp Oeser (lichtwerk) triaged this task as Confirmed priority.

Can confirm the crash.

Operator TRANSFORM_OT_from_gizmo description ( ot-description ) is NULL here:

1 ui_tooltip_data_append_from_keymap interface_region_tooltip.c 333  0x1f9cad4 
2 ui_tooltip_data_from_tool          interface_region_tooltip.c 577  0x1f9d5ae 
3 UI_tooltip_create_from_button      interface_region_tooltip.c 1226 0x1f9f5f6 
4 ui_but_tooltip_init                interface_handlers.c       7213 0x1f6c02f 
5 WM_tooltip_init                    wm_tooltip.c               123  0x1c72e0b 
6 wm_event_do_handlers               wm_event_system.c          2998 0x1c4dc97

This used to work in rBba36e9, bisecting now ...
Since this is tool related, this is one for @Campbell Barton (campbellbarton), I guess?

caused by rB60d7740fe628.

Simple fix in D3923 (not sure if this should be solved more gracefully though -- maybe make ot->description not mandatory?)

Oh, this null pointer is actually the cause of T57639.

The description is allowed to be NULL to indicate there being no description. The check should be ot->description ? rather than ot->description[0] ?.

Adding a tooltip to the operator is good too, since basically all operators should have descriptions, but not the entire fix.

so D3923 fixes T57639 as well?

Yes, the null-check fixes that. I think I have sometimes accidentally pressed the shift-key while using the transform tool.

By the way, I wonder if it makes sense that the tooltips change: