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

Bug Report: oωo Mod Network Packet Registration Issue #345

Open
Decryptu opened this issue Jan 18, 2025 · 0 comments
Open

Bug Report: oωo Mod Network Packet Registration Issue #345

Decryptu opened this issue Jan 18, 2025 · 0 comments
Labels
platform: neo this issue is about the neoforge version of owo-lib

Comments

@Decryptu
Copy link

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)
@gliscowo gliscowo added the platform: neo this issue is about the neoforge version of owo-lib label Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: neo this issue is about the neoforge version of owo-lib
Projects
None yet
Development

No branches or pull requests

2 participants