jhen0409 / jhen0409/react-native-debugger

Android apollo OOM error crashes app

Open
#387 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
10.4k
Forks
815
PR merge metrics
No merged PRs in 30d

Description

react-native-debugger: 0.9.10
react-native: 0.59.1
react-apollo: 2.4.13
device: android real and emulator
OS: linux

I've posted this issue in apollo-dev-tools but if anyone here has any ideas on how to solve this issue the better.

Trying to debug an Android app in emulator and real device throws this error in logcat after signing in to the app. The app just crashes and closes.
```
08-17 21:10:28.328 16082 18718 E AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher
08-17 21:10:28.328 16082 18718 E AndroidRuntime: Process:XXXXXXX, PID: 16082
08-17 21:10:28.328 16082 18718 E AndroidRuntime: java.lang.OutOfMemoryError: Failed to allocate a 103169008 byte allocation with 25165824 free bytes and 87MB until OOM, max allowed footprint 202168976, growth limit 268435456
08-17 21:10:28.328 16082 18718 E AndroidRuntime: at java.lang.StringFactory.newStringFromBytes(StringFactory.java:225)
08-17 21:10:28.328 16082 18718 E AndroidRuntime: at java.lang.StringFactory.newStringFromBytes(StringFactory.java:256)
08-17 21:10:28.328 16082 18718 E AndroidRuntime: at okio.Buffer.readString(Buffer.java:713)
08-17 21:10:28.328 16082 18718 E AndroidRuntime: at okio.Buffer.readUtf8(Buffer.java:684)
08-17 21:10:28.328 16082 18718 E AndroidRuntime: at okhttp3.internal.ws.WebSocketReader.readMessageFrame(WebSocketReader.java:219)
08-17 21:10:28.328 16082 18718 E AndroidRuntime: at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.java:105)
08-17 21:10:28.328 16082 18718 E AndroidRuntime: at okhttp3.internal.ws.RealWebSocket.loopReader(RealWebSocket.java:274)
08-17 21:10:28.328 16082 18718 E AndroidRuntime: at okhttp3.internal.ws.RealWebSocket$2.onResponse(RealWebSocket.java:214)
08-17 21:10:28.328 16082 18718 E AndroidRuntime: at okhttp3.RealCall$AsyncCall.execute(RealCall.java:206)
08-17 21:10:28.328 16082 18718 E AndroidRuntime: at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
08-17 21:10:28.328 16082 18718 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
08-17 21:10:28.328 16082 18718 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
08-17 21:10:28.328 16082 18718 E AndroidRuntime: at java.lang.Thread.run(Thread.java:764)
08-17 21:10:28.334 1695 3479 W ActivityManager: Force finishing activity
```
Can someone help me get the apollo cache back online so that I can see what is going on in the apollo cache?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.