UI Builder crashes Unity when saving UXML and USS files

Hello! I was trying to experiment with the UI Toolkit in Unity 6000.0.23f1, never used it before, until now I’ve only used its “default” UI system.

When I try to save an UXML file or a USS file, Unity crashes and this message pops out: “This application has requested the Runtime to terminate it in an unusual way. Please contact the application’s support team for more information.”

Has anyone run into this error and know how to fix it? Any help would be much appreciated!

Thats very strange. We are not aware of anything like this. Are you able to share the log file after a crash or any crash dumps (.dmp) it may have generated?

Hello! I just tested this on a new project in Windows 11 and it works. Can you give us more details about your setup and the project that you are trying to save your files in?

Thanks for answering! I can’t seem to find any crash file. I can share the log if that’s helpful.

Editor.log

I dont see any crash in the log. Was this the log after you started Unity again? It may be the wrong log. If you look in the same folder there should be another log called Editor-prev.log, can you share that or generate the log again?

I may be mistaken, but I’m quite sure it’s the correct log, I repeated the error on purpose and looked for the files immediately after. I couldn’t find anything in AppData\Local\Temp\UnityCBMCrashes am I looking in the wrong place?

Editor-prev.log

This project was originally created in 2022.3.8f1 if I remember correctly. Could that be a problem?

The version of the project would not explain these crashes.
Unfortunately I cant see anything related to a crash in the Editor logs.

Try opening the “Reliability Monitor” on windows. See if theres anything for the crash here

Its also worth trying to collect a user-mode dump Collecting User-Mode Dumps - Win32 apps | Microsoft Learn

1 Like

I’m extremely thank you for the dedication. I’m starting to think that this issue is not strictly related to Unity. There’s no sign of Unity crashes anywhere, but there are many other critical events, something’s off.

For now I found a workaround, avoiding to create files directly from the UI Builder and creating files from the Project tab instead. It’s like the error occurs only when Unity tries to open Windows’ File Explorer (?), after that, saving an existing file works perfectly.

Thanks a lot to both of you, have a nice day!

1 Like