handzlikchris / handzlikchris/FastScriptReload

FSR: Manager is being destroyed in play session

Abierto
#155 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
C#
Estrellas
2.2k
Forks
167
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Reproduce the issue in a fresh Unity 6000.0.33f1 project with FastScriptReload 1.8 by editing the Test.cs script during play mode. Inspect Test.cs, the generated temporary file, and the reported Manager, main-thread, and compilation errors. Done means changing a variable reloads successfully without the listed errors.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
csharp, unity
Área
game-dev, tooling
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.