FireBase - java.lang.OutOfMemoryError

时间:2016-02-02 00:53:45

标签: android firebase firebase-realtime-database

我有Android FireBase问题。我收集了base64编码的图像,大约200MB。我用一台设备推出图像,可以在网站上看到它们。现在,我尝试使用f.addValueEventListener(handler)检索其他设备。我的处理程序有一个onDataChange侦听器,等待获取数据后一分钟发生错误。它永远不会返回,我收到此错误:

02-01 17:32:04.638 24146-24220/thor.bluefinllc.com.bluefinsurveyroof E/AndroidRuntime: FATAL EXCEPTION: TubeSockReader-3
   Process: thor.bluefinllc.com.bluefinsurveyroof, PID: 24146
   java.lang.OutOfMemoryError: Failed to allocate a 21856 byte allocation with 1888 free bytes and 1888B until OOM
       at java.nio.CharBuffer.put(CharBuffer.java:501)
       at java.nio.charset.CharsetDecoder.allocateMore(CharsetDecoder.java:228)
       at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:188)
       at com.firebase.tubesock.MessageBuilderFactory$TextBuilder.decodeString(MessageBuilderFactory.java:109)
       at com.firebase.tubesock.MessageBuilderFactory$TextBuilder.appendBytes(MessageBuilderFactory.java:86)
       at com.firebase.tubesock.WebSocketReceiver.appendBytes(WebSocketReceiver.java:104)
       at com.firebase.tubesock.WebSocketReceiver.run(WebSocketReceiver.java:69)
       at com.firebase.tubesock.WebSocket.runReader(WebSocket.java:372)
       at com.firebase.tubesock.WebSocket.access$000(WebSocket.java:30)
       at com.firebase.tubesock.WebSocket$2.run(WebSocket.java:108)

0 个答案:

没有答案