Git Product home page Git Product logo

Comments (6)

tibbi avatar tibbi commented on May 29, 2024

it might be corrupt. If you select those conversations on the main screen and use Delete, do they disappear?

from simple-sms-messenger.

ltguillaume avatar ltguillaume commented on May 29, 2024

Yes, they do, although the app completely crashed several times when doing so, even when deleting non-empty conversations.

from simple-sms-messenger.

tibbi avatar tibbi commented on May 29, 2024

what app version are you using at all? Check if it still happens with 5.1.4 released soon. There is already a check for message count, only conversations with >0 should be shown. So I guess the database is somehow corrupt, as it usually happens on Android.

from simple-sms-messenger.

ltguillaume avatar ltguillaume commented on May 29, 2024

F-Droid is still on 5.1.3, which:

  • Either acts like the messages are deleted, but at the next operation, all deleted conversations reappear,
  • Or crashes when trying to delete them (see below)
05-23 19:08:34.483 E/SQLiteLog( 1381): (1) no such table: cellbroadcast
05-23 19:08:34.484 E/DatabaseUtils( 1381): Writing exception to parcel
05-23 19:08:34.484 E/DatabaseUtils( 1381): android.database.sqlite.SQLiteException: no such table: cellbroadcast (code 1 SQLITE_ERROR): , while compiling: DELETE FROM threads WHERE status = 0 AND type <> ? AND _id NOT IN          (SELECT thread_id FROM sms where thread_id is not null            UNION SELECT thread_id FROM pdu where thread_id is not null            UNION SELECT DISTINCT thread_id FROM cellbroadcast where thread_id is not null)
05-23 19:08:34.484 E/DatabaseUtils( 1381): 	at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
05-23 19:08:34.484 E/DatabaseUtils( 1381): 	at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:903)
05-23 19:08:34.484 E/DatabaseUtils( 1381): 	at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:514)
05-23 19:08:34.484 E/DatabaseUtils( 1381): 	at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
05-23 19:08:34.484 E/DatabaseUtils( 1381): 	at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:58)
05-23 19:08:34.484 E/DatabaseUtils( 1381): 	at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:31)
05-23 19:08:34.484 E/DatabaseUtils( 1381): 	at android.database.sqlite.SQLiteDatabase.delete(SQLiteDatabase.java:1590)
05-23 19:08:34.484 E/DatabaseUtils( 1381): 	at com.android.providers.telephony.MmsSmsDatabaseHelper.updateMultiThreads(MmsSmsDatabaseHelper.java:4387)
05-23 19:08:34.484 E/DatabaseUtils( 1381): 	at com.android.providers.telephony.SmsProvider.delete(SmsProvider.java:865)
05-23 19:08:34.484 E/DatabaseUtils( 1381): 	at android.content.ContentProvider$Transport.delete(ContentProvider.java:343)
05-23 19:08:34.484 E/DatabaseUtils( 1381): 	at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:195)
05-23 19:08:34.484 E/DatabaseUtils( 1381): 	at android.os.Binder.execTransact(Binder.java:731)
05-23 19:08:34.487 I/Proximity(  493): distance = 10
05-23 19:08:34.487 E/AndroidRuntime(16093): FATAL EXCEPTION: Thread-25
05-23 19:08:34.487 E/AndroidRuntime(16093): Process: com.simplemobiletools.smsmessenger, PID: 16093
05-23 19:08:34.487 E/AndroidRuntime(16093): android.database.sqlite.SQLiteException: no such table: cellbroadcast (code 1 SQLITE_ERROR): , while compiling: DELETE FROM threads WHERE status = 0 AND type <> ? AND _id NOT IN          (SELECT thread_id FROM sms where thread_id is not null            UNION SELECT thread_id FROM pdu where thread_id is not null            UNION SELECT DISTINCT thread_id FROM cellbroadcast where thread_id is not null)
05-23 19:08:34.487 E/AndroidRuntime(16093): 	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:179)
05-23 19:08:34.487 E/AndroidRuntime(16093): 	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
05-23 19:08:34.487 E/AndroidRuntime(16093): 	at android.content.ContentProviderProxy.delete(ContentProviderNative.java:547)
05-23 19:08:34.487 E/AndroidRuntime(16093): 	at android.content.ContentResolver.delete(ContentResolver.java:1684)
05-23 19:08:34.487 E/AndroidRuntime(16093): 	at com.simplemobiletools.smsmessenger.extensions.ContextKt.deleteConversation(Context.kt:460)
05-23 19:08:34.487 E/AndroidRuntime(16093): 	at com.simplemobiletools.smsmessenger.adapters.ConversationsAdapter.deleteConversations(ConversationsAdapter.kt:99)
05-23 19:08:34.487 E/AndroidRuntime(16093): 	at com.simplemobiletools.smsmessenger.adapters.ConversationsAdapter.access$deleteConversations(ConversationsAdapter.kt:26)
05-23 19:08:34.487 E/AndroidRuntime(16093): 	at com.simplemobiletools.smsmessenger.adapters.ConversationsAdapter$askConfirmDelete$1$1.invoke(ConversationsAdapter.kt:86)
05-23 19:08:34.487 E/AndroidRuntime(16093): 	at com.simplemobiletools.smsmessenger.adapters.ConversationsAdapter$askConfirmDelete$1$1.invoke(ConversationsAdapter.kt:26)
05-23 19:08:34.487 E/AndroidRuntime(16093): 	at com.simplemobiletools.commons.helpers.ConstantsKt$ensureBackgroundThread$1.run(Constants.kt:314)
05-23 19:08:34.487 E/AndroidRuntime(16093): 	at java.lang.Thread.run(Thread.java:764)
05-23 19:08:34.493 W/ActivityManager(  803):   Force finishing activity com.simplemobiletools.smsmessenger/.activities.MainActivity

from simple-sms-messenger.

ltguillaume avatar ltguillaume commented on May 29, 2024

Thought I'd see what happened if I sent a msg from within Simple SMS Messenger (5.1.3):
I just wrote a new message to a number that wasn't listed yet, sent it, then removed the conversation. When I closed and reopened Simple SMS Messenger, the message was indeed gone, but the conversation was still listed, including the message preview of the deleted message.

from simple-sms-messenger.

ltguillaume avatar ltguillaume commented on May 29, 2024

I had enough of it, so I just pm clear com.android.providers.telephony'd and restarted. We'll see if this behavior will come back some day. If so, I'll reopen the issue with more info.

from simple-sms-messenger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.