Crash of v3.0-oss
Describe the bug Installing version 3.0-oss made the app unusable. I can't launch it at all. When I select the app, the "Overview" screen appears with the information "No user active" and the app closes immediately.
To Reproduce Steps to reproduce the behavior:
- Just start the app
- See error
Reproduced with v3.0-oss from Google Play Store
Expected behavior The app starts using previous data
Additional context I cleared the cache, but the app still won't open. I didn't clear the entire memory because I dond't have back up the data...
Debug log I can't generate the log
Updating: I downgraded to v2.5.4 and when I started it, there was no data in the app. Apparently v3.0 made the database unusable... So I formatted all v3.0 storage (memory and cache) and the app started, however, also without any data
I found an old backup and when I selected the file I got the following message: Restore failed: Essential database files not found in the backup.
Thanks for reporting, the database was changed completely in openScale 3.0, I have to write a migration implementation. Do you have the old openScale version installed? Then please export your data into a CVS file and try to import it in the new openScale 3.0.
Thanks for the reply. I reinstalled by downloading version 2.5.4 from Github because the update to 3.0 from Google Play overwrote the previous version. However, when I go to "Settings > Backup > Export Backup" there's no option to select the CSV extension. It automatically exports as a .DB file. How do I export as a CSV file?
Another question: automatic backups had apparently been disabled, but I don't understand why. So, the last backup I have is from March 2025. Is there any way to recover more recent data? Perhaps directly from a folder?
EDIT 1: I found how to export the CSV spreadsheet. I exported it in v2.5.4 (Github) and tried to import it in version 3.0 (Google Play) and got the following messages: Import failed: The mandatory column date is missing in the CSV header. and No valid data found in the CSV file, or all rows contained errors
you have to change the column names in the CSV file from openScale 2.x
"biceps","bone","caliper1","caliper2","caliper3","calories","chest","comment","dateTime","fat","hip","lbm","muscle","neck","thigh","visceralFat","waist","water","weight"
0.0,0.0,0.0,0.0,0.0,0.0,0.0,"","2025-08-12 06:12",0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,80.0
to openScale 3.x
DATE,TIME,BICEPS,BMI,BMR,BODY_FAT,BONE,CALIPER,CALIPER_1,CALIPER_2,CALIPER_3,CALORIES,CHEST,COMMENT,HIPS,LBM,MUSCLE,NECK,TDEE,THIGH,VISCERAL_FAT,WAIST,WATER,WEIGHT,WHR,WHTR
2025-08-12,06:29:31.715,,0.88,,,,,,,,,,,,,,,,,,,,3.0,,
Important ist to change column name "dateTime" to date and to format the old dateTime column only to '2025-08-12' format without the time. I need to improve this to accept also the old format.
with the latest beta on GitHub you can import your old CSV file, I made a fix to allow the old column name dateTime.
Got the same crash on upgrade, cleared cache but still crashes. Is there a recommended recovery path at this stage?
You have to deinstall the beta app and install it again.
You have to deinstall the beta app and install it again.
Uninstalled and reinstalled v3.0-oss but I'm still getting crashes. Presumably it's having trouble with thr local database?
Strange could you double check if you really removed the old app?
Same outcome when uninstalling and reinstalling via the Play store. I'm not clearing the app data though, which I presume is being preserved across installations.
Interestingly the last backup is from some days ago too, not sure why the last few days are missing. Ideally I'd like to get the data from the old database if I can, but at worst I'll wear four or so days lost...
Can you give a step by step what you did?
Which openScale versions do you have installed?
If you have installed the beta version of openScale (did you receive an invitation?) this beta should be parallel installed by any other openScale version which you may have installed before.
Did you removed the other openScale version after you installed the beta version?
Currently only v3.0-oss installed, along with openScale sync 0.4.2-oss. No other versions installed.
Definitely have the beta version installed, I believe the previous version installed was 2.5.4, but I'm not sure as it updated via the Play store to 3.0. As I recall there was a relatively recent update to it, maybe a few weeks ago?
Whichever one it was, I believe it was one version short of the one required to trigger automatic syncing, as ai had to run full syncs every few days.
ok then I am bit lost why it won't start. You have to full remove the openScale oss version because in v3.0 the database structure is different. They have to initialized again the database from scratch of course the old database will be destroyed.
Update: I edited the .csv file containing the data from the last backup (I've accepted that I unfortunately lost a lot of measurements...). I organized the columns as you mentioned in the comment (since it wasn't very clear, I assumed the date format is "yyyy/mm/dd"). I'm not a programmer, but I understand spreadsheets, so there was a little manual work involved. Unfortunately, I can't help automate the export to contribute to the project. The OpenScale v3.0 (remember, my version is the Google Play version) imported the .csv file without any problems.
I have other things to report.
-
An error is occurring when synchronizing with the scale. When I access the "Settings > Bluetooth > Search for Scales" menu, the app finds my scale, a Xiaomi Mi Body Composition Scale 2, which is registered as "MIBFS." However, when I try to sync, a message appears in a red banner saying "Driver for MIBFS not found or internal error." This error appears even after completely clearing the app's data, with or without importing the data from the .csv file.
-
When registering a user, when we enter a birthday, the app records the day before the selected date. For example, if we select 01/01/1990 (mm/dd/yyyy), the app will display the date 12/31/1989. This happens whether the date is selected from the calendar or typed in. I don't know if it has to do with the smartphone's date format, as the default format in my region is (dd/mm/yyyy).
-
In "Edit Measurement" I can't change the user who owns the measurement. This property is very interesting when two users have similar measurements.
-
In the "Overview" tab, the graphs don't have the y-axis display option and aren't dynamic like in previous versions, when the space they occupied changed as more data was selected to display.
I apologize if this is a lot of cluttered feedback. If you think it's better, let me know and I'll create "New Issues" for each topic.
EDIT I'm running in a Samsung A54 with One UI 7.0 and Android 15
you have to change the column names in the CSV file from openScale 2.x
"biceps","bone","caliper1","caliper2","caliper3","calories","chest","comment","dateTime","fat","hip","lbm","muscle","neck","thigh","visceralFat","waist","water","weight" 0.0,0.0,0.0,0.0,0.0,0.0,0.0,"","2025-08-12 06:12",0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,80.0to openScale 3.x
DATE,TIME,BICEPS,BMI,BMR,BODY_FAT,BONE,CALIPER,CALIPER_1,CALIPER_2,CALIPER_3,CALORIES,CHEST,COMMENT,HIPS,LBM,MUSCLE,NECK,TDEE,THIGH,VISCERAL_FAT,WAIST,WATER,WEIGHT,WHR,WHTR 2025-08-12,06:29:31.715,,0.88,,,,,,,,,,,,,,,,,,,,3.0,,Important ist to change column name "dateTime" to date and to format the old dateTime column only to '2025-08-12' format without the time. I need to improve this to accept also the old format.
Update: I edited the .csv file containing the data from the last backup (I've accepted that I unfortunately lost a lot of measurements...). I organized the columns as you mentioned in the comment (since it wasn't very clear, I assumed the date format is "yyyy/mm/dd"). I'm not a programmer, but I understand spreadsheets, so there was a little manual work involved. Unfortunately, I can't help automate the export to contribute to the project. The OpenScale v3.0 (remember, my version is the Google Play version) imported the .csv file without any problems.
Did you transfer all yours measurements into the beta app? The beta app was released only for a couple of weeks. Which openScale version did you use before and is this still installed?
I have other things to report.
- An error is occurring when synchronizing with the scale. When I access the "Settings > Bluetooth > Search for Scales" menu, the app finds my scale, a Xiaomi Mi Body Composition Scale 2, which is registered as "MIBFS." However, when I try to sync, a message appears in a red banner saying "Driver for MIBFS not found or internal error." This error appears even after completely clearing the app's data, with or without importing the data from the .csv file.
Could you turn on the logging while this error occured in Settings->General->File Logging and post the result here
- When registering a user, when we enter a birthday, the app records the day before the selected date. For example, if we select 01/01/1990 (mm/dd/yyyy), the app will display the date 12/31/1989. This happens whether the date is selected from the calendar or typed in. I don't know if it has to do with the smartphone's date format, as the default format in my region is (dd/mm/yyyy).
Can't reproduce this error here. On which screen are you talking about the wrong date is being displayed? On the settings->user edit mode?
- In "Edit Measurement" I can't change the user who owns the measurement. This property is very interesting when two users have similar measurements.
This is currently not implemented in the beta version.
- In the "Overview" tab, the graphs don't have the y-axis display option and aren't dynamic like in previous versions, when the space they occupied changed as more data was selected to display.> > I apologize if this is a lot of cluttered feedback. If you think it's better, let me know and I'll create "New Issues" for each topic.
What do you mean by that? You can filter the time range which will be shown on the top right filter icon.
EDIT I'm running in a Samsung A54 with One UI 7.0 and Android 15
Did you transfer all yours measurements into the beta app? The beta app was released only for a couple of weeks. Which openScale version did you use before and is this still installed?
I was using v2.5.4-oss, which I had installed through Google Play Store and the app was recently updated to v3.0-oss (67). This update destroyed the database.
So I installed v2.5.4 (66) (downloaded from Github), imported the last saved database (which, as I mentioned, was outdated), exported the .csv file from the "Table" tab, separated the DATE and TIME values, and changed the order of the data, organizing it as you described (this process was manual using a spreadsheet). Then imported the .csv file into v3.0-oss (67) (Google Play Store update).
So, now I currently have v3.0-oss (67) (Google Play Store) and v2.5.4 (66) (Github) installed.
Could you turn on the logging while this error occured in Settings->General->File Logging and post the result here
I turned on File Logging but now I can't sync. As soon as I can, I'll edit it here. EDIT1 The log: openScale_current_log.txt EDIT2 I don't know why the log didn't save the Bluetooth sync attempt... I'm sending a new log openScale_current_log2.txt
Can't reproduce this error here. On which screen are you talking about the wrong date is being displayed? On the settings->user edit mode?
Sorry for not being clear. The problem is in v3.0-oss (67) "Settings > User" in both "Add User" and "Edit User" under the "Birth Date" option. This one-day difference is irrelevant to the calculations, but it was something I identified.
In the example below I select the date 01/01/1990
However, when I click "Ok", the date in the "Birth Date" field appears as 12/31/1989 (remembering that the date standard for my region is dd/mm/yyyy)
This is currently not implemented in the beta version.
Ok, sure
What do you mean by that? You can filter the time range which will be shown on the top right filter icon.
The Y-axis. In fact, selecting which side of the axis the measurement is represented on (as in v2.5.4) is interesting for very distant measurements, such as kg and %, for example.
An example of how selecting the data makes the graph adjust how it fills the screen,
when we select only water
and water+muscle data
Could you turn on the logging while this error occured in Settings->General->File Logging and post the result here
I turned on File Logging but now I can't sync. As soon as I can, I'll edit it here. EDIT1 The log: openScale_current_log.txt EDIT2 I don't know why the log didn't save the Bluetooth sync attempt... I'm sending a new log openScale_current_log2.txt
Thanks for your logs, it should be fixed with commit https://github.com/oliexdev/openScale/commit/e5e670835a23872d0caf32784ed2b5feb9f12d4d
Can't reproduce this error here. On which screen are you talking about the wrong date is being displayed? On the settings->user edit mode?
Sorry for not being clear. The problem is in v3.0-oss (67) "Settings > User" in both "Add User" and "Edit User" under the "Birth Date" option. This one-day difference is irrelevant to the calculations, but it was something I identified.
Thanks for the hint, it should be fixed with commit https://github.com/oliexdev/openScale/commit/aa7a92394667f3ebf51d3d1cba262ef70e50b656
What do you mean by that? You can filter the time range which will be shown on the top right filter icon.
The Y-axis. In fact, selecting which side of the axis the measurement is represented on (as in v2.5.4) is interesting for very distant measurements, such as kg and %, for example.
Now I understand what you mean, yeah this is currently not implemented in the beta version.
Got around to firing up adb to dump a crash log of openScale v3.0 on my phone... I've uninstalled and reinstalled it a few times but it would appear the original datafile stays in place, based on the following:
08-13 18:27:13.369 2086 2145 I SQLiteOpenHelper: DB version downgrading from 6 to 1 08-13 18:27:13.371 2086 2148 I SQLiteOpenHelper: DB version downgrading from 6 to 1 --------- beginning of crash 08-13 18:27:13.376 2086 2132 E AndroidRuntime: FATAL EXCEPTION: DefaultDispatcher-worker-3 08-13 18:27:13.376 2086 2132 E AndroidRuntime: Process: com.health.openscale.oss, PID: 2086 08-13 18:27:13.376 2086 2132 E AndroidRuntime: java.lang.IllegalStateException: A migration from 6 to 1 was required but not found. Please provide the necessary Migration path via RoomDatabase.Builder.addMigration(...) or allow for destructive migrations via one of the RoomDatabase.Builder.fallbackToDestructiveMigration* functions. 08-13 18:27:13.376 2086 2132 E AndroidRuntime: at androidx.room.BaseRoomConnectionManager.onMigrate(RoomConnectionManager.kt:221) 08-13 18:27:13.376 2086 2132 E AndroidRuntime: at androidx.room.RoomConnectionManager$SupportOpenHelperCallback.onUpgrade(RoomConnectionManager.android.kt:152) 08-13 18:27:13.376 2086 2132 E AndroidRuntime: at androidx.room.RoomConnectionManager$SupportOpenHelperCallback.onDowngrade(RoomConnectionManager.android.kt:160) 08-13 18:27:13.376 2086 2132 E AndroidRuntime: at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onDowngrade(FrameworkSQLiteOpenHelper.android.kt:269) 08-13 18:27:13.376 2086 2132 E AndroidRuntime: at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:517) 08-13 18:27:13.376 2086 2132 E AndroidRuntime: at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:419) 08-13 18:27:13.376 2086 2132 E AndroidRuntime: at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableOrReadableDatabase(FrameworkSQLiteOpenHelper.android.kt:224) 08-13 18:27:13.376 2086 2132 E AndroidRuntime: at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.innerGetDatabase(FrameworkSQLiteOpenHelper.android.kt:180) 08-13 18:27:13.376 2086 2132 E AndroidRuntime: at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getSupportDatabase(FrameworkSQLiteOpenHelper.android.kt:141) 08-13 18:27:13.376 2086 2132 E AndroidRuntime: at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.android.kt:96) 08-13 18:27:13.376 2086 2132 E AndroidRuntime: at androidx.room.driver.SupportSQLiteDriver.open(SupportSQLiteDriver.android.kt:26) 08-13 18:27:13.376 2086 2132 E AndroidRuntime: at androidx.room.driver.SupportSQLiteConnectionPool.getSupportConnection(SupportSQLiteConnectionPool.android.kt:35) 08-13 18:27:13.376 2086 2132 E AndroidRuntime: at androidx.room.driver.SupportSQLiteConnectionPool.useConnection(SupportSQLiteConnectionPool.android.kt:42) 08-13 18:27:13.376 2086 2132 E AndroidRuntime: at androidx.room.RoomConnectionManager.useConnection(RoomConnectionManager.android.kt:126) 08-13 18:27:13.376 2086 2132 E AndroidRuntime: at androidx.room.RoomDatabase.useConnection$room_runtime_release(RoomDatabase.android.kt:593) 08-13 18:27:13.376 2086 2132 E AndroidRuntime: at androidx.room.util.DBUtil__DBUtil_androidKt$performSuspending$$inlined$compatCoroutineExecute$DBUtil__DBUtil_androidKt$1.invokeSuspend(DBUtil.android.kt:113) 08-13 18:27:13.376 2086 2132 E AndroidRuntime: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) 08-13 18:27:13.376 2086 2132 E AndroidRuntime: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100) 08-13 18:27:13.376 2086 2132 E AndroidRuntime: at androidx.room.TransactionExecutor.execute$lambda$1$lambda$0(TransactionExecutor.android.kt:38) 08-13 18:27:13.376 2086 2132 E AndroidRuntime: at androidx.room.TransactionExecutor.$r8$lambda$FZWr2PGmP3sgXLCiri-DCcePXSs(Unknown Source:0) 08-13 18:27:13.376 2086 2132 E AndroidRuntime: at androidx.room.TransactionExecutor$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0) 08-13 18:27:13.376 2086 2132 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156) 08-13 18:27:13.376 2086 2132 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:651) 08-13 18:27:13.376 2086 2132 E AndroidRuntime: at java.lang.Thread.run(Thread.java:1119) 08-13 18:27:13.376 2086 2132 E AndroidRuntime: Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@ddcb05, Dispatchers.IO]
Is there any particular reason we couldn't have the old version of database from 2.5.x upgraded to the schema/format used in v3 if the app can detect it has an old version of database present?
At minimum I'd love a way to get the actual SQLite database out of the device, unfortunately it's hidden away in the data directory and I can't get to it through any conventional means... If I could, I could upgrade the schema manually and reinject it with all data intact...
What do you mean by that? You can filter the time range which will be shown on the top right filter icon.
The Y-axis. In fact, selecting which side of the axis the measurement is represented on (as in v2.5.4) is interesting for very distant measurements, such as kg and %, for example.
I implemented that but make sure you exported you data before because you have to reinstalled the whole app again (the app database was changed)
@TheRedWolf
Got around to firing up adb to dump a crash log of openScale v3.0 on my phone... I've uninstalled and reinstalled it a few times but it would appear the original datafile stays in place, based on the following:
How do you uninstall the app? It is strange that they don't delete the database then? Do you have another openScale version installed? If you install the openScale version 2.x maybe then the database will be open?
How do you uninstall the app? It is strange that they don't delete the database then? Do you have another openScale version installed? If you install the openScale version 2.x maybe then the database will be open?
I uninstall it through the play store.
Definitely no other versions installed. I did try installing the github apk for 2.5.4 but it uses a different identifier, the play store version is com.health.openscale.oss while the github version uses com.health.openscale, so they don't use the same datafile