[GH-ISSUE #870] Manual (and automatic) backup doesn't work (Unfortunately, SMS Backup+ has stopped) #686

Closed
opened 2026-02-26 01:31:21 +03:00 by kerem · 2 comments
Owner

Originally created by @dofer404 on GitHub (Apr 8, 2018).
Original GitHub issue: https://github.com/jberkel/sms-backup-plus/issues/870

I'm having this issue for a while now. Each time I hit the BACKUP button the application crashes and a message pops up on screen "Unfortunately, SMS Backup+ has stopped"
The same happens each time an automatic backup is triggered (the message pops up on screen).

Expected behaviour

I tap on the BACKUP button, the application shows the messages: "Working, logging in...", then "Working, calculating...", and then backs up any non backed up messages and call logs without crashing.

Actual behaviour

I tap on the BACKUP button, the application shows the messages: "Working, logging in...", then "Working, calculating...", and then the application closes completely, living me on the home screen with the message "Unfortunately, SMS Backup+ has stopped"

Steps to reproduce the behaviour

  1. Open the app
  2. (If you haven't connected your GMail account, do so)
  3. Tap the BACKUP button

Specifications:

  • Android version: 6.0
  • Phone model / brand: Studio XL 2/BLU
  • SMS Backup+ version installed: 1.5.11-beta18
  • Messaging app: Messages (version 3.0.040) (com.google.android.apps.messaging)
Originally created by @dofer404 on GitHub (Apr 8, 2018). Original GitHub issue: https://github.com/jberkel/sms-backup-plus/issues/870 I'm having this issue for a while now. Each time I hit the BACKUP button the application crashes and a message pops up on screen "Unfortunately, SMS Backup+ has stopped" The same happens each time an automatic backup is triggered (the message pops up on screen). ### Expected behaviour I tap on the BACKUP button, the application shows the messages: "Working, logging in...", then "Working, calculating...", and then backs up any non backed up messages and call logs without crashing. ### Actual behaviour I tap on the BACKUP button, the application shows the messages: "Working, logging in...", then "Working, calculating...", and then the application closes completely, living me on the home screen with the message "Unfortunately, SMS Backup+ has stopped" ### Steps to reproduce the behaviour 1. Open the app 2. (If you haven't connected your GMail account, do so) 3. Tap the BACKUP button ### Specifications: * Android version: 6.0 * Phone model / brand: Studio XL 2/BLU * SMS Backup+ version installed: 1.5.11-beta18 * Messaging app: Messages (version 3.0.040) (com.google.android.apps.messaging)
kerem closed this issue 2026-02-26 01:31:21 +03:00
Author
Owner

@dofer404 commented on GitHub (Apr 8, 2018):

I have compiled from source and I have run the application in debug mode to find out where is the application crashing, it seems it crashes on the first call to:

com/zegoggles/smssync/mail/PersonLookup.java:51 Cursor c = mResolver.query(personUri, PHONE_PROJECTION, null, null, null);

with call stack:

E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
                  Process: com.zegoggles.smssync, PID: 26993
                  java.lang.RuntimeException: An error occurred while executing doInBackground()
                      at android.os.AsyncTask$3.done(AsyncTask.java:309)
                      at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
                      at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
                      at java.util.concurrent.FutureTask.run(FutureTask.java:242)
                      at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
                      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
                      at java.lang.Thread.run(Thread.java:818)
                   Caused by: java.lang.IllegalArgumentException: column 'data1' does not exist
                      at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:170)
                      at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:140)
                      at android.content.ContentProviderProxy.query(ContentProviderNative.java:421)
                      at android.content.ContentResolver.query(ContentResolver.java:498)
                      at android.content.ContentResolver.query(ContentResolver.java:441)
                      at com.zegoggles.smssync.mail.PersonLookup.lookupPerson(PersonLookup.java:51)
                      at com.zegoggles.smssync.mail.MessageGenerator.messageFromMapSms(MessageGenerator.java:83)
                      at com.zegoggles.smssync.mail.MessageGenerator.messageForDataType(MessageGenerator.java:72)
                      at com.zegoggles.smssync.mail.MessageConverter.convertMessages(MessageConverter.java:115)
                      at com.zegoggles.smssync.service.BackupTask.backupCursors(BackupTask.java:269)
                      at com.zegoggles.smssync.service.BackupTask.fetchAndBackupItems(BackupTask.java:153)
                      at com.zegoggles.smssync.service.BackupTask.acquireLocksAndBackup(BackupTask.java:133)
                      at com.zegoggles.smssync.service.BackupTask.doInBackground(BackupTask.java:126)
                      at com.zegoggles.smssync.service.BackupTask.doInBackground(BackupTask.java:49)
                      at android.os.AsyncTask$2.call(AsyncTask.java:295)
                      at java.util.concurrent.FutureTask.run(FutureTask.java:237)
                      at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234) 
                      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 
                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 
                      at java.lang.Thread.run(Thread.java:818) 
E/Surface: getSlotFromBufferLocked: unknown buffer: 0xab5c2b40
<!-- gh-comment-id:379592282 --> @dofer404 commented on GitHub (Apr 8, 2018): I have compiled from source and I have run the application in debug mode to find out where is the application crashing, it seems it crashes on the first call to: `com/zegoggles/smssync/mail/PersonLookup.java:51 Cursor c = mResolver.query(personUri, PHONE_PROJECTION, null, null, null);` with call stack: ``` E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1 Process: com.zegoggles.smssync, PID: 26993 java.lang.RuntimeException: An error occurred while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:309) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354) at java.util.concurrent.FutureTask.setException(FutureTask.java:223) at java.util.concurrent.FutureTask.run(FutureTask.java:242) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818) Caused by: java.lang.IllegalArgumentException: column 'data1' does not exist at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:170) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:140) at android.content.ContentProviderProxy.query(ContentProviderNative.java:421) at android.content.ContentResolver.query(ContentResolver.java:498) at android.content.ContentResolver.query(ContentResolver.java:441) at com.zegoggles.smssync.mail.PersonLookup.lookupPerson(PersonLookup.java:51) at com.zegoggles.smssync.mail.MessageGenerator.messageFromMapSms(MessageGenerator.java:83) at com.zegoggles.smssync.mail.MessageGenerator.messageForDataType(MessageGenerator.java:72) at com.zegoggles.smssync.mail.MessageConverter.convertMessages(MessageConverter.java:115) at com.zegoggles.smssync.service.BackupTask.backupCursors(BackupTask.java:269) at com.zegoggles.smssync.service.BackupTask.fetchAndBackupItems(BackupTask.java:153) at com.zegoggles.smssync.service.BackupTask.acquireLocksAndBackup(BackupTask.java:133) at com.zegoggles.smssync.service.BackupTask.doInBackground(BackupTask.java:126) at com.zegoggles.smssync.service.BackupTask.doInBackground(BackupTask.java:49) at android.os.AsyncTask$2.call(AsyncTask.java:295) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)  at java.lang.Thread.run(Thread.java:818)  E/Surface: getSlotFromBufferLocked: unknown buffer: 0xab5c2b40 ```
Author
Owner

@jberkel commented on GitHub (Apr 9, 2018):

thanks, that is a weird bug. maybe some numbers are stored in a different table? i'll see if there's a better fix for this, if not we can just the try/catch solution.

<!-- gh-comment-id:379696501 --> @jberkel commented on GitHub (Apr 9, 2018): thanks, that is a weird bug. maybe some numbers are stored in a different table? i'll see if there's a better fix for this, if not we can just the try/catch solution.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/sms-backup-plus-jberkel#686
No description provided.