Dragging incorrect object into reference field - Crashes Blender #62760

Closed
opened 2019-03-20 03:16:23 +01:00 by Eric · 7 comments

System Information
Operating system: Windows 7
Graphics card: GT750M

Blender Version
Broken: 2.80, March 19, 22:51:20 - 2eead48688
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.

**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.
Author

Added subscriber: @Air_Bear

Added subscriber: @Air_Bear
Bastien Montagne self-assigned this 2019-03-20 10:44:30 +01:00
Bastien Montagne removed their assignment 2019-03-20 12:17:32 +01:00
Campbell Barton was assigned by Bastien Montagne 2019-03-20 12:17:32 +01:00

Added subscribers: @ideasman42, @mont29

Added subscribers: @ideasman42, @mont29

Transferring that to @ideasman42, 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: drag_drop_invalid_ID_in_search_field.blend

Transferring that to @ideasman42, 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: [drag_drop_invalid_ID_in_search_field.blend](https://archive.blender.org/developer/F6854502/drag_drop_invalid_ID_in_search_field.blend)
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Maybe this is related to #60815.

Maybe this is related to #60815.

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

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

Closed as duplicate of #60815

Closed as duplicate of #60815
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#62760
No description provided.