java.lang.OutOfMemoryError: Could not allocate JNI Env
ravendmaster opened this issue · 2 comments
Android 6.0, use with callback API in Android foreground service.
The problem manifests itself sporadically, with low ( probably zero ) bandwidth 2G-3G cellular capabilities. Thank you!
java.lang.OutOfMemoryError: Could not allocate JNI Env
at java.lang.Thread.nativeCreate(Native Method)
at java.lang.Thread.start(Thread.java:1063)
at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:921)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1339)
at org.fusesource.hawtdispatch.transport.TcpTransport._start(TcpTransport.java:449)
at org.fusesource.hawtdispatch.transport.ServiceBase$2.run(ServiceBase.java:94)
at org.fusesource.hawtdispatch.internal.SerialDispatchQueue.run(SerialDispatchQueue.java:100)
at org.fusesource.hawtdispatch.internal.pool.SimpleThread.run(SimpleThread.java:77)