handzlikchris / handzlikchris/FastScriptReload

Crash from LSR

Aperta
#180 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C#
Stelle
2.2k
Fork
167
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hi Chris,
We found there are crash from here
in LSR, DynamicCompilationBase.cs:66

```
AssemblyCsharpFullPath = SessionStateCache.GetOrCreateString(
$"FSR:AssemblyCsharpFullPath",
() => AssetDatabase.FindAssets("Microsoft.CSharp")
.Select(g => new System.IO.FileInfo(UnityEngine.Application.dataPath + "/../" + AssetDatabase.GUIDToAssetPath(g)))
.First(fi => fi.Name.ToLower() == "Microsoft.CSharp.dll".ToLower()).FullName
```
`Sequence contains no matching element

Microsoft.CSharp wont find anything in assets as FSR is in package

We tried this
`() => AssetDatabase.FindAssets("Microsoft.CSharp", new string[]{ "Packages", "Assets"})`

from https://discussions.unity.com/t/assetdatabase-findassets-not-working-for-packages/707087/10

But seems it was not enough and it still can't find it, we're on unity 6.1.14f1

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start at DynamicCompilationBase.cs:66 and reproduce the crash in Unity 6.1.14f1. Inspect the AssetDatabase.FindAssets lookup and the reported package location for Microsoft.CSharp.dll. Done means the assembly is found without a Sequence contains no matching element crash when FastScriptReload runs.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp, unity
Ambito
build-system, game-dev
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.