mozilla-mobile / focus-android

⚠️ Firefox Focus (Android) moved to a new repository. It is now developed and maintained as part of: https://github.com/mozilla-mobile/firefox-android
https://github.com/mozilla-mobile/firefox-android
Mozilla Public License 2.0
2.1k stars 711 forks source link

Strict Mode violations - Android 7 (API 25) simulator #877

Closed nojunpark closed 7 years ago

nojunpark commented 7 years ago

after entering the search query and press enter, the app exits with following stacktrace:

07-07 15:19:02.092 3975 3975 I chromium: [INFO:library_loader_hooks.cc(163)] Chromium logging enabled: level = 0, default verbosity = 0 07-07 15:19:02.113 3975 3975 I cr_BrowserStartup: Initializing chromium process, singleProcess=true 07-07 15:19:02.140 3975 3984 E StrictMode: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks. 07-07 15:19:02.140 3975 3984 E StrictMode: java.lang.Throwable: Explicit termination method 'close' not called 07-07 15:19:02.140 3975 3984 E StrictMode: at dalvik.system.CloseGuard.open(CloseGuard.java:180) 07-07 15:19:02.140 3975 3984 E StrictMode: at java.io.RandomAccessFile.(RandomAccessFile.java:255) 07-07 15:19:02.140 3975 3984 E StrictMode: at com.android.webview.chromium.WebViewChromiumFactoryProvider.startChromiumLocked(WebViewChromiumFactoryProvider.java:16120) 07-07 15:19:02.140 3975 3984 E StrictMode: at com.android.webview.chromium.WebViewChromiumFactoryProvider.ensureChromiumStartedLocked(WebViewChromiumFactoryProvider.java:341) 07-07 15:19:02.140 3975 3984 E StrictMode: at com.android.webview.chromium.WebViewChromiumFactoryProvider.startYourEngines(WebViewChromiumFactoryProvider.java:435) 07-07 15:19:02.140 3975 3984 E StrictMode: at com.android.webview.chromium.WebViewChromium.init(WebViewChromium.java:162) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.webkit.WebView.(WebView.java:636) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.webkit.WebView.(WebView.java:572) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.webkit.WebView.(WebView.java:555) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.webkit.WebView.(WebView.java:542) 07-07 15:19:02.140 3975 3984 E StrictMode: at org.mozilla.focus.webkit.NestedWebView.(NestedWebView.java:0) 07-07 15:19:02.140 3975 3984 E StrictMode: at org.mozilla.focus.webkit.WebkitView.(WebkitView.java:0) 07-07 15:19:02.140 3975 3984 E StrictMode: at org.mozilla.focus.web.WebViewProvider.create(WebViewProvider.java:42) 07-07 15:19:02.140 3975 3984 E StrictMode: at org.mozilla.focus.activity.MainActivity.onCreateView(MainActivity.java:251) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.app.Activity.onCreateView(Activity.java:5898) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.support.v4.app.BaseFragmentActivityHoneycomb.onCreateView(BaseFragmentActivityHoneycomb.java:36) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:79) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:777) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.view.LayoutInflater.rInflate(LayoutInflater.java:858) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.view.LayoutInflater.rInflate(LayoutInflater.java:861) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.view.LayoutInflater.rInflate(LayoutInflater.java:861) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.view.LayoutInflater.inflate(LayoutInflater.java:518) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.view.LayoutInflater.inflate(LayoutInflater.java:426) 07-07 15:19:02.140 3975 3984 E StrictMode: at org.mozilla.focus.fragment.BrowserFragment.inflateLayout(BrowserFragment.java:148) 07-07 15:19:02.140 3975 3984 E StrictMode: at org.mozilla.focus.fragment.WebFragment.onCreateView(WebFragment.java:44) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.support.v4.app.Fragment.performCreateView(Fragment.java:2192) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1299) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1528) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1595) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.support.v4.app.BackStackRecord.executeOps(BackStackRecord.java:758) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.support.v4.app.FragmentManagerImpl.executeOps(FragmentManager.java:2363) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2149) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.support.v4.app.FragmentManagerImpl.optimizeAndExecuteOps(FragmentManager.java:2103) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2013) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:710) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.os.Handler.handleCallback(Handler.java:751) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.os.Handler.dispatchMessage(Handler.java:95) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.os.Looper.loop(Looper.java:154) 07-07 15:19:02.140 3975 3984 E StrictMode: at android.app.ActivityThread.main(ActivityThread.java:6119) 07-07 15:19:02.140 3975 3984 E StrictMode: at java.lang.reflect.Method.invoke(Native Method) 07-07 15:19:02.140 3975 3984 E StrictMode: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) 07-07 15:19:02.140 3975 3984 E StrictMode: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) 07-07 15:19:02.140 3975 3984 W System.err: StrictMode VmPolicy violation with POLICY_DEATH; shutting down. 07-07 15:19:02.140 3975 3984 I Process : Sending signal. PID: 3975 SIG: 9 07-07 15:19:02.151 1643 1808 W InputDispatcher: channel 'e6f0380 org.mozilla.focus.debug/org.mozilla.focus.activity.MainActivity (server)' ~ Consumer closed input channel or an error occurred. events=0xd 07-07 15:19:02.151 1643 1808 E InputDispatcher: channel 'e6f0380 org.mozilla.focus.debug/org.mozilla.focus.activity.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 07-07 15:19:02.151 1643 2318 D GraphicsStats: Buffer count: 4 07-07 15:19:02.151 1337 3319 D : HostConnection::get() New Host Connection established 0xb113df00, tid 3319 07-07 15:19:02.151 1643 2318 I WindowManager: WIN DEATH: Window{e6f0380 u0 org.mozilla.focus.debug/org.mozilla.focus.activity.MainActivity} 07-07 15:19:02.151 1643 2318 W InputDispatcher: Attempted to unregister already unregistered input channel 'e6f0380 org.mozilla.focus.debug/org.mozilla.focus.activity.MainActivity (server)' 07-07 15:19:02.152 1643 2562 I ActivityManager: Process org.mozilla.focus.debug (pid 3975) has died 07-07 15:19:02.152 1643 2562 D ActivityManager: cleanUpApplicationRecord -- 3975 07-07 15:19:02.153 1643 2562 W ActivityManager: Scheduling restart of crashed service org.mozilla.focus.debug/org.mozilla.focus.notification.BrowsingNotificationService in 1000ms 07-07 15:19:02.157 1643 2562 W ActivityManager: Force removing ActivityRecord{3378011 u0 org.mozilla.focus.debug/org.mozilla.focus.activity.MainActivity t15}: app died, no saved state 07-07 15:19:02.164 1337 3319 W : Unrecognized GLES max version string in extensions: ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 07-07 15:19:02.216 1643 2153 E RecoverySystemService: Timed out connecting to uncrypt socket 07-07 15:19:02.216 1643 2153 E RecoverySystemService: Failed to connect to uncrypt socket 07-07 15:19:02.218 2706 3320 E SystemUpdateService: Failed to call RecoverySystem.cancelScheduledUpdate 07-07 15:19:02.218 2706 3320 E SystemUpdateService: java.lang.reflect.InvocationTargetException 07-07 15:19:02.218 2706 3320 E SystemUpdateService: at java.lang.reflect.Method.invoke(Native Method) 07-07 15:19:02.218 2706 3320 E SystemUpdateService: at wrt.c(:com.google.android.gms:1) 07-07 15:19:02.218 2706 3320 E SystemUpdateService: at aeyr.d(:com.google.android.gms:0) 07-07 15:19:02.218 2706 3320 E SystemUpdateService: at aeyr.p(:com.google.android.gms:4) 07-07 15:19:02.218 2706 3320 E SystemUpdateService: at aeyr.a(:com.google.android.gms:119) 07-07 15:19:02.218 2706 3320 E SystemUpdateService: at aeyr.doInBackground(:com.google.android.gms:1) 07-07 15:19:02.218 2706 3320 E SystemUpdateService: at android.os.AsyncTask$2.call(AsyncTask.java:305) 07-07 15:19:02.218 2706 3320 E SystemUpdateService: at java.util.concurrent.FutureTask.run(FutureTask.java:237) 07-07 15:19:02.218 2706 3320 E SystemUpdateService: at java.lang.Thread.run(Thread.java:761) 07-07 15:19:02.218 2706 3320 E SystemUpdateService: Caused by: java.io.IOException: cancel scheduled update failed 07-07 15:19:02.218 2706 3320 E SystemUpdateService: at android.os.RecoverySystem.cancelScheduledUpdate(RecoverySystem.java:563) 07-07 15:19:02.218 2706 3320 E SystemUpdateService: ... 9 more 07-07 15:19:02.219 2706 3320 E SystemUpdateTask: exception trying to cancel scheduled update 07-07 15:19:02.219 2706 3320 E SystemUpdateTask: java.io.IOException: Failed to invoke RecoverySystem.cancelScheduledUpdate 07-07 15:19:02.219 2706 3320 E SystemUpdateTask: at wrt.c(:com.google.android.gms:3) 07-07 15:19:02.219 2706 3320 E SystemUpdateTask: at aeyr.d(:com.google.android.gms:0) 07-07 15:19:02.219 2706 3320 E SystemUpdateTask: at aeyr.p(:com.google.android.gms:4) 07-07 15:19:02.219 2706 3320 E SystemUpdateTask: at aeyr.a(:com.google.android.gms:119) 07-07 15:19:02.219 2706 3320 E SystemUpdateTask: at aeyr.doInBackground(:com.google.android.gms:1) 07-07 15:19:02.219 2706 3320 E SystemUpdateTask: at android.os.AsyncTask$2.call(AsyncTask.java:305) 07-07 15:19:02.219 2706 3320 E SystemUpdateTask: at java.util.concurrent.FutureTask.run(FutureTask.java:237) 07-07 15:19:02.219 2706 3320 E SystemUpdateTask: at java.lang.Thread.run(Thread.java:761) 07-07 15:19:02.232 2356 2514 D EGL_emulation: eglMakeCurrent: 0x9f8053c0: ver 2 0 (tinfo 0x9f803800) 07-07 15:19:02.299 2280 2370 D EGL_emulation: eglMakeCurrent: 0x9b053600: ver 2 0 (tinfo 0x9b066360) 07-07 15:19:02.316 2706 4004 I SystemUpdateTask: cancelUpdate (empty URL) 07-07 15:19:02.316 2706 4004 I CmaSystemUpdateService: active receiver: disabled 07-07 15:19:02.344 2356 2356 I OptInState: There is a new client and it does not support opt-in. Dropping request. 07-07 15:19:02.353 2356 2356 I MicroDetectionWorker: Micro detection mode: [mDetectionMode: [1]]. 07-07 15:19:02.353 2356 2356 I AudioController: Using mInputStreamFactoryBuilder 07-07 15:19:02.369 2356 4006 I MicroRecognitionRunner: Starting detection. 07-07 15:19:02.371 2356 2513 I MicrophoneInputStream: mic_starting com.google.android.apps.gsa.staticplugins.z.c@f0b03c3 07-07 15:19:02.405 2356 2513 I MicrophoneInputStream: mic_started com.google.android.apps.gsa.staticplugins.z.c@f0b03c3 07-07 15:19:02.408 2356 2513 E ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded 07-07 15:19:02.408 2356 2356 I MicroDetectionWorker: onReady 07-07 15:19:02.415 2356 2513 I MicrophoneInputStream: mic_close com.google.android.apps.gsa.staticplugins.z.c@f0b03c3 07-07 15:19:02.417 4005 4005 E uncrypt : failed to read /fstab.ranchu 07-07 15:19:02.417 2356 4006 I MicroRecognitionRunner: Detection finished 07-07 15:19:02.418 2356 4006 W ErrorReporter: reportError [type: 211, code: 524300]: Error reading from input stream 07-07 15:19:02.420 2356 2622 I MicroRecognitionRunner: Stopping hotword detection. 07-07 15:19:02.421 2356 4006 W ErrorProcessor: onFatalError, processing error from engine(4) 07-07 15:19:02.421 2356 4006 W ErrorProcessor: com.google.android.apps.gsa.shared.speech.a.g: Error reading from input stream 07-07 15:19:02.421 2356 4006 W ErrorProcessor: at com.google.android.apps.gsa.staticplugins.recognizer.i.a.a(SourceFile:342) 07-07 15:19:02.421 2356 4006 W ErrorProcessor: at com.google.android.apps.gsa.staticplugins.recognizer.i.a$1.run(SourceFile:1367) 07-07 15:19:02.421 2356 4006 W ErrorProcessor: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428) 07-07 15:19:02.421 2356 4006 W ErrorProcessor: at java.util.concurrent.FutureTask.run(FutureTask.java:237) 07-07 15:19:02.421 2356 4006 W ErrorProcessor: at com.google.android.apps.gsa.shared.util.concurrent.a.ak.run(SourceFile:66) 07-07 15:19:02.421 2356 4006 W ErrorProcessor: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) 07-07 15:19:02.421 2356 4006 W ErrorProcessor: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) 07-07 15:19:02.421 2356 4006 W ErrorProcessor: at java.lang.Thread.run(Thread.java:761) 07-07 15:19:02.421 2356 4006 W ErrorProcessor: at com.google.android.apps.gsa.shared.util.concurrent.a.ad$1.run(SourceFile:85) 07-07 15:19:02.421 2356 4006 W ErrorProcessor: Caused by: com.google.android.apps.gsa.shared.exception.GsaIOException: Error code: 393238 | Buffer overflow, no available space. 07-07 15:19:02.421 2356 4006 W ErrorProcessor: at com.google.android.apps.gsa.speech.audio.Tee.g(SourceFile:2531) 07-07 15:19:02.421 2356 4006 W ErrorProcessor: at com.google.android.apps.gsa.speech.audio.ap.read(SourceFile:555) 07-07 15:19:02.421 2356 4006 W ErrorProcessor: at java.io.InputStream.read(InputStream.java:101) 07-07 15:19:02.421 2356 4006 W ErrorProcessor: at com.google.android.apps.gsa.speech.audio.al.run(SourceFile:362) 07-07 15:19:02.421 2356 4006 W ErrorProcessor: at com.google.android.apps.gsa.speech.audio.ak$1.run(SourceFile:471) 07-07 15:19:02.421 2356 4006 W ErrorProcessor: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428) 07-07 15:19:02.421 2356 4006 W ErrorProcessor: at java.util.concurrent.FutureTask.run(FutureTask.java:237) 07-07 15:19:02.421 2356 4006 W ErrorProcessor: at com.google.android.apps.gsa.shared.util.concurrent.a.ak.run(SourceFile:66) 07-07 15:19:02.421 2356 4006 W ErrorProcessor: at com.google.android.apps.gsa.shared.util.concurrent.a.ax.run(SourceFile:139) 07-07 15:19:02.421 2356 4006 W ErrorProcessor: at com.google.android.apps.gsa.shared.util.concurrent.a.ax.run(SourceFile:139) 07-07 15:19:02.421 2356 4006 W ErrorProcessor: ... 4 more 07-07 15:19:02.421 2356 4006 I AudioController: internalShutdown 07-07 15:19:02.427 2356 2356 I MicroDetector: Keeping mic open: false 07-07 15:19:02.427 2356 2356 I MicroDetectionWorker: #onError(false) 07-07 15:19:02.427 2356 4007 I DeviceStateChecker: DeviceStateChecker cancelled 07-07 15:19:02.428 1402 4010 I AudioFlinger: AudioFlinger's thread 0xa879efc0 ready to run 07-07 15:19:02.442 2356 2411 W LocationOracle: No location history returned by ContextManager 07-07 15:19:02.448 1402 1438 W audio_hw_generic: Not supplying enough data to HAL, expected position 624553 , only wrote 472320 07-07 15:19:02.331 4005 4005 W uncrypt : type=1400 audit(0.0:21): avc: denied { write } for name="kmsg" dev="tmpfs" ino=3121 scontext=u:r:uncrypt:s0 tcontext=u:object_r:kmsg_device:s0 tclass=chr_file permissive=0 07-07 15:19:02.401 4005 4005 W uncrypt : type=1400 audit(0.0:22): avc: denied { write } for name="/" dev="tmpfs" ino=3074 scontext=u:r:uncrypt:s0 tcontext=u:object_r:device:s0 tclass=dir permissive=0 07-07 15:19:02.492 1858 2063 D EGL_emulation: eglMakeCurrent: 0x9f805540: ver 2 0 (tinfo 0x9f8038a0) 07-07 15:19:02.515 2230 2463 W GCoreFlp: No location to return for getLastLocation() 07-07 15:19:02.543 2230 2463 W GCoreFlp: No location to return for getLastLocation() 07-07 15:19:02.807 2280 2370 W OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer... 07-07 15:19:02.870 3346 3389 W Babel : bcb TOOK TOO LONG! (15040ms > 10000ms) 07-07 15:19:03.160 4012 4012 I art : Not late-enabling -Xcheck:jni (already on) 07-07 15:19:03.160 4012 4012 W art : Unexpected CPU variant for X86 using defaults: x86 07-07 15:19:03.167 1643 1669 I ActivityManager: Start proc 4012:org.mozilla.focus.debug/u0a84 for service org.mozilla.focus.debug/org.mozilla.focus.notification.BrowsingNotificationService 07-07 15:19:03.269 4012 4012 W System : ClassLoader referenced unknown path: /data/app/org.mozilla.focus.debug-2/lib/x86 07-07 15:19:03.278 4012 4012 I InstantRun: starting instant run server: is main process

nojunpark commented 7 years ago

Also, I have the latest update of API 25 simulator

mcomella commented 7 years ago

I think StrictMode's death policy is related here:

07-07 15:19:02.140 3975 3984 W System.err: StrictMode VmPolicy violation with POLICY_DEATH; shutting down. 07-07 15:19:02.140 3975 3984 I Process : Sending signal. PID: 3975 SIG: 9 07-07 15:19:02.151 1643 1808 W InputDispatcher: channel 'e6f0380 org.mozilla.focus.debug/org.mozilla.focus.activity.MainActivity (server)' ~ Consumer closed input channel or an error occurred. events=0xd 07-07 15:19:02.151 1643 1808 E InputDispatcher: channel 'e6f0380 org.mozilla.focus.debug/org.mozilla.focus.activity.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 07-07 15:19:02.151 1643 2318 D GraphicsStats: Buffer count: 4 07-07 15:19:02.151 1337 3319 D : HostConnection::get() New Host Connection established 0xb113df00, tid 3319 07-07 15:19:02.151 1643 2318 I WindowManager: WIN DEATH: Window{e6f0380 u0 org.mozilla.focus.debug/org.mozilla.focus.activity.MainActivity} 07-07 15:19:02.151 1643 2318 W InputDispatcher: Attempted to unregister already unregistered input channel 'e6f0380 org.mozilla.focus.debug/org.mozilla.focus.activity.MainActivity (server)' 07-07 15:19:02.152 1643 2562 I ActivityManager: Process org.mozilla.focus.debug (pid 3975) has died

I don't know why this would happen in the simulator and not on device though.

nojunpark commented 7 years ago

actually, on BB, this has been happening on certain devices + API configs (like, Galaxy S7 on API 24) as well. I have been turning tests off on such configs since it doesn't seem to happen when I test them locally. For example, in here: https://s3-us-west-2.amazonaws.com/buddybuild-gcloud-testlab-artifacts/584f67f6f3d6eb01000842d6/596061cb9abf950001a39153/2017-07-08_04:43:21.820060_pEUO/shamu-23-en-portrait/logcat

07-07 21:45:38.310: I/ActivityManager(891): Displayed org.mozilla.focus.debug/org.mozilla.focus.activity.MainActivity: +80ms 07-07 21:45:38.320: I/Keyboard.Facilitator(1790): onFinishInput() 07-07 21:45:38.332: D/LifecycleMonitor(17306): Lifecycle status change: org.mozilla.focus.activity.MainActivity@459b845 in: STOPPED 07-07 21:45:38.332: D/LifecycleMonitor(17306): Lifecycle status change: org.mozilla.focus.activity.MainActivity@459b845 in: DESTROYED 07-07 21:45:38.333: I/art(17306): Starting a blocking GC Explicit 07-07 21:45:38.374: I/art(17306): Explicit concurrent mark sweep GC freed 17113(1048KB) AllocSpace objects, 3(104KB) LOS objects, 33% free, 32MB/48MB, paused 343us total 41.080ms 07-07 21:45:38.377: I/art(17306): Starting a blocking GC Explicit 07-07 21:45:38.406: I/art(17306): Explicit concurrent mark sweep GC freed 1944(128KB) AllocSpace objects, 0(0B) LOS objects, 33% free, 32MB/48MB, paused 337us total 29.441ms 07-07 21:45:38.406: I/art(17306): Starting a blocking GC Explicit 07-07 21:45:38.436: I/art(17306): Explicit concurrent mark sweep GC freed 3(96B) AllocSpace objects, 0(0B) LOS objects, 33% free, 32MB/48MB, paused 383us total 29.207ms 07-07 21:45:38.454: E/StrictMode(17306): class org.mozilla.focus.activity.MainActivity; instances=3; limit=2 07-07 21:45:38.454: E/StrictMode(17306): android.os.StrictMode$InstanceCountViolation: class org.mozilla.focus.activity.MainActivity; instances=3; limit=2 07-07 21:45:38.454: E/StrictMode(17306): at android.os.StrictMode.setClassInstanceLimit(StrictMode.java:1) 07-07 21:45:38.455: W/System.err(17306): StrictMode VmPolicy violation with POLICY_DEATH; shutting down. 07-07 21:45:38.455: I/Process(17306): Sending signal. PID: 17306 SIG: 9 07-07 21:45:38.533: I/WindowState(891): WIN DEATH: Window{fa1b22d u0 org.mozilla.focus.debug/org.mozilla.focus.activity.MainActivity} 07-07 21:45:38.533: D/GraphicsStats(891): Buffer count: 5

3 instances of Main Activity? (how would it be possible?)

pocmo commented 7 years ago

Also see #660 and #664. There are at least some strict mode violations in WebView code itself. Back then we decided to keep policy death in debug builds (Otherwise we never see violations), use the log policy in Beta builds and keep it disabled in Release builds.

07-07 21:45:38.454: E/StrictMode(17306): android.os.StrictMode$InstanceCountViolation: class org.mozilla.focus.activity.MainActivity; instances=3; limit=2

Interesting. LeakCanary might be able to help finding the cause. I'll file a separate issue for that.