Bind in Mesh Deform Modifier fails #63252

Closed
opened 2019-04-03 16:28:07 +02:00 by takaaki takeda · 10 comments

System Information
Operating system: Windows-10-10.0.17134 64 Bits
Graphics card: GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 382.05

Blender Version
Broken: version: 2.80 (sub 53), branch: blender2.7, commit date: 2019-04-02 19:53, hash: a813e259d6
Worked: (optional)

Short description of error
Bind in Mesh Deform Modifier fails in recent build.

Exact steps for others to reproduce the error
Open attached .blend file. A Cylinder and Cube is there. The cylinder has Mesh Deform Modifier connected to the cube.
Push bind button, but nothing happens.
I found that an error message is shown in system console, like attached image file, that says,
Cannot get mesh from cage object.

Bind.blend
ErrorMessage.png

I tried this .blend file with another build with date 2019-03-30 19:37, and I succeeded the binding.
(So that I guess recent change makes this bug.)

**System Information** Operating system: Windows-10-10.0.17134 64 Bits Graphics card: GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 382.05 **Blender Version** Broken: version: 2.80 (sub 53), branch: blender2.7, commit date: 2019-04-02 19:53, hash: `a813e259d6` Worked: (optional) **Short description of error** Bind in Mesh Deform Modifier fails in recent build. **Exact steps for others to reproduce the error** Open attached .blend file. A Cylinder and Cube is there. The cylinder has Mesh Deform Modifier connected to the cube. Push bind button, but nothing happens. I found that an error message is shown in system console, like attached image file, that says, Cannot get mesh from cage object. [Bind.blend](https://archive.blender.org/developer/F6909113/Bind.blend) ![ErrorMessage.png](https://archive.blender.org/developer/F6909119/ErrorMessage.png) I tried this .blend file with another build with date 2019-03-30 19:37, and I succeeded the binding. (So that I guess recent change makes this bug.)
Author

Added subscriber: @popqjp

Added subscriber: @popqjp
Sebastian Parborg self-assigned this 2019-04-03 17:37:55 +02:00
Sebastian Parborg removed their assignment 2019-04-03 20:06:22 +02:00
Sergey Sharybin was assigned by Sebastian Parborg 2019-04-03 20:06:22 +02:00

Added subscribers: @Sergey, @ZedDB

Added subscribers: @Sergey, @ZedDB

@Sergey when reverting the changes with 64c8d72ef1 you missed the #if 0 statements in MOD_surfacedeform.c and MOD_meshdeform.c .

Now it seems like it is not longer possible to bind meshes.
I did some quick tests and just adding back in the commented out code seems to work fine (with additional free checks).
However, I'm unsure if this is the way you want this solved or not.

@Sergey when reverting the changes with 64c8d72ef1 you missed the `#if 0` statements in MOD_surfacedeform.c and MOD_meshdeform.c . Now it seems like it is not longer possible to bind meshes. I did some quick tests and just adding back in the commented out code seems to work fine (with additional free checks). However, I'm unsure if this is the way you want this solved or not.

@ZedDB, those ifdef-ed blocks are to be removed. The Bind operator is to pass evaluated object to the modifier stack, and copy bound data to original.

@ZedDB, those ifdef-ed blocks are to be removed. The Bind operator is to pass evaluated object to the modifier stack, and copy bound data to original.

This issue was referenced by 59f6371a85

This issue was referenced by 59f6371a85824b4785db8e2b526c1101a5e30ca7

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Added subscriber: @capnm

Added subscriber: @capnm

Push bind button, but nothing happens.

Not sure if avoidable – it works now, but "freezes" for several minutes the Blender UI

image.png

^C
Thread 1 "b8" received signal SIGINT, Interrupt.
0x000055555bfbaadf in Eigen::internal::assign_impl<Eigen::Block<Eigen::Matrix<double, -1, 1, 0, -1, 1>, -1, 1, false>, Eigen::Matrix<double, -1, 1, 0, -1, 1>, 3, 0, 0>::run(Eigen::Block<Eigen::Matrix<double, -1, 1, 0, -1, 1>, -1, 1, false>&, Eigen::Matrix<double, -1, 1, 0, -1, 1> const&)
    ()
(gdb) info threads 
  Id   Target Id         Frame 
* 1    Thread 0x7ffff7f61540 (LWP 25739) "b8" 0x000055555bfbaadf in Eigen::internal::assign_impl<Eigen::Block<Eigen::Matrix<double, -1, 1, 0, -1, 1>, -1, 1, false>, Eigen::Matrix<double, -1, 1, 0, -1, 1>, 3, 0, 0>::run(Eigen::Block<Eigen::Matrix<double, -1, 1, 0, -1, 1>, -1, 1, false>&, Eigen::Matrix<double, -1, 1, 0, -1, 1> const&) ()
  2    Thread 0x7fffce3ff700 (LWP 25746) "b8" 0x00007ffff5e686d6 in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=0, 
    futex_word=0x7fffcf09c788) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
  3    Thread 0x7fffcdbfe700 (LWP 25747) "b8" 0x00007ffff5e686d6 in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=0, 
    futex_word=0x7fffcf09c788) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
  6    Thread 0x7fffcc3ff700 (LWP 25751) "threaded-ml" 0x00007fffefafbbf9 in __GI___poll (fds=0x7fffcc40f640, nfds=3, timeout=712)
    at ../sysdeps/unix/sysv/linux/poll.c:29
  7    Thread 0x7fffcfb0f700 (LWP 25752) "b8" 0x00007ffff5e659f3 in futex_wait_cancelable (private=<optimized out>, expected=0, 
    futex_word=0x7fffcc8237b8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
  8    Thread 0x7fffb9cbf700 (LWP 25753) "gmain" 0x00007fffefafbbf9 in __GI___poll (fds=0x7fffcf021160, nfds=1, timeout=-1)
    at ../sysdeps/unix/sysv/linux/poll.c:29
  9    Thread 0x7fffb8fff700 (LWP 25754) "gdbus" 0x00007fffefafbbf9 in __GI___poll (fds=0x7fffb8042060, nfds=2, timeout=-1)
    at ../sysdeps/unix/sysv/linux/poll.c:29
  10   Thread 0x7fffb14ec700 (LWP 25756) "b8:cs0" 0x00007ffff5e659f3 in futex_wait_cancelable (private=<optimized out>, expected=0, 
    futex_word=0x7fffcc87350c) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
  11   Thread 0x7fffb06c3700 (LWP 25757) "b8:disk$0" 0x00007ffff5e659f3 in futex_wait_cancelable (private=<optimized out>, expected=0, 
    futex_word=0x7fffccf9a408) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
  12   Thread 0x7fffafec2700 (LWP 25758) "b8:sh0" 0x00007ffff5e659f3 in futex_wait_cancelable (private=<optimized out>, expected=0, 
    futex_word=0x7fffcc82868c) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
  13   Thread 0x7fffaf6c1700 (LWP 25759) "b8:shlo0" 0x00007ffff5e659f3 in futex_wait_cancelable (private=<optimized out>, expected=0, 
    futex_word=0x7fffcc828c08) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
  14   Thread 0x7fffaeec0700 (LWP 25760) "b8:gdrv0" 0x00007ffff5e659f3 in futex_wait_cancelable (private=<optimized out>, expected=0, 
    futex_word=0x7fffccf27490) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
  15   Thread 0x7fffad3ff700 (LWP 25762) "b8" 0x00007ffff5e659f3 in futex_wait_cancelable (private=<optimized out>, expected=0, 
---Type <return> to continue, or q <return> to quit---
    futex_word=0x7fffccfcac84) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
  16   Thread 0x7fffacbfe700 (LWP 25763) "b8:gdrv0" 0x00007ffff5e659f3 in futex_wait_cancelable (private=<optimized out>, expected=0, 
    futex_word=0x7fffad533490) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
> Push bind button, but nothing happens. Not sure if avoidable – it works now, but "freezes" for several minutes the Blender UI ![image.png](https://archive.blender.org/developer/F6914634/image.png) ``` ^C Thread 1 "b8" received signal SIGINT, Interrupt. 0x000055555bfbaadf in Eigen::internal::assign_impl<Eigen::Block<Eigen::Matrix<double, -1, 1, 0, -1, 1>, -1, 1, false>, Eigen::Matrix<double, -1, 1, 0, -1, 1>, 3, 0, 0>::run(Eigen::Block<Eigen::Matrix<double, -1, 1, 0, -1, 1>, -1, 1, false>&, Eigen::Matrix<double, -1, 1, 0, -1, 1> const&) () (gdb) info threads Id Target Id Frame * 1 Thread 0x7ffff7f61540 (LWP 25739) "b8" 0x000055555bfbaadf in Eigen::internal::assign_impl<Eigen::Block<Eigen::Matrix<double, -1, 1, 0, -1, 1>, -1, 1, false>, Eigen::Matrix<double, -1, 1, 0, -1, 1>, 3, 0, 0>::run(Eigen::Block<Eigen::Matrix<double, -1, 1, 0, -1, 1>, -1, 1, false>&, Eigen::Matrix<double, -1, 1, 0, -1, 1> const&) () 2 Thread 0x7fffce3ff700 (LWP 25746) "b8" 0x00007ffff5e686d6 in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=0, futex_word=0x7fffcf09c788) at ../sysdeps/unix/sysv/linux/futex-internal.h:205 3 Thread 0x7fffcdbfe700 (LWP 25747) "b8" 0x00007ffff5e686d6 in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=0, futex_word=0x7fffcf09c788) at ../sysdeps/unix/sysv/linux/futex-internal.h:205 6 Thread 0x7fffcc3ff700 (LWP 25751) "threaded-ml" 0x00007fffefafbbf9 in __GI___poll (fds=0x7fffcc40f640, nfds=3, timeout=712) at ../sysdeps/unix/sysv/linux/poll.c:29 7 Thread 0x7fffcfb0f700 (LWP 25752) "b8" 0x00007ffff5e659f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fffcc8237b8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 8 Thread 0x7fffb9cbf700 (LWP 25753) "gmain" 0x00007fffefafbbf9 in __GI___poll (fds=0x7fffcf021160, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29 9 Thread 0x7fffb8fff700 (LWP 25754) "gdbus" 0x00007fffefafbbf9 in __GI___poll (fds=0x7fffb8042060, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29 10 Thread 0x7fffb14ec700 (LWP 25756) "b8:cs0" 0x00007ffff5e659f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fffcc87350c) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 11 Thread 0x7fffb06c3700 (LWP 25757) "b8:disk$0" 0x00007ffff5e659f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fffccf9a408) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 12 Thread 0x7fffafec2700 (LWP 25758) "b8:sh0" 0x00007ffff5e659f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fffcc82868c) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 13 Thread 0x7fffaf6c1700 (LWP 25759) "b8:shlo0" 0x00007ffff5e659f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fffcc828c08) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 14 Thread 0x7fffaeec0700 (LWP 25760) "b8:gdrv0" 0x00007ffff5e659f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fffccf27490) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 15 Thread 0x7fffad3ff700 (LWP 25762) "b8" 0x00007ffff5e659f3 in futex_wait_cancelable (private=<optimized out>, expected=0, ---Type <return> to continue, or q <return> to quit--- futex_word=0x7fffccfcac84) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 16 Thread 0x7fffacbfe700 (LWP 25763) "b8:gdrv0" 0x00007ffff5e659f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fffad533490) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 ```

Binding can take some time to process the math, but several minutes for the file from this report is quite extreme.
Please compare the result on same mesh and cage in 2.7, and if the latest 2.8 is measurably slower make a new report.

Binding can take some time to process the math, but several minutes for the file from this report is quite extreme. Please compare the result on same mesh and cage in 2.7, and if the latest 2.8 is measurably slower make a new report.

Please compare the result on same mesh and cage in 2.7, and if the latest 2.8 is measurably slower make a new report.

f12040e088

The file from OP runs about 4 minutes on one core (3.3 GHz) 100%,
With v2.79 it takes about 10 seconds.

The main problem is that the Window UI isn't updated during the processing time. I was about to kill the process because I thought Blender no longer responds.

While copying the model, I also see this visual glitch. If you select both, the selected cylinder in 2.80 has no outline.
image.png

> Please compare the result on same mesh and cage in 2.7, and if the latest 2.8 is measurably slower make a new report. f12040e088 The file from OP runs about 4 minutes on one core (3.3 GHz) 100%, With v2.79 it takes about 10 seconds. The main problem is that the Window UI isn't updated during the processing time. I was about to kill the process because I thought Blender no longer responds. While copying the model, I also see this visual glitch. If you select both, the selected cylinder in 2.80 has no outline. ![image.png](https://archive.blender.org/developer/F6914921/image.png)
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
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
5 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#63252
No description provided.