Closed Bug 720152 Opened 12 years ago Closed 12 years ago

java.lang.UnsupportedOperationException: Unknown delete URI content://org.mozilla.fennec.db.browser/images/185?profile=default&limit=5&show_deleted=1&sync=1

Categories

(Firefox for Android Graveyard :: General, defect, P2)

ARM
Android
defect

Tracking

(firefox11 fixed, fennec11+)

VERIFIED FIXED
Firefox 12
Tracking Status
firefox11 --- fixed
fennec 11+ ---

People

(Reporter: martijn.martijn, Assigned: lucasr)

Details

(Keywords: crash, reproducible, Whiteboard: [native-crash])

Attachments

(2 files)

Attached file logcat of crash
I can repeatedly crash, while visiting crash reporter links from about:crashes.
It does happen intermittently, but usually trying it t0 times results in a crash.

Steps to reproduce:
- go to about:crashes
- Tap on one of the crash reporter links
- If it doesn't crash, go back and tap again on one of the crash reporter links

Tested on the LG Optimus Black, Android 2.2.2.

I've attached a crash log.
I think this is the relevant part of the log:
01-21 19:22:35.786: D/GeckoBrowserProvider(3024): Deleting all unused images for URI: content://org.mozilla.fennec.db.browser/history/2?profile=default
01-21 19:22:35.786: D/GeckoBrowserProvider(3024): Deleting images for URI: content://org.mozilla.fennec.db.browser/history/2?profile=default
01-21 19:22:35.786: D/GeckoBrowserProvider(3024): Getting writable database for URI: content://org.mozilla.fennec.db.browser/history/2?profile=default
01-21 19:22:35.786: D/GeckoBrowserProvider(3024): Marking images as deleted for URI: content://org.mozilla.fennec.db.browser/history/2?profile=default
01-21 19:22:35.786: D/GeckoBrowserProvider(3024): Getting readable database for URI: content://org.mozilla.fennec.db.browser/images?profile=default&limit=5&show_deleted=1&sync=1
01-21 19:22:35.794: D/GeckoBrowserProvider(3024): Query is on images: content://org.mozilla.fennec.db.browser/images?profile=default&limit=5&show_deleted=1&sync=1
01-21 19:22:35.794: D/GeckoBrowserProvider(3024): Running built query.
01-21 19:22:35.802: D/GeckoBrowserProvider(3024): Calling delete on URI: content://org.mozilla.fennec.db.browser/images/185?profile=default&limit=5&show_deleted=1&sync=1
01-21 19:22:35.802: D/GeckoBrowserProvider(3024): Getting writable database for URI: content://org.mozilla.fennec.db.browser/images/185?profile=default&limit=5&show_deleted=1&sync=1
01-21 19:22:35.809: D/GeckoBrowserProvider(3024): Calling delete in transaction on URI: content://org.mozilla.fennec.db.browser/images/185?profile=default&limit=5&show_deleted=1&sync=1
01-21 19:22:35.833: W/dalvikvm(3024): threadid=7: thread exiting with uncaught exception (group=0x40020c20)
01-21 19:22:35.849: E/AndroidRuntime(3024): FATAL EXCEPTION: GeckoLooper Thread
01-21 19:22:35.849: E/AndroidRuntime(3024): java.lang.UnsupportedOperationException: Unknown delete URI content://org.mozilla.fennec.db.browser/images/185?profile=default&limit=5&show_deleted=1&sync=1
01-21 19:22:35.849: E/AndroidRuntime(3024): 	at org.mozilla.fennec.db.BrowserProvider.deleteInTransaction(BrowserProvider.java:639)
01-21 19:22:35.849: E/AndroidRuntime(3024): 	at org.mozilla.fennec.db.BrowserProvider.delete(BrowserProvider.java:583)
01-21 19:22:35.849: E/AndroidRuntime(3024): 	at org.mozilla.fennec.db.BrowserProvider.cleanupSomeDeletedRecords(BrowserProvider.java:497)
01-21 19:22:35.849: E/AndroidRuntime(3024): 	at org.mozilla.fennec.db.BrowserProvider.deleteImages(BrowserProvider.java:1225)
01-21 19:22:35.849: E/AndroidRuntime(3024): 	at org.mozilla.fennec.db.BrowserProvider.deleteUnusedImages(BrowserProvider.java:1240)
01-21 19:22:35.849: E/AndroidRuntime(3024): 	at org.mozilla.fennec.db.BrowserProvider.deleteInTransaction(BrowserProvider.java:621)
01-21 19:22:35.849: E/AndroidRuntime(3024): 	at org.mozilla.fennec.db.BrowserProvider.delete(BrowserProvider.java:583)
01-21 19:22:35.849: E/AndroidRuntime(3024): 	at android.content.ContentProvider$Transport.delete(ContentProvider.java:198)
01-21 19:22:35.849: E/AndroidRuntime(3024): 	at android.content.ContentResolver.delete(ContentResolver.java:725)
01-21 19:22:35.849: E/AndroidRuntime(3024): 	at org.mozilla.gecko.db.LocalBrowserDB.truncateHistory(LocalBrowserDB.java:137)
01-21 19:22:35.849: E/AndroidRuntime(3024): 	at org.mozilla.gecko.db.LocalBrowserDB.updateVisitedHistory(LocalBrowserDB.java:176)
01-21 19:22:35.849: E/AndroidRuntime(3024): 	at org.mozilla.gecko.db.BrowserDB.updateVisitedHistory(BrowserDB.java:103)
01-21 19:22:35.849: E/AndroidRuntime(3024): 	at org.mozilla.gecko.GlobalHistory.add(GlobalHistory.java:119)
01-21 19:22:35.849: E/AndroidRuntime(3024): 	at org.mozilla.gecko.GeckoAppShell$14.run(GeckoAppShell.java:1648)
01-21 19:22:35.849: E/AndroidRuntime(3024): 	at android.os.Handler.handleCallback(Handler.java:587)
01-21 19:22:35.849: E/AndroidRuntime(3024): 	at android.os.Handler.dispatchMessage(Handler.java:92)
01-21 19:22:35.849: E/AndroidRuntime(3024): 	at android.os.Looper.loop(Looper.java:123)
01-21 19:22:35.849: E/AndroidRuntime(3024): 	at org.mozilla.gecko.GeckoAppShell$LooperThread.run(GeckoAppShell.java:174)
01-21 19:22:35.864: W/ActivityManager(1723):   Force finishing activity org.mozilla.fennec/.App
Hrm, I seem to crash every time when trying to load bugzilla.
Keywords: reproducible
Summary: Crash when visiting crash links from about:crashes → Crash when visiting crash links from about:crashes (java.lang.UnsupportedOperationException: Unknown delete URI content://org.mozilla.fennec.db.browser/images/185?profile=default&limit=5&show_deleted=1&sync=1)
Whiteboard: [native-crash]
I noticed that I can crash while rotating in about:crashes.

I can also crash while rotating from portrait to landscape on bugzilla.

Not sure if it's the same crash as Bug 711852; I recorded it in the same bug.
Ignore Comment 2; turns out I was on the wrong build.
Assignee: nobody → lucasr.at.mozilla
tracking-fennec: --- → 11+
Priority: -- → P2
I forgot to add the URI matches for image IDs in our content provider. This bug is actually unrelated to about:crashes. It's being triggered by the cleanup routine for deleted history entries.
Attachment #591082 - Flags: review?(blassey.bugs)
Yeah, it's unrelated to about:crashes. I seem to crash very frequently in the latest trunk build (and seemingly randomly), so I hope this patch will fix that.
Attachment #591082 - Flags: review?(blassey.bugs) → review+
Summary: Crash when visiting crash links from about:crashes (java.lang.UnsupportedOperationException: Unknown delete URI content://org.mozilla.fennec.db.browser/images/185?profile=default&limit=5&show_deleted=1&sync=1) → java.lang.UnsupportedOperationException: Unknown delete URI content://org.mozilla.fennec.db.browser/images/185?profile=default&limit=5&show_deleted=1&sync=1
Comment on attachment 591082 [details] [diff] [review]
Add URI matches for image ID operations

Fixes a frequent crasher on our history/bookmarks DB. Mobile-only.
Attachment #591082 - Flags: approval-mozilla-aurora?
Comment on attachment 591082 [details] [diff] [review]
Add URI matches for image ID operations

[Triage Comment]
Mobile only - approved for Aurora.
Attachment #591082 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
https://hg.mozilla.org/mozilla-central/rev/14488fd43b86
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 12
This crash is not reproducible on the latest Nightly and Aurora builds. Closing it as verified fixed.

--
Mozilla/5.0 (Android;Linux armv7l;rv:12.0a1)Gecko/20120127
Firefox/12.0a1 Fennec/12.0a1
Devices: Samsung Galaxy S
OS: Android 2.2
Status: RESOLVED → VERIFIED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: