View Issue Details

IDProjectCategoryView StatusLast Update
0003095NoesisGUIUnitypublic2024-02-22 22:20
ReporterStrayThought Assigned Tomaherne  
PrioritynormalSeveritycrash 
Status resolvedResolutionfixed 
Product Version3.2.3 
Target Version3.2.4Fixed in Version3.2.4 
Summary0003095: Unity crashes when editing XAML in VSCode
Description

As reported in the forums here (https://www.noesisengine.com/forums/viewtopic.php?t=3203#p16653) Unity editor can crash when editing XAML from VS Code. It was apparently reproducible.

Steps To Reproduce

I upgraded to latest 3.2.3 and when editing the XAML file in VSCode periodically the Unity editor crashes in the background. I can't seem to get it to reproduce with a set of exact steps, but it only takes a minute of editing to get it to crash. In my specific case, here is what I did:

  1. In Unity, went to Tools->NoesisGUI->Create->XAML - Layout Grid to create a new file
  2. Created a new Unity scene (built-in renderer), added NoesisView to camera, connected the xaml file to it
  3. Open the xaml file, VSCode launches
  4. Went down to the <Rectangle> element and typed over Rectangle with Grid and started editing it to be a Grid and Unity editor crashed.
  5. Relaunched Unity, reopened the xaml and continued editing.
  6. Switched back to Unity, press play, works
  7. Back to VS Code, start changing another Rectangle into a Grid and crashed again.
  8. Rinse and repeat, crashes consistently every minute or so but no specific thing seems to trigger. Maybe the language server polling/update?
PlatformmacOS

Activities

maherne

maherne

2024-02-19 20:38

developer   ~0009216

Thank you for the report.

I believe I have reproduced this issue, but only when a "domain reload" occurs in Unity after I have opened any XAML document in VSCode. A domain reload can occur when pressing play, or compiling a script.

Could you confirm that this is the case with your issue?

StrayThought

StrayThought

2024-02-20 09:05

reporter   ~0009219

Yes, it definitely crashes when I hit save in VSCode sometimes.

StrayThought

StrayThought

2024-02-20 12:16

reporter   ~0009220

I noticed the snippet included a space in the name. I removed the spaces from the file names and it hasn't crashed since. Unsure if related but worth letting you know.

maherne

maherne

2024-02-20 16:05

developer   ~0009223

I identified an issue in our Language Server which I believe is causing your crash.

Could you confirm this fix?

I have attached an updated MacOS binary in a zip archive. The Noesis.dylib file it contains should be placed within the Noesis Unity plugin folders, in Runtime/Libraries/MacOS, replacing the existing file.

Thanks.

NoesisMacOS_3095.zip (5,037,182 bytes)
StrayThought

StrayThought

2024-02-20 21:28

reporter   ~0009225

Yes, this seems to fix the problem so far. I will do some more testing tomorrow. Really appreciate the quick turnaround, it was almost unusable :-)

jsantos

jsantos

2024-02-22 09:39

manager   ~0009229

Morning, were you able to reproduce the crash with the latest hot-fix?

StrayThought

StrayThought

2024-02-22 11:40

reporter   ~0009231

By hot fix you mean the zip file attached to this bug report? If so then no, issue seems fixed now and it hasn't crashed in 2 days now. Yay!

maherne

maherne

2024-02-22 22:20

developer   ~0009232

Thank you for your help StrayThought, I will close this ticket now.

Issue History

Date Modified Username Field Change
2024-02-19 14:23 StrayThought New Issue
2024-02-19 14:23 StrayThought Tag Attached: Unity
2024-02-19 14:23 StrayThought Tag Attached: VisuaStudio
2024-02-19 20:06 sfernandez Assigned To => maherne
2024-02-19 20:06 sfernandez Status new => assigned
2024-02-19 20:06 sfernandez Target Version => 3.2.4
2024-02-19 20:38 maherne Note Added: 0009216
2024-02-19 21:02 maherne Status assigned => feedback
2024-02-20 09:05 StrayThought Note Added: 0009219
2024-02-20 09:05 StrayThought Status feedback => assigned
2024-02-20 12:16 StrayThought Note Added: 0009220
2024-02-20 16:05 maherne Note Added: 0009223
2024-02-20 16:05 maherne File Added: NoesisMacOS_3095.zip
2024-02-20 20:03 jsantos Status assigned => feedback
2024-02-20 21:28 StrayThought Note Added: 0009225
2024-02-20 21:28 StrayThought Status feedback => assigned
2024-02-22 09:39 jsantos Note Added: 0009229
2024-02-22 09:39 jsantos Status assigned => feedback
2024-02-22 11:40 StrayThought Note Added: 0009231
2024-02-22 11:40 StrayThought Status feedback => assigned
2024-02-22 22:20 maherne Note Added: 0009232
2024-02-22 22:20 maherne Status assigned => resolved
2024-02-22 22:20 maherne Resolution open => fixed
2024-02-22 22:20 maherne Fixed in Version => 3.2.4
2025-10-10 13:29 jsantos Category Unity3D => Unity