am 67e2aab1: am b7412897: Merge "Fix issue #21254610: StrictMode uses Log.wtf which crashes apps on L+" into mnc-dev
* commit '67e2aab109366fbb146d499f26c1d76c5c45bc52': Fix issue #21254610: StrictMode uses Log.wtf which crashes apps on L+
This commit is contained in:
@@ -1919,9 +1919,9 @@ public final class StrictMode {
|
|||||||
for (int i = 0; i < numViolations; ++i) {
|
for (int i = 0; i < numViolations; ++i) {
|
||||||
if (LOG_V) Log.d(TAG, "strict mode violation stacks read from binder call. i=" + i);
|
if (LOG_V) Log.d(TAG, "strict mode violation stacks read from binder call. i=" + i);
|
||||||
ViolationInfo info = new ViolationInfo(p, !currentlyGathering);
|
ViolationInfo info = new ViolationInfo(p, !currentlyGathering);
|
||||||
if (info.crashInfo.stackTrace != null && info.crashInfo.stackTrace.length() > 10000) {
|
if (info.crashInfo.stackTrace != null && info.crashInfo.stackTrace.length() > 30000) {
|
||||||
String front = info.crashInfo.stackTrace.substring(256);
|
String front = info.crashInfo.stackTrace.substring(256);
|
||||||
// 10000 characters is way too large for this to be any sane kind of
|
// 30000 characters is way too large for this to be any sane kind of
|
||||||
// strict mode collection of stacks. We've had a problem where we leave
|
// strict mode collection of stacks. We've had a problem where we leave
|
||||||
// strict mode violations associated with the thread, and it keeps tacking
|
// strict mode violations associated with the thread, and it keeps tacking
|
||||||
// more and more stacks on to the violations. Looks like we're in this casse,
|
// more and more stacks on to the violations. Looks like we're in this casse,
|
||||||
|
|||||||
Reference in New Issue
Block a user