Custom property -> revert to default value crashes blender #54899

Closed
opened 2018-04-30 16:09:28 +02:00 by Rob Hughes · 6 comments

System Information
Win 10 - 5820K - GTX 970

Blender Version
Current daily build + 2.79b

Short description of error
If you revert a custom property back to default value when it is a string it (can) crash Blender

Exact steps for others to reproduce the error

  1. Start blender
  2. Add custom property to default cube (bottom of object settings panel)
  3. Select Edit
  4. Change the property value so it is now a string: eg change to "Crash"
  5. Click OK
  6. Now right click and select revert to default value.
  7. Crash
**System Information** Win 10 - 5820K - GTX 970 **Blender Version** Current daily build + 2.79b **Short description of error** If you revert a custom property back to default value when it is a string it (can) crash Blender **Exact steps for others to reproduce the error** 1. Start blender 2. Add custom property to default cube (bottom of object settings panel) 3. Select Edit 4. Change the property value so it is now a string: eg change to "Crash" 5. Click OK 6. Now right click and select revert to default value. 7. Crash
Author

Added subscriber: @RevDr

Added subscriber: @RevDr
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Philipp Oeser self-assigned this 2018-04-30 16:27:53 +02:00
Member

Confirmed, will have a look (soonish)

Confirmed, will have a look (soonish)
Member

crash is here (when blender tries to determine the default value for the string -- sprop>defaultvalue is NULL though...)

1  __strlen_avx2                                                    0x7fffece62c11 
2  RNA_property_string_default_length    rna_access.c         3087  0x27a681b      
3  RNA_property_string_get_default_alloc rna_access.c         3068  0x27a673d      
4  RNA_property_reset                    rna_access.c         6989  0x27b0a00      
5  reset_default_button_exec             interface_ops.c      268   0x1ba4ebe      
6  wm_operator_invoke                    wm_event_system.c    1151  0x180f334      
7  wm_operator_call_internal             wm_event_system.c    1372  0x180fac4      
8  WM_operator_name_call_ptr             wm_event_system.c    1384  0x180fb72      
9  ui_apply_but_funcs_after              interface_handlers.c 795   0x1b7c26e      
10 ui_popup_handler                      interface_handlers.c 10213 0x1b957c8      
11 wm_handler_ui_call                    wm_event_system.c    474   0x180d729      
12 wm_handlers_do_intern                 wm_event_system.c    2111  0x18117e9      
13 wm_handlers_do                        wm_event_system.c    2195  0x1811a97      
14 wm_event_do_handlers                  wm_event_system.c    2481  0x1812737      
15 WM_main                               wm.c                 522   0x1805dfe      
16 main                                  creator.c            539   0x1800822  

Note this also happens when the Custom Property is created directly by python [but it seems the UI is actually doing it with python as well...]

So, havent (yet) figured out why this is not initialized properly, crash gets prevented by P669 though

crash is here (when blender tries to determine the default value for the string -- `sprop>defaultvalue` is NULL though...) ``` 1 __strlen_avx2 0x7fffece62c11 2 RNA_property_string_default_length rna_access.c 3087 0x27a681b 3 RNA_property_string_get_default_alloc rna_access.c 3068 0x27a673d 4 RNA_property_reset rna_access.c 6989 0x27b0a00 5 reset_default_button_exec interface_ops.c 268 0x1ba4ebe 6 wm_operator_invoke wm_event_system.c 1151 0x180f334 7 wm_operator_call_internal wm_event_system.c 1372 0x180fac4 8 WM_operator_name_call_ptr wm_event_system.c 1384 0x180fb72 9 ui_apply_but_funcs_after interface_handlers.c 795 0x1b7c26e 10 ui_popup_handler interface_handlers.c 10213 0x1b957c8 11 wm_handler_ui_call wm_event_system.c 474 0x180d729 12 wm_handlers_do_intern wm_event_system.c 2111 0x18117e9 13 wm_handlers_do wm_event_system.c 2195 0x1811a97 14 wm_event_do_handlers wm_event_system.c 2481 0x1812737 15 WM_main wm.c 522 0x1805dfe 16 main creator.c 539 0x1800822 ``` Note this also happens when the Custom Property is created directly by python [but it seems the UI is actually doing it with python as well...] So, havent (yet) figured out why this is not initialized properly, crash gets prevented by [P669](https://archive.blender.org/developer/P669.txt) though
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Member

This is resolved in 2.8 (current master).
Havent tracked down the exact commit (I assume this is 61c941f040)

2.79 branch is still crashing, but don think this will be backported...

This is resolved in 2.8 (current master). Havent tracked down the exact commit (I assume this is 61c941f040) 2.79 branch is still crashing, but don think this will be backported...
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
2 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#54899
No description provided.