Mythruna
August 11, 2022, 11:54:23 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to the new forums. See "Announcements" for a note for new users.
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Error loading up a world I had used before. (Different seed world)  (Read 8099 times)
Moonkey
Hero Member
*****
Posts: 1587

This is probably a picture.


View Profile
« on: January 19, 2013, 01:39:36 PM »

Quote
Uncaught exception from thread:Thread[Game Loader,5,main]
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
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.)
Logged

Mythruna: Don't you dare read any posts I made before 2014.
pspeed
Administrator
Hero Member
*****
Posts: 5610



View Profile
« Reply #1 on: January 19, 2013, 01:53:44 PM »

Are you sure you don't have a dead client running in the background somewhere?
Logged
Michael
Donators
Hero Member
***
Posts: 2166



View Profile
« Reply #2 on: January 19, 2013, 02:59:36 PM »

did he enter a string instead of an integer for the world?
Logged
pspeed
Administrator
Hero Member
*****
Posts: 5610



View Profile
« Reply #3 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.
Logged
Moonkey
Hero Member
*****
Posts: 1587

This is probably a picture.


View Profile
« Reply #4 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
Logged

Mythruna: Don't you dare read any posts I made before 2014.
pspeed
Administrator
Hero Member
*****
Posts: 5610



View Profile
« Reply #5 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?
Logged
pspeed
Administrator
Hero Member
*****
Posts: 5610



View Profile
« Reply #6 on: January 19, 2013, 06:51:07 PM »

Note: by "contents" I just mean a directory listing.
Logged
Moonkey
Hero Member
*****
Posts: 1587

This is probably a picture.


View Profile
« Reply #7 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
Logged

Mythruna: Don't you dare read any posts I made before 2014.
pspeed
Administrator
Hero Member
*****
Posts: 5610



View Profile
« Reply #8 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.
Logged
Moonkey
Hero Member
*****
Posts: 1587

This is probably a picture.


View Profile
« Reply #9 on: January 20, 2013, 12:03:44 PM »

Alright, step one worked. Thanks for the help!
Logged

Mythruna: Don't you dare read any posts I made before 2014.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!