HarmonyOS 鸿蒙Next api 11 引入动态共享包<闪退>
HarmonyOS 鸿蒙Next api 11 引入动态共享包<闪退>
sdk版本:OpenHarmoney
api: 11
操作系统:OpenHarmoney
新建一个OpenHarmoney项目,在entry中引入动态共享包,运行程序"闪退",正常引入了,编译也没问题
报错如下:ResolveModuleWithMerge:584 cannot find record ‘com.example.myapplication11111/library/ets/utils/GlobalContext’, please check the request path.’/data/storage/el1/bundle/library/ets/modules.abc’.
完整log
08-05 17:00:29.552 1770-1770 C02c11/APPSPAWN pid-1770 I [appspawn_process.c:192]ClearEnvironment id 9
08-05 17:00:29.552 1770-1770 C02c02/PARAM pid-1770 I [param_request.c:324]ResetParamSecurityLabel g_clientFd: 20
08-05 17:00:29.555 1770-1770 C02c11/APPSPAWN pid-1770 E [sandbox_utils.cpp:1210]Not device type default
08-05 17:00:29.563 1770-1770 C02c11/APPSPAWN pid-1770 I [sandbox_utils.cpp:163]errno is: 2, bind mount /system/data to /mnt/sandbox/100/com.example.myapplication11111/system/data
08-05 17:00:29.565 1770-1770 C02c11/APPSPAWN pid-1770 I [sandbox_utils.cpp:163]errno is: 2, bind mount /system/resources to /mnt/sandbox/100/com.example.myapplication11111/system/resources
08-05 17:00:29.565 1770-1770 C02c11/APPSPAWN pid-1770 I [sandbox_utils.cpp:163]errno is: 2, bind mount /vendor/etc/hiai to /mnt/sandbox/100/com.example.myapplication11111/vendor/etc/hiai
08-05 17:00:29.565 1770-1770 C02c11/APPSPAWN pid-1770 I [sandbox_utils.cpp:163]errno is: 2, bind mount /vendor/etc/vulkan to /mnt/sandbox/100/com.example.myapplication11111/vendor/etc/vulkan
08-05 17:00:29.580 1770-1770 C02c11/APPSPAWN pid-1770 I [sandbox_utils.cpp:163]errno is: 2, bind mount /data/local/ark-cache/com.example.myapplication11111 to /mnt/sandbox/100/com.example.myapplication11111/data/storage/ark-cache
08-05 17:00:29.582 1770-1770 C02c11/APPSPAWN pid-1770 I [sandbox_utils.cpp:163]errno is: 2, bind mount /data/service/el1/public/themes/100/a/app to /mnt/sandbox/100/com.example.myapplication11111/data/themes/a/app
08-05 17:00:29.583 1770-1770 C02c11/APPSPAWN pid-1770 I [sandbox_utils.cpp:163]errno is: 2, bind mount /data/service/el1/public/themes/100/b/app to /mnt/sandbox/100/com.example.myapplication11111/data/themes/b/app
08-05 17:00:29.583 1770-1770 C02c11/APPSPAWN pid-1770 E [sandbox_utils.cpp:168]errno is: 13, private mount to /mnt/sandbox/100/com.example.myapplication11111/data/utd failed
08-05 17:00:29.584 1770-1770 C02c11/APPSPAWN pid-1770 E [sandbox_utils.cpp:168]errno is: 13, private mount to /mnt/sandbox/100/com.example.myapplication11111/data/certificates/user_cacerts failed
08-05 17:00:29.587 1770-1770 C02c11/APPSPAWN pid-1770 I [sandbox_utils.cpp:163]errno is: 2, bind mount /system/app/SystemResources to /mnt/sandbox/100/com.example.myapplication11111/data/storage/el1/bundle/systemResources
08-05 17:00:29.587 1770-1770 C02c11/APPSPAWN pid-1770 I [sandbox_utils.cpp:163]errno is: 2, bind mount /data/app/el1/bundle/public/ohos.global.systemres.overlay to /mnt/sandbox/100/com.example.myapplication11111/data/storage/el1/bundle/ohos.global.systemres.overlay
08-05 17:00:29.597 1770-1770 C02c11/APPSPAWN pid-1770 I [appspawn_mount_permission.cpp:62]LoadAppSandboxConfig /system/etc/sandbox/appdata-sandbox.json
08-05 17:00:29.600 1770-1770 C02c11/APPSPAWN pid-1770 I [appspawn_mount_permission.cpp:38]LoadPermissionNames ohos.permission.ACCESS_BUNDLE_DIR
08-05 17:00:29.600 1770-1770 C02c11/APPSPAWN pid-1770 I [appspawn_mount_permission.cpp:38]LoadPermissionNames ohos.permission.ACTIVATE_THEME_PACKAGE
08-05 17:00:29.601 1770-1770 C02c11/APPSPAWN pid-1770 I [appspawn_mount_permission.cpp:38]LoadPermissionNames ohos.permission.FILE_ACCESS_MANAGER
08-05 17:00:29.601 1770-1770 C02c11/APPSPAWN pid-1770 I [appspawn_mount_permission.cpp:38]LoadPermissionNames ohos.permission.FILE_CROSS_APP
08-05 17:00:29.601 1770-1770 C02c11/APPSPAWN pid-1770 I [appspawn_mount_permission.cpp:38]LoadPermissionNames ohos.permission.GET_WALLPAPER
08-05 17:00:29.601 1770-1770 C02c11/APPSPAWN pid-1770 I [appspawn_mount_permission.cpp:38]LoadPermissionNames ohos.permission.READ_IMAGEVIDEO
08-05 17:00:29.601 1770-1770 C02c11/APPSPAWN pid-1770 I [appspawn_mount_permission.cpp:73]LoadPermissionNames size: 6
08-05 17:00:29.602 1770-1770 C02c11/APPSPAWN pid-1770 I [appspawn_mount_permission.cpp:81]GetMountPermissionList LoadPermissionNames
08-05 17:00:29.609 1770-1770 C02c11/APPSPAWN pid-1770 I [appspawn_adapter.cpp:140]Success to set app seccomp filter
08-05 17:00:29.611 1770-1770 C03f00/MUSL-LDSO pid-1770 E dlopen_impl load library header failed for /system/lib/libsec_comp_client_enhance.z.so
08-05 17:00:29.611 1770-1770 C05a05/SecCompEnhanceAdapter pid-1770 E [InitEnhanceHandler]:init enhance lib /system/lib/libsec_comp_client_enhance.z.so failed, error Error loading shared library /system/lib/libsec_comp_client_enhance.z.so: No such file or directory
08-05 17:00:29.611 1770-1770 C02c11/APPSPAWN pid-1770 I [appspawn_service.c:676]NotifyResToParent com.example.myapplication11111 fd 25 result 0
08-05 17:00:29.612 1770-1770 C02d0b/HICHECKER pid-1770 I hichecker processName is com.example.myapplication11111
08-05 17:00:29.612 1770-1770 C02d0b/HICHECKER pid-1770 I hichecker param is empty.
08-05 17:00:29.614 1770-1770 C02c11/APPSPAWN pid-1770 I [appspawn_ace.cpp:175]LoadExtendLib: RunChildProcessor
08-05 17:00:29.614 1770-1770 C02d33/HitraceMeter pid-1770 E pid[1770] first get g_tagsProperty: 0
08-05 17:00:29.617 1770-1770 C02d06/XCollie pid-1770 I Add periodical task AppkitWatchdog to watchdog.
08-05 17:00:29.617 1770-1770 C02d06/XCollie pid-1770 I Watchdog is running!
08-05 17:00:29.617 1770-1771 C057c1/IPCWorkThread pid-1770 I ThreadHandler 60: proto:0 policy:1 name:OS_IPC_0_1771
08-05 17:00:29.620 1770-1774 C057c1/IPCWorkThread pid-1770 I ThreadHandler 60: proto:0 policy:0 name:OS_IPC_1_1774
08-05 17:00:29.622 1770-1770 C057c2/IPCObjectProxy pid-1770 I AddDeathRecipient 393: success, handle:1 desc:ohos.appexecfwk.AppMgr
08-05 17:00:29.624 1770-1773 C02d06/XCollie pid-1770 I Watchdog is running in thread(1773)!
08-05 17:00:29.624 1770-1773 C02d06/XCollie pid-1770 I Watchdog Set Thread Info Callback
08-05 17:00:29.643 1770-1775 C057c1/IPCWorkThread pid-1770 I ThreadHandler 60: proto:0 policy:0 name:OS_IPC_2_1775
08-05 17:00:29.643 1770-1776 C057c1/IPCWorkThread pid-1770 I ThreadHandler 60: proto:0 policy:0 name:OS_IPC_3_1776
08-05 17:00:29.645 1770-1770 C057c2/IPCObjectProxy pid-1770 I AddDeathRecipient 393: success, handle:3 desc:ohos.appexecfwk.BundleMgr
08-05 17:00:29.648 1770-1770 C03900/ACE_COMPATIBLITY pid-1770 I [61]AceForwardCompatibility [com.example.myapplication11111] force:1 newpipe:1
08-05 17:00:29.650 1770-1770 C01120/BundleMgrService pid-1770 W [bundle_mgr_proxy.cpp(GetParcelableInfosWithErrCode):4070] GetParcelableInfosWithErrCode ErrCode : 0
08-05 17:00:29.650 1770-1770 C01309/Runtime pid-1770 W [js_runtime.cpp(SetAppLibPath:796)]There’s no library path need to set.
08-05 17:00:29.651 1770-1770 C03f00/ArkCompiler pid-1770 I [ecmascript] asmint: 0, aot: 1, bundle name: com.example.myapplication11111
08-05 17:00:29.656 1770-1781 C02d13/HDC_LOG pid-1770 I ConnectJpid send pid:1770, pp:com.example.myapplication11111, isDebug:1, msglen:42
08-05 17:00:29.659 1770-1770 C03f00/ArkCompiler pid-1770 I StartServer, componentName = <private>
08-05 17:00:29.660 1770-1770 C01309/Runtime pid-1770 W [connect_server_manager.cpp(StoreDebuggerInfo:158)]ConnectServerManager::StoreDebuggerInfo not Connected
08-05 17:00:29.660 1770-1770 C03f00/ArkCompiler pid-1770 I [ecmascript] JSNApi::NotifyDebugMode, tid = 1770, debugApp = 1, isDebugMode = 0, instanceId = 0
08-05 17:00:29.664 1770-1770 C03f00/ArkCompiler pid-1770 I [ecmascript] JSNApi::StartDebuggerForOldProcess, isDebugMode = 0, instanceId = 0
08-05 17:00:29.664 1770-1770 C03f00/ArkCompiler pid-1770 I StartDebug, componentName = <private>, isDebugMode = <private>, instanceId = <private>
08-05 17:00:29.688 1770-1784 C03f00/ArkCompiler pid-1770 I HandleClient
08-05 17:00:29.688 1770-1784 C03f00/ArkCompiler pid-1770 I WsServer RunServer fport localabstract: 1770PandaDebugger
08-05 17:00:29.689 1770-1770 C057c2/IPCObjectProxy pid-1770 I AddDeathRecipient 393: success, handle:4 desc:ohos.rosen.RenderService
08-05 17:00:29.706 1770-1770 C01305/Appkit pid-1770 E [js_ability_stage.cpp(Init:144)]stage is nullptr
08-05 17:00:29.706 1770-1770 C01305/Appkit pid-1770 W [js_ability_stage.cpp(OnCreate:188)]Not found AbilityStage.js
08-05 17:00:29.707 1770-1791 C04500/NWEB pid-1770 I TryPreReadLib<688>: first time startup, need to wait until the nweb init stage
08-05 17:00:29.708 1770-1770 C057c2/IPCObjectProxy pid-1770 I AddDeathRecipient 393: success, handle:7 desc:OHOS.IDisplayManager
08-05 17:00:29.709 1770-1770 C01304/AbilityManagerService pid-1770 E [app_recovery.cpp(AddAbility:119)]AppRecovery not enabled.
08-05 17:00:29.709 1770-1790 C057c2/IPCObjectProxy pid-1770 I AddDeathRecipient 393: success, handle:8 desc:ohos.accountfwk.IAccount
08-05 17:00:29.710 1770-1779 C03f00/ArkCompiler pid-1770 I [ecmascript] Save profiler to file:/data/storage/ark-profile/rt_entry.ap
08-05 17:00:29.710 1770-1790 C057c2/IPCObjectProxy pid-1770 I AddDeathRecipient 393: success, handle:9 desc:ohos.accountfwk.IOsAccount
08-05 17:00:29.711 1770-1770 C03f00/ArkCompiler pid-1770 I [ecmascript] start to execute module buffer with secure memory: /data/storage/el1/bundle/entry/ets/entryability/EntryAbility.abc
08-05 17:00:29.717 1770-1770 C03f00/ArkCompiler pid-1770 E [ecmascript] Secure memory check: xpm proc does not exist, do not check secure memory anymore.
08-05 17:00:29.726 1770-1770 C03f00/ArkCompiler pid-1770 E [ecmascript] Secure memory check: xpm proc does not exist, do not check secure memory anymore.
08-05 17:00:29.726 1770-1770 C03f00/ArkCompiler pid-1770 E [default] ResolveModuleWithMerge:584 cannot find record ‘com.example.myapplication11111/library/ets/utils/GlobalContext’, please check the request path.’/data/storage/el1/bundle/library/ets/modules.abc’.
08-05 17:00:29.736 1770-1770 C03f00/ArkCompiler pid-1770 E [ecmascript] Cannot execute module buffer file ‘/data/storage/el1/bundle/entry/ets/entryability/EntryAbility.abc
08-05 17:00:29.752 1770-1770 C01305/Appkit pid-1770 E [main_thread.cpp(operator():1391)]
08-05 17:00:29.752 1770-1770 C01305/Appkit pid-1770 E com.example.myapplication11111 is about to exit due to RuntimeError
08-05 17:00:29.752 1770-1770 C01305/Appkit pid-1770 E Error type:ReferenceError
08-05 17:00:29.752 1770-1770 C01305/Appkit pid-1770 E Error name:ReferenceError
08-05 17:00:29.752 1770-1770 C01305/Appkit pid-1770 E Error message:cannot find record ‘com.example.myapplication11111/library/ets/utils/GlobalContext’, please check the request path.’/data/storage/el1/bundle/library/ets/modules.abc’.
08-05 17:00:29.752 1770-1770 C01305/Appkit pid-1770 E Stacktrace:
08-05 17:00:29.752 1770-1770 C01305/Appkit pid-1770 E Cannot get SourceMap info, dump raw stack:
08-05 17:00:29.752 1770-1770 C01305/Appkit pid-1770 E =====================Backtrace========================
08-05 17:00:29.754 1770-1770 C057c2/IPCObjectProxy pid-1770 I AddDeathRecipient 393: success, handle:10 desc:ohos.aafwk.AbilityManager
08-05 17:00:29.755 1770-1770 C01309/Runtime pid-1770 E [js_runtime.cpp(LoadJsModule:870)]Failed to run script: <private>
08-05 17:00:29.755 1770-1770 C01304/AbilityManagerService pid-1770 E [js_ui_ability.cpp(SetAbilityContext:196)]jsAbilityObj_ or abilityContext_ or want is nullptr.
08-05 17:00:29.755 1770-1770 C01304/AbilityManagerService pid-1770 I [ui_ability_thread.cpp(AttachInner:170)]LoadLifecycle: Attach uiability.
08-05 17:00:29.760 1770-1770 C01309/Runtime pid-1770 W [js_runtime.cpp(FreeNativeReference:1289)]native reference is invalid.
08-05 17:00:29.760 1770-1770 C01309/Runtime pid-1770 W [js_runtime.cpp(FreeNativeReference:1289)]native reference is invalid.
08-05 17:00:29.760 1770-1770 C01200/EventRunner pid-1770 E Stop: Do not call, if event runner is deposited
08-05 17:00:29.760 1770-1770 C02c11/APPSPAWN pid-1770 I [appspawn_server.c:56]App exit code: 0
关于HarmonyOS 鸿蒙Next api 11 引入动态共享包<闪退>的问题,您也可以访问:https://www.itying.com/category-93-b0.html 联系官网客服。
请问这个问题解决了吗?可以提供下解决方案吗?