Effect of Collection order on Linking with scaled proxy armature #72197

Closed
opened 2019-12-05 13:26:50 +01:00 by Konstantins Visnevskis · 37 comments

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

Blender Version
Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash: f6cb5f5449

Short description of error
Internal collection order affects result of linking. Probably losing parenting.

Exact steps for others to reproduce the error

  • Create a new empty scene, link the "link_Collection" Collection from each provided file.
  • Make proxy for each object's Armature.
  • Scale each Armature in Object mode.
  • Move the bone of each Armature in pose mode.
  • One of skinned objects doesn't inherit coordinate scale.
    The only difference between files is the non-hierarchical (within the same parent level) order of collections.

test-geo-first.blend

test-arm-first.blend

**System Information** Operating system: Windows-10-10.0.18362 64 Bits Graphics card: GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 436.30 **Blender Version** Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash: `f6cb5f5449` **Short description of error** Internal collection order affects result of linking. Probably losing parenting. **Exact steps for others to reproduce the error** - Create a new empty scene, link the "link_Collection" Collection from each provided file. - Make proxy for each object's Armature. - Scale each Armature in Object mode. - Move the bone of each Armature in pose mode. - > One of skinned objects doesn't inherit coordinate scale. The only difference between files is the non-hierarchical (within the same parent level) order of collections. [test-geo-first.blend](https://archive.blender.org/developer/F8191322/test-geo-first.blend) [test-arm-first.blend](https://archive.blender.org/developer/F8191323/test-arm-first.blend)

Added subscriber: @KonstantinsVisnevskis

Added subscriber: @KonstantinsVisnevskis

Tested in 2.81 with the same result.

Tested in 2.81 with the same result.
Konstantins Visnevskis changed title from Linking collection order to Effect of Collection order on Linking 2019-12-05 14:07:01 +01:00
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

It seems to work for me in the current build. Maybe I'm doing something wrong because I don't know too much about the whole proxy linking etc.
Can you check if the same issue still exists in the latest builds from https://builder.blender.org/download/ ?

It seems to work for me in the current build. Maybe I'm doing something wrong because I don't know too much about the whole proxy linking etc. Can you check if the same issue still exists in the latest builds from https://builder.blender.org/download/ ?

Hi, the mismatch is still there.
Here's the file linking the files above as per description:
linked.blend
Edit3: Enter pose mode and move bone on the left object. The geometry doesn't match motion scale, which doesn't happen on the right object.

The problem seems to be worse as in some cases changing collection order does not restore proper object relationship in linked data and the geometry flies all over the place. Strangely - that happens only on viewport redraws inside pose mode. Once in object mode viewport redraws seem to be fine. And once making everything local or appending instead of linking everything goes back to normal.
Unfortunately the files are under NDA. I'll try to extract the problem in some time.
Edit: this seems to be related but another bug, as the problem initially reported remains after exiting pose mode.
Edit2: My bad - it's on the geometry recalc, not a viewport redraw. So this is the same problem.

Hi, the mismatch is still there. Here's the file linking the files above as per description: [linked.blend](https://archive.blender.org/developer/F8266022/linked.blend) Edit3: Enter pose mode and move bone on the left object. The geometry doesn't match motion scale, which doesn't happen on the right object. The problem seems to be worse as in some cases changing collection order does not restore proper object relationship in linked data and the geometry flies all over the place. Strangely - that happens only on viewport redraws inside pose mode. Once in object mode viewport redraws seem to be fine. And once making everything local or appending instead of linking everything goes back to normal. Unfortunately the files are under NDA. I'll try to extract the problem in some time. Edit: this seems to be related but another bug, as the problem initially reported remains after exiting pose mode. Edit2: My bad - it's on the geometry recalc, not a viewport redraw. So this is the same problem.
Member

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'

After a bit of shifting around - a probable workaround seems to be to link with unchecked "Instance Collections"
(then select rig in Outliner to make proxy, as it's usually hidden to avoid doubling).
That way, although a bit messy, everything seems to work, so there's probably some conflict with parenting when instancing.

After a bit of shifting around - a probable workaround seems to be to link with unchecked "Instance Collections" (then select rig in Outliner to make proxy, as it's usually hidden to avoid doubling). That way, although a bit messy, everything seems to work, so there's probably some conflict with parenting when instancing.
Member

Added subscribers: @mont29, @lichtwerk

Added subscribers: @mont29, @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Can confirm.
Also no expert in the proxy stuff, maybe @mont29 would know more?
Looks like a bug to me...

(Overrides seem to behave better than proxies here btw)
T72197_overrides.zip

Can confirm. Also no expert in the proxy stuff, maybe @mont29 would know more? Looks like a bug to me... (Overrides seem to behave better than proxies here btw) [T72197_overrides.zip](https://archive.blender.org/developer/F8280433/T72197_overrides.zip)
Philipp Oeser changed title from Effect of Collection order on Linking to Effect of Collection order on Linking with scaled proxy armature 2020-01-15 19:47:47 +01:00
Member
@KonstantinsVisnevskis: to me it looks like [D6651: Fix #72083: Object.proxy_collection is been set to linked target object even when target is not a collection](https://archive.blender.org/developer/D6651) fixes this, can you confirm?
Member

In #72197#856542, @lichtwerk wrote:
@KonstantinsVisnevskis: to me it looks like D6651: Fix #72083: Object.proxy_collection is been set to linked target object even when target is not a collection fixes this, can you confirm?

note you have to do "Make Proxy" again (with the patch)... in linked.blend this was already done (without the patch)

> In #72197#856542, @lichtwerk wrote: > @KonstantinsVisnevskis: to me it looks like [D6651: Fix #72083: Object.proxy_collection is been set to linked target object even when target is not a collection](https://archive.blender.org/developer/D6651) fixes this, can you confirm? note you have to do "Make Proxy" again (with the patch)... in `linked.blend` this was already done (without the patch)
Member

Sorry for the noise, spoke too soon, not resolved by D6651...

Sorry for the noise, spoke too soon, **not** resolved by [D6651](https://archive.blender.org/developer/D6651)...

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren

Changed status from 'Confirmed' to: 'Needs User Info'

Changed status from 'Confirmed' to: 'Needs User Info'

@KonstantinsVisnevskis I can't reproduce this issue in current master (409074aae5). I downloaded all the attached files, opened your linked.blend and toyed around with the proxied armature's bone of the left object. Seems to be fine to me.
However, I'm reluctant to just mark this as resolved as Jacques also couldn't reproduce.

@KonstantinsVisnevskis I can't reproduce this issue in current master (409074aae5). I downloaded all the attached files, opened your `linked.blend` and toyed around with the proxied armature's bone of the left object. Seems to be fine to me. However, I'm reluctant to just mark this as resolved as Jacques also couldn't reproduce.

Did a test with builder.blender.org - blender-2.83-7b8db971d42f-linux64.tar.xz.
Ok, so:

  • I download all three files in a single folder,
  • Opened "linked.blend"
  • Entered pose mode on right armature. Scaling the bone works as expected (the box scales along).
  • Entered pose mode on the left armature. Scaling the bone immediately offsets the box that should follow along in-place.
  • Exiting pose mode and moving the armature moves the box back where it should be.

For me it happens on two different machines - windows and Linux.
Should I test some particular version? I'm not sure where to look for 409074aae5.

Did a test with builder.blender.org - blender-2.83-7b8db971d42f-linux64.tar.xz. Ok, so: - I download all three files in a single folder, - Opened "linked.blend" - Entered pose mode on right armature. Scaling the bone works as expected (the box scales along). - Entered pose mode on the left armature. Scaling the bone immediately offsets the box that should follow along in-place. - Exiting pose mode and moving the armature moves the box back where it should be. For me it happens on two different machines - windows and Linux. Should I test some particular version? I'm not sure where to look for 409074aae5.
Member

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'
Member

Hm, weird, I can still reproduce this ( ee7034949f )

Hm, weird, I can still reproduce this ( ee7034949f )

#72197-unable-to-reproduce.mp4

I can't reproduce this with either my own (b454a12233) or today's (fe7c4fb4a2) buildbot build. Let me know what I'm doing wrong.

[#72197-unable-to-reproduce.mp4](https://archive.blender.org/developer/F8384734/T72197-unable-to-reproduce.mp4) I can't reproduce this with either my own (b454a12233) or today's (fe7c4fb4a2) buildbot build. Let me know what I'm doing wrong.
Member

Indeed weird, looks like this here:
#72197.webm

Indeed weird, looks like this here: [#72197.webm](https://archive.blender.org/developer/F8384746/T72197.webm)

@dr.sybren Yeah, doing what you do in the recording produces what @lichtwerk shows with fe7c4fb4a2 for me. (Also did Load Factory preferences to be sure)

Edit: This behavior was first caught in a studio, where it happened on many machines to many people.

@dr.sybren Yeah, doing what you do in the recording produces what @lichtwerk shows with fe7c4fb4a2 for me. (Also did Load Factory preferences to be sure) Edit: This behavior was first caught in a studio, where it happened on many machines to many people.

Changed status from 'Confirmed' to: 'Needs User Info'

Changed status from 'Confirmed' to: 'Needs User Info'

@KonstantinsVisnevskis can you try starting Blender with blender -t 1 thefile.blend? That way only a single thread is used during the dependency graph evaluation. If this solves the issue, it's likely a threading issue (for example caused by a missing relation in the depsgraph).

@KonstantinsVisnevskis can you try starting Blender with `blender -t 1 thefile.blend`? That way only a single thread is used during the dependency graph evaluation. If this solves the issue, it's likely a threading issue (for example caused by a missing relation in the depsgraph).

Hi,
./blender -t 1 linked.blend
unfortunately gives the same result.

Hi, ./blender -t 1 linked.blend unfortunately gives the same result.

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'

That's too bad. I'll have to leave further investigation to @lichtwerk, as he can actually reproduce the issue.

That's too bad. I'll have to leave further investigation to @lichtwerk, as he can actually reproduce the issue.
Sybren A. Stüvel self-assigned this 2020-05-11 13:52:43 +02:00

I have found a way to reproduce.

I have found a way to reproduce.
Member

@dr.sybren : thx taking over (this somewhat slipped under the radar...)

@dr.sybren : thx taking over (this somewhat slipped under the radar...)

Added subscribers: @Sergey, @brecht

Added subscribers: @Sergey, @brecht

@KonstantinsVisnevskis The problem can be worked around by making the armature collection visible in the library file.

In the example files, the armature is hidden. In various dupli-handling places in Blender there are loops over the visible objects in a collection, for example in DepsgraphRelationBuilder::build_collection(), and there are some other places where visibility plays a role.

Here is a little overview of the hierarchy in the library file test-arm-first.blend, and the main blend file:

The library file: The main file:
{F8528597 size=full} {F8528600 size=full}

In the library file the armature collection is hidden, but its proxy in the main blend file is visible. @Sergey @brecht before I spend more hours on this, is this a supported situation to begin with? Or should the visibility of the armature collection in the library file be managed with the eye icon instead?

@KonstantinsVisnevskis The problem can be worked around by making the armature collection visible in the library file. In the example files, the armature is hidden. In various dupli-handling places in Blender there are loops over the visible objects in a collection, for example in `DepsgraphRelationBuilder::build_collection()`, and there are some other places where visibility plays a role. Here is a little overview of the hierarchy in the library file `test-arm-first.blend`, and the main blend file: |The library file:|The main file:| | -- | -- | |{[F8528597](https://archive.blender.org/developer/F8528597/image.png) size=full}|{[F8528600](https://archive.blender.org/developer/F8528600/image.png) size=full}| In the library file the armature collection is hidden, but its proxy in the main blend file is visible. @Sergey @brecht before I spend more hours on this, is this a supported situation to begin with? Or should the visibility of the armature collection in the library file be managed with the eye icon instead?

I would not spend any time on fixing old proxy issue like this at all, and focus on overrides instead. Especially as I guess the simple solution here is to just enable that collection in the original file.

I think this should be marked as low priority known issue. Visibility handling of proxies could probably be improved here, but eventually proxies will be obsolete anyway.

I would not spend any time on fixing old proxy issue like this at all, and focus on overrides instead. Especially as I guess the simple solution here is to just enable that collection in the original file. I think this should be marked as low priority known issue. Visibility handling of proxies could probably be improved here, but eventually proxies will be obsolete anyway.

Enabling showing armature in the viewport indeed seems to avoid the issue (it was hidden to avoid seeing two armatures after creating a proxy, which now seems not to be there).

If linking will be dropped entirely it seems indeed not worth investing effort.
If it won't - there seems to be more issues with character linking behaving in alike fashion and this is merely the one I managed to isolate, hoping they might be related.

As for overrides, when last tested, due to driver/shapekey (and possibly custom property) issues overrides weren't ready for characters yet. Though seem awesome otherwise.

Enabling showing armature in the viewport indeed seems to avoid the issue (it was hidden to avoid seeing two armatures after creating a proxy, which now seems not to be there). If linking will be dropped entirely it seems indeed not worth investing effort. If it won't - there seems to be more issues with character linking behaving in alike fashion and this is merely the one I managed to isolate, hoping they might be related. As for overrides, when last tested, due to driver/shapekey (and possibly custom property) issues overrides weren't ready for characters yet. Though seem awesome otherwise.

In #72197#929704, @KonstantinsVisnevskis wrote:
If linking will be dropped entirely it seems indeed not worth investing effort.

It won't. It's the proxy system that is slated for removal. This will happen some point after the library overrides are developed far enough to be a suitable replacement.

> In #72197#929704, @KonstantinsVisnevskis wrote: > If linking will be dropped entirely it seems indeed not worth investing effort. It won't. It's the proxy system that is slated for removal. This will happen some point after the library overrides are developed far enough to be a suitable replacement.
Sybren A. Stüvel removed their assignment 2020-11-02 16:37:50 +01:00

Changed status from 'Confirmed' to: 'Archived'

Changed status from 'Confirmed' to: 'Archived'

Time to archive this task, proxies have now been fully removed from Blender.

Time to archive this task, proxies have now been fully removed from Blender.
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
6 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#72197
No description provided.