Skip to content

Null reference exception in CollectibleBehaviorScrapeCrucible while rotating a chiseled block #117

@satyrnidae

Description

@satyrnidae

A player on my server encountered a very odd forced disconnect while trying to rotate a chiseled block with the vanilla Rotate tool mode.

Game version: 1.21.6
SmithingPlus version: 1.8.3
Relevant other mods that are installed on that player's client and the server:

  • ChiselWiz 4.0.2 (client)
  • QP's Chisel Tools 1.16.2 (server)

I didn't see any verbose debug output for SmithingPlus, just this exception trace in the main server logs:

1.2.2026 15:32:47 [Event] Player Hammersmith got removed. Reason: Threw an exception at the server
1.2.2026 15:32:47 [Error] Exception: Object reference not set to an instance of an object.
   at SmithingPlus.BitsRecovery.CollectibleBehaviorScrapeCrucible.OnHeldInteractStop(Single secondsUsed, ItemSlot slot, EntityAgent byEntity, BlockSelection blockSel, EntitySelection entitySel, EnumHandling& handling) in /_/SmithingPlus/BitsRecovery/CollectibleBehaviorScrapeCrucible.cs:line 51
   at Vintagestory.API.Common.CollectibleObject.OnHeldInteractStop(Single secondsUsed, ItemSlot slot, EntityAgent byEntity, BlockSelection blockSel, EntitySelection entitySel) in VintagestoryApi\Common\Collectible\Collectible.cs:line 1435
   at Vintagestory.Server.ServerSystemInventory.HandleHandInteraction(Packet_Client packet, ConnectedClient client) in VintagestoryLib\Server\Systems\Inventory.cs:line 388
   at Vintagestory.Server.ServerMain.HandleClientPacket_mainthread(ReceivedClientPacket cpk) in VintagestoryLib\Server\ServerMainNetworking.cs:line 280
   at Vintagestory.Server.ServerMain.ProcessMain() in VintagestoryLib\Server\ServerMain.cs:line 934
1.2.2026 15:32:47 [Event] Client 8 disconnected.

Unfortunately it seems rather inconsistent to reproduce. I'll update with more information if I get more crashes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions