fluddokt / opsu

an open-source osu! client
GNU General Public License v3.0
121 stars 18 forks source link

Could not create score database. #108

Closed AnyByte closed 7 years ago

AnyByte commented 7 years ago

Version: 0.15.0a OS: Linux (armv8l) JRE: The Android Project 0 BOARD: universal8890 FINGERPRINT: samsung/heroltexx/herolte:7.0/NRD90M/G930FXXU1DQAS:user/release-keys HOST: SWDD5923 MODEL: SM-G930F INCREMENTAL: G930FXXU1DQAS RELEASE: 7.0

Error: Could not create score database. Stack trace:

java.sql.SQLException: android.database.sqlite.SQLiteException: no such table: info (code 1): , while compiling: INSERT OR IGNORE INTO info(key, value) VALUES('version', 20170201)
#################################################################
Error Code : 1 (SQLITE_ERROR)
Caused By : SQL(query) error or missing database.
    (no such table: info (code 1): , while compiling: INSERT OR IGNORE INTO info(key, value) VALUES('version', 20170201))
#################################################################
    at java.lang.reflect.Constructor.newInstance0(Native Method)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:430)
    at org.sqldroid.SQLDroidConnection.chainException(SQLDroidConnection.java:158)
    at org.sqldroid.SQLiteDatabase.execSQL(SQLiteDatabase.java:170)
    at org.sqldroid.SQLDroidStatement.execute(SQLDroidStatement.java:96)
    at itdelatrisu.opsu.db.ScoreDB.createDatabase(ScoreDB.java:189)
    at itdelatrisu.opsu.db.ScoreDB.init(ScoreDB.java:115)
    at itdelatrisu.opsu.db.DBController.init(DBController.java:50)
    at itdelatrisu.opsu.Opsu.main(Opsu.java:202)
    at fluddokt.opsu.fake.GameOpsu.create(GameOpsu.java:206)
    at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:241)
    at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1546)
    at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1262)
Caused by: android.database.sqlite.SQLiteException: no such table: info (code 1): , while compiling: INSERT OR IGNORE INTO info(key, value) VALUES('version', 20170201)
#################################################################
Error Code : 1 (SQLITE_ERROR)
Caused By : SQL(query) error or missing database.
    (no such table: info (code 1): , while compiling: INSERT OR IGNORE INTO info(key, value) VALUES('version', 20170201))
#################################################################
    at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
    at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1005)
    at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:570)
    at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
    at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:59)
    at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:31)
    at android.database.sqlite.SQLiteDatabase.executeSql(SQLiteDatabase.java:1976)
    at android.database.sqlite.SQLiteDatabase.execSQL(SQLiteDatabase.java:1907)
    at org.sqldroid.SQLiteDatabase.execSQL(SQLiteDatabase.java:163)
    ... 9 more
fluddokt commented 7 years ago

Should be fixed in 0.15.0b