Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FSR: Manager is being destroyed in play session #155

Open
byron-piper opened this issue Jan 8, 2025 · 1 comment
Open

FSR: Manager is being destroyed in play session #155

byron-piper opened this issue Jan 8, 2025 · 1 comment

Comments

@byron-piper
Copy link

Here's what I've done:

  1. Created a brand new project using Unity 6000.0.33f1
  2. Imported the latest version of the asset (1.8)
  3. Created a test script that spins a cube
  4. Enter play mode and change a variable

When I do this Unity does the usual reload and I get a bunch of errors:

  1. FSR: Manager is being destroyed in play session
  2. Error when executing event, UnityEngine.UnityException: FindObjectsOfType can only be called from the main thread. Constructors and field initializers will be executed from the loading thread when loading a scene.
  3. FSR: Error when updating files: 'Test.cs', FastScriptReload.Editor.Compilation.HotReloadCompilationException: Thread was being aborted. ---> System.Threading.ThreadAbortException: Thread was being aborted.
  4. FSR: Compilation error: temporary files were not removed so they can be inspected: ...

Looking at the 'Test.cs' file and the temporary file that is created shows no errors or anything that would trip it up. I'm honestly not sure what is causing it to break or how to fix it. This is a brand new project and fresh install of the asset.

@byron-piper
Copy link
Author

Here's what I've done:

  1. Created a brand new project using Unity 6000.0.33f1
  2. Imported the latest version of the asset (1.8)
  3. Created a test script that spins a cube
  4. Enter play mode and change a variable

When I do this Unity does the usual reload and I get a bunch of errors:

  1. FSR: Manager is being destroyed in play session
  2. Error when executing event, UnityEngine.UnityException: FindObjectsOfType can only be called from the main thread. Constructors and field initializers will be executed from the loading thread when loading a scene.
  3. FSR: Error when updating files: 'Test.cs', FastScriptReload.Editor.Compilation.HotReloadCompilationException: Thread was being aborted. ---> System.Threading.ThreadAbortException: Thread was being aborted.
  4. FSR: Compilation error: temporary files were not removed so they can be inspected: ...

Looking at the 'Test.cs' file and the temporary file that is created shows no errors or anything that would trip it up. I'm honestly not sure what is causing it to break or how to fix it. This is a brand new project and fresh install of the asset.

And if I may add, sometimes updating the script results in Unity stuck in reloading the script meaning I have to force close the editor. Not sure if this is a direct issue with the asset itself but figured worth mentioning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant