oωo (owo-lib)

oωo (owo-lib)

29M Downloads

Bug Report: oωo Mod Network Packet Registration Issue

Decryptu opened this issue · 0 comments

commented

crash-2025-01-18_12.35.58-fml.txt

Environment

  • Minecraft Version: 1.21.1
  • Forge Type: NeoForge
  • NeoForge Version: 21.1.95
  • oωo Mod Version: 0.12.15-beta.12+1.21
  • Operating System: Windows 11 (amd64) version 10.0
  • Java Version: 21.0.5 (Azul Systems, Inc.)
  • Available Memory: 4096 MiB

Issue Description

Intermittent crash during mod loading related to network packet registration. The crash does not occur consistently but appears randomly during game startup.

Error Message

java.lang.IllegalArgumentException: Cannot register handler as no payload type has been registered with name "owo:local_packet" for CLIENTBOUND PLAY

Stack Trace

The error originates in the Fabric Networking API bridge:

at TRANSFORMER/[email protected]+a92978fd19/org.sinytra.fabric.networking_api.NeoCommonNetworking.assertPayloadType(NeoCommonNetworking.java:20)
at TRANSFORMER/[email protected]+a92978fd19/org.sinytra.fabric.networking_api.client.NeoClientPlayNetworking.registerGlobalReceiver(NeoClientPlayNetworking.java:31)
at TRANSFORMER/[email protected]+a92978fd19/net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking.registerGlobalReceiver(ClientPlayNetworking.java:71)
at TRANSFORMER/[email protected]+1.21/io.wispforest.owo.client.screens.ScreenInternals$Client.init(ScreenInternals.java:79)
at TRANSFORMER/[email protected]+1.21/io.wispforest.owo.client.OwoClient.<init>(OwoClient.java:79)

Technical Details

The crash appears to be related to the initialization of network packets in the client-side component of the mod. Specifically:

  1. The error occurs during the registration of a global receiver for "owo:local_packet"
  2. The crash happens in the ScreenInternals$Client initialization
  3. The issue involves the Fabric Networking API bridge component

Reproduction

  • The issue is inconsistent and does not occur on every launch
  • No specific steps have been identified to reliably reproduce the issue
  • The crash occurs during the mod loading phase before reaching the main menu

Additional Context

The mod is running alongside 150+ other mods (full list in the crash report). Given the intermittent nature of the crash and the involvement of network packet registration, this could potentially be a race condition or timing issue during mod initialization.

Fabric API Components Present

  • Fabric API Base: 0.4.42+d1308dedd1
  • Fabric Networking API v1: 4.2.2+a92978fd19
  • Fabric Screen API v1: 2.0.24+79a4c2b0d1

System Specifications

  • CPU: 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
  • RAM: 16GB (2x8GB DDR4 @ 3.20GHz)
  • GPU: NVIDIA GeForce RTX 3060 Laptop GPU (6GB VRAM)