百度地图报错 java.lang.OutOfMemoryError: pthread_create (1040KB stack) failed: Try again

报错信息如下

LocUploadThreadManager(14822)

java.lang.OutOfMemoryError

pthread_create (1040KB stack) failed: Try again

解析原始
1 java.lang.Thread.nativeCreate(Native Method)
2 java.lang.Thread.start(Thread.java:733)
3 android.app.SharedPreferencesImpl.startLoadFromDisk(SharedPreferencesImpl.java:119)
4 android.app.SharedPreferencesImpl.startReloadIfChangedUnexpectedly(SharedPreferencesImpl.java:185)
5 android.app.ContextImpl.getSharedPreferences(ContextImpl.java:401)
6 android.app.ContextImpl.getSharedPreferences(ContextImpl.java:372)
7 android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java:167)
8 com.baidu.location.a.d.h(Unknown Source:33)
9 com.baidu.location.a.d.b(Unknown Source:3)
10 com.baidu.location.a.d.a(Unknown Source:0)
11 com.baidu.location.a.e.run(Unknown Source:4)
12 android.os.Handler.handleCallback(Handler.java:790)
13 android.os.Handler.dispatchMessage(Handler.java:99)
14 android.os.Looper.loop(Looper.java:164)
15 android.os.HandlerThread.run(HandlerThread.java:65)

参考:
https://blog.csdn.net/cui130/article/details/99866928

不可思议的OOM

SharedPreference进程共享及性能优化

SharedPreferences 用法详解

你可能感兴趣的:(百度地图报错 java.lang.OutOfMemoryError: pthread_create (1040KB stack) failed: Try again)