HarmonyOS 鸿蒙Next模拟器启动不了

发布于 1周前 作者 yuanlaile 来自 鸿蒙OS

HarmonyOS 鸿蒙Next模拟器启动不了 点启动之后一直没反应

cke_160.png

11 回复

点击模拟器的三角图标,一点反应都没有!

2024-07-08 20:35:35,961 [ 741989] WARN - #com.huawei.tools.idea.hvdmanager.utils.impl.LocalDeviceConnection - execute cmd error: [wmic, process, where, name=‘Emulator.exe’, get, commandline]

2024-07-08 20:35:35,963 [ 741991] WARN - #com.huawei.tools.idea.hvdmanager.utils.impl.LocalDeviceConnection - execute cmd error: [powershell.exe, get-ciminstance, win32_process, |, ?, name, -eq, Emulator.exe, |, select, commandline]

2024-07-08 20:35:37,967 [ 743995] WARN - #com.huawei.tools.idea.hvdmanager.utils.impl.LocalDeviceConnection - execute cmd error: [wmic, process, where, name=‘Emulator.exe’, get, commandline]

2024-07-08 20:35:37,969 [ 743997] WARN - #com.huawei.tools.idea.hvdmanager.utils.impl.LocalDeviceConnection - execute cmd error: [powershell.exe, get-ciminstance, win32_process, |, ?, name, -eq, Emulator.exe, |, select, commandline]

2024-07-08 20:35:38,666 [ 744694] WARN - #com.huawei.tools.idea.hvdmanager.utils.impl.LocalDeviceConnection - execute cmd error: [wmic, process, where, name=‘Emulator.exe’, get, commandline]

2024-07-08 20:35:38,668 [ 744696] WARN - #com.huawei.tools.idea.hvdmanager.utils.impl.LocalDeviceConnection - execute cmd error: [powershell.exe, get-ciminstance, win32_process, |, ?, name, -eq, Emulator.exe, |, select, commandline]

2024-07-08 20:35:39,971 [ 745999] WARN - #com.huawei.tools.idea.hvdmanager.utils.impl.LocalDeviceConnection - execute cmd error: [wmic, process, where, name=‘Emulator.exe’, get, commandline]

2024-07-08 20:35:39,973 [ 746001] WARN - #com.huawei.tools.idea.hvdmanager.utils.impl.LocalDeviceConnection - execute cmd error: [powershell.exe, get-ciminstance, win32_process, |, ?, name, -eq, Emulator.exe, |, select, commandline]

2024-07-08 20:35:40,671 [ 746699] WARN - #com.huawei.tools.idea.hvdmanager.utils.impl.LocalDeviceConnection - execute cmd error: [wmic, process, where, name=‘Emulator.exe’, get, commandline]

2024-07-08 20:35:40,673 [ 746701] WARN - #com.huawei.tools.idea.hvdmanager.utils.impl.LocalDeviceConnection - execute cmd error: [powershell.exe, get-ciminstance, win32_process, |, ?, name, -eq, Emulator.exe, |, select, commandline]

2024-07-08 20:35:41,975 [ 748003] WARN - #com.huawei.tools.idea.hvdmanager.utils.impl.LocalDeviceConnection - execute cmd error: [wmic, process, where, name=‘Emulator.exe’, get, commandline]

2024-07-08 20:35:41,977 [ 748005] WARN - #com.huawei.tools.idea.hvdmanager.utils.impl.LocalDeviceConnection - execute cmd error: [powershell.exe, get-ciminstance, win32_process, |, ?, name, -eq, Emulator.exe, |, select, commandline]

2024-07-08 20:35:42,255 [ 748283] INFO - #com.huawei.ohos.infocenter.action.DeveloperDocumentAction - Developer Documentation is visible:TRUE

2024-07-08 20:35:42,255 [ 748283] INFO - #com.huawei.ohos.infocenter.action.FaqAction - FAQ is visible:TRUE

2024-07-08 20:35:42,255 [ 748283] INFO - #com.huawei.ohos.infocenter.action.SatisfactionSurveyAction - satisfaction survey is visible:true

2024-07-08 20:35:42,255 [ 748283] INFO - #com.huawei.ohos.infocenter.action.InfoCenterAction - InfoCenter is visible:true

2024-07-08 20:35:42,675 [ 748703] WARN - #com.huawei.tools.idea.hvdmanager.utils.impl.LocalDeviceConnection - execute cmd error: [wmic, process, where, name=‘Emulator.exe’, get, commandline]

2024-07-08 20:35:42,677 [ 748705] WARN - #com.huawei.tools.idea.hvdmanager.utils.impl.LocalDeviceConnection - execute cmd error: [powershell.exe, get-ciminstance, win32_process, |, ?, name, -eq, Emulator.exe, |, select, commandline]

2024-07-08 20:35:43,979 [ 750007] WARN - #com.huawei.tools.idea.hvdmanager.utils.impl.LocalDeviceConnection - execute cmd error: [wmic, process, where, name=‘Emulator.exe’, get, commandline]

2024-07-08 20:35:43,981 [ 750009] WARN - #com.huawei.tools.idea.hvdmanager.utils.impl.LocalDeviceConnection - execute cmd error: [powershell.exe, get-ciminstance, win32_process, |, ?, name, -eq, Emulator.exe, |, select, commandline]

2024-07-08 20:35:44,678 [ 750706] WARN - #com.huawei.tools.idea.hvdmanager.utils.impl.LocalDeviceConnection - execute cmd error: [wmic, process, where, name=‘Emulator.exe’, get, commandline]

2024-07-08 20:35:44,680 [ 750708] WARN - #com.huawei.tools.idea.hvdmanager.utils.impl.LocalDeviceConnection - execute cmd error: [powershell.exe, get-ciminstance, win32_process, |, ?, name, -eq, Emulator.exe, |, select, commandline]

2024-07-08 20:35:45,092 [ 751120] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities to files

2024-07-08 20:35:45,984 [ 752012] WARN - #com.huawei.tools.idea.hvdmanager.utils.impl.LocalDeviceConnection - execute cmd error: [wmic, process, where, name=‘Emulator.exe’, get, commandline]

2024-07-08 20:35:45,986 [ 752014] WARN - #com.huawei.tools.idea.hvdmanager.utils.impl.LocalDeviceConnection - execute cmd error: [powershell.exe, get-ciminstance, win32_process, |, ?, name, -eq, Emulator.exe, |, select, commandline]

更多关于HarmonyOS 鸿蒙Next模拟器启动不了的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html


在Win10中,wmic已经归档到C:\Windows\System32\文件夹中,而环境变量仅设置到C:\Windows\System32,因此找不到wmic。

类似的问题。卡在卡机画面了。

cpu是amd 7840,确定支持aes,虚拟化也已经开启,系统是win11专业版

相关log

cke_644.png

你这个还不太一样,方便发下相关的日志看看,日志位置可以从模拟器启动按钮旁边的三角箭头点击之后,选择show on disk,然后把目录里面emulator.log和qume.log发出来,我们定位看看。

qemu:
2024-06-25 21:18:51.807 35608 I [UiProxyUtil.cpp(VirtioTrackpadLoadConfig:121)] trackpad config width:1260 height:2720 width_resolution:19 touchscreen:1  
2024-06-25 21:18:51.807 35608 I [UiProxyUtil.cpp(VirtioTrackpadLoadConfig:121)] trackpad config width:3200 height:2400 width_resolution:30 touchscreen:0  
2024-06-25 21:18:51.811 35608 I [teleport_express_pci.c(init_express_driver_names:207)] init_express_driver_names |express_gpu express_bridge express_gps express_accel express_battery express_sync express_keyboard express_touchscreen express_mic express_sensor express_gyro express_motion |  
2024-06-25 21:18:51.827 35608 I [vl.c(RunQemuMain:3768)] Qemu Init end  
2024-06-25 21:26:15.599 35608 I [vl.c(RunQemuMain:3770)] Qemu Main Loop end  
2024-06-25 21:26:15.599 31704 I [cpus.c(qemu_cpu_stop:400)] stop cpu done 000001B3DC0EECB0 0  
2024-06-25 21:26:15.599 32076 I [cpus.c(qemu_cpu_stop:400)] stop cpu done 000001B3DC0E04B0 0  
2024-06-25 21:26:15.599 35240 I [cpus.c(qemu_cpu_stop:400)] stop cpu done 000001B3DBFAC730 0  
2024-06-25 21:26:15.599 2236 I [cpus.c(qemu_cpu_stop:400)] stop cpu done 000001B3DC0FBB80 0  
2024-06-25 21:26:15.602 36036 I [UseEventLoop.cpp(DoSendEventLoop:277)] user event loop quit  
2024-06-25 21:26:15.602 35608 I [vl.c(RunQemuMain:3772)] Qemu Cleanup end  
2024-06-25 21:34:26.439 14248 I [UiProxyUtil.cpp(VirtioTrackpadLoadConfig:121)] trackpad config width:1260 height:2720 width_resolution:19 touchscreen:1  
2024-06-25 21:34:26.439 14248 I [UiProxyUtil.cpp(VirtioTrackpadLoadConfig:121)] trackpad config width:3200 height:2400 width_resolution:30 touchscreen:0  
2024-06-25 21:34:26.441 14248 I [teleport_express_pci.c(init_express_driver_names:207)] init_express_driver_names |express_gpu express_bridge express_gps express_accel express_battery express_sync express_keyboard express_touchscreen express_mic express_sensor express_gyro express_motion |  
2024-06-25 21:34:26.455 14248 I [vl.c(RunQemuMain:3768)] Qemu Init end  
2024-06-25 21:40:50.564 14248 I [vl.c(RunQemuMain:3770)] Qemu Main Loop end  
2024-06-25 21:40:50.564 19072 I [cpus.c(qemu_cpu_stop:400)] stop cpu done 000001BA73673EF0 0  
2024-06-25 21:40:50.564 23284 I [cpus.c(qemu_cpu_stop:400)] stop cpu done 000001BA73666E20 0  
2024-06-25 21:40:50.564 27520 I [cpus.c(qemu_cpu_stop:400)] stop cpu done 000001BA7354B860 0  
2024-06-25 21:40:50.564 23096 I [cpus.c(qemu_cpu_stop:400)] stop cpu done 000001BA73680FD0 0  
2024-06-25 21:40:50.566 23316 I [UseEventLoop.cpp(DoSendEventLoop:277)] user event loop quit  
2024-06-25 21:40:50.567 14248 I [vl.c(RunQemuMain:3772)] Qemu Cleanup end  
2024-06-25 21:45:06.012 22348 I [UiProxyUtil.cpp(VirtioTrackpadLoadConfig:121)] trackpad config width:1260 height:2720 width_resolution:19 touchscreen:1  
2024-06-25 21:45:06.012 22348 I [UiProxyUtil.cpp(VirtioTrackpadLoadConfig:121)] trackpad config width:3200 height:2400 width_resolution:30 touchscreen:0  
2024-06-25 21:45:06.014 22348 I [teleport_express_pci.c(init_express_driver_names:207)] init_express_driver_names |express_gpu express_bridge express_gps express_accel express_battery express_sync express_keyboard express_touchscreen express_mic express_sensor express_gyro express_motion |  
2024-06-25 21:45:06.027 22348 I [vl.c(RunQemuMain:3768)] Qemu Init end  
2024-06-25 21:54:58.047 26708 I [UseEventLoop.cpp(DoSendEventLoop:277)] user event loop quit  
2024-06-25 21:54:58.047 22348 I [vl.c(RunQemuMain:3770)] Qemu Main Loop end  
2024-06-25 21:54:58.048 25660 I [cpus.c(qemu_cpu_stop:400)] stop cpu done 000001C5B9DDB890 0  
2024-06-25 21:54:58.048 25652 I [cpus.c(qemu_cpu_stop:400)] stop cpu done 000001C5B9DBAF40 0  
2024-06-25 21:54:58.048 25648 I [cpus.c(qemu_cpu_stop:400)] stop cpu done 000001C5B9CB02C0 0  
2024-06-25 21:54:58.048 25656 I [cpus.c(qemu_cpu_stop:400)] stop cpu done 000001C5B9DCF3F0 0  
2024-06-25 21:54:58.052 22348 I [vl.c(RunQemuMain:3772)] Qemu Cleanup end  
2024-06-25 21:55:07.453 25412 I [UiProxyUtil.cpp(VirtioTrackpadLoadConfig:121)] trackpad config width:1260 height:2720 width_resolution:19 touchscreen:1  
2024-06-25 21:55:07.453 25412 I [UiProxyUtil.cpp(VirtioTrackpadLoadConfig:121)] trackpad config width:3200 height:2400 width_resolution:30 touchscreen:0  
2024-06-25 21:55:07.454 25412 I [teleport_express_pci.c(init_express_driver_names:207)] init_express_driver_names |express_gpu express_bridge express_gps express_accel express_battery express_sync express_keyboard express_touchscreen express_mic express_sensor express_gyro express_motion |  
2024-06-25 21:55:07.464 25412 I [vl.c(RunQemuMain:3768)] Qemu Init end  

emulator:
2024-06-25 21:18:50.531 34820 [Info] [TraceTool.cpp(InitPipe:28)][TraceTool] trace pipe name is: \\.\pipe\trace_70823_commandPipe  
2024-06-25 21:18:50.533 34820 [Info] [TraceTool.cpp(InitPipe:37)][TraceTool] connect successed  
2024-06-25 21:18:51.280 34820 [Info] [NetworkProxyModule.cpp(ReadProxyPassword:207)]"Failed to open the file: C:/Users/pengxiao/AppData/Roaming/Huawei/DevEcoStudio5.0/emulator/proxy.settings.pwd"  
2024-06-25 21:18:51.282 34820 [Info] [PlayerApiToolBar.cpp(UpdateOverflowButtonIcon:109)]":/light/overflow-default"  
2024-06-25 21:18:51.284 34820 [Info] [PlayerApiToolBar.cpp(UpdateOverflowButtonIcon:109)]":/light/overflow-hover"  
2024-06-25 21:18:51.397 34820 [Info] [EmulatorWindowEvent.cpp(ShowBootAnimation:901)]ShowBootAnimation.  
2024-06-25 21:18:51.452 34820 [Info] [CrashClient.cpp(StartCrashDetect:115)]StartCrash Detect.  
2024-06-25 21:18:51.457 34820 [Info] [CrashClient.cpp(StartCrashServer:256)]start crash server.  
2024-06-25 21:18:51.824 35608 [Info] [QemuManager.cpp(OnSystemReset:430)]System is reset  
2024-06-25 21:26:15.598 34820 [Info] [HdcClient.cpp(IsHdcConnected:85)]wait for guest os boot completed  
2024-06-25 21:26:15.598 34820 [Critical] [EmulatorManager.cpp(void __cdecl RecordFreeDisk:72)]df command return error data.  
2024-06-25 21:26:15.599 34820 [Critical] [UiSnapshotter.cpp(SaveUiSnapshot:42)]Emulator display is not ready.  
2024-06-25 21:26:15.776 34820 [Info] [QemuManager.cpp(StopCheckGuestMem:291)]StopCheckGuestMem  
2024-06-25 21:26:15.777 34820 [Info] [QemuManager.cpp(StopCheckGuestStatus:375)]StopCheckGuestStatus  
2024-06-25 21:26:15.777 34820 [Info] [CrashClient.cpp(~CrashClient:48)]delete pCrashHandel,crash-service normal quit  
2024-06-25 21:26:15.781 34820 [Info] [TraceTool.cpp(DisConnTracePipe:80)][TraceTool] trace pipe closed  
2024-06-25 21:26:15.781 34820 [Info] [TraceTool.cpp(DisConnTracePipe:82)][TraceTool] delete socket  
2024-06-25 21:34:25.388 21960 [Info] [TraceTool.cpp(InitPipe:28)][TraceTool] trace pipe name is: \\.\pipe\trace_44819_commandPipe  
2024-06-25 21:34:25.388 21960 [Info] [TraceTool.cpp(InitPipe:37)][TraceTool] connect successed  
2024-06-25 21:34:26.052 21960 [Info] [NetworkProxyModule.cpp(ReadProxyPassword:207)]"Failed to open the file: C:/Users/pengxiao/AppData/Roaming/Huawei/DevEcoStudio5.0/emulator/proxy.settings.pwd"  
2024-06-25 21:34:26.053 21960 [Info] [PlayerApiToolBar.cpp(UpdateOverflowButtonIcon:109)]":/light/overflow-default"  
2024-06-25 21:34:26.054 21960 [Info] [PlayerApiToolBar.cpp(UpdateOverflowButtonIcon:109)]":/light/overflow-hover"  
2024-06-25 21:34:26.167 21960 [Info] [EmulatorWindowEvent.cpp(ShowBootAnimation:901)]ShowBootAnimation.  
2024-06-25 21:34:26.198 21960 [Info] [CrashClient.cpp(StartCrashDetect:115)]StartCrash Detect.  
2024-06-25 21:34:26.200 21960 [Info] [CrashClient.cpp(StartCrashServer:256)]start crash server.  
2024-06-25 21:34:26.452 14248 [Info] [QemuManager.cpp(OnSystemReset:430)]System is reset  
2024-06-25 21:40:50.561 21960 [Info] [HdcClient.cpp(IsHdcConnected:85)]wait for guest os boot completed  
2024-06-25 21:40:50.561 21960 [Critical] [EmulatorManager.cpp(void __cdecl RecordFreeDisk:72)]df command return error data.  
2024-06-25 21:40:50.563 21960 [Critical] [UiSnapshotter.cpp(SaveUiSnapshot:42)]Emulator display is not ready.  
2024-06-25 21:40:50.721 21960 [Info] [QemuManager.cpp(StopCheckGuestMem:291)]StopCheckGuestMem  
2024-06-25 21:40:50.722 21960 [Info] [QemuManager.cpp(StopCheckGuestStatus:375)]StopCheckGuestStatus  
2024-06-25 21:40:50.722 21960 [Info] [CrashClient.cpp(~CrashClient:48)]delete pCrashHandel,crash-service normal quit  
2024-06-25 21:40:50.724 21960 [Info] [TraceTool.cpp(DisConnTracePipe:80)][TraceTool] trace pipe closed  
2024-06-25 21:40:50.725 21960 [Info] [TraceTool.cpp(DisConnTracePipe:82)][TraceTool] delete socket  
2024-06-25 21:45:05.000 26544 [Info] [TraceTool.cpp(InitPipe:28)][TraceTool] trace pipe name is: \\.\pipe\trace_80117_commandPipe  
2024-06-25 21:45:05.001 26544 [Info] [TraceTool.cpp(InitPipe:37)][TraceTool] connect successed  
2024-06-25 21:45:05.656 26544 [Info] [NetworkProxyModule.cpp(ReadProxyPassword:207)]"Failed to open the file: C:/Users/pengxiao/AppData/Roaming/Huawei/DevEcoStudio5.0/emulator/proxy.settings.pwd"  
2024-06-25 21:45:05.658 26544 [Info] [PlayerApiToolBar.cpp(UpdateOverflowButtonIcon:109)]":/light/overflow-default"  
2024-06-25 21:45:05.660 26544 [Info] [PlayerApiToolBar.cpp(UpdateOverflowButtonIcon:109)]":/light/overflow-hover"  
2024-06-25 21:45:05.732 26544 [Info] [EmulatorWindowEvent.cpp(ShowBootAnimation:901)]ShowBootAnimation.  
2024-06-25 21:45:05.764 26544 [Info] [CrashClient.cpp(StartCrashDetect:115)]StartCrash Detect.  
2024-06-25 21:45:05.765 26544 [Info] [CrashClient.cpp(StartCrashServer:256)]start crash server.  
2024-06-25 21:45:06.023 22348 [Info] [QemuManager.cpp(OnSystemReset:430)]System is reset  
2024-06-25 21:54:58.045 26544 [Info] [HdcClient.cpp(IsHdcConnected:85)]wait for guest os boot completed  
2024-06-25 21:54:58.045 26544 [Critical] [EmulatorManager.cpp(void __cdecl RecordFreeDisk:72)]df command return error data.  
2024-06-25 21:54:58.047 26544 [Critical] [UiSnapshotter.cpp(SaveUiSnapshot:42)]Emulator display is not ready.  
2024-06-25 21:54:58.182 26544 [Info] [QemuManager.cpp(StopCheckGuestMem:291)]StopCheckGuestMem  
2024-06-25 21:54:58.183 26544 [Info] [QemuManager.cpp(StopCheckGuestStatus:375)]StopCheckGuestStatus  
2024-06-25 21:54:58.183 26544 [Info] [CrashClient.cpp(~CrashClient:48)]delete pCrashHandel,crash-service normal quit  
2024-06-25 21:54:58.185 26544 [Info] [TraceTool.cpp(DisConnTracePipe:80)][TraceTool] trace pipe closed  
2024-06-25 21:54:58.185 26544 [Info] [TraceTool.cpp(DisConnTracePipe:82)][TraceTool] delete socket  
2024-06-25 21:55:06.653 26248 [Info] [TraceTool.cpp(InitPipe:28)][TraceTool] trace pipe name is: \\.\pipe\trace_80117_commandPipe  
2024-06-25 21:55:06.654 26248 [Info] [TraceTool.cpp(InitPipe:37)][TraceTool] connect successed  
2024-06-25 21:55:07.152 26248 [Info] [NetworkProxyModule.cpp(ReadProxyPassword:207)]"Failed to open the file: C:/Users/pengxiao/AppData/Roaming/Huawei/DevEcoStudio5.0/emulator/proxy.settings.pwd"  
2024-06-25 21:55:07.154 26248 [Info] [PlayerApiToolBar.cpp(UpdateOverflowButtonIcon:109)]":/light/overflow-default"  
2024-06-25 21:55:07.155 26248 [Info] [PlayerApiToolBar.cpp(UpdateOverflowButtonIcon:109)]":/light/overflow-hover"  
2024-06-25 21:55:07.231 26248 [Info] [EmulatorWindowEvent.cpp(ShowBootAnimation:901)]ShowBootAnimation.  
2024-06-25 21:55:07.261 26248 [Info] [CrashClient.cpp(StartCrashDetect:115)]StartCrash Detect.  
2024-06-25 21:55:07.263 26248 [Info] [CrashClient.cpp(StartCrashServer:256)]start crash server.  
2024-06-25 21:55:07.463 25412 [Info] [QemuManager.cpp(OnSystemReset:430)]System is reset  
2024-06-25 22:45:17.285 18928 [Critical] [BugReportModule.cpp(UpdateScreenshot:23)]Failed to obtain the UpdateScreenshot image.  
2024-06-25 22:45:17.292 11432 [Critical] [BugReportModule.cpp(UpdateScreenshot:23)]Failed to obtain the UpdateScreenshot image.  

我们看了下,初步怀疑可能跟CPU有关,具体还得需要更多日志定位,方便发下相同目录下面的kernal.log日志么?

也可以同步提交工单由相关人跟进, https://developer.huawei.com/consumer/cn/support/feedback/#/

可以发一下ide日志看看,日志路径:ide工具栏 -> help -> show log in explorer -> idea.log

姓名: 张三
职位: 软件工程师
简介: 拥有超过10年的软件开发经验,擅长Java和Python。

模拟器镜像重新下载了,新建个模拟器试试?有没有可能镜像没下载完成呢?

针对“HarmonyOS 鸿蒙Next模拟器启动不了”的问题,可能的原因及解决方案如下:

  1. 环境配置问题

    • 确保已正确安装HarmonyOS SDK及相关依赖。
    • 检查系统环境变量是否设置正确,包括JAVA_HOME(注意,虽不直接涉及Java运行,但环境配置需完整)和模拟器所需的其他路径。
  2. 模拟器版本兼容性

    • 验证所下载的模拟器版本与操作系统版本是否兼容。
    • 尝试更新模拟器到最新版本,或回退到稳定版本。
  3. 资源占用或冲突

    • 检查是否有其他程序占用了模拟器所需的端口或资源。
    • 关闭可能冲突的软件,如其他模拟器或虚拟机。
  4. 日志分析

    • 查看模拟器启动日志,定位具体错误信息。
    • 根据日志中的错误提示,进行针对性的解决。
  5. 权限问题

    • 确保有足够的权限运行模拟器,尤其是在Linux或Mac系统上。

如果以上步骤均无法解决问题,可能是由于更复杂的系统或配置问题。此时,建议直接联系官网客服获取专业支持。官网地址是:https://www.itying.com/category-93-b0.html 如果问题依旧没法解决请联系官网客服。

回到顶部