From 9d494b1557f4637754ff802ef27fb1bda7ffcd05 Mon Sep 17 00:00:00 2001 From: xmf1995 Date: Thu, 14 Aug 2025 11:05:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BB=B4=E6=B5=8B=E4=BF=A1?= =?UTF-8?q?=E6=81=AF&=E6=8B=89=E8=B5=B7sa=E8=B6=85=E6=97=B6=E6=94=B9?= =?UTF-8?q?=E4=B8=BA4s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xmf1995 --- .../ohos_glue/base/bridge/ark_web_bridge_helper.cpp | 6 ++++-- sa/src/app_fwk_update_client.cpp | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ohos_interface/ohos_glue/base/bridge/ark_web_bridge_helper.cpp b/ohos_interface/ohos_glue/base/bridge/ark_web_bridge_helper.cpp index 6499c40ea..adf7c9f8d 100644 --- a/ohos_interface/ohos_glue/base/bridge/ark_web_bridge_helper.cpp +++ b/ohos_interface/ohos_glue/base/bridge/ark_web_bridge_helper.cpp @@ -39,7 +39,8 @@ bool ArkWebBridgeHelper::LoadLibFile(int openMode, const std::string& libFilePat void* libFileHandler = ::dlopen(libFilePath.c_str(), openMode); if (!libFileHandler) { if (isPrintLog) { - ARK_WEB_BRIDGE_ERROR_LOG("failed to load lib file %{public}s", libFilePath.c_str()); + ARK_WEB_BRIDGE_ERROR_LOG("failed to load lib file %{public}s,errno is %{public}d(%{public}s)", + libFilePath.c_str(), errno, dlerror()); } return false; @@ -69,7 +70,8 @@ bool ArkWebBridgeHelper::LoadLibFile(int openMode, const std::string& libNsName, if (!libFileHandler) { if (isPrintLog) { ARK_WEB_BRIDGE_ERROR_LOG( - "failed to load lib file %{public}s/%{public}s", libDirPath.c_str(), libFileName.c_str()); + "failed to load lib file %{public}s/%{public}s,errno is %{public}d(%{public}s)", + libDirPath.c_str(), libFileName.c_str(), errno, dlerror()); } return false; diff --git a/sa/src/app_fwk_update_client.cpp b/sa/src/app_fwk_update_client.cpp index c0304985c..3267f4d92 100644 --- a/sa/src/app_fwk_update_client.cpp +++ b/sa/src/app_fwk_update_client.cpp @@ -35,7 +35,7 @@ namespace OHOS::NWeb { namespace { -const int LOAD_SA_TIMEOUT_MS = 2 * 1000; +const int LOAD_SA_TIMEOUT_MS = 4 * 1000; const int FOUNDATION_UID = 5523; const std::set ARK_WEB_DEFAULT_BUNDLE_NAME_SET = { "com.ohos.nweb", "com.ohos.arkwebcore" }; } // namespace -- Gitee