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

Firing the hat barrel may cause disconnect-level crash in builds #666

Closed
toberge opened this issue May 28, 2024 · 0 comments · Fixed by #669
Closed

Firing the hat barrel may cause disconnect-level crash in builds #666

toberge opened this issue May 28, 2024 · 0 comments · Fixed by #669
Assignees
Labels
bug Something isn't working

Comments

@toberge
Copy link
Contributor

toberge commented May 28, 2024

Stacktrace from a match against AIs where one AI had the hat barrel:

Disconnecting connection: connection(0) because handling a message of type Mirror.RpcMessage caused an Exception. This can happen if the other side accidentally (or an attacker intentionally) sent invalid data. Reason: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x00009] in <cbc72d4a9767498db39486e941a498e3>:0 
  at HatBarrelModel.OnFire (GunStats stats) [0x0003e] in <912f8d6f363c4562a12a2363c79374ca>:0 
  at MeshProjectileController.InitializeProjectile (GunStats stats) [0x00023] in <912f8d6f363c4562a12a2363c79374ca>:0 
  at GunController.ActuallyFire () [0x0000c] in <912f8d6f363c4562a12a2363c79374ca>:0 
  at GunController.UserCode_RpcFire__Quaternion (UnityEngine.Quaternion rotation) [0x00036] in <912f8d6f363c4562a12a2363c79374ca>:0 
(...)
@toberge toberge added the bug Something isn't working label May 28, 2024
@ghost ghost moved this to Ideas in Prosjekt-Spill-H22 board May 28, 2024
toberge added a commit that referenced this issue May 28, 2024
@toberge toberge self-assigned this May 28, 2024
@github-project-automation github-project-automation bot moved this from Ideas to Done 🎉 in Prosjekt-Spill-H22 board May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done 🎉
Development

Successfully merging a pull request may close this issue.

1 participant