2.4.13发布鸿蒙真机闪退

  • Creator 版本: 2.4.13

  • 目标平台: OpenHarmony

  • 重现方式:真机闪退

  • 首个报错:

Device info:OpenHarmony 3.2
Build info:OpenHarmony 3.2.9.1
Module name:com.cocos.cctang
Version:1.0.0
Pid:13030
Uid:20040004
Reason:Signal:SIGABRT(SI_QUEUE)@0x0131c944000032e6 from:13030:20040004
LastFatalMessage:
Thread name:com.cocos.cctan
#00 pc 0000000000089fcc /vendor/aosp/system/lib64/libc.so(abort+164) (a85ef5fb74e0282813cd1edb10854577)
#01 pc 0000000000020ab4 /vendor/aosp/system/lib64/libohosadaptor.so(__assert_fail+60) (f5d9f0207cc4ff45e6545eb6365b3191)
#02 pc 00000000006874b8 /data/storage/el1/bundle/libs/arm64/libcocos.so(se::Value::toObject() const+60) (13e4ab97b5f080dce837469ffecca5d3ad2224ce)
#03 pc 0000000000678918 /data/storage/el1/bundle/libs/arm64/libcocos.so(cocos2d::EventDispatcher::dispatchTickEvent(float)+348) (13e4ab97b5f080dce837469ffecca5d3ad2224ce)
#04 pc 00000000005850c8 /data/storage/el1/bundle/libs/arm64/libcocos.so(cocos2d::OpenHarmonyPlatform::tick()+212) (13e4ab97b5f080dce837469ffecca5d3ad2224ce)
#05 pc 0000000000584fd8 /data/storage/el1/bundle/libs/arm64/libcocos.so(cocos2d::OpenHarmonyPlatform::timerCb(uv_timer_s*)+32) (13e4ab97b5f080dce837469ffecca5d3ad2224ce)
#06 pc 00000000000127b0 /system/lib64/libuv.so(uv__run_timers+36) (a710f739022549e2d81c625a88621915)
#07 pc 0000000000016158 /system/lib64/libuv.so(uv_run+176) (a710f739022549e2d81c625a88621915)
#08 pc 0000000000009bcc /system/lib64/module/libworker.z.so (85345fb82111513c49f5f9434bbc5570)
#09 pc 0000000000013c60 /system/lib64/module/libworker.z.so (85345fb82111513c49f5f9434bbc5570)
#10 pc 00000000000ebe70 /vendor/aosp/system/lib64/libc.so(__pthread_start(void*)+264) (a85ef5fb74e0282813cd1edb10854577)
#11 pc 000000000008b7f0 /vendor/aosp/system/lib64/libc.so(__start_thread+64) (a85ef5fb74e0282813cd1edb10854577)

我也报这个错

取个日志看看?

03-17 23:22:55.742 6517-6517/? I SELinux/ : system_file lable set found!!!!!
03-17 23:22:55.742 6517-6517/? I SELinux/ : value : u:object_r:system_data_file:s0
03-17 23:22:55.742 6517-6517/? I SELinux/ : path : /data/user
03-17 23:22:55.742 6517-6517/? I SELinux/ : system_file lable set found!!!!!
03-17 23:22:55.742 6517-6517/? I SELinux/ : value : u:object_r:system_data_file:s0
03-17 23:22:55.742 6517-6517/? I SELinux/ : path : /data/data
03-17 23:22:55.742 6517-6517/? I SELinux/ : system_file lable set found!!!!!
03-17 23:22:55.742 6517-6517/? I SELinux/ : value : u:object_r:system_data_file:s0
03-17 23:22:55.742 6517-6517/? I SELinux/ : path : /data/user_de/0
03-17 23:22:55.742 6517-6517/? I SELinux/ : system_file lable set found!!!!!
03-17 23:22:55.742 6517-6517/? I SELinux/ : value : u:object_r:system_data_file:s0
03-17 23:22:55.742 6517-6517/? I SELinux/ : path : /data/user_de
03-17 23:22:55.748 6517-6517/? I cos/.openharmon: Late-enabling -Xcheck:jni
03-17 23:22:55.770 6517-6517/? I cos/.openharmon: Reinit property: dalvik.vm.checkjni= false
03-17 23:22:55.770 6517-6517/? I cos/.openharmon: ReInitProperties: persist.vm.debug.dumpapi= false
03-17 23:22:55.776 6517-6517/? I AndroidRuntime/: RuntimeInit: Starting application from zygote
03-17 23:22:55.777 6517-6517/? D AndroidRuntime/: Entered RuntimeInit!
03-17 23:22:55.784 6517-6517/? I AndroidRuntime/: MethodAndArgsCaller run()
03-17 23:22:55.786 6517-6517/? I ActivityThread/: preloadStatus:1
03-17 23:22:55.791 6517-6517/? D ActivityThread/: Attach thread to application
03-17 23:22:55.833 6517-6517/? D CompatibilityChangeReporter/: Compat change id reported: 171979766; UID 10328; state: ENABLED
03-17 23:22:55.847 6517-6517/? I Typeface/: fontManager.getInitFontWeightScale:1.36
03-17 23:22:55.857 6517-6517/? I LoadedApk/: createSharedLibrariesLoaders::sharedLibraries is null
03-17 23:22:55.858 6517-6517/? W System/  : ClassLoader referenced unknown path: /data/app/~~l-XsnHJokGq4jCHv9e8ujA==/com.cocos.openharmony-A_hcTFztworRaq1STI8xTA==/base.apk
03-17 23:22:55.860 6517-6517/? W ziparchive/: Unable to open '/data/app/~~l-XsnHJokGq4jCHv9e8ujA==/com.cocos.openharmony-A_hcTFztworRaq1STI8xTA==/base.apk': No such file or directory
03-17 23:22:55.860 6517-6517/? E cos/.openharmon: Failed to open APK '/data/app/~~l-XsnHJokGq4jCHv9e8ujA==/com.cocos.openharmony-A_hcTFztworRaq1STI8xTA==/base.apk': I/O error
03-17 23:22:55.862 6517-6517/? W ResourcesManager/: failed to preload asset path '/data/app/~~l-XsnHJokGq4jCHv9e8ujA==/com.cocos.openharmony-A_hcTFztworRaq1STI8xTA==/base.apk'
03-17 23:22:55.862 6517-6517/? W ResourcesManager/: java.io.IOException: Failed to load asset path /data/app/~~l-XsnHJokGq4jCHv9e8ujA==/com.cocos.openharmony-A_hcTFztworRaq1STI8xTA==/base.apk
03-17 23:22:55.862 6517-6517/? W ResourcesManager/: 	at android.content.res.ApkAssets.nativeLoad(Native Method)
03-17 23:22:55.862 6517-6517/? W ResourcesManager/: 	at android.content.res.ApkAssets.<init>(ApkAssets.java:305)
03-17 23:22:55.862 6517-6517/? W ResourcesManager/: 	at android.content.res.ApkAssets.loadFromPath(ApkAssets.java:153)
03-17 23:22:55.862 6517-6517/? W ResourcesManager/: 	at android.app.ResourcesManager.loadApkAssets(ResourcesManager.java:507)
03-17 23:22:55.862 6517-6517/? W ResourcesManager/: 	at android.app.ResourcesManager.access$000(ResourcesManager.java:87)
03-17 23:22:55.862 6517-6517/? W ResourcesManager/: 	at android.app.ResourcesManager$ApkAssetsSupplier.load(ResourcesManager.java:203)
03-17 23:22:55.862 6517-6517/? W ResourcesManager/: 	at android.app.ResourcesManager.createApkAssetsSupplierNotLocked(ResourcesManager.java:1061)
03-17 23:22:55.862 6517-6517/? W ResourcesManager/: 	at android.app.ResourcesManager.getResources(ResourcesManager.java:1182)
03-17 23:22:55.862 6517-6517/? W ResourcesManager/: 	at android.app.LoadedApk.getResources(LoadedApk.java:1488)
03-17 23:22:55.862 6517-6517/? W ResourcesManager/: 	at android.app.ContextImpl.createAppContext(ContextImpl.java:3238)
03-17 23:22:55.862 6517-6517/? W ResourcesManager/: 	at android.app.ContextImpl.createAppContext(ContextImpl.java:3221)
03-17 23:22:55.862 6517-6517/? W ResourcesManager/: 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:8450)
03-17 23:22:55.862 6517-6517/? W ResourcesManager/: 	at android.app.ActivityThread.access$2800(ActivityThread.java:311)
03-17 23:22:55.862 6517-6517/? W ResourcesManager/: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2889)
03-17 23:22:55.862 6517-6517/? W ResourcesManager/: 	at android.os.Handler.dispatchMessage(Handler.java:117)
03-17 23:22:55.862 6517-6517/? W ResourcesManager/: 	at android.os.Looper.loopOnce(Looper.java:205)
03-17 23:22:55.862 6517-6517/? W ResourcesManager/: 	at android.os.Looper.loop(Looper.java:293)
03-17 23:22:55.862 6517-6517/? W ResourcesManager/: 	at android.app.ActivityThread.loopProcess(ActivityThread.java:9934)
03-17 23:22:55.862 6517-6517/? W ResourcesManager/: 	at android.app.ActivityThread.main(ActivityThread.java:9923)
03-17 23:22:55.862 6517-6517/? W ResourcesManager/: 	at java.lang.reflect.Method.invoke(Native Method)
03-17 23:22:55.862 6517-6517/? W ResourcesManager/: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:586)
03-17 23:22:55.862 6517-6517/? W ResourcesManager/: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1240)
03-17 23:22:55.862 6517-6517/? W ziparchive/: Unable to open '/data/app/~~l-XsnHJokGq4jCHv9e8ujA==/com.cocos.openharmony-A_hcTFztworRaq1STI8xTA==/base.apk': No such file or directory
03-17 23:22:55.862 6517-6517/? E cos/.openharmon: Failed to open APK '/data/app/~~l-XsnHJokGq4jCHv9e8ujA==/com.cocos.openharmony-A_hcTFztworRaq1STI8xTA==/base.apk': I/O error
03-17 23:22:55.870 6517-6517/? V GraphicsEnvironment/: ANGLE Developer option for 'com.cocos.openharmony' set to: 'default'
03-17 23:22:55.870 6517-6517/? V GraphicsEnvironment/: Neither updatable production driver nor prerelease driver is supported.
03-17 23:22:55.871 6517-6517/? I HwActivityThreadImpl/: accept socket mSocketName: 8fab8e43-aa32-4e62-acf9-feacc36faed5
03-17 23:22:55.871 6517-6517/? I HwActivityThreadImpl/: accept socket end
03-17 23:22:55.872 6517-6517/? I HwActivityThreadImpl/: acceptPreloadedApplication end mPreloadStatus 3
03-17 23:22:55.873 6517-6517/? D NetworkSecurityConfig/: No Network Security Config specified, using platform default
03-17 23:22:55.874 6517-6517/? D NetworkSecurityConfig/: No Network Security Config specified, using platform default
03-17 23:22:55.874 6517-6517/? I HwViewStackScaleFactory/: add android.view.HwViewStackScaleFactory@cc1cfc1 to memory.
03-17 23:22:55.879 6517-6517/? I HwTypeface/: updateFont: scale=1.6
03-17 23:22:55.879 6517-6517/? I HwTypeface/: size is 0, use default font family
03-17 23:22:55.926 6517-6517/? W FontFamily/: updateFonts: mFonts is null for android.graphics.fonts.FontFamily@7666a7
03-17 23:22:55.961 6517-6517/? I ActivityThread/: finishPreloaded preloadStatus 3
03-17 23:22:55.961 6517-6517/? I ActivityThread/: finishPreloaded end preloadStatus 3
03-17 23:22:55.962 6517-6517/? I HwViewRootImpl/: Add sceneId 1 topId: 0
03-17 23:22:55.962 6517-6517/? I ActivityThread/: handleBindApplication cost: 131
03-17 23:22:55.962 6517-6517/? I RmeSchedManager/: init Rme, version is: v1.0
03-17 23:22:55.962 6517-6517/? I RmeSchedManager/: init Rme, version is: v1.0
03-17 23:22:55.962 6517-6517/? I LaunchActivityItem/: execute start, token = android.os.BinderProxy@c5b10af
03-17 23:22:55.968 6517-6517/? D OpenGLRenderer/: disableOutlineDraw is true
03-17 23:22:55.969 6517-6517/? W ziparchive/: Unable to open '/data/app/~~l-XsnHJokGq4jCHv9e8ujA==/com.cocos.openharmony-A_hcTFztworRaq1STI8xTA==/base.apk': No such file or directory
03-17 23:22:55.969 6517-6517/? E cos/.openharmon: Failed to open APK '/data/app/~~l-XsnHJokGq4jCHv9e8ujA==/com.cocos.openharmony-A_hcTFztworRaq1STI8xTA==/base.apk': I/O error
03-17 23:22:55.973 6517-6517/? D ActivityThread/: Change new activityClass:com.huawei.android.template.TemplateActivity
03-17 23:22:55.974 6517-6517/? W ziparchive/: Unable to open '/data/app/~~l-XsnHJokGq4jCHv9e8ujA==/com.cocos.openharmony-A_hcTFztworRaq1STI8xTA==/base.apk': No such file or directory
03-17 23:22:55.974 6517-6517/? E cos/.openharmon: Failed to open APK '/data/app/~~l-XsnHJokGq4jCHv9e8ujA==/com.cocos.openharmony-A_hcTFztworRaq1STI8xTA==/base.apk': I/O error
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: failed to preload asset path '/data/app/~~l-XsnHJokGq4jCHv9e8ujA==/com.cocos.openharmony-A_hcTFztworRaq1STI8xTA==/base.apk'
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: java.io.IOException: Failed to load asset path /data/app/~~l-XsnHJokGq4jCHv9e8ujA==/com.cocos.openharmony-A_hcTFztworRaq1STI8xTA==/base.apk
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: 	at android.content.res.ApkAssets.nativeLoad(Native Method)
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: 	at android.content.res.ApkAssets.<init>(ApkAssets.java:305)
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: 	at android.content.res.ApkAssets.loadFromPath(ApkAssets.java:153)
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: 	at android.app.ResourcesManager.loadApkAssets(ResourcesManager.java:507)
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: 	at android.app.ResourcesManager.access$000(ResourcesManager.java:87)
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: 	at android.app.ResourcesManager$ApkAssetsSupplier.load(ResourcesManager.java:203)
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: 	at android.app.ResourcesManager.createApkAssetsSupplierNotLocked(ResourcesManager.java:1061)
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: 	at android.app.ResourcesManager.getResources(ResourcesManager.java:1182)
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: 	at android.app.ActivityThread.getTopLevelResources(ActivityThread.java:3414)
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: 	at android.app.ApplicationPackageManager.getResourcesForApplication(ApplicationPackageManager.java:1811)
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: 	at android.app.ApplicationPackageManager.getResourcesForApplication(ApplicationPackageManager.java:1792)
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: 	at android.app.ApplicationPackageManager.getText(ApplicationPackageManager.java:2124)
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: 	at android.content.pm.ComponentInfo.loadUnsafeLabel(ComponentInfo.java:133)
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: 	at android.content.pm.PackageItemInfo.loadLabel(PackageItemInfo.java:215)
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4682)
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4983)
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:123)
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149)
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103)
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:3059)
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: 	at android.os.Handler.dispatchMessage(Handler.java:117)
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: 	at android.os.Looper.loopOnce(Looper.java:205)
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: 	at android.os.Looper.loop(Looper.java:293)
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: 	at android.app.ActivityThread.loopProcess(ActivityThread.java:9934)
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: 	at android.app.ActivityThread.main(ActivityThread.java:9923)
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: 	at java.lang.reflect.Method.invoke(Native Method)
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:586)
03-17 23:22:55.975 6517-6517/? W ResourcesManager/: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1240)
03-17 23:22:55.977 6517-6517/? I AssetManager/: getOhosText resId 16777219 resourcePath /data/ohos_data/app/el1/bundle/public/com.cocos.openharmony/entry/resources.index
03-17 23:22:55.977 6517-6517/? I cos/.openharmon: GetOhosText resid 16777219, resourcePath /data/ohos_data/app/el1/bundle/public/com.cocos.openharmony/entry/resources.index
03-17 23:22:55.977 6517-6517/? E 01E00/ResourceManager: failed to realpath the path errno:2
03-17 23:22:55.978 6517-6517/? E cos/.openharmon: screenDensity is not match for ohos, current screenDensity is 408
03-17 23:22:55.978 6517-6517/? D 01E00/ResourceManager: extract success, bufLen:<private>
03-17 23:22:55.978 6517-6517/? D 01E00/ResourceManager: ~ResDesc()
03-17 23:22:55.978 6517-6517/? D 01E00/ResourceManager: ~ResKey()
03-17 23:22:55.978 6517-6517/? I cos/.openharmon: getStringById value is hello_world
03-17 23:22:55.978 6517-6517/? I HwResourcesImpl/: getOhosText text is hello_world for id -2147483645
03-17 23:22:55.985 6517-6517/? V ActivityThread/: callActivityOnCreate
03-17 23:22:55.987 6517-6517/? I AmGatewayProxy/: messenger transact result : 0
03-17 23:22:55.994 6517-6517/? I HwMediaViewLayoutChangeHandler/: attachLayoutChangeListener: attached listener to view=android.view.SurfaceView{d77acec V.E...... ......I. 0,0-0,0}
03-17 23:22:55.994 6517-6517/? W ziparchive/: Unable to open '/data/app/~~l-XsnHJokGq4jCHv9e8ujA==/com.cocos.openharmony-A_hcTFztworRaq1STI8xTA==/base.apk': No such file or directory
03-17 23:22:55.995 6517-6517/? E cos/.openharmon: Failed to open APK '/data/app/~~l-XsnHJokGq4jCHv9e8ujA==/com.cocos.openharmony-A_hcTFztworRaq1STI8xTA==/base.apk': I/O error
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: failed to preload asset path '/data/app/~~l-XsnHJokGq4jCHv9e8ujA==/com.cocos.openharmony-A_hcTFztworRaq1STI8xTA==/base.apk'
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: java.io.IOException: Failed to load asset path /data/app/~~l-XsnHJokGq4jCHv9e8ujA==/com.cocos.openharmony-A_hcTFztworRaq1STI8xTA==/base.apk
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at android.content.res.ApkAssets.nativeLoad(Native Method)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at android.content.res.ApkAssets.<init>(ApkAssets.java:305)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at android.content.res.ApkAssets.loadFromPath(ApkAssets.java:153)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at android.app.ResourcesManager.loadApkAssets(ResourcesManager.java:507)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at android.app.ResourcesManager.access$000(ResourcesManager.java:87)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at android.app.ResourcesManager$ApkAssetsSupplier.load(ResourcesManager.java:203)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at android.app.ResourcesManager.createApkAssetsSupplierNotLocked(ResourcesManager.java:1061)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at android.app.ResourcesManager.getResources(ResourcesManager.java:1182)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at android.app.ContextImpl.createResources(ContextImpl.java:2608)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at android.app.ContextImpl.createConfigurationContext(ContextImpl.java:2771)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at android.content.ContextWrapper.createConfigurationContext(ContextWrapper.java:1053)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at com.android.internal.policy.DecorContext.<init>(DecorContext.java:58)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at com.android.internal.policy.PhoneWindow.generateDecor(PhoneWindow.java:2588)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at com.android.internal.policy.PhoneWindow.installDecor(PhoneWindow.java:3026)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:614)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at com.android.internal.policy.HwPhoneWindow.setContentView(HwPhoneWindow.java:379)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:605)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at com.android.internal.policy.HwPhoneWindow.setContentView(HwPhoneWindow.java:372)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at android.app.Activity.setContentView(Activity.java:3756)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at com.huawei.android.template.TemplateActivity.onCreate(TemplateActivity.java:58)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at android.app.Activity.performCreate(Activity.java:8592)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at android.app.Activity.performCreate(Activity.java:8565)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1344)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4733)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4983)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:123)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:3059)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at android.os.Handler.dispatchMessage(Handler.java:117)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at android.os.Looper.loopOnce(Looper.java:205)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at android.os.Looper.loop(Looper.java:293)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at android.app.ActivityThread.loopProcess(ActivityThread.java:9934)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at android.app.ActivityThread.main(ActivityThread.java:9923)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at java.lang.reflect.Method.invoke(Native Method)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:586)
03-17 23:22:55.996 6517-6517/? W ResourcesManager/: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1240)
03-17 23:22:56.006 6517-6517/? I DecorView/[]: pkgName:com.cocos.openharmony old windowMode:0 new windoMode:1, isFixedSize:false, isStackNeedCaptionView:true
03-17 23:22:56.011 6517-6517/? I WmGatewayProxy/: registerShellWindowCallback: activityToken=android.os.BinderProxy@c5b10af
03-17 23:22:56.013 6517-6517/? I ShellWindowManager/: onMainWindowCreated: windowId=12
03-17 23:22:56.013 6517-6517/? I TemplateActivityTest/: registerShellWindowCallback: windowId=12
03-17 23:22:56.014 6517-6517/? I GatewayMediaProxy/: registerTemplateMediaCallback
03-17 23:22:56.014 6517-6517/? I TemplateActivityTest/: registerTemplateMediaCallback isSuccess: true
03-17 23:22:56.015 6517-6517/? I ActivityThread/: add activity client record, r= ActivityRecord{4e8ad84 token=android.os.BinderProxy@c5b10af {com.cocos.openharmony/MainAbility}} token= android.os.BinderProxy@c5b10af
03-17 23:22:56.016 6517-6517/? I TemplateActivityTest/: onStart
03-17 23:22:56.017 6517-6517/? E 02D03/HiTraceC: HiTraceEnd error: invalid thread id.
03-17 23:22:56.020 6517-6517/? I TemplateActivityTest/: onResume
03-17 23:22:56.020 6517-6517/? I HwPartMagicWindowFactory/: add HwPartMagicWindowFactory to memory.
03-17 23:22:56.023 6517-6517/? I InputMethodManager/: forContextInternal diaplayId:0,instance=android.view.inputmethod.InputMethodManager@408496d
03-17 23:22:56.027 6517-6517/? D MouseWheelSynthesizer/: mMoveStepInDp: 64, mMoveStepInPixel: 163, mUpTimeDelayed: 100
03-17 23:22:56.030 6517-6517/? D ViewRootImpl/: ViewUI ViewRootImpl mIsInProductivePCDisplay: false
03-17 23:22:56.043 6517-6517/? I DecorView/[]: pkgName:com.cocos.openharmony old windowMode:1 new windoMode:1, isFixedSize:false, isStackNeedCaptionView:true
03-17 23:22:56.047 6517-6517/? I InsetsController/: ViewUI_insets updateState new source: InsetsSource: {mType=ITYPE_STATUS_BAR, mFrame=[0,0][2340,141], mVisible=true}
03-17 23:22:56.047 6517-6517/? I InsetsController/: ViewUI_insets updateState new source: InsetsSource: {mType=ITYPE_NAVIGATION_BAR, mFrame=[2340,0][2465,1080], mVisible=false}
03-17 23:22:56.048 6517-6517/? D InputEventReceiver/: dispatchInputInterval 1000000
03-17 23:22:56.052 6517-6517/? I HwSoraManager/: SORA is disabled for MainAbility
03-17 23:22:56.053 6517-6517/? I RmeSchedManager/: init Rme, version is: v1.0
03-17 23:22:56.053 6517-6517/? I TopResumedActivityChangeItem/: execute start, ActivityClientRecord = ActivityRecord{4e8ad84 token=android.os.BinderProxy@c5b10af {com.cocos.openharmony/MainAbility}}
03-17 23:22:56.055 6517-6517/? I TemplateActivityTest/: onAttachedToWindow
03-17 23:22:56.055 6517-6517/? I WmGatewayProxy/: notifyAttachedToWindow: activityTokenandroid.os.BinderProxy@c5b10af
03-17 23:22:56.057 6517-6517/? I DecorView/: updateColorViewInt type:0 size: 141 color:ff757575 appColor:ff757575
03-17 23:22:56.063 6517-6517/? I DecorView/: updateColorViewInt type:0 size: 141 color:ff757575 appColor:ff757575
03-17 23:22:56.071 6517-6517/? D BufferQueueCore/: BufferQueueCore: mDebugHwFlow=0, mIsBufferQueueLogVSupport=0.
03-17 23:22:56.073 6517-6517/? D InsetsSourceConsumer/: ViewUI_insets setControl -> ITYPE_STATUS_BAR on com.cocos.openharmony/MainAbility
03-17 23:22:56.073 6517-6517/? D InsetsSourceConsumer/: ViewUI_insets setControl mType:0, requestedVisible:true, getLeash:null, needAnimation:false, mIsAnimationPending:false, getRootViewTitle:com.cocos.openharmony/MainAbility
03-17 23:22:56.074 6517-6517/? I DecorView/: updateColorViewInt type:0 size: 141 color:ff757575 appColor:ff757575
03-17 23:22:56.078 6517-6517/? D BufferQueueCore/: BufferQueueCore: mDebugHwFlow=0, mIsBufferQueueLogVSupport=0.
03-17 23:22:56.079 6517-6517/? I SurfaceView/: ViewUI setLowResolutionInfo compatInfo.supportsScreen() is not satisfied
03-17 23:22:56.079 6517-6517/? I TemplateActivityTest/: surfaceCreated: windowId=12 surface=Surface(name=null)/@0xc0abb08 frame=Rect(141, 0 - 2340, 1080)
03-17 23:22:56.080 6517-6517/? I WmGatewayProxy/: reportSurfaceCreated: windowId=12 frame=Rect(141, 0 - 2340, 1080)
03-17 23:22:56.081 6517-6517/? I TemplateActivityTest/: surfaceChanged surfaceHolder:android.view.SurfaceView$1@5be42a1, format:4, w:2199, h:1080
03-17 23:22:56.081 6517-6517/? I WmGatewayProxy/: reportSurfaceChanged: windowId=12 format=4 width=2199 height=1080
03-17 23:22:56.082 6517-6517/? W HwApsImpl/: not support full screen video recognize feature ## com.cocos.openharmony
03-17 23:22:56.109 6517-6517/? I HwViewRootImpl/: removeInvalidNode jank list is null
03-17 23:22:56.109 6517-6517/? I HwViewRootImpl/: remove sceneId 1 topId: 0
03-17 23:22:56.109 6517-6517/? I HwViewRootImpl/: Add sceneId 10 topId: 0
03-17 23:22:56.114 6517-6517/? I HwMediaViewLayoutChangeHandler/: handleMediaViewLayoutChanged, listener removed. view=android.view.SurfaceView{d77acec V.E...... ........ 0,0-2199,1080}
03-17 23:22:56.115 6517-6517/? I InsetsController/: ViewUI_insets updateState new source: InsetsSource: {mType=ITYPE_STATUS_BAR, mFrame=[0,0][2340,141], mVisible=true}
03-17 23:22:56.115 6517-6517/? I InsetsController/: ViewUI_insets updateState new source: InsetsSource: {mType=ITYPE_NAVIGATION_BAR, mFrame=[2340,0][2465,1080], mVisible=false}
03-17 23:22:56.116 6517-6517/? D InsetsSourceConsumer/: ViewUI_insets setControl -> ITYPE_STATUS_BAR on com.cocos.openharmony/MainAbility
03-17 23:22:56.116 6517-6517/? D InsetsSourceConsumer/: ViewUI_insets setControl mType:0, requestedVisible:true, getLeash:Surface(name=Surface(name=9905e35 StatusBar)/@0xc121b63 - animation-leash of insets_animation)/@0xedc4487, needAnimation:false, mIsAnimationPending:false, getRootViewTitle:com.cocos.openharmony/MainAbility
03-17 23:22:56.117 6517-6517/? I ImeFocusController/: ViewUI imeDisplayId:0 contextDisplayId:0
03-17 23:22:56.117 6517-6517/? I InputMethodManager/: set currentRootView to : android.view.ViewRootImpl@8147fb4
03-17 23:22:56.117 6517-6517/? I InputMethodManager/: Starting input: reason=WINDOW_FOCUS_GAIN
03-17 23:22:56.123 6517-6517/? I InputMethodManager/: Starting input: Bind resultString=SUCCESS_WAITING_IME_SESSION
03-17 23:22:56.129 6517-6517/? I DecorView/: updateColorViewInt type:0 size: 141 color:ff757575 appColor:ff757575
03-17 23:22:56.132 6517-6517/? I DecorView/: updateColorViewInt type:0 size: 141 color:ff757575 appColor:ff757575
03-17 23:22:56.132 6517-6517/? I DecorView/: updateColorViewInt type:0 size: 141 color:ff757575 appColor:ff757575
03-17 23:22:56.132 6517-6517/? I ShellWindowManager/: checkSystemUiFlags: isLayoutFullscreen=true isStatusBarVisible=false
03-17 23:22:56.132 6517-6517/? I DecorView/: updateColorViewInt type:0 size: 141 color:66000000 appColor:66000000
03-17 23:22:56.133 6517-6517/? I ShellWindowManager/: checkSystemUiFlags: isLayoutFullscreen=true isStatusBarVisible=false
03-17 23:22:56.133 6517-6517/? I InsetsController/: ViewUI_insets applyAnimation types:1,show:false, this:android.view.InsetsController@febf52
03-17 23:22:56.133 6517-6517/? I InsetsController/: ViewUI_insets controlAnimation types: 1
03-17 23:22:56.133 6517-6517/? D InsetsController/: ViewUI_insets controlAnimation after canel existing types: 1
03-17 23:22:56.136 6517-6517/? I ShellWindowManager/: checkSystemUiFlags: isLayoutFullscreen=true isStatusBarVisible=false
03-17 23:22:56.136 6517-6517/? I InsetsController/: ViewUI_insets applyAnimation types:2,show:false, this:android.view.InsetsController@febf52
03-17 23:22:56.137 6517-6517/? I InsetsController/: ViewUI_insets controlAnimation types: 2
03-17 23:22:56.137 6517-6517/? D InsetsController/: ViewUI_insets controlAnimation after canel existing types: 2
03-17 23:22:56.139 6517-6517/? I InputMethodManager/: Starting input: reason=BOUND_TO_IMMS
03-17 23:22:56.140 6517-6517/? I InputMethodManager/: Starting input: finished by someone else. servedView=DecorView@536291c[openharmony/MainAbility],focus=false,windowFocus=true,autofillUiShowing=false,window=android.view.ViewRootImpl$W@a1c5a13,displayId=0,temporaryDetach=false,hasImeFocus=true mServedConnecting=false
03-17 23:22:56.145 6517-6517/? I DecorView/[openharmony/MainAbility]: pkgName:com.cocos.openharmony old windowMode:1 new windoMode:1, isFixedSize:false, isStackNeedCaptionView:true
03-17 23:22:56.149 6517-6517/? I InsetsController/: ViewUI_insets updateState new source: InsetsSource: {mType=ITYPE_STATUS_BAR, mFrame=[0,0][2340,141], mVisible=false}
03-17 23:22:56.150 6517-6517/? I InsetsController/: ViewUI_insets updateState new source: InsetsSource: {mType=ITYPE_NAVIGATION_BAR, mFrame=[2340,0][2465,1080], mVisible=false}
03-17 23:22:56.150 6517-6517/? D InsetsSourceConsumer/: ViewUI_insets setControl -> ITYPE_IME on com.cocos.openharmony/MainAbility
03-17 23:22:56.153 6517-6517/? I SurfaceView/: ViewUI setLowResolutionInfo compatInfo.supportsScreen() is not satisfied
03-17 23:22:56.154 6517-6517/? I TemplateActivityTest/: surfaceChanged surfaceHolder:android.view.SurfaceView$1@5be42a1, format:4, w:2340, h:1080
03-17 23:22:56.154 6517-6517/? I WmGatewayProxy/: reportSurfaceChanged: windowId=12 format=4 width=2340 height=1080
03-17 23:22:56.154 6517-6517/? W HwApsImpl/: not support full screen video recognize feature ## com.cocos.openharmony
03-17 23:22:56.164 6517-6517/? I ShellWindowManager/: onOhSetSurfaceBounds: The texture view is not added, add it in window.
03-17 23:22:56.164 6517-6517/? D BufferQueueCore/: BufferQueueCore: mDebugHwFlow=0, mIsBufferQueueLogVSupport=0.
03-17 23:22:56.165 6517-6517/? I SurfaceView/: ViewUI setLowResolutionInfo compatInfo.supportsScreen() is not satisfied
03-17 23:22:56.165 6517-6517/? I TemplateActivityTest/: surfaceDestroyed surfaceHolder:android.view.SurfaceView$1@5be42a1
03-17 23:22:56.165 6517-6517/? I WmGatewayProxy/: reportSurfaceDestroyed: windowId=12
03-17 23:22:56.166 6517-6517/? W HwApsImpl/: not support full screen video recognize feature  ## com.cocos.openharmony
03-17 23:22:56.166 6517-6517/? I TemplateActivityTest/: surfaceCreated: windowId=12 surface=Surface(name=null)/@0xc0abb08 frame=Rect(0, 0 - 2340, 1080)
03-17 23:22:56.166 6517-6517/? I WmGatewayProxy/: reportSurfaceCreated: windowId=12 frame=Rect(0, 0 - 2340, 1080)
03-17 23:22:56.167 6517-6517/? I TemplateActivityTest/: surfaceChanged surfaceHolder:android.view.SurfaceView$1@5be42a1, format:-2, w:2340, h:1080
03-17 23:22:56.167 6517-6517/? I WmGatewayProxy/: reportSurfaceChanged: windowId=12 format=-2 width=2340 height=1080
03-17 23:22:56.167 6517-6517/? W HwApsImpl/: not support full screen video recognize feature ## com.cocos.openharmony
03-17 23:22:56.168 6517-6517/? I ShellWindowManager/: onOhSetSurfaceBounds: The texture view is added, update the layout params.
03-17 23:22:56.168 6517-6517/? I InsetsController/: ViewUI_insets updateState new source: InsetsSource: {mType=ITYPE_STATUS_BAR, mFrame=[0,0][2340,141], mVisible=true}
03-17 23:22:56.168 6517-6517/? I InsetsController/: ViewUI_insets updateState new source: InsetsSource: {mType=ITYPE_NAVIGATION_BAR, mFrame=[2340,0][2465,1080], mVisible=false}
03-17 23:22:56.169 6517-6517/? I InsetsController/: ViewUI_insets updateState new source: InsetsSource: {mType=ITYPE_STATUS_BAR, mFrame=[0,0][2340,141], mVisible=false}
03-17 23:22:56.169 6517-6517/? I InsetsController/: ViewUI_insets updateState new source: InsetsSource: {mType=ITYPE_NAVIGATION_BAR, mFrame=[2340,0][2465,1080], mVisible=false}
03-17 23:22:56.170 6517-6517/? I InsetsController/: ViewUI_insets updateState new source: InsetsSource: {mType=ITYPE_STATUS_BAR, mFrame=[0,0][2340,141], mVisible=false}
03-17 23:22:56.170 6517-6517/? I InsetsController/: ViewUI_insets updateState new source: InsetsSource: {mType=ITYPE_NAVIGATION_BAR, mFrame=[2340,0][2465,1080], mVisible=false}
03-17 23:22:56.170 6517-6517/? I ShellWindowManager/: onOhSetSurfaceBounds: The texture view is added, update the layout params.
03-17 23:22:56.171 6517-6517/? I ShellWindowManager/: onOhSetSurfaceBounds: The texture view is added, update the layout params.
03-17 23:22:56.171 6517-6517/? I ShellWindowManager/: onOhSetSurfaceBounds: The texture view is added, update the layout params.
03-17 23:22:56.179 6517-6517/? I ShellWindowManager/: onOhSetSurfaceBounds: The texture view is added, update the layout params.
03-17 23:22:56.200 6517-6517/? D BufferQueueCore/: BufferQueueCore: mDebugHwFlow=0, mIsBufferQueueLogVSupport=0.
03-17 23:22:56.200 6517-6517/? W HwApsImpl/: not support full screen video recognize feature ## com.cocos.openharmony
03-17 23:22:56.200 6517-6517/? I ShellWindowManager/: ChildSurfaceTextureListener onSurfaceTextureAvailable width=2340 height=1080
03-17 23:22:56.200 6517-6517/? I WmGatewayProxy/: addChildSurface: windowId=12 surfaceId=4591320039425
03-17 23:22:56.202 6517-6517/? I ShellWindowManager/: onSurfaceTextureAvailable, make the background view visible when the surface is ready.
03-17 23:22:56.203 6517-6517/? I HwMediaViewLayoutChangeHandler/: handleMediaViewLayoutChanged, listener removed. view=android.view.TextureView{8db67dd V.ED..... ........ 0,0-2340,1080 #2}
03-17 23:22:56.472 6517-6517/? I InsetsController/: ViewUI_insets updateState new source: InsetsSource: {mType=ITYPE_STATUS_BAR, mFrame=[0,0][2340,141], mVisible=false}
03-17 23:22:56.472 6517-6517/? I InsetsController/: ViewUI_insets updateState new source: InsetsSource: {mType=ITYPE_NAVIGATION_BAR, mFrame=[0,0][0,0], mVisible=false}
03-17 23:22:56.496 6517-6517/? I InsetsController/: ViewUI_insets updateState new source: InsetsSource: {mType=ITYPE_STATUS_BAR, mFrame=[0,0][2340,141], mVisible=false}
03-17 23:22:56.496 6517-6517/? I InsetsController/: ViewUI_insets updateState new source: InsetsSource: {mType=ITYPE_NAVIGATION_BAR, mFrame=[0,0][0,0], mVisible=false}
03-17 23:22:56.514 6517-6517/? I TopResumedActivityChangeItem/: execute start, ActivityClientRecord = ActivityRecord{4e8ad84 token=android.os.BinderProxy@c5b10af {com.cocos.openharmony/MainAbility}}
03-17 23:22:56.527 6517-6517/? I HwViewRootImpl/: remove sceneId 10 topId: 0

市面上的华为手机可能不一定可以。读取的是*.apk的包? 可能需要等openharmony next。或者使用HarmonyOS的平台编译运行。

有办法解决吗

解决这个问题 是需要安装 openharmony系统的。需要在这个设备上使用的话,可以构建HarmonyOS系统,使用的是java那一套

是直接用deveco studio运行的,现在没弄了,鸿蒙sdk版本设备不统一好麻烦 :joy:

我这边使用样机能成功运行,他自带的模拟器会报这个错误

样机应该是合作才能申请的吧? 模拟器应该是公开的,两个系统应该是有区别的。