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

Whitelist Error when using valid namespaces #7343

Closed
yuberee opened this issue Jan 7, 2025 · 1 comment
Closed

Whitelist Error when using valid namespaces #7343

yuberee opened this issue Jan 7, 2025 · 1 comment

Comments

@yuberee
Copy link

yuberee commented Jan 7, 2025

Describe the bug

While only `using System, Sandbox, and Collections.Generic namespaces, we get this error:

Whitelist Error: One or more errors occurred. (Object reference not set to an instance of an object.)
   at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction`1 action, ParallelOptions options, Boolean stopOnFirstFailure)
   at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt fromInclusive, TInt toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt fromInclusive, TInt toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
   at Sandbox.AccessControl.TestType(TypeDefinition type) in C:\build\_work\sbox\sbox\engine\Sandbox.Access\AccessControl.cs:line 283
   at Sandbox.AccessControl.TestTypeInThread(TypeDefinition type) in C:\build\_work\sbox\sbox\engine\Sandbox.Access\AccessControl.cs:line 239
   at Sandbox.PackageLoader.TestAccessControl(Stream dll, TrustedBinaryStream& trustedDll) in C:\build\_work\sbox\sbox\engine\Sandbox.Engine\Assets\PackageManager\PackageLoader.cs:line 107
   at Sandbox.PackageLoader.LoadAssemblyFromPackage(ActivePackage ap, String filename, Byte[] bytes) in C:\build\_work\sbox\sbox\engine\Sandbox.Engine\Assets\PackageManager\PackageLoader.cs:line 261
   at Sandbox.PackageLoader.LoadPendingChanges() in C:\build\_work\sbox\sbox\engine\Sandbox.Engine\Assets\PackageManager\PackageLoader.cs:line 156
   at Sandbox.PackageLoader.Tick() in C:\build\_work\sbox\sbox\engine\Sandbox.Engine\Assets\PackageManager\PackageLoader.cs:line 727
   at Sandbox.GameInstanceDll.Tick() in C:\build\_work\sbox\sbox\engine\Sandbox.GameInstance\GameInstanceDll.cs:line 288
   at Sandbox.EngineLoop.FrameStart() in C:\build\_work\sbox\sbox\engine\Sandbox.Engine\EngineLoop.cs:line 158
   at Sandbox.EngineLoop.RunFrame(CMaterialSystem2AppSystemDict appDict, Boolean& wantsQuit) in C:\build\_work\sbox\sbox\engine\Sandbox.Engine\EngineLoop.cs:line 36
   at Sandbox.AppSystem.Run() in C:\build\_work\sbox\sbox\engine\Sandbox.AppSystem\AppSystem.cs:line 85
   at Sandbox.Launcher.Main() in C:\build\_work\sbox\sbox\engine\Launcher\SboxDev\Launcher.cs:line 24
   at Sandbox.Program.Launch() in C:\build\_work\sbox\sbox\engine\Launcher\Shared\Startup.cs:line 21
   at Sandbox.Program.Main() in C:\build\_work\sbox\sbox\engine\Launcher\Shared\Startup.cs:line 16

Which seems to originate here: https://github.com/Small-Fish-Dev/boxfish/blob/main/code/Base/Chunk.cs

To Reproduce

  1. Clone https://github.com/Small-Fish-Dev/boxfish/
  2. Attempt to compile

Expected behavior

.

Media/Files

No response

Additional context

No response

@yuberee
Copy link
Author

yuberee commented Jan 8, 2025

Replaced by #7350

@yuberee yuberee closed this as completed Jan 8, 2025
@github-project-automation github-project-automation bot moved this from To triage to Done in s&box tracker Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant