uv_on_emitter crash #84588
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#84588
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 760M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 425.31
Blender Version
Broken:
1709bc5164
61f1faac3f
Worked: ?
Crashes:
Running bpy.types.Particle.uv_on_emitter() results in unexpected behavior, including returning
nan
,0
,<number>e-40/e+40
in different combinations and eventually giving anEXCEPTION_ACCESS_VIOLATION
crash. The behavior is present when accompanied by viewport updates of any sort and having other modifiers on the mesh. Open the attached file and run theuv_on_emitter_crash
script multiple times.Running bpy.types.ParticleSystem.uv_on_emitter() results in an
EXCEPTION_ACCESS_VIOLATION
crash if theparticle
parameter is not specified. Open the attached file and run theno_particle_crash
script.uv_on_emitter_crash_test.blend
210111_130012_%pn_%t.mp4
Added subscriber: @unwave
Added subscriber: @rjg
Running the script causes a heap-buffer overflow for me, according to ASAN.
2.92:
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
2.91:
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
2.83
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
Changed status from 'Needs Triage' to: 'Confirmed'
It appears that
rna_Particle_uv_on_emitter
use ofmtface += num;
makes it point to an incorrect memory address. In this particular casenum
fromparticle->num_dmcache
is-2
(DMCACHE_ISCHILD
).It seems to me that
rna_Particle_uv_on_emitter
only handles the cases wherenum_dmcache
is eitherDMCACHE_NOTFOUND
orPOINTER_AS_INT(...)
, but notDMCACHE_ISCHILD
. Subtracting from themtface
pointer doesn't make sense as an offset in this context, as far as I can see.For instance
psys_thread_create_path
,particle_calculate_parent_uvs
,psys_face_mat
,get_particle_uv
and others check ifnum_dmcache
isDMCACHE_NOTFOUND
orDMCACHE_ISCHILD
and then usenum
instead ofnum_dmcache
if that is the case.This issue was referenced by
f5c0ef52cf
Changed status from 'Confirmed' to: 'Resolved'
@rjg What about the second crash?
Changed status from 'Resolved' to: 'Confirmed'
@unwave Thank you for reminding me, the ticket was automatically closed by the commit that fixed the first issue. It's on the ToDo list for Monday.
The parameter
particle
was not intended to be optional, there was a mistake in the definition of the function.This issue was referenced by
821df20797
Changed status from 'Confirmed' to: 'Resolved'