From: mtklein Date: Fri, 7 Aug 2015 13:55:31 +0000 (-0700) Subject: This iOS crash makes little sense to me. Add some debugging. X-Git-Tag: submit/tizen/20180928.044319~1364 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=30e4d75c3aebf49b179c265a91adbb6012970d2b;p=platform%2Fupstream%2FlibSkiaSharp.git This iOS crash makes little sense to me. Add some debugging. We called new float[...]. The pointer returned should be aligned for float writes. See https://uberchromegw.corp.google.com/i/client.skia/builders/Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Release BUG=skia: Review URL: https://codereview.chromium.org/1270403006 --- diff --git a/src/gpu/GrTestUtils.cpp b/src/gpu/GrTestUtils.cpp index de840cca91..13b4b19fb6 100644 --- a/src/gpu/GrTestUtils.cpp +++ b/src/gpu/GrTestUtils.cpp @@ -248,6 +248,9 @@ GrStrokeInfo TestStrokeInfo(SkRandom* random) { dashInfo.fIntervals = intervals.get(); SkScalar sum = 0; for (int i = 0; i < dashInfo.fCount; i++) { + #if defined(SK_BUILD_FOR_IOS) + SkDebugf("&dashInfo.fIntervals[%d] = %p\n", i, &dashInfo.fIntervals[i]); + #endif dashInfo.fIntervals[i] = random->nextRangeScalar(SkDoubleToScalar(0.01), SkDoubleToScalar(10.0)); sum += dashInfo.fIntervals[i];