sdk版本为: cn.leancloud:realtime-android:5.0.11
手机: 小米 6 andriod 8.0
debug 日志如下:
libc: pthread_create failed: couldn't allocate 1069056-bytes mapped space: Out of memory
2019-04-30 15:44:46.771 27125-29550/com.pure.live W/zygote: Throwing OutOfMemoryError "pthread_create (1040KB stack) failed: Try again"
2019-04-30 15:44:46.773 27125-29550/com.pure.live W/System.err: io.reactivex.exceptions.UndeliverableException: The exception could not be delivered to the consumer because it has already canceled/disposed the flow or the exception has nowhere to go to begin with. Further reading: https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0#error-handling | java.lang.OutOfMemoryError: pthread_create (1040KB stack) failed: Try again
2019-04-30 15:44:46.774 27125-29550/com.pure.live W/System.err: at io.reactivex.plugins.RxJavaPlugins.onError(RxJavaPlugins.java:367)
2019-04-30 15:44:46.774 27125-29550/com.pure.live W/System.err: at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:69)
2019-04-30 15:44:46.774 27125-29550/com.pure.live W/System.err: at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)
2019-04-30 15:44:46.774 27125-29550/com.pure.live W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
2019-04-30 15:44:46.774 27125-29550/com.pure.live W/System.err: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
2019-04-30 15:44:46.774 27125-29550/com.pure.live W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
2019-04-30 15:44:46.774 27125-29550/com.pure.live W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
2019-04-30 15:44:46.774 27125-29550/com.pure.live W/System.err: at java.lang.Thread.run(Thread.java:764)
2019-04-30 15:44:46.774 27125-29550/com.pure.live W/System.err: Caused by: java.lang.OutOfMemoryError: pthread_create (1040KB stack) failed: Try again
2019-04-30 15:44:46.774 27125-29550/com.pure.live W/System.err: at java.lang.Thread.nativeCreate(Native Method)
2019-04-30 15:44:46.774 27125-29550/com.pure.live W/System.err: at java.lang.Thread.start(Thread.java:733)
2019-04-30 15:44:46.774 27125-29550/com.pure.live W/System.err: at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:970)
2019-04-30 15:44:46.774 27125-29550/com.pure.live W/System.err: at java.util.concurrent.ThreadPoolExecutor.ensurePrestart(ThreadPoolExecutor.java:1611)
2019-04-30 15:44:46.774 27125-29550/com.pure.live W/System.err: at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:342)
2019-04-30 15:44:46.774 27125-29550/com.pure.live W/System.err: at java.util.concurrent.ScheduledThreadPoolExecutor.schedule(ScheduledThreadPoolExecutor.java:579)
2019-04-30 15:44:46.775 27125-29550/com.pure.live W/System.err: at java.util.concurrent.ScheduledThreadPoolExecutor.submit(ScheduledThreadPoolExecutor.java:680)
2019-04-30 15:44:46.775 27125-29550/com.pure.live W/System.err: at io.reactivex.internal.schedulers.NewThreadWorker.scheduleActual(NewThreadWorker.java:145)
2019-04-30 15:44:46.775 27125-29550/com.pure.live W/System.err: at io.reactivex.internal.schedulers.IoScheduler$EventLoopWorker.schedule(IoScheduler.java:232)
2019-04-30 15:44:46.775 27125-29550/com.pure.live W/System.err: at io.reactivex.Scheduler.scheduleDirect(Scheduler.java:203)
2019-04-30 15:44:46.775 27125-29550/com.pure.live W/System.err: at io.reactivex.Scheduler.scheduleDirect(Scheduler.java:179)
2019-04-30 15:44:46.775 27125-29550/com.pure.live W/System.err: at io.reactivex.internal.operators.observable.ObservableSubscribeOn.subscribeActual(ObservableSubscribeOn.java:36)
2019-04-30 15:44:46.775 27125-29550/com.pure.live W/System.err: at io.reactivex.Observable.subscribe(Observable.java:12090)
2019-04-30 15:44:46.775 27125-29550/com.pure.live W/System.err: at io.reactivex.internal.operators.observable.ObservableObserveOn.subscribeActual(ObservableObserveOn.java:45)
2019-04-30 15:44:46.775 27125-29550/com.pure.live W/System.err: at io.reactivex.Observable.subscribe(Observable.java:12090)
2019-04-30 15:44:46.775 27125-29550/com.pure.live W/System.err: at io.reactivex.internal.operators.observable.ObservableMap.subscribeActual(ObservableMap.java:32)
2019-04-30 15:44:46.775 27125-29550/com.pure.live W/System.err: at io.reactivex.Observable.subscribe(Observable.java:12090)
2019-04-30 15:44:46.775 27125-29550/com.pure.live W/System.err: at io.reactivex.internal.operators.observable.ObservableMap.subscribeActual(ObservableMap.java:32)
2019-04-30 15:44:46.775 27125-29550/com.pure.live W/System.err: at io.reactivex.Observable.subscribe(Observable.java:12090)
2019-04-30 15:44:46.775 27125-29550/com.pure.live W/System.err: at io.reactivex.Observable.blockingFirst(Observable.java:5046)
2019-04-30 15:44:46.775 27125-29550/com.pure.live W/System.err: at cn.leancloud.core.PaasClient.getStorageClient(PaasClient.java:68)
2019-04-30 15:44:46.775 27125-29550/com.pure.live W/System.err: at cn.leancloud.AVUser.getCurrentUser(AVUser.java:638)
2019-04-30 15:44:46.775 27125-29550/com.pure.live W/System.err: at cn.leancloud.AVUser.getCurrentUser(AVUser.java:634)
2019-04-30 15:44:46.775 27125-29550/com.pure.live W/System.err: at cn.leancloud.core.RequestPaddingInterceptor.intercept(RequestPaddingInterceptor.java:25)
2019-04-30 15:44:46.775 27125-29550/com.pure.live W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
2019-04-30 15:44:46.775 27125-29550/com.pure.live W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
2019-04-30 15:44:46.775 27125-29550/com.pure.live W/System.err: at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:254)
2019-04-30 15:44:46.776 27125-29550/com.pure.live W/System.err: at okhttp3.RealCall.execute(RealCall.java:92)
2019-04-30 15:44:46.776 27125-29550/com.pure.live W/System.err: at retrofit2.OkHttpCall.execute(OkHttpCall.java:186)
2019-04-30 15:44:46.776 27125-29550/com.pure.live W/System.err: at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:45)
2019-04-30 15:44:46.776 27125-29550/com.pure.live W/System.err: at io.reactivex.Observable.subscribe(Observable.java:12090)
2019-04-30 15:44:46.776 27125-29550/com.pure.live W/System.err: at retrofit2.adapter.rxjava2.BodyObservable.subscribeActual(BodyObservable.java:34)
2019-04-30 15:44:46.776 27125-29550/com.pure.live W/System.err: at io.reactivex.Observable.subscribe(Observable.java:12090)
2019-04-30 15:44:46.776 27125-29550/com.pure.live W/System.err: at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96)
2019-04-30 15:44:46.776 27125-29550/com.pure.live W/System.err: at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:578)
2019-04-30 15:44:46.776 27125-29550/com.pure.live W/System.err: at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)
2019-04-30 15:44:46.776 27125-29550/com.pure.live W/System.err: ... 6 more