handzlikchris / handzlikchris/FastScriptReload

[BUG] UnityMainThreadDispatcher destroyed

Ouverte
#91 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug
Langage dominant
C#
Étoiles
2.2k
Forks
167
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

I just hit this exception.

```
MissingReferenceException: The object of type 'UnityMainThreadDispatcher' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
UnityEngine.MonoBehaviour.StartCoroutine (System.Collections.IEnumerator routine) (at :0)
ImmersiveVRTools.Runtime.Common.UnityMainThreadDispatcher+<>c__DisplayClass2_0.b__0 () (at :0)
ImmersiveVRTools.Runtime.Common.UnityMainThreadDispatcher.Update () (at :0)
```

I had left Unity open in the background for a few hours, and this exception happened after the first change when I returned. Editor reloading is enabled, and I was not in play mode. Unfortunately I don't have any other information about the circumstances that triggered it.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Start at UnityMainThreadDispatcher, especially Update and the Enqueue callback shown in the stack trace, and inspect when the dispatcher is destroyed or reused. Reproduce the editor-reload scenario outside play mode if possible, then verify that the MissingReferenceException no longer occurs after leaving Unity open and making a change.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
csharp, unity
Domaine
devtools, game-dev
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.