Crash Dyntopo Sample Pipette #56004

Closed
opened 2018-07-17 00:09:50 +02:00 by Silas Opel · 8 comments

Blender Version
Broken:Blender 2.8 dc123ac9e5 (example: 2.69.7 4b206af, see splash screen)

Short description of error
When you use the sample pipette in the dyntopo function and sample the mesh blender will crash. You have to use constant detail for the function.

**Blender Version** Broken:Blender 2.8 dc123ac9e5a (example: 2.69.7 4b206af, see splash screen) **Short description of error** When you use the sample pipette in the dyntopo function and sample the mesh blender will crash. You have to use constant detail for the function.
Author

Added subscriber: @DarkKnight

Added subscriber: @DarkKnight

#56058 was marked as duplicate of this issue

#56058 was marked as duplicate of this issue
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Can confirm. But only if you use the Pipette icon button from the popover.
Works as expected if you use Search in the 3D view and invoke "Sample Detail size" from there...

1  ED_view3d_win_to_origin         view3d_project.c  576  0x1adc87f 
2  view3d_win_to_ray_segment       view3d_project.c  327  0x1adbfeb 
3  ED_view3d_win_to_segment        view3d_project.c  642  0x1adcada 
4  sculpt_raycast_init             sculpt.c          4698 0x1f88dc1 
5  sample_detail                   sculpt.c          5946 0x1f8bec3 
6  sculpt_sample_detail_size_modal sculpt.c          5987 0x1f8c07a 
7  wm_handler_operator_call        wm_event_system.c 1958 0x1989e80 

Crashes because rv3d is NULL.
We are initializing viewcontext from topbar region (not view3d main region as in 2.79)
ED_view3d_viewcontext_init() in sample_detail():

  • CTX_wm_region(C) will return topbar region (not view3d main region as in 2.79)
  • CTX_wm_view3d(C) will return NULL because ScrArea->spacetype is not SPACE_VIEW3D (but SPACE_TOPBAR)
Can confirm. But only if you use the Pipette icon button from the popover. Works as expected if you use Search in the 3D view and invoke "Sample Detail size" from there... ``` 1 ED_view3d_win_to_origin view3d_project.c 576 0x1adc87f 2 view3d_win_to_ray_segment view3d_project.c 327 0x1adbfeb 3 ED_view3d_win_to_segment view3d_project.c 642 0x1adcada 4 sculpt_raycast_init sculpt.c 4698 0x1f88dc1 5 sample_detail sculpt.c 5946 0x1f8bec3 6 sculpt_sample_detail_size_modal sculpt.c 5987 0x1f8c07a 7 wm_handler_operator_call wm_event_system.c 1958 0x1989e80 ``` Crashes because rv3d is NULL. We are initializing viewcontext from topbar region (not view3d main region as in 2.79) `ED_view3d_viewcontext_init()` in `sample_detail()`: - CTX_wm_region(C) will return topbar region (not view3d main region as in 2.79) - CTX_wm_view3d(C) will return NULL because ScrArea->spacetype is not SPACE_VIEW3D (but SPACE_TOPBAR)
Member

Added subscriber: @arunsnkr

Added subscriber: @arunsnkr

Added subscriber: @mont29

Added subscriber: @mont29

Please Search for similar reports before creating new ones.

Please Search for similar reports before creating new ones.

Closed as duplicate of #55719

Closed as duplicate of #55719
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
4 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#56004
No description provided.