title: Failed to initialize display event receiver
body: <p>I have made an app which periodically starts a service that retrieves information from a server.  </p>
  
  <p>I use an AlarmManager to schedule the service.<br>
  This works fine and the app receives the alarm every 30 min.<br>
  The app works fine, but after a full night of inactivity -and I start the app, it crashes with the error: 'Failed to initialize display event receiver'.  </p>
  
  <p>Else this works perfectly.  </p>
  
  <p>I searched this problem for a long time and found others with the same problem, but no solution, yet.</p>
  
  <pre><code>Process: it.unipi.iet.portolan.traceroute, PID: 13092
  java.lang.RuntimeException: Failed to initialize display event receiver.  status=-2147483648
  at android.view.DisplayEventReceiver.nativeInit(Native Method)
  at android.view.DisplayEventReceiver.&lt;init&gt;(DisplayEventReceiver.java:61)
  at android.view.Choreographer$FrameDisplayEventReceiver.&lt;init&gt;(Choreographer.java:695)
  at android.view.Choreographer.&lt;init&gt;(Choreographer.java:169)
  at android.view.Choreographer.&lt;init&gt;(Choreographer.java:72)
  at android.view.Choreographer$1.initialValue(Choreographer.java:98)
  at android.view.Choreographer$1.initialValue(Choreographer.java:91)
  at java.lang.ThreadLocal$Values.getAfterMiss(ThreadLocal.java:430)
  at java.lang.ThreadLocal.get(ThreadLocal.java:65)
  at android.view.Choreographer.getInstance(Choreographer.java:194)
  at android.view.ViewRootImpl.&lt;init&gt;(ViewRootImpl.java:370)
  at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:248)
  at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69)
  at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2871)
  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2271)
  at android.app.ActivityThread.access$800(ActivityThread.java:145)
  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1206)
  at android.os.Handler.dispatchMessage(Handler.java:102)
  at android.os.Looper.loop(Looper.java:136)
  at android.app.ActivityThread.main(ActivityThread.java:5141)
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:515)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:611)
  at dalvik.system.NativeStart.main(Native Method)
  </code></pre>