Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TDLib data has been corrupted (fatal error) #902

Open
idontknowhattodo opened this issue Jan 24, 2020 · 34 comments
Open

TDLib data has been corrupted (fatal error) #902

idontknowhattodo opened this issue Jan 24, 2020 · 34 comments

Comments

@idontknowhattodo
Copy link

idontknowhattodo commented Jan 24, 2020

Hello!
After today's update on 23 Jan (0.22.4.1270-arm64-v8a) I can't open the app because of the issue on the screenshot below. The app has working accounts and I don't have access to them now.
(I don't have a problem with storage and have enough free gigabytes).
"Launch App" button and process doesn't help. I can share the error details if it can help anyhow.

Device: Redmi 5
Android: 8.1.0
MIUI: 11.0.2 Global Stable

As far as I understand from #849 the fix with update won't be soon?

TDLib data has been corrupted

UPD after tests:
image

@idontknowhattodo idontknowhattodo changed the title TDLib data has been corrupted TDLib data has been corrupted (fatal error) Jan 24, 2020
@levlam
Copy link
Contributor

levlam commented Jan 24, 2020

The SQLite database was corrupted. If device restart didn't help and there is enough disk space, then the only way to fix this is to delete the SQLite database.

@idontknowhattodo
Copy link
Author

The SQLite database was corrupted. If device restart didn't help and there is enough disk space, then the only way to fix this is to delete the SQLite database.

  1. Does it mean that all accounts will be lost? Because I don't even remember phones.
  2. How many free disk space is enough?

@levlam
Copy link
Contributor

levlam commented Jan 24, 2020

  1. Currently, there is no way in Telegram X to delete just affected database, but such way can be added in the future.
  2. If there is > 10 MB, then there should be no problem.

@idontknowhattodo
Copy link
Author

idontknowhattodo commented Jan 24, 2020

  1. Currently, there is no way in Telegram X to delete just affected database, but such way can be added in the future.

Can you please give at least approximate date/month/something when it will be possible in the future?

I'm so confused because it happened after the last update.

@vkryl
Copy link
Contributor

vkryl commented Jan 24, 2020

Just added an option to drop database on this screen. Comes in the 0.22.4.1272 beta.

@idontknowhattodo
Copy link
Author

Just added an option to drop database on this screen. Comes in the 0.22.4.1272 beta.

  1. Basically, it doesn't change the situation if i.g. I still haven't an acess to phone numbers and this app was only one where I was signed in. Does it?
  2. Moreover, I can't update anyhow from stable to beta version because all I can view is settings of TDLib Logs, Applocation Logs and Testing utilities.

@levlam
Copy link
Contributor

levlam commented Jan 24, 2020

@idontknowhattodo
0. This shouldn't be related to the update.

  1. You still will be logged in after the database deletion. Only some local data will be lost, like messages in secret chats.
  2. You can join Telegram X Beta program in through Google Play.

@krohys
Copy link

krohys commented Jan 24, 2020

@levlam
0. This shouldn't be related to the update.

  1. You still will be logged in after the database deletion. Only some local data will be lost, like messages in secret chats.
  2. You can join Telegram X Beta program in through Google Play.

I have the same error. Updated to 0.22.4.1272 beta . Cleared the database. Did not help! Please, help. I have very important things there, and the phone has long been lost.

@krohys
Copy link

krohys commented Jan 24, 2020

cloned application "telegram x" - it starts, but there are no accounts

@buicaocuong95
Copy link

buicaocuong95 commented Jan 24, 2020 via email

@levlam
Copy link
Contributor

levlam commented Jan 24, 2020

@krohys Cloning the app is really a bad idea. Are you sure that you have the "Corrupted database" error?

Between, if you cleared application data from the System settings, then no data can be repaired and you need to log in again.

@krohys
Copy link

krohys commented Jan 24, 2020

KbmExWtJ2v0
@levlam
Yes, the error is as in the screenshot "idontknowhattodo". I have Xiaomi redmi note 4. On miui 11.0.2. There you can clone applications. The main application gives an error, and the clone made starts up (like new, without all contacts). The clone did to use the application while looking for ways to solve the problem. Very urgently needed to restore access to my accounts!

@krohys
Copy link

krohys commented Jan 24, 2020

@levlam

Between, if you cleared application data from the System settings, then no data can be repaired and you need to log in again.

I didn’t delete anything system, I just clicked the “delete base and restart” button, as you said. Did not help(

@levlam
Copy link
Contributor

levlam commented Jan 25, 2020

@krohys Share error details with @tdlib_bot.

@krohys
Copy link

krohys commented Jan 25, 2020

@levlam
@krohys Share error details with @tdlib_bot.
This is the first thing I did) do not respond ...

@idontknowhattodo
Copy link
Author

@levlam Btw I have this error in the cloned application (by MIUI), in the same time the original one hasn't any errors just because it is using only one account I guess.

How can we solve the issue? Should I send the error details via @tdlib_bot ?

@levlam
Copy link
Contributor

levlam commented Jan 25, 2020

@idontknowhattodo Yes, share error details via @tdlib_bot.

@idontknowhattodo
Copy link
Author

@levlam Done. Please check the bot and give the further instructions or recommendations.

@levlam
Copy link
Contributor

levlam commented Jan 25, 2020

@idontknowhattodo @krohys It seems that the database isn't in fact broken and the issue is caused by 100+ accounts trying to launch simultaneously. Telegram X update is required to fix this.

@idontknowhattodo
Copy link
Author

Joined Beta and waiting for Update. Hope the update will be in a short time. Thanks @levlam
I leave the issue (topic) open just in a cause.

@krohys
Copy link

krohys commented Jan 26, 2020

@levlam
У друга Redmi note 7, но версия Andoid новее, у него всё работает после обновления январского. 100+ аккаунтов также. может с версией андройд связанно? это для информации, может поможет решить проблемы. Жду срочного обновления.

@levlam
A friend has a Redmi note 7, but the Andoid version is newer, everything works after the January update. 100+ accounts as well. Maybe the version of android is connected? this is for information, can help solve problems. I'm waiting for an urgent update

@idontknowhattodo
Copy link
Author

Have received an update today on Beta, but still nothing. Can't run the app yet because of the same error.
The error details are the same except db.sqlite size (from 525312 to 70656 in this time) and user number in "#" of course.

@krohys
Copy link

krohys commented Jan 28, 2020

@idontknowhattodo

Hi, partially solved the problem. I got root rights and deleted the path from the system folder in the error data / data / ... accounts. Left 99 pieces. And it worked.

@idontknowhattodo
Copy link
Author

@krohys Hello! Can you tell please in details? My tg username: @whthppnd
Contact at any time. I suppose that I can't wait for the updates so long.

@idontknowhattodo
Copy link
Author

@levlam Aliaksei, I'm sorry, but do you know update date? I don't ask ETA, just ask about the date of updating.

@levlam
Copy link
Contributor

levlam commented Jan 31, 2020

@idontknowhattodo I don't know when Telegram X will be updated.

@idontknowhattodo
Copy link
Author

Today was the 2nd update in beta after the issue appearing, but still nothing, unfortunately.

@idontknowhattodo
Copy link
Author

@levlam Aliaksei, the issue appeared more than a month ago.
I joined beta and updated almost 10 updates during this time but Telegram X still doesn't have a solution.

@diegojs03
Copy link

La base de datos SQLite estaba dañada. Si el reinicio del dispositivo no ayudó y hay suficiente espacio en disco, entonces la única forma de solucionar esto es eliminar la base de datos SQLite.

I'm having the same problem, how can I delete the SQLite data base?

@diegojs03
Copy link

Screenshot_20200328-111643

@levlam
Copy link
Contributor

levlam commented Mar 28, 2020

@diegojs03 You have a different error, which is not related to the issue. You can "Share error details" to see exact error message, but "External error" is an error caused by your storage/OS misbehaving and usually can't be fixed on the app's side.

@diegojs03
Copy link

@ diegojs03 Tiene un error diferente, que no está relacionado con el problema. Puede "Compartir detalles de error" para ver el mensaje de error exacto, pero "Error externo" es un error causado por el mal comportamiento de su almacenamiento / sistema operativo y, por lo general, no se puede solucionar del lado de la aplicación.

SetTdlibParameters: #400: File "/data/data/org.thunderdog.challegram/files/tdlib134/td.binlog" can't be opened/created for reading and writing

@levlam
Copy link
Contributor

levlam commented Mar 29, 2020

@diegojs03 Giving the number of accounts you have, this could be the same problem.

@Sajilck
Copy link

Sajilck commented Apr 23, 2020

This can be tested in TGX latest beta
0.22.7.1325

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants