B2G SMS database initialization freezes I/O thread

NEW
Unassigned

Status

Firefox OS
RIL
6 years ago
4 years ago

People

(Reporter: philikon, Unassigned)

Tracking

unspecified
ARM
Gonk (Firefox OS)

Firefox Tracking Flags

(blocking-b2g:-)

Details

+++ This bug was initially created as a clone of Bug #743635 +++

I erroneously attributed the freeze we're seeing in the Gonk ICS emulator to the off-mainthread access of the Directory Service in IndexedDB. Turns out, that patch -- while still useful -- doesn't fix the freeze.
Seeing this on the Akami (running Gingerbread), too.

Comment 2

6 years ago
I can reproduce this issue on Lenovo phone, too.

When the issues reproduced, one thread stuck in the while loop in EnsureOriginIsInitialized() of IndexedDatabaseManager.cpp.

And the SMS & Settings related files keep been updated in IndexedDB directory.

# pwd
/data/b2g/mozilla/82ve6zij.default/indexedDB/chrome
# ls -l
drwxr-xr-x    1 root     root          2048 Jan 19 15:30 226660312ssm
-rw-------    1 root     root        524288 Jan 19 15:39 226660312ssm.sqlite
drwxr-xr-x    1 root     root          2048 Jan 19 15:38 2588645841ssegtnti
-rw-------    1 root     root        524288 Jan 19 15:39 2588645841ssegtnti.sqlite
-rw-------    1 root     root         33288 Jan 19 15:39 2588645841ssegtnti.sqlite-journal

Have to rm files in this directory to recover.

Comment 4

6 years ago
This bug looks similar to bug 727803, but seems a different case.  It's not always happening, but once happens, it keeps happening next time.

Since we know it's stuck in the while loop, next is to dig deeper into the loop to see how it happens and find a way to fix it.

Looking forward to someone who familiar to this code can see it.

Comment 5

6 years ago
After discussion with mwu, it should be same problem as bug 727803(shouldn't it already be fixed on Akami?).  And mwu is looking to fix it at Gecko side(bug 749661).
Component: DOM: Device Interfaces → RIL
Product: Core → Firefox OS
Version: Trunk → unspecified

Updated

4 years ago
blocking-b2g: --- → -
You need to log in before you can comment on or make changes to this bug.