This appears to be a recent regression as this functionality worked a few weeks ago.
Repro Steps:
1.) Start the app on an Android N device
2.) Bring up the navigation bar
3.) Press and hold the task switcher button (to enter split-screen mode)
4.) App crashes
Stack trace:
--------- beginning of crash
09-16 14:37:59.722 5234 5234 E AndroidRuntime: FATAL EXCEPTION: main
09-16 14:37:59.722 5234 5234 E AndroidRuntime: Process: org.chromium.chromoting, PID: 5234
09-16 14:37:59.722 5234 5234 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{org.chromium.chromoting/org.chromium.chromoting.Desktop}: android.view.InflateException: Binary XML file line #35: Attempt to invoke interface method 'void org.chromium.chromoting.RenderStub.setDesktopView(org.chromium.chromoting.DesktopView)' on a null object reference
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4483)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at android.app.ActivityThread.-wrap19(ActivityThread.java)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1466)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6077)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #35: Attempt to invoke interface method 'void org.chromium.chromoting.RenderStub.setDesktopView(org.chromium.chromoting.DesktopView)' on a null object reference
09-16 14:37:59.722 5234 5234 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'void org.chromium.chromoting.RenderStub.setDesktopView(org.chromium.chromoting.DesktopView)' on a null object reference
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at org.chromium.chromoting.DesktopView.onAttachedToWindow(DesktopView.java:58)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at android.view.View.dispatchAttachedToWindow(View.java:15391)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2960)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at android.view.ViewGroup.addViewInner(ViewGroup.java:4493)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at android.view.ViewGroup.addView(ViewGroup.java:4295)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at android.view.ViewGroup.addView(ViewGroup.java:4267)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:527)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:426)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:377)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:280)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at org.chromium.chromoting.Desktop.onCreate(Desktop.java:85)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6664)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2599)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4483)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at android.app.ActivityThread.-wrap19(ActivityThread.java)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1466)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6077)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
09-16 14:37:59.722 5234 5234 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
09-16 14:37:59.725 1090 1817 W ActivityManager: Force finishing activity org.chromium.chromoting/.Desktop
09-16 14:37:59.787 1090 1228 I OpenGLRenderer: Initialized EGL, version 1.4
09-16 14:37:59.787 1090 1228 D OpenGLRenderer: Swap behavior 2
Comment 1 by bugdroid1@chromium.org
, Sep 17 2016