Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

[Patch] Furnace Crash


  • This topic is locked This topic is locked
163 replies to this topic

#1

idshift
    idshift

    Tree Puncher

  • Members
  • 39 posts

Posted 10 September 2011 - 08:26 PM

*
POPULAR

Description
Simple replacement for furnace bug that crashes the game/saving chunks nonsense. At least in the case of fuel burning out etc. I can always patch more as I find the bugs and trace them out.

Download
http://www.filedropper.com/zz
Retarded download site I know, but I can't attach and the file is too small to upload to most places.

Setup
  • Navigate to your minecraft binary folder. (The one you installed the 1.8 jar in.)
  • Open the jarfile in your fav. zip-file editor (a jar is a customized zip file), and find "zz.class".
  • Delete it.
  • Add the patched zz.class to the jar file.
  • Profit!

Source
All I did was inject the following bytecode to bypass the NullPointerException that causes the game to crash.

Quote

DUP
IFNONNULL Label
POP
GOTO skip
Label:

UPDATE
Server patch:
Use this file instead:
http://www.filedropper.com/oj
IMPORTANT: Instead of zz, the server jar's equivalent is oj, so replace oj.class. I have no idea if this works, I just applied the patch to it, theoretically it will work.

Register or log in to remove.

#2

Whiplashr
    Whiplashr

    Obsidian Miner

  • Members
  • 1404 posts
  • Minecraft: Whiplashr

Posted 10 September 2011 - 08:29 PM

Hey cool, if this works, good on your for figuring out how to fix it, and giving a means to do so that is not having to redistribute the original .jar file.

Can you say what the problem was then? Was it a lighting issue?

EDIT: tho I must admit, it's a little concerning that you are a new user with no posts. Can anyone else say if a class file change like this can have nefarious intentions?

#3

SirBarclay
  • Location: UK
  • Minecraft: BarclayTech

Posted 10 September 2011 - 08:30 PM

hmm. it is a .class . still dornt trust it. Im going to scan

#4

SirBarclay
  • Location: UK
  • Minecraft: BarclayTech

Posted 10 September 2011 - 08:32 PM

well its clean and works. Congratz!

#5

jdwarfer
    jdwarfer

    Redstone Miner

  • Members
  • 531 posts

Posted 10 September 2011 - 08:34 PM

https://www.virustot...c0bd-1315686068

Apparently, it's fine. Not tested in minecraft yet.

Edit:It's working ! Thanks !

#6

Ulriv
    Ulriv

    Coal Miner

  • Members
  • 111 posts

Posted 10 September 2011 - 08:50 PM

Thank you so much for this OP! Finally I can play 1.8 without crashing :) :)

Diamonds for you! :Diamond: :Diamond: :Diamond: :Diamond:

#7

MusicallyInspired
  • Location: In a Cubic Chunk
  • Minecraft: MusiclyInspired

Posted 10 September 2011 - 08:55 PM

Works wonders. Thank you!
Posted Image

#8

Rollese
    Rollese

    Gold Miner

  • Members
  • 376 posts
  • Location: Sweden
  • Minecraft: Rollese

Posted 10 September 2011 - 09:01 PM

This is for client, right?

What about server that crashes when furnace is being used?

vCraft.net - vanilla themed survival server. Currently on hold.
Posted Image


#9

Jboi
    Jboi

    Gold Miner

  • Members
  • 475 posts
  • Minecraft: Jboi

Posted 10 September 2011 - 09:04 PM

YEEESSS Thank you so much this deserves a sticky.  It works btw.
+ for you

#10

Quackers

Posted 10 September 2011 - 09:05 PM

View PostRollese, on 10 September 2011 - 09:01 PM, said:

This is for client, right?

What about server that crashes when furnace is being used?

There is a fix for that already, somewhere on the forums.


This is a simple fix, not the best way to go about fixing the whole problem but a simple quick solution for us to use while we wait for 1.8 to be released. At first I thought this was going to steal our accounts or something lol. Then I looked at the file size compared to the other and its the same size. Got to handed to this no name person, good job. :)

#11

idshift
    idshift

    Tree Puncher

  • Members
  • 39 posts

Posted 10 September 2011 - 09:06 PM

View PostRollese, on 10 September 2011 - 09:01 PM, said:

This is for client, right?

What about server that crashes when furnace is being used?
Mate, I don't do anything server related. But here's how I'd fix it, when the server crashes it produces a stack trace. The first entry should be an obfuscated class, if it's a NullPointerException, my patch will work. Find the obfuscated class, and extract it, use javap -l -c -p classname.class to see the bytecode, and find the line number that correlates with the dump. Trace it in the bytecode, and figure out where to patch, it's pretty straight forward... You may need something like jackie(spelling?) or any other bytecode tool to do it... Java libs that can help here are like ASM and BCEL.

#12

MusicallyInspired
  • Location: In a Cubic Chunk
  • Minecraft: MusiclyInspired

Posted 10 September 2011 - 09:06 PM

View PostRollese, on 10 September 2011 - 09:01 PM, said:

This is for client, right?

What about server that crashes when furnace is being used?

Run your server with this command line parameter. Solves everything for me. Only works on servers, though. The patch works fine for SP as the command line parameter route doesn't work for SP.

java -Xmx1024M -Xms1024M -jar minecraft_server.jar

Posted Image

#13

Rollese
    Rollese

    Gold Miner

  • Members
  • 376 posts
  • Location: Sweden
  • Minecraft: Rollese

Posted 10 September 2011 - 09:34 PM

View PostQuackers, on 10 September 2011 - 09:05 PM, said:

There is a fix for that already, somewhere on the forums.
Searched, couldn't find it.

View Postidshift, on 10 September 2011 - 09:06 PM, said:

Mate, I don't do anything server related. But here's how I'd fix it, when the server crashes it produces a stack trace. The first entry should be an obfuscated class, if it's a NullPointerException, my patch will work. Find the obfuscated class, and extract it, use javap -l -c -p classname.class to see the bytecode, and find the line number that correlates with the dump. Trace it in the bytecode, and figure out where to patch, it's pretty straight forward... You may need something like jackie(spelling?) or any other bytecode tool to do it... Java libs that can help here are like ASM and BCEL.
The error is
2011-09-10 17:02:51 [SEVERE] Unexpected exception
java.lang.NullPointerException
	at oj.h_(SourceFile:111)
	at eh.e(SourceFile:1193)
	at net.minecraft.server.MinecraftServer.h(SourceFile:370)
	at net.minecraft.server.MinecraftServer.run(SourceFile:303)
	at ce.run(SourceFile:418)
I'll try your advice.

View PostMusicallyInspired, on 10 September 2011 - 09:06 PM, said:

Run your server with this command line parameter. Solves everything for me. Only works on servers, though. The patch works fine for SP as the command line parameter route doesn't work for SP.

java -Xmx1024M -Xms1024M -jar minecraft_server.jar
I normally use a batch file like this, it doesn't help.

vCraft.net - vanilla themed survival server. Currently on hold.
Posted Image


#14

MusicallyInspired
  • Location: In a Cubic Chunk
  • Minecraft: MusiclyInspired

Posted 10 September 2011 - 09:36 PM

View PostRollese, on 10 September 2011 - 09:34 PM, said:

Searched, couldn't find it.


The error is
2011-09-10 17:02:51 [SEVERE] Unexpected exception
java.lang.NullPointerException
	at oj.h_(SourceFile:111)
	at eh.e(SourceFile:1193)
	at net.minecraft.server.MinecraftServer.h(SourceFile:370)
	at net.minecraft.server.MinecraftServer.run(SourceFile:303)
	at ce.run(SourceFile:418)
I'll try your advice.


I normally use a batch file like this, it doesn't help.

Then I don't know. I get no furnace crashes at all when I do this.
Posted Image

#15

KillaMarci

Posted 10 September 2011 - 09:39 PM

Thanks man, this is gonna be nice for the few days until 1.8 comes out. +1 for you!
Posted Image

#16

IMMAEATYA
  • Location: California, USA
  • Minecraft: IMMEATYA

Posted 10 September 2011 - 09:46 PM

how do i use the download? haha im not sure which download link to press
Shhhh.... you'll wake the creepers

#17

Darth Zatara

Posted 10 September 2011 - 09:52 PM

bumping for sticky

#18

Dr_Hax
    Dr_Hax

    Obsidian Miner

  • Curse Premium
  • Curse Premium
  • 1229 posts
  • Location: New York, USA
  • Minecraft: Windows_i7_920

Posted 10 September 2011 - 09:57 PM

Could just use dropbox. Way easier, plus its free and has none of the advert BS of sites like that and Mediafire.
Posted Image

#19

FVonMuller

Posted 10 September 2011 - 10:02 PM

Everyone BUMP this until a mod notices and stickies it.

#20

Ulriv
    Ulriv

    Coal Miner

  • Members
  • 111 posts

Posted 10 September 2011 - 10:05 PM

A moderator needs to sticky this...please? Every person who wants to play 1.8 is probably getting this crash, and this fixes it 100%!

Thanks again OP. Back to 1.8 I go :)