Title: Error loading up a world I had used before. (Different seed world) Post by: Moonkey on January 19, 2013, 01:39:36 PM Quote Uncaught exception from thread:Thread[Game Loader,5,main] This seems like a new bug I've never seen before or heard of. Any information? (This happened while it was at "Creating world" with no numbers showing how far the world has been loaded.)java.lang.RuntimeException: Error accessing entity database at mythruna.client.LocalGameClient.createWorld(LocalGameClient.java:144) at mythruna.client.LocalGameClient.initialize(LocalGameClient.java:73) at mythruna.client.GameLoader.run(GameLoader.java:36) Caused by: java.sql.SQLException: Database lock acquisition failure: lockFile: org.hsqldb.persist.LockFile@b6c96ade[file =C:\Users\owner\Desktop\Mythruna\mythruna.db\entities\entity_db.lck, exists=true, locked=false, valid=false, ] method: checkMagic magic: '0000000000000000' at org.hsqldb.jdbc.Util.sqlException(Unknown Source) at org.hsqldb.jdbc.Util.sqlException(Unknown Source) at org.hsqldb.jdbc.JDBCConnection.<init>(Unknown Source) at org.hsqldb.jdbc.JDBCDriver.getConnection(Unknown Source) at org.hsqldb.jdbc.JDBCDriver.connect(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at mythruna.es.sql.SqlEntityData.getSession(SqlEntityData.java:90) at mythruna.es.sql.SqlEntityData.<init>(SqlEntityData.java:58) at mythruna.client.LocalGameClient.createWorld(LocalGameClient.java:140) ... 2 more Caused by: org.hsqldb.HsqlException: Database lock acquisition failure: lockFile: org.hsqldb.persist.LockFile@b6c96ade[file =C:\Users\owner\Desktop\Mythruna\mythruna.db\entities\entity_db.lck, exists=true, locked=false, valid=false, ] method: checkMagic magic: '0000000000000000' at org.hsqldb.error.Error.error(Unknown Source) at org.hsqldb.error.Error.error(Unknown Source) at org.hsqldb.persist.LockFile.newLockFileLock(Unknown Source) at org.hsqldb.persist.Logger.acquireLock(Unknown Source) at org.hsqldb.persist.Logger.openPersistence(Unknown Source) at org.hsqldb.Database.reopen(Unknown Source) at org.hsqldb.Database.open(Unknown Source) at org.hsqldb.DatabaseManager.getDatabase(Unknown Source) at org.hsqldb.DatabaseManager.newSession(Unknown Source) ... 10 more Title: Re: Error loading up a world I had used before. (Different seed world) Post by: pspeed on January 19, 2013, 01:53:44 PM Are you sure you don't have a dead client running in the background somewhere?
Title: Re: Error loading up a world I had used before. (Different seed world) Post by: Michael on January 19, 2013, 02:59:36 PM did he enter a string instead of an integer for the world?
Title: Re: Error loading up a world I had used before. (Different seed world) Post by: pspeed on January 19, 2013, 03:13:43 PM did he enter a string instead of an integer for the world? Has nothing to do with it. The database layer thinks the files are locked by some other process. Title: Re: Error loading up a world I had used before. (Different seed world) Post by: Moonkey on January 19, 2013, 05:27:51 PM Shzylo, I had stated I had used the seed before and it worked. I just tried loading it up again is all. How do I tell if I have some "Dead client"? I restarted my laptop and still doesn't work. + Going to post a picture of the island :3
Title: Re: Error loading up a world I had used before. (Different seed world) Post by: pspeed on January 19, 2013, 06:50:45 PM If you've restarted your laptop then it must be something else... did it crash last time you played or something?
Can you post the contents of your mythruna.db/entities directory? Title: Re: Error loading up a world I had used before. (Different seed world) Post by: pspeed on January 19, 2013, 06:51:07 PM Note: by "contents" I just mean a directory listing.
Title: Re: Error loading up a world I had used before. (Different seed world) Post by: Moonkey on January 19, 2013, 08:51:18 PM Quote entity_db.tmp (folder) entity_db.data entity_db.lck entity_db.log (text) entity_db.properties entity_db.script Title: Re: Error loading up a world I had used before. (Different seed world) Post by: pspeed on January 19, 2013, 09:08:05 PM Step 1: Copy this whole directory to something like entity.backup (in case this next step makes things worse)
Step 2: delete entities/entity_db.lck Seems like maybe your client crashed one time and left the database locked. Though I've never seen that in all of my various crashes. Title: Re: Error loading up a world I had used before. (Different seed world) Post by: Moonkey on January 20, 2013, 12:03:44 PM Alright, step one worked. Thanks for the help!
|