[Moto G Original Android Development] dr4cul4:
Stack overflow?

Hi,

I recently discovered that I can't check my email in Inbox and Gmail.. Tried to google for it from home screen, but... no results (i mean literally nothing appeared on screen except search bar). I've tested my other phone with same apps, but stock Android and all works fine. So I've used logcat and started to watch for errors on my private falcon.

Here are my findings:

- Problem is somehow related to WebView (eather build in or from play store), when opening emails, searching for things (from Google Now), login by facebook windows (should use webview to display login request), but id doesn't happen in Chrome or any other browser (except when popup widows with html content should appear, again login by fb as an example or open link to install app in play store)

- Exception that is thrown is definitely a stack overflow and it's origin is in really badly written method, but it's only an effect not a cause of the issue.

So what I see in logcat looks like this:

12-17 17:47:42.916 9859-9874/com.android.webview:sandboxed_process0 W/System.err: at android.view.WindowManagerGlobal.getWindowManagerService(WindowManagerGlobal.java:170)
12-17 17:47:42.916 9859-9874/com.android.webview:sandboxed_process0 W/System.err: at android.view.WindowManagerGlobal.getWindowManagerService(WindowManagerGlobal.java:170)
.... (this goes on for thausands of lines)
12-17 17:47:43.756 9859-9874/com.android.webview:sandboxed_process0 W/System.err: at android.view.WindowManagerGlobal.getWindowManagerService(WindowManagerGlobal.java:170)
12-17 17:47:43.756 9859-9874/com.android.webview:sandboxed_process0 W/System.err: at android.view.WindowManagerGlobal.getWindowManagerService(WindowManagerGlobal.java:170)
12-17 17:47:43.756 9859-9874/com.android.webview:sandboxed_process0 W/System.err: at android.view.WindowManagerGlobal.getWindowManagerService(WindowManagerGlobal.java:170)
12-17 17:47:43.756 9859-9874/com.android.webview:sandboxed_process0 W/System.err: at android.view.ViewConfiguration.<init>(ViewConfiguration.java:318)
12-17 17:47:43.756 9859-9874/com.android.webview:sandboxed_process0 W/System.err: at android.view.ViewConfiguration.get(ViewConfiguration.java:369)
12-17 17:47:43.756 9859-9874/com.android.webview:sandboxed_process0 W/System.err: at org.chromium.ui.gfx.ViewConfigurationHelper.<init>(ViewConfigurationHelper.java:36)
12-17 17:47:43.756 9859-9874/com.android.webview:sandboxed_process0 W/System.err: at org.chromium.ui.gfx.ViewConfigurationHelper.createWithListener(ViewConfigurationHelper.java:139)
12-17 17:47:43.757 9859-9874/com.android.webview:sandboxed_process0 W/System.err: at org.chromium.content.app.ContentMain.nativeStart(Native Method)
12-17 17:47:43.757 9859-9874/com.android.webview:sandboxed_process0 W/System.err: at org.chromium.content.app.ContentMain.start(ContentMain.java:25)
12-17 17:47:43.757 9859-9874/com.android.webview:sandboxed_process0 W/System.err: at org.chromium.content.app.ChildProcessService$2.run(ChildProcessService.java:199)
12-17 17:47:43.757 9859-9874/com.android.webview:sandboxed_process0 W/System.err: at java.lang.Thread.run(Thread.java:761)

Now the code that does this exception looks like this (https://github.com/android/platform.../java/android/view/WindowManagerGlobal.java):

public static IWindowManager getWindowManagerService() {
synchronized (WindowManagerGlobal.class) {
if (sWindowManagerService == null) {
sWindowManagerService = IWindowManager.Stub.asInterface(
ServiceManager.getService("window"));
try {
sWindowManagerService = getWindowManagerService(); // LINE: 170
ValueAnimator.setDurationScale(sWindowManagerService.getCurrentAnimatorScale());
} catch (RemoteException e) {
throw e.rethrowFromSystemServer();
}
}
return sWindowManagerService;
}
}

I don't know much about this part of android code, but certainly doing checks by recurrence is not the best idea (which blown up in my case)

Now I don't know where to search for solution. I just want my Gmail back :P

PS: I've noticed some native code crash later in the logcat (maybe related), logcat is attached to this post. and starts when I try to open email in Inbox

Edit:

Noticed (and verified) at version 14.1-20161214-NIGHTLY-falcon but I think this was happening from a while (at least 2 weeks). Current version 14.1-20161217-NIGHTLY-falcon (logs are from this version)