Keymap: Issue setting operator path properties #36492

Closed
opened 2013-08-17 09:52:14 +02:00 by Aldrik Dunbar · 5 comments

%%%OS: ArchLinux x86_64
Blender revision: r59199

Attempting to set "file path" parameters for operator shortcuts using the browser returns a blank/unset path. Repeatedly attempting to do so can cause a segmentation fault:

(gdb) bt

  • 0 0x0000000000fc656d in BLI_addtail ()
  • 1 0x0000000000e76678 in IDP_AddToGroup ()
  • 2 0x0000000001347309 in RNA_property_string_set ()
  • 3 0x00000000008f9eac in file_browse_exec ()
  • 4 0x00000000008dcfc1 in wm_handlers_do_intern ()
  • 5 0x00000000008dd258 in wm_handlers_do ()
  • 6 0x00000000008dd54b in wm_event_do_handlers ()
  • 7 0x00000000008d6578 in WM_main ()

8 0x00000000008c041a in main ()

- Steps for others to reproduce the error ---

Open user preferences and go to the input section.
Navigate to an operator with a file path option, e.g Screen > Screen (Global) > Save Screenshot.
Click the folder icon to open the browser and accept a path.

For seg fault, repeat last step 3–10 times.%%%

%%%OS: ArchLinux x86_64 Blender revision: r59199 Attempting to set "file path" parameters for operator shortcuts using the browser returns a blank/unset path. Repeatedly attempting to do so can cause a segmentation fault: (gdb) bt - 0 0x0000000000fc656d in BLI_addtail () - 1 0x0000000000e76678 in IDP_AddToGroup () - 2 0x0000000001347309 in RNA_property_string_set () - 3 0x00000000008f9eac in file_browse_exec () - 4 0x00000000008dcfc1 in wm_handlers_do_intern () - 5 0x00000000008dd258 in wm_handlers_do () - 6 0x00000000008dd54b in wm_event_do_handlers () - 7 0x00000000008d6578 in WM_main () # 8 0x00000000008c041a in main () - Steps for others to reproduce the error --- Open user preferences and go to the input section. Navigate to an operator with a file path option, e.g Screen > Screen (Global) > Save Screenshot. Click the folder icon to open the browser and accept a path. For seg fault, repeat last step 3–10 times.%%%
Author

Changed status to: 'Open'

Changed status to: 'Open'

%%%kmi are kind of a pita… :/

Afaict (see attached traceback with address sanitizer), when the BUTTONS_OT_file_browse’s execute func is finally called (after the file browser was shown and a file was selected), the PointerRNA stored in this op’s customdata is no more valid (it/its data have been freed). Probably because kmi are completely re-created when their window is hidden and shown again?

I wonder how we can solve this…%%%

%%%kmi are kind of a pita… :/ Afaict (see attached traceback with address sanitizer), when the BUTTONS_OT_file_browse’s execute func is finally called (after the file browser was shown and a file was selected), the PointerRNA stored in this op’s customdata is no more valid (it/its data have been freed). Probably because kmi are completely re-created when their window is hidden and shown again? I wonder how we can solve this…%%%

%%%Assigning to Campbell (at least to have his advice ;) ).%%%

%%%Assigning to Campbell (at least to have his advice ;) ).%%%

%%%fixed r59982.%%%

%%%fixed r59982.%%%

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
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#36492
No description provided.