summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2023-03-06 15:04:18 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-03-06 15:04:18 +0000
commita886856046263f8f6d4731811c51212c1ad934b5 (patch)
tree0f82d3ef53f50d7baea72ecc310991aee50e8330
parent134ad28293790df64178fb39e160692fb6817c05 (diff)
parent61d6a90d258c761c84bd99895550f3d74c5f560f (diff)
Merge "[Debug][Font] We need know which font leads to system_server crash."
-rw-r--r--libs/hwui/jni/fonts/Font.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/hwui/jni/fonts/Font.cpp b/libs/hwui/jni/fonts/Font.cpp
index 09be630dc741..d78df3dca3b1 100644
--- a/libs/hwui/jni/fonts/Font.cpp
+++ b/libs/hwui/jni/fonts/Font.cpp
@@ -105,8 +105,9 @@ static jlong Font_Builder_build(JNIEnv* env, jobject clazz, jlong builderPtr, jo
std::move(data), std::string_view(fontPath.c_str(), fontPath.size()),
fontPtr, fontSize, ttcIndex, builder->axes);
if (minikinFont == nullptr) {
- jniThrowException(env, "java/lang/IllegalArgumentException",
- "Failed to create internal object. maybe invalid font data.");
+ jniThrowExceptionFmt(env, "java/lang/IllegalArgumentException",
+ "Failed to create internal object. maybe invalid font data. filePath %s",
+ fontPath.c_str());
return 0;
}
uint32_t localeListId = minikin::registerLocaleList(langTagStr.c_str());