Exception: Component event creation for the item "spinelingspike" failed: Projectile.ValidateEventData returned false. (System.Exception)
Discussed in https://github.com/FakeFishGames/Barotrauma/discussions/15114
Originally posted by maccam912 November 11, 2024
Disclaimers
- [X] I have searched the issue tracker to check if the issue has already been reported.
- [ ] My issue happened while using mods.
What happened?
I tried to search, but didn't see any similar log lines mentioned.
When playing online with a friend in a private server, the server crashed during a fight with crawlers or spinelings. We restarted from last save and it crashed again at the beginning of a fight with the same creatures.
I tried to recreate it with a build from this source code on github. I created a multiplayer server from the in game menu again, but did not have anyone else to join me so it was just me. The fight with the creatures happened again but the crash didn't happen that time. The save is overwritten now sadly :(
Reproduction steps
Be in a multiplayer (from the in game menu) session with a friend and get into a fight with spinelings.
Sadly that is as much as I know. We saw the crash happen twice for the same reason (title of this discussion) but I couldn't reproduce it with a build from the source code and without a friend.
Bug prevalence
Happens every now and then
Single player or multiplayer?
Multiplayer hosted from the in-game menu (= using a listen server)
-
No response
Version
v1.6.19.1 (Unto the Breach Update Hotfix 2)
-
No response
Which operating system did you encounter this bug on?
Windows
Relevant error messages and crash reports
Barotrauma Dedicated Server crash report (generated on 11/11/2024 12:09:28)
Barotrauma seems to have crashed. Sorry for the inconvenience!
Game version 1.6.19.1 (ReleaseWindows, branch release/autumn-update-hotfix-2, revision 89f5cd1f61)
Language: English
Selected content packages: Vanilla (A47CDC1)
Level seed: LocationName.generic.33103LocationName.city.5127
Loaded submarine: Dugong (704A353E1402A73C9CEF1AA2A36B1EF4)
Selected screen: Barotrauma.GameScreen
Server (Round had started)
System info:
Operating system: Microsoft Windows NT 10.0.22635.0 64 bit
Exception: Component event creation for the item "spinelingspike" failed: Projectile.ValidateEventData returned false. (System.Exception)
Target site: Void CreateServerEvent[T](T, IEventData)
Stack trace:
at Barotrauma.Item.CreateServerEvent[T](T ic, IEventData extraData) in <DEV>\Barotrauma\BarotraumaServer\ServerSource\Items\Item.cs:line 427
at Barotrauma.Items.Components.Projectile.Shoot(Character user, Vector2 weaponPos, Vector2 spawnPos, Single rotation, List`1 ignoredBodies, Boolean createNetworkEvent, Single damageMultiplier, Single launchImpulseModifier) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Items\Components\Projectile.cs:line 431
at Barotrauma.StatusEffect.<>c__DisplayClass126_0.<SpawnItem>b__1(Item newItem) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\StatusEffects\StatusEffect.cs:line 2440
at Barotrauma.EntitySpawner.Update(Boolean createNetworkEvents) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Networking\EntitySpawner.cs:line 451
at Barotrauma.MapEntity.UpdateAll(Single deltaTime, Camera cam) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Map\MapEntity.cs:line 673
at Barotrauma.GameScreen.Update(Double deltaTime) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Screens\GameScreen.cs:line 249
at Barotrauma.GameMain.Run() in <DEV>\Barotrauma\BarotraumaServer\ServerSource\GameMain.cs:line 332
at Barotrauma.Program.Main(String[] args) in <DEV>\Barotrauma\BarotraumaServer\ServerSource\Program.cs:line 85
Last debug messages:
11/11/2024 12:09:28 - [11/11/2024 12:09:28]
Saving banlist
11/11/2024 12:09:28 - [11/11/2024 12:09:28]
pompous_python launched Coilgun (projectile: Coilgun Bolt)
11/11/2024 12:09:28 - [11/11/2024 12:09:28]
pompous_python launched Coilgun (projectile: Coilgun Bolt)
11/11/2024 12:09:28 - [11/11/2024 12:09:28]
pompous_python launched Coilgun (projectile: Coilgun Bolt)
11/11/2024 12:08:55 - [11/11/2024 12:08:55]
Shelby Weaver: New target spotted!
11/11/2024 12:08:52 - [11/11/2024 12:08:52]
Crawler attacked by pompous_python. Lacerations: 15.0 Bleeding: 1.0
11/11/2024 12:08:52 - [11/11/2024 12:08:52]
Crawler has died (Cause of death: Lacerations)
11/11/2024 12:08:51 - [11/11/2024 12:08:51]
pompous_python launched Coilgun (projectile: Coilgun Bolt)
11/11/2024 12:08:51 - [11/11/2024 12:08:51]
pompous_python launched Coilgun (projectile: Coilgun Bolt)
11/11/2024 12:08:51 - [11/11/2024 12:08:51]
Crawler attacked by pompous_python. Lacerations: 15.0 Bleeding: 1.0
11/11/2024 12:08:51 - [11/11/2024 12:08:51]
pompous_python launched Coilgun (projectile: Coilgun Bolt)
11/11/2024 12:08:51 - [11/11/2024 12:08:51]
pompous_python launched Coilgun (projectile: Coilgun Bolt)
11/11/2024 12:08:50 - [11/11/2024 12:08:50]
pompous_python launched Coilgun (projectile: Coilgun Bolt)
11/11/2024 12:08:50 - [11/11/2024 12:08:50]
pompous_python launched Coilgun (projectile: Coilgun Bolt)
This happened to me too. 6 times in the span of a few hours. Always the same bug. Here is my most recent crash log:
Barotrauma Dedicated Server crash report (generated on 04/19/2025 14:25:57)
Barotrauma seems to have crashed. Sorry for the inconvenience!
Game version 1.8.7.0 (ReleaseWindows, branch release/spring-update-hotfix1, revision c548152d94)
Language: English
Selected content packages: Vanilla (A598458)
Level seed: LocationName.generic.1621LocationName.city.3464
Loaded submarine: Dugong (E74D5C211FF77FA0DA94D53AAA86E618)
Selected screen: Barotrauma.GameScreen
Server (Round had started)
System info:
Operating system: Microsoft Windows NT 10.0.19045.0 64 bit
Exception: Server-side component event creation for the item "spinelingspike" failed: Projectile.ValidateEventData returned false. Data: Barotrauma.Items.Components.Projectile+EventData (System.Exception)
Target site: Void CreateServerEvent[T](T, IEventData)
Stack trace:
at Barotrauma.Item.CreateServerEvent[T](T ic, IEventData extraData) in <DEV>\Barotrauma\BarotraumaServer\ServerSource\Items\Item.cs:line 433
at Barotrauma.Items.Components.Projectile.Shoot(Character user, Vector2 weaponPos, Vector2 spawnPos, Single rotation, List`1 ignoredBodies, Boolean createNetworkEvent, Single damageMultiplier, Single launchImpulseModifier) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Items\Components\Projectile.cs:line 436
at Barotrauma.StatusEffect.<>c__DisplayClass134_0.<SpawnItem>b__1(Item newItem) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\StatusEffects\StatusEffect.cs:line 2551
at Barotrauma.EntitySpawner.Update(Boolean createNetworkEvents) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Networking\EntitySpawner.cs:line 450
at Barotrauma.MapEntity.UpdateAll(Single deltaTime, Camera cam) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Map\MapEntity.cs:line 690
at Barotrauma.GameScreen.Update(Double deltaTime) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Screens\GameScreen.cs:line 264
at Barotrauma.GameMain.Run() in <DEV>\Barotrauma\BarotraumaServer\ServerSource\GameMain.cs:line 340
at Barotrauma.Program.Main(String[] args) in <DEV>\Barotrauma\BarotraumaServer\ServerSource\Program.cs:line 85
Last debug messages:
04/19/2025 14:25:57 - [04/19/2025 14:25:57]
Saving banlist
04/19/2025 14:25:57 - [04/19/2025 14:25:57]
Jared Berner equipped Screwdriver
04/19/2025 14:25:41 - [04/19/2025 14:25:41]
Jared Berner unequipped Screwdriver
04/19/2025 14:25:37 - [04/19/2025 14:25:37]
Jared Berner started repairing Status Monitor
04/19/2025 14:25:33 - [04/19/2025 14:25:33]
HEISENBERG equipped Plasma Cutter
04/19/2025 14:25:33 - [04/19/2025 14:25:33]
HEISENBERG equipped Welding Tool
04/19/2025 14:25:31 - [04/19/2025 14:25:31]
Jared Berner equipped Screwdriver
04/19/2025 14:25:03 - [04/19/2025 14:25:03]
HEISENBERG equipped Flashlight
04/19/2025 14:25:03 - [04/19/2025 14:25:03]
HEISENBERG equipped Oxygen Tank
04/19/2025 14:25:00 - [04/19/2025 14:25:00]
HEISENBERG picked up Flashlight
04/19/2025 14:24:59 - [04/19/2025 14:24:59]
feuerwerko picked up Oxygen Tank
04/19/2025 14:24:57 - [04/19/2025 14:24:57]
feuerwerko picked up Diving Suit
04/19/2025 14:24:42 - [04/19/2025 14:24:42]
HEISENBERG picked up Diving Suit
04/19/2025 14:24:06 - [04/19/2025 14:24:06]
Psilotoad attacked by HEISENBERG. Gunshot wound: 24.0 Bleeding: 16.0 Stun: 0.3
Haven't been able to reproduce this but based on game analytics data there hasn't been any crashes related to this one, seeing how common this seemed to be based on the comments it should have popped up in GA. So seems like we have fixed this already at some point. Closing.