MemoryMonitor is incompatible with isolatedProcess
Categories
(GeckoView Graveyard :: Sandboxing, defect, P1)
Tracking
(firefox66 affected)
Tracking | Status | |
---|---|---|
firefox66 | --- | affected |
People
(Reporter: gcp, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [geckoview:m89])
MemoryMonitor sets an observer on the ApplicationContext that listens for memory and disk pressure events. That's not possible in an isolatedProcess.
Looks like it'll have to move to the main service instead of the Gecko one where it runs now.
Reporter | ||
Comment 1•7 years ago
|
||
E/GeckoCrashHandler( 5877): java.lang.SecurityException: Isolated process not allowed to call registerReceiver
E/GeckoCrashHandler( 5877): at android.os.Parcel.readException(Parcel.java:1546)
E/GeckoCrashHandler( 5877): at android.os.Parcel.readException(Parcel.java:1499)
E/GeckoCrashHandler( 5877): at android.app.ActivityManagerProxy.registerReceiver(ActivityManagerNative.java:2782)
E/GeckoCrashHandler( 5877): at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1655)
E/GeckoCrashHandler( 5877): at android.app.ContextImpl.registerReceiver(ContextImpl.java:1623)
E/GeckoCrashHandler( 5877): at android.app.ContextImpl.registerReceiver(ContextImpl.java:1617)
E/GeckoCrashHandler( 5877): at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:489)
E/GeckoCrashHandler( 5877): at org.mozilla.gecko.MemoryMonitor.init(MemoryMonitor.java:86)
E/GeckoCrashHandler( 5877): at org.mozilla.gecko.GeckoApplication.onCreate(GeckoApplication.java:326)
E/GeckoCrashHandler( 5877): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012)
E/GeckoCrashHandler( 5877): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4553)
E/GeckoCrashHandler( 5877): at android.app.ActivityThread.access$1500(ActivityThread.java:151)
E/GeckoCrashHandler( 5877): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)
E/GeckoCrashHandler( 5877): at android.os.Handler.dispatchMessage(Handler.java:102)
E/GeckoCrashHandler( 5877): at android.os.Looper.loop(Looper.java:135)
E/GeckoCrashHandler( 5877): at android.app.ActivityThread.main(ActivityThread.java:5254)
E/GeckoCrashHandler( 5877): at java.lang.reflect.Method.invoke(Native Method)
E/GeckoCrashHandler( 5877): at java.lang.reflect.Method.invoke(Method.java:372)
E/GeckoCrashHandler( 5877): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
E/GeckoCrashHandler( 5877): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Reporter | ||
Updated•7 years ago
|
Reporter | ||
Updated•6 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Comment 2•4 years ago
|
||
There's no MemoryMonitor anymore! ʢᵕᴗᵕʡ
Comment 3•3 years ago
|
||
Moving isolated process bugs to the new GeckoView::Sandboxing component.
Updated•1 year ago
|
Description
•