Closed Bug 777132 Opened 14 years ago Closed 14 years ago

StrictModeDiskReadViolations from GeckoProfile when launching BarFight webapp (300-600 ms delay)

Categories

(Firefox for Android Graveyard :: Web Apps (PWAs), defect, P2)

ARM
Android
defect

Tracking

(firefox17 affected)

VERIFIED DUPLICATE of bug 767002
Tracking Status
firefox17 --- affected

People

(Reporter: cpeterson, Unassigned)

References

()

Details

STR: 1. Load test webapp store: http://ed.agadak.net/app/ 2. Install "barfight" webapp 3. From the phone's home screen, run BarFight AR: The first time BarFight is launched, logcat reports about 6 StrictModeDiskReadViolation. Subsequent launches reports "only" 3. Each of these violations is about 100 ms, so they account for at least 300-600 ms of webapp startup time! D/StrictMode(10845): StrictMode policy violation; ~duration=108 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=31 violation=2 D/StrictMode(10845): at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1107) D/StrictMode(10845): at android.app.SharedPreferencesImpl.awaitLoadedLocked(SharedPreferencesImpl.java:184) D/StrictMode(10845): at android.app.SharedPreferencesImpl.getBoolean(SharedPreferencesImpl.java:241) D/StrictMode(10845): at org.mozilla.gecko.ProfileMigrator.isProfileMoved(ProfileMigrator.java:362) D/StrictMode(10845): at org.mozilla.gecko.GeckoProfile.getDir(GeckoProfile.java:151) D/StrictMode(10845): at org.mozilla.gecko.GeckoProfile.shouldRestoreSession(GeckoProfile.java:185) D/StrictMode(10845): at org.mozilla.gecko.GeckoApp.initialize(GeckoApp.java:1789) D/StrictMode(10845): at org.mozilla.gecko.GeckoApp.onWindowFocusChanged(GeckoApp.java:2185) D/StrictMode(10845): at com.android.internal.policy.impl.PhoneWindow$DecorView.onWindowFocusChanged(PhoneWindow.java:2423) D/StrictMode(10845): at android.view.View.dispatchWindowFocusChanged(View.java:7321) D/StrictMode(10845): at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:933) D/StrictMode(10845): at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:2881) D/StrictMode(10845): at android.os.Handler.dispatchMessage(Handler.java:99) D/StrictMode(10845): at android.os.Looper.loop(Looper.java:137) D/StrictMode(10845): at android.app.ActivityThread.main(ActivityThread.java:4745) D/StrictMode(10845): at java.lang.reflect.Method.invokeNative(Native Method) D/StrictMode(10845): at java.lang.reflect.Method.invoke(Method.java:511) D/StrictMode(10845): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) D/StrictMode(10845): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) D/StrictMode(10845): at dalvik.system.NativeStart.main(Native Method) D/StrictMode(10845): StrictMode policy violation; ~duration=98 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=31 violation=2 D/StrictMode(10845): at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1107) D/StrictMode(10845): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:106) D/StrictMode(10845): at libcore.io.IoBridge.open(IoBridge.java:400) D/StrictMode(10845): at java.io.FileInputStream.<init>(FileInputStream.java:78) D/StrictMode(10845): at java.io.FileReader.<init>(FileReader.java:42) D/StrictMode(10845): at org.mozilla.gecko.toolkit.INIParser.parse(INIParser.java:98) D/StrictMode(10845): at org.mozilla.gecko.toolkit.INIParser.parse(INIParser.java:85) D/StrictMode(10845): at org.mozilla.gecko.toolkit.INIParser.getSections(INIParser.java:74) D/StrictMode(10845): at org.mozilla.gecko.GeckoProfile.findProfileDir(GeckoProfile.java:311) D/StrictMode(10845): at org.mozilla.gecko.GeckoProfile.getDir(GeckoProfile.java:158) D/StrictMode(10845): at org.mozilla.gecko.GeckoProfile.shouldRestoreSession(GeckoProfile.java:185) D/StrictMode(10845): at org.mozilla.gecko.GeckoApp.initialize(GeckoApp.java:1789) D/StrictMode(10845): at org.mozilla.gecko.GeckoApp.onWindowFocusChanged(GeckoApp.java:2185) D/StrictMode(10845): at com.android.internal.policy.impl.PhoneWindow$DecorView.onWindowFocusChanged(PhoneWindow.java:2423) D/StrictMode(10845): at android.view.View.dispatchWindowFocusChanged(View.java:7321) D/StrictMode(10845): at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:933) D/StrictMode(10845): at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:2881) D/StrictMode(10845): at android.os.Handler.dispatchMessage(Handler.java:99) D/StrictMode(10845): at android.os.Looper.loop(Looper.java:137) D/StrictMode(10845): at android.app.ActivityThread.main(ActivityThread.java:4745) D/StrictMode(10845): at java.lang.reflect.Method.invokeNative(Native Method) D/StrictMode(10845): at java.lang.reflect.Method.invoke(Method.java:511) D/StrictMode(10845): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) D/StrictMode(10845): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) D/StrictMode(10845): at dalvik.system.NativeStart.main(Native Method) D/StrictMode(10845): StrictMode policy violation; ~duration=96 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=31 violation=2 D/StrictMode(10845): at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1107) D/StrictMode(10845): at libcore.io.BlockGuardOs.read(BlockGuardOs.java:148) D/StrictMode(10845): at libcore.io.IoBridge.read(IoBridge.java:432) D/StrictMode(10845): at java.io.FileInputStream.read(FileInputStream.java:179) D/StrictMode(10845): at java.io.InputStreamReader.read(InputStreamReader.java:244) D/StrictMode(10845): at java.io.BufferedReader.fillBuf(BufferedReader.java:130) D/StrictMode(10845): at java.io.BufferedReader.readLine(BufferedReader.java:354) D/StrictMode(10845): at org.mozilla.gecko.toolkit.INIParser.parse(INIParser.java:108) D/StrictMode(10845): at org.mozilla.gecko.toolkit.INIParser.parse(INIParser.java:85) D/StrictMode(10845): at org.mozilla.gecko.toolkit.INIParser.getSections(INIParser.java:74) D/StrictMode(10845): at org.mozilla.gecko.GeckoProfile.findProfileDir(GeckoProfile.java:311) D/StrictMode(10845): at org.mozilla.gecko.GeckoProfile.getDir(GeckoProfile.java:158) D/StrictMode(10845): at org.mozilla.gecko.GeckoProfile.shouldRestoreSession(GeckoProfile.java:185) D/StrictMode(10845): at org.mozilla.gecko.GeckoApp.initialize(GeckoApp.java:1789) D/StrictMode(10845): at org.mozilla.gecko.GeckoApp.onWindowFocusChanged(GeckoApp.java:2185) D/StrictMode(10845): at com.android.internal.policy.impl.PhoneWindow$DecorView.onWindowFocusChanged(PhoneWindow.java:2423) D/StrictMode(10845): at android.view.View.dispatchWindowFocusChanged(View.java:7321) D/StrictMode(10845): at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:933) D/StrictMode(10845): at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:2881) D/StrictMode(10845): at android.os.Handler.dispatchMessage(Handler.java:99) D/StrictMode(10845): at android.os.Looper.loop(Looper.java:137) D/StrictMode(10845): at android.app.ActivityThread.main(ActivityThread.java:4745) D/StrictMode(10845): at java.lang.reflect.Method.invokeNative(Native Method) D/StrictMode(10845): at java.lang.reflect.Method.invoke(Method.java:511) D/StrictMode(10845): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) D/StrictMode(10845): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) D/StrictMode(10845): at dalvik.system.NativeStart.main(Native Method)
This bug may be related to or a duplicate of bug 730644.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
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.