View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002791 | NoesisGUI | Unity | public | 2023-10-29 21:39 | 2024-07-08 11:06 |
| Reporter | stonstad | Assigned To | sfernandez | ||
| Priority | normal | Severity | minor | ||
| Status | resolved | Resolution | fixed | ||
| Product Version | 3.2.2 | ||||
| Target Version | 3.2.4 | Fixed in Version | 3.2.4 | ||
| Summary | 0002791: [NOESIS/E] Visuals don't have a common ancestor after domain reload. | ||||
| Description | After a domain reload, I get the following error when user controls are created. [NOESIS/E] Visuals don't have a common ancestor | ||||
| Steps To Reproduce | This is new to 3.2.2. 1) Open Unity I'm sure you'll need a reproduction project. This is one of three different kinds of errors I am seeing with 3.2.2. I'm trying to resolve the bug with the stack overflow, and I'm running into this behavior. I am also running into Unity Editor crashes on domain reload after editing XAML. I'll file a separate report for the crashes -- but perhaps it is all related. | ||||
| Platform | Any | ||||
| related to | 0002727 | resolved | sfernandez | Stack Overflow and Crash from Player and Unity Editor When Button Clicked |
|
*edit, removed. |
|
|
I was not able to reproduce it with our BackgroundBlur sample included in the plugin. I could add a check before calling TransformToVisual to avoid the error message, but I want to understand why this is happening. |
|
|
I think the error message is telling us that something is wrong, but I can't seem to figure out what the precise side-effect is to having a static singleton instance of my top-level UI, and how it is contributing to the behaviors I am seeing. I have a very complex use-case for background blur effect, which involves two separate effects, and binding logic to tell a template which blur layer to use (to avoid cyclic dependencies). [UIStateMachine] [Root] (this is a static singleton) [OverlayLayer]
I can see how referencing an incorrect layer causes a cyclic dependency. But what isn't clear is why it sometimes works, and sometimes doesn't, and always works in 3.2.1. As you suggest, it may be related to a different behavior / issue. |
|
|
The warning message, " [NOESIS/E] Visuals don't have a common ancestor after domain reload." is now resolved by changing my binding approach. Previously, binding BackgroundEffectBehavior.Source was accomplished as follows: // code-behind: public static readonly DependencyProperty BlurLayerProperty = DependencyProperty.Register("BlurLayer", typeof(FrameworkElement), typeof(BorderControlTitle), new PropertyMetadata(null)); public FrameworkElement BlurLayer public override void OnApplyTemplate()
} Binding is now accomplished as follows: public static readonly DependencyProperty BlurLayerProperty = DependencyProperty.Register("BlurLayer", typeof(FrameworkElement), typeof(BorderControlTitle), new PropertyMetadata(null)); public FrameworkElement BlurLayer // XAML: All error messages and crashes are now resolved. |
|
|
Can this be closed then? |
|
|
Yes. Thank you! |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2023-10-29 21:39 | stonstad | New Issue | |
| 2023-10-30 05:13 | stonstad | Steps to Reproduce Updated | |
| 2023-10-30 05:38 | stonstad | Note Added: 0008897 | |
| 2023-10-30 05:38 | stonstad | Note Edited: 0008897 | |
| 2023-10-30 11:11 | sfernandez | Assigned To | => sfernandez |
| 2023-10-30 11:11 | sfernandez | Status | new => feedback |
| 2023-10-30 11:11 | sfernandez | Note Added: 0008900 | |
| 2023-10-30 11:42 | jsantos | Relationship added | related to 0002727 |
| 2023-10-30 16:23 | stonstad | Note Added: 0008904 | |
| 2023-10-30 16:23 | stonstad | Status | feedback => assigned |
| 2023-10-30 17:41 | stonstad | Note Added: 0008907 | |
| 2023-11-01 15:12 | stonstad | Steps to Reproduce Updated | |
| 2024-07-05 20:26 | jsantos | Note Added: 0009750 | |
| 2024-07-05 20:27 | jsantos | Status | assigned => feedback |
| 2024-07-05 20:27 | jsantos | Target Version | => 3.2.5 |
| 2024-07-06 18:48 | stonstad | Note Added: 0009751 | |
| 2024-07-06 18:48 | stonstad | Status | feedback => assigned |
| 2024-07-08 11:06 | sfernandez | Status | assigned => resolved |
| 2024-07-08 11:06 | sfernandez | Resolution | open => fixed |
| 2024-07-08 11:06 | sfernandez | Fixed in Version | => 3.2.4 |
| 2024-07-08 11:06 | sfernandez | Target Version | 3.2.5 => 3.2.4 |
| 2025-10-10 13:29 | jsantos | Category | Unity3D => Unity |