View Issue Details

IDProjectCategoryView StatusLast Update
0002300NoesisGUIC# SDKpublic2022-03-16 16:22
Reporterstonstad Assigned Tosfernandez  
PrioritynormalSeveritymajor 
Status assignedResolutionopen 
Product Version3.1.3 
Summary0002300: Unable to Upgrade to Noesis 3.13 Due to Xaml Not Found Errors
Description

Upgrade Steps

  1. I remove the 3.1.2 package in the Unity package manager.
  2. I add a package via file path to the the unzipped 3.1.3 package.
  3. Noesis for some reason fails to import my game's Resources.xaml file.
  4. I reimport it via right click -> reimport in Unity. Now it is recognized by Noesis with XAML icon.
  5. I restart Unity. Now the XAML files this Resources.xaml file cannot be found
  6. However, the Resources.xaml file is present and dependencies load
  7. But none of the XAML files contained within Resources.xaml loads. (1.png, 2.png, 3.png)

Nearly every recent release of Noesis has had continuity issues. Upgrades are very painful and they need to be transparent. The reason I am upgrading is so that I can validate if a bug still exists and report it -- but I can't upgrade.

Encl.

  • Noesis settings references resources.xaml. (1.png)
  • Resources.xaml references other XAML files (2.png)
  • XAML files referenced by resources.xaml fails to load (3.png)
  • Resources.xaml
Attached Files
1.png (86,011 bytes)   
1.png (86,011 bytes)   
2.png (119,413 bytes)   
2.png (119,413 bytes)   
3.png (209,037 bytes)   
3.png (209,037 bytes)   
Resources.xaml (595 bytes)   

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/Packages/com.noesis.noesisgui/Theme/NoesisTheme.DarkBlue.xaml"/>
        <ResourceDictionary Source="/Packages/com.noesis.noesisgui/Theme/NoesisTheme.Styles.xaml"/>

        <ResourceDictionary Source="ResourcesImages.xaml"/>
        <ResourceDictionary Source="ResourcesCommon.xaml"/>
        <ResourceDictionary Source="ResourcesTheme.xaml"/>

    </ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
Resources.xaml (595 bytes)   
PlatformAny

Activities

sfernandez

sfernandez

2022-03-09 16:46

manager   ~0007838

Hi, I'm testing with the project you provided on ticket 2141 to see if I can reproduce the problem. I'll let you know what I find.

stonstad

stonstad

2022-03-09 17:09

reporter   ~0007840

Last edited: 2022-03-09 17:15

Thank you Sergio! The fix for me was to reimport everything at the top level directory. I honestly don't know why this was needed but it worked.

sfernandez

sfernandez

2022-03-09 17:45

manager   ~0007843

We need to understand what happened. Doing a "Reimport All" shouldn't be necessary and restarting Unity can probably show errors again.

I tried the project you attached in issue 2141, installed 3.1.3 version and after fixing a few compiler issues (you are calling NoesisUnity.UpdateCursor private method), some xamls that were using x:Name as keys in dictionaries, and changing Resources.xaml to use the NoesisTheme in our package, the installation finished and got no more errors. I want to remark one thing, in the upgrade steps you specified, you are removing 3.1.2 from Unity Package Manager and then installing 3.1.3, probably without closing Unity in between. This is problematic because Noesis 3.1.2 native library is yet in memory, and the new version library cannot be loaded.

Could you please try with that project too to see if you can upgrade it correctly?

stonstad

stonstad

2022-03-09 17:53

reporter   ~0007845

Thanks for jumping on this quickly. I can confirm that in my project the update cursor behavior and Resources.xaml behavior was fixed a few months prior. These changes occurred in the migration to 3.1.2 and the resources.xaml file present is included in this ticket.

What was not fixed in my code on upgrade to 3.1.2 are the missing key properties for inline resource dictionaries on two XAML screens. I can confirm that I did not restart Unity after removing the prior package version.

I'm not sure what my next step is to help.

stonstad

stonstad

2022-03-09 17:56

reporter   ~0007846

I feel like the challenge here is that I am not an expert XAML user and I introduce ignorant or unexpected XAML. The XAML might work in prior versions of Noesis but then on upgrade things fail. When this happens I enter into an unexpected "no mans land" in which features that normally work very well fail with unexpected behavior (e.g. missing XAML for separate unrelated files).

sfernandez

sfernandez

2022-03-09 17:58

manager   ~0007847

Could you share with us an updated version of the project with all the compiler/xaml issues fixed?
And try to reproduce your upgrade problems with that project, so we both have the same project to compare and find what is happening.

jsantos

jsantos

2022-03-10 13:17

manager   ~0007854

Hi!

We have plan to release 3.1.4 next week (before our travel to GDC), so I think this is a great opportunity to quickly solve this.

If you could give us access to a project (working in 3.1.X) and the steps to be performed to upgrade to 3.1.3 that reproduces this issue we will give this max priority.

stonstad

stonstad

2022-03-11 00:15

reporter   ~0007856

Congratulations on the trip to GDC. I believe you have an amazing product.

The game is large and it takes considerable effort to create a package that I can share. In this scenario I would be pulling down a version from a few days prior. The only change I would apply is the addition of resource dictionary keys for two XAML screens that were missing this. Is it possible the missing keys cause import to fail on project upgrades?

stonstad

stonstad

2022-03-11 00:17

reporter   ~0007858

I'll work to provide a zip file of the project prior to the upgrade. I'll include the missing keys so that you have everything identical to what I encountered on upgrade.

jsantos

jsantos

2022-03-11 11:48

manager   ~0007859

Thank you!

stonstad

stonstad

2022-03-16 16:10

reporter   ~0007864

I'm still working on this. There is complexity in downloading a prior build due to the size of the pull (100GB+), and then making sure it compiles and runs for you.

jsantos

jsantos

2022-03-16 16:12

manager   ~0007865

Hi, thank you!

This build that you are preparing is reproducing the issue following a list of steps?

stonstad

stonstad

2022-03-16 16:22

reporter   ~0007866

I haven't been able to pull down a build of my project that is a copy of the day the behavior manifest. GitHub + Git LFS is having issues when I pull a fresh copy of source + assets. I was just going to send over source without game assets but apparently my dlls are in LFS and so I need to pull down everything. It's slow going until I figure out how to better structure things in GitHub and LFS on my end. My GitHub LFS transfer speed is about 2MB/s out of 100,000 MB. This issue crept on me and it is now very apparent when I need a fresh copy of everything.

Issue History

Date Modified Username Field Change
2022-03-09 16:23 stonstad New Issue
2022-03-09 16:23 stonstad File Added: 1.png
2022-03-09 16:23 stonstad File Added: 2.png
2022-03-09 16:23 stonstad File Added: 3.png
2022-03-09 16:23 stonstad File Added: Resources.xaml
2022-03-09 16:46 sfernandez Assigned To => sfernandez
2022-03-09 16:46 sfernandez Status new => feedback
2022-03-09 16:46 sfernandez Note Added: 0007838
2022-03-09 17:09 stonstad Note Added: 0007840
2022-03-09 17:09 stonstad Status feedback => assigned
2022-03-09 17:15 stonstad Note Edited: 0007840
2022-03-09 17:45 sfernandez Status assigned => feedback
2022-03-09 17:45 sfernandez Note Added: 0007843
2022-03-09 17:53 stonstad Note Added: 0007845
2022-03-09 17:53 stonstad Status feedback => assigned
2022-03-09 17:56 stonstad Note Added: 0007846
2022-03-09 17:58 sfernandez Status assigned => feedback
2022-03-09 17:58 sfernandez Note Added: 0007847
2022-03-10 13:17 jsantos Note Added: 0007854
2022-03-11 00:15 stonstad Note Added: 0007856
2022-03-11 00:15 stonstad Status feedback => assigned
2022-03-11 00:17 stonstad Note Added: 0007858
2022-03-11 11:48 jsantos Note Added: 0007859
2022-03-16 16:10 stonstad Note Added: 0007864
2022-03-16 16:12 jsantos Note Added: 0007865
2022-03-16 16:12 jsantos Status assigned => feedback
2022-03-16 16:22 stonstad Note Added: 0007866
2022-03-16 16:22 stonstad Status feedback => assigned