NekoX icon indicating copy to clipboard operation
NekoX copied to clipboard

Messages disappear/not showing

Open xxxcrow opened this issue 1 year ago ā€¢ 4 comments

Describe the bug Messages are not showing, dissapearing, missing notifications, or chats

To Reproduce Steps to reproduce the behavior:

  1. Go to the main screen
  2. See one dialogue has new messages
  3. Click on the dialogue
  4. See no new messages

Logcat Link expired, comment the issue and i will upload again šŸ˜„

Expected behavior No disappearing messages

Smartphone (please complete the following information):

  • Device: Pixel 3a xl
  • OS: Android 12, Graphene OS
  • Version Nekogram X v8.7.4 arm64-v8a mini fdroidRelease

Additional context It happened already second time A month ago wiping application data helped But the problem came back

xxxcrow avatar Oct 02 '22 06:10 xxxcrow

same here but with notifications I've found my issue is caused by database file 'cache4.db' corrupted

SakuraKoi avatar Nov 17 '22 01:11 SakuraKoi

successfully recovered my database and get everything works again with almost no data loss here are the steps left for those who encountered this situation:

  1. force stop NekoX app
  2. copy /data/user/0/nekox.messenger/files/cache4.db to computer (needs root)
  3. download sqlite-tools from https://www.sqlite.org/download.html
  4. recover database file using command sqlite3 cache4.db ".recover" | sqlite3 cache4.rec.db
  5. some data cannot be recovered using command above make a diff using command sqldiff cache4.rec.db cache4.db > diff.sql
  6. and apply diff to recovered database using command sqlite3 cache4.rec.db < diff.sql
  7. connect recovered database using command sqlite3 cache4.rec.db and run PRAGMA user_version = 100;
  8. copy cache4.rec.db back to phone and replace /data/user/0/nekox.messenger/files/cache4.db with it
  9. open NekoX, good luck :)

SakuraKoi avatar Nov 17 '22 02:11 SakuraKoi

Omg, it's hard and needs root šŸ˜‚ I just do data reset in case of this db corruption -- Sent from my pā‰”p for Android.

xxxcrow avatar Nov 17 '22 07:11 xxxcrow

Omg, it's hard and needs root šŸ˜‚ I just do data reset in case of this db corruption -- Sent from my pā‰”p for Android.

fix it is easy but fix it with minimal data loss is much more hard šŸ˜‚ i have some secret chats and cannot afford losing them

SakuraKoi avatar Nov 17 '22 12:11 SakuraKoi