News:

Who uses forums anymore?

Main Menu

Hashing Errors

Started by rabbit, June 25, 2010, 11:07:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rabbit

First, when hashing properly
tofu: [23:02:52.785] java.lang.ArithmeticException: / by zero
tofu: [23:02:52.785] com.javaop.BNetLogin.versioning.CheckRevision.checkrevisionOld(Unknown Source)
tofu: [23:02:52.786] com.javaop.BNetLogin.versioning.CheckRevision.doCheckRevision(Unknown Source)
tofu: [23:02:52.786] com.javaop.BNetLogin.versioning.Game.doCheckRevision(Unknown Source)
tofu: [23:02:52.786] com.javaop.BNetLogin.versioning.Versioning.CheckRevision(Unknown Source)
tofu: [23:02:52.786] com.javaop.BNetLogin.packets.SidAuthCheck.getOutgoing(Unknown Source)
tofu: [23:02:52.786] com.javaop.BNetLogin.PluginMain.processedPacket(Unknown Source)
tofu: [23:02:52.786] com.javaop.pluginmanagers.PluginRegistration.processedIncomingPacket(Unknown Source)
tofu: [23:02:52.786] com.javaop.bot.PacketThread.run(Unknown Source)


Second, I must have copies of the hashes in ~/.hashes or I get this error:
tofu: [23:01:13.081] WARNING: Caught exception when attempting to perform check revision locally. Stack trace available on console. Disconnecting.
java.io.FileNotFoundException: /home/spencer/.hashes/STAR/starcraft.exe (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:137)
at com.javaop.BNetLogin.versioning.CheckRevision.readFile(Unknown Source)
at com.javaop.BNetLogin.versioning.CheckRevision.checkrevisionOld(Unknown Source)
at com.javaop.BNetLogin.versioning.CheckRevision.doCheckRevision(Unknown Source)
at com.javaop.BNetLogin.versioning.Game.doCheckRevision(Unknown Source)
at com.javaop.BNetLogin.versioning.Versioning.CheckRevision(Unknown Source)
at com.javaop.BNetLogin.packets.SidAuthCheck.getOutgoing(Unknown Source)
at com.javaop.BNetLogin.PluginMain.processedPacket(Unknown Source)
at com.javaop.pluginmanagers.PluginRegistration.processedIncomingPacket(Unknown Source)
at com.javaop.bot.PacketThread.run(Unknown Source)
tofu: [23:01:13.163] DEBUG: Entering disconnect()


Third, I must have copies of hashes in ~/.javaop2 or I get this error:
java.io.FileNotFoundException: STAR/starcraft.exe (No such file or directory)
tofu: [23:01:54.154] java.lang.ArithmeticException: / by zero
tofu: [23:01:54.155] com.javaop.BNetLogin.versioning.CheckRevision.checkrevisionOld(Unknown Source)
tofu: [23:01:54.155] com.javaop.BNetLogin.versioning.CheckRevision.doCheckRevision(Unknown Source)
tofu: [23:01:54.155] com.javaop.BNetLogin.versioning.Game.doCheckRevision(Unknown Source)
tofu: [23:01:54.155] com.javaop.BNetLogin.versioning.Versioning.CheckRevision(Unknown Source)
tofu: [23:01:54.155] com.javaop.BNetLogin.packets.SidAuthCheck.getOutgoing(Unknown Source)
tofu: [23:01:54.156] com.javaop.BNetLogin.PluginMain.processedPacket(Unknown Source)
tofu: [23:01:54.156] com.javaop.pluginmanagers.PluginRegistration.processedIncomingPacket(Unknown Source)
tofu: [23:01:54.156] com.javaop.bot.PacketThread.run(Unknown Source)


As you can see, I think the bot needing the same hashes (or at least the samely named hashes) in two places is causing problems.

Joe

The third error looks like the first error plus a missing file. You can't divide by zero if there's no zero to divide by, so I'm guessing it found the file.

Looking into it.
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


Joe

Possible fix committed. Delete your game data file.
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


rabbit


Joe

#4
WHAT THE FUCK!?

I'm not sure.

EDIT -
Revision 73 prints some potentially useful debugging information.
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


rabbit


rabbit

Fix it already you jobless bum.

Joe

I have a job, go to school, and am working on semi-professional programming as a side job. You?

Really, iago should take a look. I have no clue.
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


rabbit

I have a job, volunteer, do work on 3 other websites, and babysit my 2 year old niece.  You?

Joe

Cool. Tack fixing JavaOp yourself to that list for +epeen.
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


Joe

Wow, I must have internet raged. Heh.

I'm working on unit tests for CheckRevision because this bug pisses me off so much. If you're still interested, let me know.
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


Joe

Checked out and built from git, it should work now.
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.