[1.19.2] Crash when block item is not registered in ublock
HyCraftHD opened this issue ยท 0 comments
Bug description and reproduction steps
- Create a Block that extends UBlock.
- Only register the block.
- Crash when launching.
Problem is probably the eager initialization of the block item in the constructor of the block.
Log files and Screenshots
---- Minecraft Crash Report ----
// I bet Cylons wouldn't have this problem.
Time: 2022-10-28 19:58:49
Description: Rendering overlay
java.lang.IllegalStateException: Some intrusive holders were not added to registry: [Reference{null=air}]
at net.minecraftforge.registries.NamespacedHolderHelper.freeze(NamespacedHolderHelper.java:181) ~[forge-1.19.2-43.1.43_mapped_parchment_2022.10.09-1.19.2-recomp.jar%23182%23189!/:?] {re:classloading}
at net.minecraftforge.registries.NamespacedDefaultedWrapper.freeze(NamespacedDefaultedWrapper.java:209) ~[forge-1.19.2-43.1.43_mapped_parchment_2022.10.09-1.19.2-recomp.jar%23182%23189!/:?] {re:classloading}
at net.minecraftforge.registries.GameData.lambda$freezeData$7(GameData.java:257) ~[forge-1.19.2-43.1.43_mapped_parchment_2022.10.09-1.19.2-recomp.jar%23182%23189!/:?] {re:classloading}
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ~[?:?] {}
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[?:?] {}
at java.util.Iterator.forEachRemaining(Iterator.java:133) ~[?:?] {}
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845) ~[?:?] {}
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?] {}
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?] {}
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[?:?] {}
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[?:?] {}
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?] {}
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) ~[?:?] {}
at net.minecraftforge.registries.GameData.freezeData(GameData.java:257) ~[forge-1.19.2-43.1.43_mapped_parchment_2022.10.09-1.19.2-recomp.jar%23182%23189!/:?] {re:classloading}
at net.minecraftforge.common.ForgeStatesProvider.lambda$new$5(ForgeStatesProvider.java:26) ~[forge-1.19.2-43.1.43_mapped_parchment_2022.10.09-1.19.2-recomp.jar%23182%23189!/:?] {re:classloading}
at net.minecraftforge.fml.ModLoader.lambda$dispatchAndHandleError$23(ModLoader.java:207) ~[fmlcore-1.19.2-43.1.43.jar%23187!/:?] {}
at java.util.Optional.ifPresent(Optional.java:178) ~[?:?] {}
at net.minecraftforge.fml.ModLoader.dispatchAndHandleError(ModLoader.java:207) ~[fmlcore-1.19.2-43.1.43.jar%23187!/:?] {}
at net.minecraftforge.fml.ModLoader.lambda$finishMods$20(ModLoader.java:197) ~[fmlcore-1.19.2-43.1.43.jar%23187!/:?] {}
at java.lang.Iterable.forEach(Iterable.java:75) ~[?:?] {}
at net.minecraftforge.fml.ModLoader.finishMods(ModLoader.java:197) ~[fmlcore-1.19.2-43.1.43.jar%23187!/:?] {}
at net.minecraftforge.client.loading.ClientModLoader.lambda$finishModLoading$6(ClientModLoader.java:125) ~[forge-1.19.2-43.1.43_mapped_parchment_2022.10.09-1.19.2-recomp.jar%23182%23189!/:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraftforge.client.loading.ClientModLoader.lambda$createRunnableWithCatch$4(ClientModLoader.java:111) ~[forge-1.19.2-43.1.43_mapped_parchment_2022.10.09-1.19.2-recomp.jar%23182%23189!/:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraftforge.client.loading.ClientModLoader.finishModLoading(ClientModLoader.java:125) ~[forge-1.19.2-43.1.43_mapped_parchment_2022.10.09-1.19.2-recomp.jar%23182%23189!/:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraftforge.client.loading.ClientModLoader.lambda$onResourceReload$3(ClientModLoader.java:104) ~[forge-1.19.2-43.1.43_mapped_parchment_2022.10.09-1.19.2-recomp.jar%23182%23189!/:?] {re:classloading,pl:runtimedistcleaner:A}
at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:787) ~[?:?] {}
at java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:483) ~[?:?] {}
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?] {}
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?] {}
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?] {}
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?] {}
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?] {}
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Render thread
Stacktrace:
at net.minecraftforge.registries.NamespacedHolderHelper.freeze(NamespacedHolderHelper.java:181) ~[forge-1.19.2-43.1.43_mapped_parchment_2022.10.09-1.19.2-recomp.jar%23182%23189!/:?] {re:classloading}
at net.minecraftforge.registries.NamespacedDefaultedWrapper.freeze(NamespacedDefaultedWrapper.java:209) ~[forge-1.19.2-43.1.43_mapped_parchment_2022.10.09-1.19.2-recomp.jar%23182%23189!/:?] {re:classloading}
at net.minecraftforge.registries.GameData.lambda$freezeData$7(GameData.java:257) ~[forge-1.19.2-43.1.43_mapped_parchment_2022.10.09-1.19.2-recomp.jar%23182%23189!/:?] {re:classloading}
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ~[?:?] {}
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[?:?] {}
at java.util.Iterator.forEachRemaining(Iterator.java:133) ~[?:?] {}
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845) ~[?:?] {}
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?] {}
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?] {}
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[?:?] {}
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[?:?] {}
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?] {}
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) ~[?:?] {}
at net.minecraftforge.registries.GameData.freezeData(GameData.java:257) ~[forge-1.19.2-43.1.43_mapped_parchment_2022.10.09-1.19.2-recomp.jar%23182%23189!/:?] {re:classloading}
-- Overlay render details --
Details:
Overlay name: net.minecraft.client.gui.screens.LoadingOverlay
Stacktrace:
at net.minecraft.client.renderer.GameRenderer.render(GameRenderer.java:900) ~[forge-1.19.2-43.1.43_mapped_parchment_2022.10.09-1.19.2-recomp.jar%23183!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1141) ~[forge-1.19.2-43.1.43_mapped_parchment_2022.10.09-1.19.2-recomp.jar%23183!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.run(Minecraft.java:705) ~[forge-1.19.2-43.1.43_mapped_parchment_2022.10.09-1.19.2-recomp.jar%23183!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.main.Main.run(Main.java:212) ~[forge-1.19.2-43.1.43_mapped_parchment_2022.10.09-1.19.2-recomp.jar%23183!/:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.main.Main.main(Main.java:51) ~[forge-1.19.2-43.1.43_mapped_parchment_2022.10.09-1.19.2-recomp.jar%23183!/:?] {re:classloading,pl:runtimedistcleaner:A}
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}
at net.minecraftforge.fml.loading.targets.ForgeClientUserdevLaunchHandler.lambda$launchService$0(ForgeClientUserdevLaunchHandler.java:25) ~[fmlloader-1.19.2-43.1.43.jar%2395!/:?] {}
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) [modlauncher-10.0.8.jar%23108!/:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-10.0.8.jar%23108!/:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-10.0.8.jar%23108!/:?] {}
at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-10.0.8.jar%23108!/:?] {}
at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-10.0.8.jar%23108!/:?] {}
at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-10.0.8.jar%23108!/:?] {}
at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-10.0.8.jar%23108!/:?] {}
at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) [bootstraplauncher-1.1.2.jar:?] {}
-- Last reload --
Details:
Reload number: 1
Reload reason: initial
Finished: No
Packs: Default, Mod Resources
-- System Details --
Details:
Minecraft Version: 1.19.2
Minecraft Version ID: 1.19.2
Operating System: Windows 10 (amd64) version 10.0
Java Version: 17.0.2, Eclipse Adoptium
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Eclipse Adoptium
Memory: 107349072 bytes (102 MiB) / 591396864 bytes (564 MiB) up to 8535408640 bytes (8140 MiB)
CPUs: 24
Processor Vendor: GenuineIntel
Processor Name: 12th Gen Intel(R) Core(TM) i9-12900K
Identifier: Intel64 Family 6 Model 151 Stepping 2
Microarchitecture: unknown
Frequency (GHz): 3.19
Number of physical packages: 1
Number of physical CPUs: 16
Number of logical CPUs: 24
Graphics card #0 name: NVIDIA GeForce RTX 3070 Ti
Graphics card #0 vendor: NVIDIA (0x10de)
Graphics card #0 VRAM (MB): 4095.00
Graphics card #0 deviceId: 0x2482
Graphics card #0 versionInfo: DriverVersion=31.0.15.1748
Graphics card #1 name: Intel(R) UHD Graphics 770
Graphics card #1 vendor: Intel Corporation (0x8086)
Graphics card #1 VRAM (MB): 1024.00
Graphics card #1 deviceId: 0x4680
Graphics card #1 versionInfo: DriverVersion=31.0.101.1999
Memory slot #0 capacity (MB): 16384.00
Memory slot #0 clockSpeed (GHz): 3.20
Memory slot #0 type: DDR4
Memory slot #1 capacity (MB): 16384.00
Memory slot #1 clockSpeed (GHz): 3.20
Memory slot #1 type: DDR4
Virtual memory max (MB): 43311.87
Virtual memory used (MB): 21028.78
Swap memory total (MB): 10752.00
Swap memory used (MB): 829.49
JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -XX:+ShowCodeDetailsInExceptionMessages
Launched Version: MOD_DEV
Backend library: LWJGL version 3.3.1 build 7
Backend API: NVIDIA GeForce RTX 3070 Ti/PCIe/SSE2 GL version 3.2.0 NVIDIA 517.48, NVIDIA Corporation
Window size: 854x480
GL Caps: Using framebuffer using OpenGL 3.2
GL debug messages:
Using VBOs: Yes
Is Modded: Definitely; Client brand changed to 'forge'
Type: Client (map_client.txt)
Graphics mode: fancy
Resource Packs:
Current Language: English (US)
CPU: 24x 12th Gen Intel(R) Core(TM) i9-12900K
ModLauncher: 10.0.8+10.0.8+main.0ef7e830
ModLauncher launch target: forgeclientuserdev
ModLauncher naming: mcp
ModLauncher services:
mixin-0.8.5.jar mixin PLUGINSERVICE
eventbus-6.0.3.jar eventbus PLUGINSERVICE
fmlloader-1.19.2-43.1.43.jar slf4jfixer PLUGINSERVICE
fmlloader-1.19.2-43.1.43.jar object_holder_definalize PLUGINSERVICE
fmlloader-1.19.2-43.1.43.jar runtime_enum_extender PLUGINSERVICE
fmlloader-1.19.2-43.1.43.jar capability_token_subclass PLUGINSERVICE
accesstransformers-8.0.4.jar accesstransformer PLUGINSERVICE
fmlloader-1.19.2-43.1.43.jar runtimedistcleaner PLUGINSERVICE
modlauncher-10.0.8.jar mixin TRANSFORMATIONSERVICE
modlauncher-10.0.8.jar fml TRANSFORMATIONSERVICE
FML Language Providers:
minecraft@1.0
lowcodefml@null
javafml@null
Mod List:
forge-1.19.2-43.1.43_mapped_parchment_2022.10.09-1|Minecraft |minecraft |1.19.2 |DONE |Manifest: a1:d4:5e:04:4f:d3:d6:e0:7b:37:97:cf:77:b0:de:ad:4a:47:ce:8c:96:49:5f:0a:cf:8c:ae:b2:6d:4b:8a:3f
|Forge |forge |43.1.43 |DONE |Manifest: NOSIGNATURE
u_team_core-1.19.2-4.4.1.233_mapped_parchment_2022|U Team Core |uteamcore |4.4.1.233 |DONE |Manifest: NOSIGNATURE
main |Overworld Mirror |overworldmirror |0.0NONE |DONE |Manifest: NOSIGNATURE
jei-1.19.2-forge-11.3.0.262_mapped_parchment_2022.|Just Enough Items |jei |11.3.0.262 |DONE |Manifest: NOSIGNATURE
Crash Report UUID: 938be3dc-0299-4dc6-87ef-3dbe6206c729
FML: 43.1
Forge: net.minecraftforge:43.1.43
Used minecraft version
1.19.x
Used forge version
x
Used mod version
4.4.1.233