Facepunch / sbox-issues

173 stars 11 forks source link

OnUpdate() stopped working #6317

Closed GreaterThen0 closed 5 days ago

GreaterThen0 commented 2 weeks ago

Describe the bug

it started with the editor randomly stopped showing a .razor component.

now all my (.cs) custom components OnUpdate() won't run.

I have no errors in the console.

To Reproduce

im not entirely sure.

Expected behavior

OnUpdate() to run every frame.

Media/Files

No response

Additional context

im on Windows 11 with a good computer

the only error I can find is in Visual Studio and I'm not sure if it is related.

Severity Code Description Project File Line Suppression State Details Error SB5000 Code Generator Crashed at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction1 action, ParallelOptions options, Boolean stopOnFirstFailure) at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt fromInclusive, TInt toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally)--- End of stack trace from previous location --- at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt fromInclusive, TInt toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable1 source, Action1 body) at Sandbox.Generator.RazorProcessor.ProcessPages(Processor processor) at Sandbox.Generator.Processor.Run(CSharpCompilation compilation, CSharpCompilation lastSuccessfulCompilation, ImmutableArray1 lastBeforeIlHotloadProcessingTrees) - One or more errors occurred. (Nullable object must have a value.) map_y C:\Users\haypu\OneDrive\Documents\s&box projects\map_y\Code\map_y.csproj 1 Active

badandbest commented 2 weeks ago

Oh. That's a virus in s&box-issues

image

GreaterThen0 commented 2 weeks ago

Had to make a new project and migrate stuff over to fix the problem

aylaylay commented 5 days ago

OnUpdate works. Not sure what happened for you