Closed Bug 767002 Opened 13 years ago Closed 12 years ago

StrictMode policy violation - StrictModeDiskReadViolation on system installed notification launch

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(firefox16 affected, firefox17 affected, fennec+)

RESOLVED WONTFIX
Tracking Status
firefox16 --- affected
firefox17 --- affected
fennec + ---

People

(Reporter: aaronmt, Unassigned)

References

Details

(Keywords: perf)

I/ActivityManager( 193): Displayed org.mozilla.fennec/.WebApps$WebApp1: +760ms D/StrictMode( 3625): StrictMode policy violation; ~duration=299 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=31 violation=2 D/StrictMode( 3625): at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1089) D/StrictMode( 3625): at android.app.SharedPreferencesImpl.awaitLoadedLocked(SharedPreferencesImpl.java:184) D/StrictMode( 3625): at android.app.SharedPreferencesImpl.getBoolean(SharedPreferencesImpl.java:241) D/StrictMode( 3625): at org.mozilla.gecko.ProfileMigrator.isProfileMoved(ProfileMigrator.java:323) D/StrictMode( 3625): at org.mozilla.gecko.GeckoProfile.getDir(GeckoProfile.java:126) D/StrictMode( 3625): at org.mozilla.gecko.GeckoProfile.shouldRestoreSession(GeckoProfile.java:152) D/StrictMode( 3625): at org.mozilla.gecko.GeckoApp.initialize(GeckoApp.java:1773) D/StrictMode( 3625): at org.mozilla.gecko.GeckoApp.onWindowFocusChanged(GeckoApp.java:2154) D/StrictMode( 3625): at com.android.internal.policy.impl.PhoneWindow$DecorView.onWindowFocusChanged(PhoneWindow.java:2366) D/StrictMode( 3625): at android.view.View.dispatchWindowFocusChanged(View.java:5735) D/StrictMode( 3625): at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:851) D/StrictMode( 3625): at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2557) D/StrictMode( 3625): at android.os.Handler.dispatchMessage(Handler.java:99) D/StrictMode( 3625): at android.os.Looper.loop(Looper.java:137) D/StrictMode( 3625): at android.app.ActivityThread.main(ActivityThread.java:4424) D/StrictMode( 3625): at java.lang.reflect.Method.invokeNative(Native Method) D/StrictMode( 3625): at java.lang.reflect.Method.invoke(Method.java:511) D/StrictMode( 3625): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) D/StrictMode( 3625): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) D/StrictMode( 3625): at dalvik.system.NativeStart.main(Native Method) -- Nightly (04.21) Galaxy Nexus (Android 4.0.4)
Aaron - What's the end-user impact here?
Absolutely nothing.
QA Contact: aaron.train
tracking-fennec: --- → ?
tracking-fennec: ? → +
Assignee: nobody → wjohnston
Priority: -- → P3
Marking for re-triage - this apparently appears to be the cause of 1/2 second startup time slowness for web apps. I'd increase the priority here, given that startup time for web apps is a bit slow right now.
Keywords: perf
Priority: P3 → --
Whiteboard: [Snappy]
We may want to just skip the shouldRestoreSession() check for web apps. Also note that no matter what, web apps are going to feel slower to startup than Fennec itself -- Fennec has the built-in-native awesomescreen that will come up quickly while Gecko is still launching. Web apps need all of gecko to launch before they can display anything.
(In reply to Vladimir Vukicevic [:vlad] [:vladv] from comment #5) > We may want to just skip the shouldRestoreSession() check for web apps. > > Also note that no matter what, web apps are going to feel slower to startup > than Fennec itself -- Fennec has the built-in-native awesomescreen that will > come up quickly while Gecko is still launching. Web apps need all of gecko > to launch before they can display anything. Note we might be able to speed up gecko loading for webapps by loading less gecko via of bug 748488. Depends how similar the useful subset of gecko is between apps.
Status: NEW → ASSIGNED
(In reply to Jason Smith [:jsmith] from comment #4) > Marking for re-triage - this apparently appears to be the cause of 1/2 > second startup time slowness for web apps. I'd increase the priority here, > given that startup time for web apps is a bit slow right now. Where are we getting the 1/2 sec data from? (In reply to Vladimir Vukicevic [:vlad] [:vladv] from comment #5) > We may want to just skip the shouldRestoreSession() check for web apps. Maybe, but restoring webapp state is something the WebApp team wants to support. Right now, Fennec does not support restoring much in the way of state, but at some point restoring cookies, session data and form data would be nice for webapps.
(In reply to Mark Finkle (:mfinkle) from comment #7) > (In reply to Jason Smith [:jsmith] from comment #4) > > Marking for re-triage - this apparently appears to be the cause of 1/2 > > second startup time slowness for web apps. I'd increase the priority here, > > given that startup time for web apps is a bit slow right now. > > Where are we getting the 1/2 sec data from? The dup on this bug, bug 777132.
In this bug, the StrictMode warning in logcat above says the main thread is blocked for 299 ms: D/StrictMode( 3625): StrictMode policy violation; ~duration=299 ms In bug 777132, the StrictMode warnings in logcat say the main thread is blocked for about 600 ms on first launch and about 300 ms on subsequent launches. Such as: D/StrictMode(10845): StrictMode policy violation; ~duration=108 ms: ... D/StrictMode(10845): StrictMode policy violation; ~duration=98 ms: ... D/StrictMode(10845): StrictMode policy violation; ~duration=96 ms:
Component: Web Apps → General
Snappy doesn't concern non-desktop ff atm.
Whiteboard: [Snappy]
Not working on this. Bug 886925 may help though...
Assignee: wjohnston → nobody
This specific StrictMode violation is due to profile migration, which is being removed in bug 886587. WONTFIX'ing here
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.