This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
KillaVanilla's profile picture

[CC 1.46] [MC 1.4] Minecraft Crashes on modifying BIOS and changing peripherals

Started by KillaVanilla, 12 November 2012 - 06:01 PM
KillaVanilla #1
Posted 12 November 2012 - 07:01 PM
ComputerCraft Version Information: CC 1.46

Other Mods:
  • Universal Electricity - Basic Components v1.0.0.260
  • Atomic Science v0.2.0.77
  • ICBM v0.6.0.260
  • CCLAN v1.11 (exact version unknown; filename is "Cables_111.zip")
  • Immibis Core v50.2.3
  • Immibis Peripherals v50.1.2
  • ComputerCraft v1.42
  • Minecraft Forge, version unknown
Description:
Modifying bios.lua while the game is running and attaching/detaching a peripheral crashes the game.

Steps to reproduce:
  1. Replace the bios.lua with anything (in my case, it's a custom BIOS replacement that I'm testing) while the game is running.
  2. Attach or Detach a peripheral next to any computer. (In my case, I used an advanced computer)
Error Report:

	  Minecraft has crashed!	 
	  ----------------------	 
Minecraft has stopped running because it encountered a problem; Exception in server tick loop
This error has been saved to C:\Users\[REDACTED]\AppData\Roaming\.minecraft\crash-reports\crash-2012-11-11_23.48.37-server.txt for your convenience. Please include a copy of this file if you report this crash to anyone.
--- BEGIN ERROR REPORT c13b5c4b --------
Generated 11/11/12 11:48 PM
- Minecraft Version: 1.4.2
- Operating System: Windows 7 (x86) version 6.1
- Java Version: 1.7.0_09, Oracle Corporation
- Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
- Memory: 275714768 bytes (262 MB) / 519110656 bytes (495 MB) up to 1037959168 bytes (989 MB)
- JVM Flags: 2 total; -Xms512m -Xmx1024m
- AABB Pool Size: 489 (27384 bytes; 0 MB) allocated, 403 (22568 bytes; 0 MB) used
- FML: ~ERROR~ NullPointerException: null
- Is Modded: Definitely; 'forge,fml'
- Profiler Position: N/A (disabled)
- Vec3 Pool Size: 66 (3696 bytes; 0 MB) allocated, 30 (1680 bytes; 0 MB) used
- Player Count: 1 / 8; [ih['KillaVanilla'/45, l='Testing Area 51', x=20.05, y=237.00, z=6.34]]
- World Testing Area 51 Entities: 0 total; []
- World Testing Area 51 Players: 0 total; []
- World Testing Area 51 Chunk Stats: ServerChunkCache: 0 Drop: 0
- Type: Integrated Server
java.lang.NoClassDefFoundError: dan200/computer/core/apis/PeripheralAPI$2
at dan200.computer.core.apis.PeripheralAPI.onPeripheralChanged(PeripheralAPI.java:269)
at dan200.computer.core.Computer$APIEnvironment.onPeripheralChanged(Computer.java:150)
at dan200.computer.core.Computer.setPeripheral(Computer.java:724)
at dan200.computer.shared.NetworkedComputerHelper.setPeripheral(NetworkedComputerHelper.java:356)
at dan200.computer.shared.TileEntityComputer.setPeripheral(TileEntityComputer.java:238)
at dan200.computer.shared.BlockComputerBase.refreshInput(BlockComputerBase.java:194)
at dan200.computer.shared.BlockComputerBase.g(BlockComputerBase.java:76)
at dan200.computer.shared.BlockComputer.g(BlockComputer.java:79)
at za.a(Chunk.java:707)
at xe.a(World.java:455)
at xe.c(World.java:433)
at xe.d(World.java:617)
at uu.placeBlockAt(ItemBlock.java:194)
at uu.a(ItemBlock.java:90)
at dan200.computer.shared.ItemComputerBase.a(ItemComputerBase.java:41)
at tv.a(SourceFile:88)
at ii.a(ItemInWorldManager.java:413)
at im.a(NetServerHandler.java:534)
at fc.a(SourceFile:58)
at bw.b(MemoryConnection.java:78)
at im.d(NetServerHandler.java:80)
at in.b(NetworkListenThread.java:55)
at bce.b(IntegratedServerListenThread.java:111)
at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:664)
at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:585)
at bcb.q(IntegratedServer.java:110)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:492)
at fp.run(SourceFile:818)
Caused by: java.lang.ClassNotFoundException: dan200.computer.core.apis.PeripheralAPI$2
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:126)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 28 more
Caused by: java.lang.NullPointerException
at org.objectweb.asm.ClassReader.<init>(Unknown Source)
at net.minecraftforge.transformers.EventTransformer.transform(EventTransformer.java:29)
at cpw.mods.fml.relauncher.RelaunchClassLoader.runTransformers(RelaunchClassLoader.java:163)
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:119)
... 30 more
--- END ERROR REPORT b767302b ----------
Espen #2
Posted 13 November 2012 - 01:05 AM
Did you, by any change, replace the bios.lua directly within the .zip file?

If so, then you've actually replaced that .zip file, which then is like a completely new file that Forge hasn't yet loaded and your "old" .zip file is gone, which Forge suddenly can't access anymore.
At least that would explain the ClassNotFoundException.

Instead of replacing it in the .zip, try adding it to the directory .minecraft/mods/ComputerCraft/lua
Create any directories that don't yet exist.

All files in that folder will be preferred over the ones in the .zip
KillaVanilla #3
Posted 13 November 2012 - 04:23 AM
Did you, by any change, replace the bios.lua directly within the .zip file?

If so, then you've actually replaced that .zip file, which then is like a completely new file that Forge hasn't yet loaded and your "old" .zip file is gone, which Forge suddenly can't access anymore.
At least that would explain the ClassNotFoundException.

Instead of replacing it in the .zip, try adding it to the directory .minecraft/mods/ComputerCraft/lua
Create any directories that don't yet exist.

All files in that folder will be preferred over the ones in the .zip


Okay, will try.

Thanks!