Crash with animated displacement modifier in Texture paint mode while playing #57779
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#57779
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
AMD Ryzen 5 2600, 16GB ram
Windows 7 64bit
Nvidia GTX 1060 6gb (driver version 416.34)
Blender Version
2.79b
Short description of error
I intend to paint a heightmap interactively. So i keyframed a displacement modifier (2 frames) on a subdivided plane and assigned a texture.
Playing the timeline should now refresh the modifier every frame.
Painting in the UV-editor this way works fine, but switching to texture paint mode and painting on the mesh directly crashes blender after about 0.5seconds.
HeightmapPaint.blend
I attached an example file.
Hit play and in the uv editor paint on the noise texture. This works okay.
Now switch to Texture painting in the 3d viewport. The moment a stroke is applied to the mesh it should crash (it does consistently for me).
Added subscriber: @heijulien
Added subscriber: @lichtwerk
Can confirm, will have a look...
Also happens with
--enable-new-depsgraph
in 2.79 master, but seems resolved in 2.8 (cant get it to crash there... and viewport displacement is updating happily...)Will see where it crashes later, but not sure if there are enough dev resources for a fix only for 2.79...
correction, crash still happens
lt_tri_uv- [x]
andlt_tri_uv- [x]
inproject_paint_face_init
are garbage inproject_paint_face_init
Added subscriber: @Jeroen-Bakker
Some points of attention.
I will put this to known issue as texture painting isn't actively developed.
Still crashing in current main
0x7fff8c6b77cc is located 139212 bytes inside of 393240-byte region [0x7fff8c695800,0x7fff8c6f5818)
freed by thread T46 here:
#0 0x7ffff78d7fb8 in __interceptor_free.part.0 (/lib64/libasan.so.8+0xd7fb8) (BuildId: 7fcb7759bc17ef47f9682414b6d99732d6a6ab0c)
#1 0x47fa77d in aligned_free /blender/intern/guardedalloc/intern/mallocn.c:87
#2 0x4801bf0 in MEM_lockfree_freeN /blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:107
#3 0x82f32e in blender::GuardedAllocator::deallocate(void*) /blender/blenlib/BLI_allocator.hh:50
#4 0x1028474 in blender::Array<blender::VecBase<int, 3>, 4l, blender::GuardedAllocator>::deallocate_if_not_inline(blender::VecBase<int, 3>) (/build_linux_debug/bin/blender+0x1028474) (BuildId: 8287d4172f6cad42af19dd78e2fc50f3a18df4d7)
#5 0x1031979 in blender::Array<blender::VecBase<int, 3>, 4l, blender::GuardedAllocator>::~Array() /blender/blenlib/BLI_array.hh:183
#6 0x1033e22 in blender::SharedCache<blender::Array<blender::VecBase<int, 3>, 4l, blender::GuardedAllocator> >::CacheData::~CacheData() /blender/blenlib/BLI_shared_cache.hh:30
#7 0x1033e5b in void std::_Destroy<blender::SharedCache<blender::Array<blender::VecBase<int, 3>, 4l, blender::GuardedAllocator> >::CacheData>(blender::SharedCache<blender::Array<blender::VecBase<int, 3>, 4l, blender::GuardedAllocator> >::CacheData) /usr/include/c++/13/bits/stl_construct.h:151
#8 0x1032dcb in void std::allocator_traits<std::allocator >::destroy<blender::SharedCache<blender::Array<blender::VecBase<int, 3>, 4l, blender::GuardedAllocator> >::CacheData>(std::allocator&, blender::SharedCache<blender::Array<blender::VecBase<int, 3>, 4l, blender::GuardedAllocator> >::CacheData*) /usr/include/c++/13/bits/alloc_traits.h:675
#9 0x1032dcb in std::_Sp_counted_ptr_inplace<blender::SharedCache<blender::Array<blender::VecBase<int, 3>, 4l, blender::GuardedAllocator> >::CacheData, std::allocator, (__gnu_cxx::_Lock_policy)2>::_M_dispose() /usr/include/c++/13/bits/shared_ptr_base.h:613
#10 0x8d7ac6 in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() (/build_linux_debug/bin/blender+0x8d7ac6) (BuildId: 8287d4172f6cad42af19dd78e2fc50f3a18df4d7)
#11 0x918fdb in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() /usr/include/c++/13/bits/shared_ptr_base.h:1071
#12 0x10219d0 in std::__shared_ptr<blender::SharedCache<blender::Array<blender::VecBase<int, 3>, 4l, blender::GuardedAllocator> >::CacheData, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr() /usr/include/c++/13/bits/shared_ptr_base.h:1524
#13 0x1021a24 in std::shared_ptr<blender::SharedCache<blender::Array<blender::VecBase<int, 3>, 4l, blender::GuardedAllocator> >::CacheData>::~shared_ptr() /usr/include/c++/13/bits/shared_ptr.h:175
#14 0x1021a78 in blender::SharedCache<blender::Array<blender::VecBase<int, 3>, 4l, blender::GuardedAllocator> >::~SharedCache() /blender/blenlib/BLI_shared_cache.hh:29
#15 0x1016df1 in blender::bke::MeshRuntime::~MeshRuntime() /blender/blenkernel/intern/mesh_runtime.cc:68
#16 0xf0f66f in mesh_free_data /blender/blenkernel/intern/mesh.cc:230
#17 0xf1f1a0 in BKE_mesh_eval_delete(Mesh*) /blender/blenkernel/intern/mesh.cc:859
#18 0x1369777 in BKE_object_free_derived_caches(Object*) /blender/blenkernel/intern/object.cc:1674
#19 0x320b0cc in makeDerivedMesh(Depsgraph*, Scene const*, Object*, CustomData_MeshMasks const*) /blender/blenkernel/intern/DerivedMesh.cc:1451
#20 0x13c9c36 in BKE_object_handle_data_update(Depsgraph*, Scene*, Object*) /blender/blenkernel/intern/object_update.cc:160
#21 0x13cbdd6 in BKE_object_eval_uber_data(Depsgraph*, Scene*, Object*) /blender/blenkernel/intern/object_update.cc:315
#22 0x476e719 in operator() /blender/depsgraph/intern/builder/deg_builder_nodes.cc:1677
#23 0x47a04ec in __invoke_impl<void, blender::deg::DepsgraphNodeBuilder::build_object_data_geometry(Object*)::<lambda(Depsgraph*)>&, Depsgraph*> /usr/include/c++/13/bits/invoke.h:61
#24 0x47990ce in __invoke_r<void, blender::deg::DepsgraphNodeBuilder::build_object_data_geometry(Object*)::<lambda(Depsgraph*)>&, Depsgraph*> /usr/include/c++/13/bits/invoke.h:111
#25 0x4790fa8 in _M_invoke /usr/include/c++/13/bits/std_function.h:290
#26 0x46b89fa in std::function<void (Depsgraph*)>::operator()(Depsgraph*) const /usr/include/c++/13/bits/std_function.h:591
#27 0x46b2f73 in evaluate_node /blender/depsgraph/intern/eval/deg_eval.cc:101
#28 0x46b33a5 in deg_task_run_func /blender/depsgraph/intern/eval/deg_eval.cc:118
#29 0x4531178 in Task::operator()() const /blender/blenlib/intern/task_pool.cc:166
#30 0x4535fb0 in tbb::internal::function_task::execute() /lib/linux_x86_64_glibc_228/tbb/include/tbb/task.h:1059
previously allocated by thread T0 here:
#0 0x7ffff78d8508 in memalign (/lib64/libasan.so.8+0xd8508) (BuildId: 7fcb7759bc17ef47f9682414b6d99732d6a6ab0c)
#1 0x47fa763 in aligned_malloc /blender/intern/guardedalloc/intern/mallocn.c:78
#2 0x4802996 in MEM_lockfree_mallocN_aligned /blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:333
#3 0x82f2e0 in blender::GuardedAllocator::allocate(unsigned long, unsigned long, char const*) /blender/blenlib/BLI_allocator.hh:45
#4 0x102a8ff in blender::Array<blender::VecBase<int, 3>, 4l, blender::GuardedAllocator>::allocate(long) /blender/blenlib/BLI_array.hh:428
#5 0x10283a1 in blender::Array<blender::VecBase<int, 3>, 4l, blender::GuardedAllocator>::get_buffer_for_size(long) (/build_linux_debug/bin/blender+0x10283a1) (BuildId: 8287d4172f6cad42af19dd78e2fc50f3a18df4d7)
#6 0x1024dc7 in blender::Array<blender::VecBase<int, 3>, 4l, blender::GuardedAllocator>::reinitialize(long) /blender/blenlib/BLI_array.hh:400
#7 0x101bb2e in operator() /blender/blenkernel/intern/mesh_runtime.cc:237
#8 0x10216cd in callback_fn<Mesh::corner_tris() const::<lambda(blender::Array<blender::VecBase<int, 3> >&)> > /blender/blenlib/BLI_function_ref.hh:96
#9 0x10286ed in blender::FunctionRef<void (blender::Array<blender::VecBase<int, 3>, 4l, blender::GuardedAllocator>&)>::operator()(blender::Array<blender::VecBase<int, 3>, 4l, blender::GuardedAllocator>&) const (/build_linux_debug/bin/blender+0x10286ed) (BuildId: 8287d4172f6cad42af19dd78e2fc50f3a18df4d7)
#10 0x1025280 in blender::SharedCache<blender::Array<blender::VecBase<int, 3>, 4l, blender::GuardedAllocator> >::ensure(blender::FunctionRef<void (blender::Array<blender::VecBase<int, 3>, 4l, blender::GuardedAllocator>&)>)::{lambda()#1}::operator()() const /blender/blenlib/BLI_shared_cache.hh:62
#11 0x102a99a in void blender::FunctionRef<void ()>::callback_fn<blender::SharedCache<blender::Array<blender::VecBase<int, 3>, 4l, blender::GuardedAllocator> >::ensure(blender::FunctionRef<void (blender::Array<blender::VecBase<int, 3>, 4l, blender::GuardedAllocator>&)>)::{lambda()#1}>(long) /blender/blenlib/BLI_function_ref.hh:96
#12 0xaef782 in blender::FunctionRef<void ()>::operator()() const /blender/blenlib/BLI_function_ref.hh:132
#13 0x3feb91a in tbb::interface7::internal::delegated_function<blender::FunctionRef<void ()> const, void>::operator()() const /lib/linux_x86_64_glibc_228/tbb/include/tbb/task_arena.h:96
#14 0x7ffff7f56a54 in tbb::interface7::internal::isolate_within_arena(tbb::interface7::internal::delegate_base&, long) (/build_linux_debug/bin/lib/libtbb.so.2+0x12a54) (BuildId: e112c632ed5be89e6711cf88c8b925d3f1fd6331)