Maniphest T62760

Dragging incorrect object into reference field - Crashes Blender
Closed, DuplicateBUG

Assigned To
Campbell Barton (campbellbarton)
Authored By
Eric (Air_Bear)
Mar 20 2019, 3:16 AM
Tags
  • BF Blender
Subscribers
Bastien Montagne (mont29)
Campbell Barton (campbellbarton)
Eric (Air_Bear)
Jacques Lucke (JacquesLucke)

Description

System Information
Operating system: Windows 7
Graphics card: GT750M

Blender Version
Broken: 2.80, March 19, 22:51:20 - 2eead4868834
Worked: This has been happening in all 2.8 beta releases I've tried.

Short description of error
Dragging an incorrect object (such as a cube) to a field that asks for an object reference (ex. "Taper Object"), then directly clicking in that field causes Blender to shutdown.

Exact steps for others to reproduce the error

  1. Create a Text object and Cube.
  2. Select the text then go to the "Object Data"/"a" tab.
  3. Under "Geometry", drag the Cube layer into the "Taper Object" field
  4. Nothing will happen clearly, BUT without moving the mouse out of the field, click it. (If you move the cursor out of the field first, then click, it does not crash.)

5 Blender will crash and close.

  • This happens with most "reference" fields I believe.

Note: An expert blender user wouldn't attempt this, but I am a new user and tend to try weird things in order to learn. I apologize.

Related Objects

Mentioned Here
rBda1350acdcb4: Fix T60815: drag & drop crash when search menu is opened immediately after.
T60815: Drag and drop causes null pointer exception
rB2eead4868834: UI: Remove UI name overrides for Reveal Hidden.

Event Timeline

Eric (Air_Bear) created this task.Mar 20 2019, 3:16 AM
Eric (Air_Bear) updated the task description.
Bastien Montagne (mont29) claimed this task.Mar 20 2019, 10:44 AM
Bastien Montagne (mont29) lowered the priority of this task from 90 to High.
Bastien Montagne (mont29) reassigned this task from Bastien Montagne (mont29) to Campbell Barton (campbellbarton).Mar 20 2019, 12:17 PM
Bastien Montagne (mont29) added subscribers: Campbell Barton (campbellbarton), Bastien Montagne (mont29).

Transferring that to @Campbell Barton (campbellbarton), spent over an hour trying to understand what happens here and still have no clue… Maybe you can do better?

Origin of the crash is obvious (search_func of the button is called with a NULL search_func_arg in ui_searchbox_update(), but I cannot see what leads to that situation.

Only difference I noticed so far when dragging invalid data vs. valid data is that after a valid data drag, we have two calls in a row to UI_but_func_search_set(), while when dragged data is invalid, we only have one.

Quickslap test file to reproduce:

Jacques Lucke (JacquesLucke) added a subscriber: Jacques Lucke (JacquesLucke).Mar 20 2019, 2:26 PM

Maybe this is related to T60815.

Bastien Montagne (mont29) added a comment.Mar 20 2019, 8:40 PM

It is indeed the same issue I think, at least rBda1350acdcb4c fixed it for me here. Will merge, thanks for the head-up :)

Bastien Montagne (mont29) closed this task as a duplicate of T60815: Drag and drop causes null pointer exception.Mar 20 2019, 8:40 PM