robs23 / TestZXing-master

Cross-platform app using ZXing barcode scanner library
0 stars 0 forks source link

Fix java.lang.OutOfMemoryError: Failed to allocate a 8208 byte allocation with 1896 free bytes and 1896B until OOM, target footprint 536870912, growth limit 536870912 in okio.Segment.<init> (Segment.java:63) #59

Open robs23 opened 3 years ago

robs23 commented 3 years ago

Version 1.3.4(1)

Stacktrace

okio.Segment. (Segment.java:63);

okio.SegmentPool.take (SegmentPool.java:48);

okio.Buffer.writableSegment (Buffer.java:1169);

okio.Buffer.write (Buffer.java:989);

okio.RealBufferedSink.write (RealBufferedSink.java:90);

okhttp3.RequestBody$2.writeTo (RequestBody.java:98);

okhttp3.internal.http.CallServerInterceptor.intercept (CallServerInterceptor.java:62);

okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:92);

okhttp3.internal.connection.ConnectInterceptor.intercept (ConnectInterceptor.java:45);

okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:92);

okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:67);

okhttp3.internal.cache.CacheInterceptor.intercept (CacheInterceptor.java:93);

okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:92);

okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:67);

okhttp3.internal.http.BridgeInterceptor.intercept (BridgeInterceptor.java:93);

okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:92);

okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept (RetryAndFollowUpInterceptor.java:120);

okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:92);

okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:67);

okhttp3.RealCall.getResponseWithInterceptorChain (RealCall.java:185);

okhttp3.RealCall$AsyncCall.execute (RealCall.java:135);

okhttp3.internal.NamedRunnable.run (NamedRunnable.java:32);

Reason

java.lang.OutOfMemoryError: Failed to allocate a 8208 byte allocation with 1896 free bytes and 1896B until OOM, target footprint 536870912, growth limit 536870912

Link to App Center