title: Android Application crashes at Uncaught exception in Firebase runloop (3.0.0)
body: <p>I am developing an application in which i am using Firebase database. I need to retrieve some information from the database but the <code>addValueEventListener</code> does not fire at all and after couple of minutes my application crashes with following error
   <code>E/AndroidRuntime: FATAL EXCEPTION: main
                    Process: shareanddrive.net.net23.myapp, PID: 3317
                    java.lang.RuntimeException: Uncaught exception in Firebase runloop (3.0.0). Please report to support@firebase.com
                        at com.google.android.gms.internal.zzagf$1$1.run(Unknown Source)
                        at android.os.Handler.handleCallback(Handler.java:751)
                        at android.os.Handler.dispatchMessage(Handler.java:95)
                        at android.os.Looper.loop(Looper.java:154)
                        at android.app.ActivityThread.main(ActivityThread.java:6077)
                        at java.lang.reflect.Method.invoke(Native Method)
                        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
                        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
                     Caused by: java.lang.OutOfMemoryError: OutOfMemoryError thrown while trying to throw OutOfMemoryError; no stack trace available</code></p>
  
  <p>However <code>adValuEventListener</code> works in previous activity but as i come second activity it stops working. I have checked the reference it is correct. My code for the retrieval in second activity is:</p>
  
  <pre><code>adsviewReference.addValueEventListener(new ValueEventListener() {
          @Override
          public void onDataChange(DataSnapshot dataSnapshot) {
              textView.append("on add value datachange");
  
              }
  
          @Override
          public void onCancelled(DatabaseError databaseError) {
              textView.setText("Failed ");
          }
      });
  </code></pre>
  
  <p>Neither of the function from <code>onDataChanged</code> or <code>onCancelled</code> fires.
  Please help in this.</p>