Page MenuHome

Drag and drop causes null pointer exception
Closed, ResolvedPublic


System Information
Operating system:
Graphics card:

Blender Version
2.80, a3261aad130e, 2019-01-04
2.79, f4dc9f9d68b, 2018-03-22

Short description of error
There is a null pointer exception in the search callback for properties. It happens when the mouse cursor is not moved off the property after a drop event and the selection menu is opened instead.

Exact steps for others to reproduce the error
Open default startup .blend.
Duplicate the camera.
Select Scene tab in Properties window.
Select "Camera.001" as Camera.
Drag "Camera" from Outliner window to the Camera property in Scene tab.
Don't move the mouse. (Moving the mouse away from the button avoids the exception)
Click to open the selection menu.

Possible fix
Setting but->free_search_arg to false during drop will fix the null pointer exception but probably introduces memory that is never freed.

Event Timeline

matc (matc) updated the task description. (Show Details)Jan 24 2019, 12:55 PM
matc (matc) edited projects, added User Interface; removed Add-ons.Jan 24 2019, 1:04 PM
Jacques Lucke (JacquesLucke) triaged this task as Confirmed, Medium priority.Jan 24 2019, 2:56 PM
Brecht Van Lommel (brecht) raised the priority of this task from Confirmed, Medium to Confirmed, High.Mar 18 2019, 4:15 PM

I updated D4250 to current master.

This particular case appears to be fixed since f57fce3534258e449 .

But the problem persists (as of 21f3c95f22d458389)

New steps to reproduce

  1. Open default .blend file
  2. Switch to Scene properties tab
  3. Drag "Cube" from Outliner into Camera slot
  4. Don't move the mouse. (Moving the mouse away from the button avoids the exception)
  5. Click to open the selection menu.