HarmonyOS 鸿蒙Next 启动本地模拟器,超时没有响应

HarmonyOS 鸿蒙Next 启动本地模拟器,超时没有响应 问题现象

模拟器启动时间过长,界面显示“HarmonyOS”或者黑屏,无法操作。

解决办法:

  1. 打开任务管理器,查看系统资源占用情况,关闭系统资源占用高的其他程序以使系统保持更好性能。
  2. 在Local Emulator的设备列表窗口,点击“Wipe User Data”清除模拟器数据,然后重新启动模拟器。


更多关于HarmonyOS 鸿蒙Next 启动本地模拟器,超时没有响应的实战教程也可以访问 https://www.itying.com/category-93-b0.html

17 回复

启动本地模拟器后,一直黑屏没反应

  1. Emulator.log

2024-04-15 23:07:13.634 [Info] set “HarmonyOS_HVD_HOME” : “E:\IDE_profiles\Emulator\deployed”

2024-04-15 23:07:13.687 [Info] whpx unavailable.

2024-04-15 23:07:13.995 [Info] Use haxm as hardware accelerator.

2024-04-15 23:07:13.997 [Info] Find the free port: 8554

2024-04-15 23:07:14.780 [Info] Starting qemu.

  1. qemu-error.log

WARNING | System image is writable

pc_memory_init: above 4g size: c0000000

dsound: Could not initialize DirectSoundCapture

dsound: Reason: No sound driver is available for use, or the given GUID is not a valid DirectSound device ID

qemu-system-x86_64.exe: warning: opening audio input failed

WARNING | Token auth requested without tls, restricting access to localhost.

WARNING | Error when accepting host connectionError message: operation would block

  1. qemu.log

INFO | added library vulkan-1.dll

INFO | configAndStartRenderer: setting vsync to 60 hz

HAX is working and emulator runs in fast virt mode.

Attempt to initialize voice without DirectSoundCapture object

Attempt to initialize voice without DirectSoundCapture object

Failed to create voice `goldfish_audio_in’

INFO | Started GRPC server at 127.0.0.1:8554, security: Local+token

INFO | Advertising in: C:\Users\lileiei\AppData\Local\Temp\hvd\running\pid_17636.ini

Attempt to initialize voice without DirectSoundCapture object

Attempt to initialize voice without DirectSoundCapture object

Failed to create voice `adc’

INFO | boot completed

INFO | Increasing screen off timeout, logcat buffer size to 256K.

INFO | Revoking microphone permissions

  1. versionInfo.txt

3.1.0.501

  1. IDE版本

DevEco Studio 3.1.1 Release

Build Version: 3.1.0.501, built on June 20, 2023

Build #DS-223.8617.56.36.310501

Runtime version: 17.0.6+10-b829.5 amd64

VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

Windows 11 10.0

GC: G1 Young Generation, G1 Old Generation

Memory: 1536M

Cores: 16

Registry:

external.system.auto.import.disabled=true

麻烦帮忙看一下,感谢!

更多关于HarmonyOS 鸿蒙Next 启动本地模拟器,超时没有响应的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html


我也是,打开模拟器就重启

模拟器无法启动,按照官方指导(下图)试了几次也不行

下面是我的Studio版本信息:

DevEco Studio 3.1.1 Release
Build Version: 3.1.0.501, built on June 20, 2023
Build #DS-223.8617.56.36.310501
Runtime version: 17.0.6+10-b829.5 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1536M
Cores: 8
Registry:
  external.system.auto.import.disabled=true

下面是镜像版本:

下面是模拟器版本

下面是模拟器日志

2024-03-07 14:42:27.860 [Info] set "HarmonyOS_HVD_HOME" : "D:\Harmony\SDK\hmscore\emulator\deployed"
2024-03-07 14:42:27.924 [Info] whpx unavailable.
2024-03-07 14:42:28.778 [Info] Use haxm as hardware accelerator.
2024-03-07 14:42:28.783 [Info] Find the free port: 8554
2024-03-07 14:42:29.870 [Info] Starting qemu.
2024-03-07 14:53:23.483 [Info] qemu stopped, exit code is -1073741819
2024-03-07 14:58:27.653 [Info] set "HarmonyOS_HVD_HOME" : "D:\Harmony\SDK\hmscore\emulator\deployed"
2024-03-07 14:58:27.712 [Info] whpx unavailable.
2024-03-07 14:58:28.588 [Info] Use haxm as hardware accelerator.
2024-03-07 14:58:28.594 [Info] Find the free port: 8554
2024-03-07 14:58:29.875 [Info] Starting qemu.
2024-03-07 15:04:50.232 [Info] qemu stopped, exit code is -1073741819
2024-03-08 13:42:38.672 [Info] set "HarmonyOS_HVD_HOME" : "D:\Harmony\SDK\hmscore\emulator\deployed"
2024-03-08 13:42:38.837 [Info] whpx unavailable.
2024-03-08 13:42:39.741 [Info] Use haxm as hardware accelerator.
2024-03-08 13:42:39.746 [Info] Find the free port: 8554
2024-03-08 13:42:41.299 [Info] Starting qemu.

通过 hdc 获取到的完整日志可以见附件

收到,感谢支持,我们基于以上信息分析分析下~

通过上面的操作也还是没有用,启动之后就无响应,多点几下就黑屏 ,报错信息如下:

【Emulator.log】

2023-12-19 09:41:54.518 [Info] set “HarmonyOS_HVD_HOME” : “/Users/beezen/.Huawei/HarmonyOSEmulator/deployed”

2023-12-19 09:41:55.290 [Info] Find the free port: 8554

2023-12-19 09:41:56.313 [Info] Starting qemu.

2023-12-19 09:45:39.155 [Warning] QProcess: Destroyed while process ("/Users/beezen/Library/Huawei/Sdk/hmscore/3.1.0/toolchains/hdc") is still running.

2023-12-19 09:45:39.156 [Critical] get system log from hdc shell error

【qemu-error.log】

WARNING | System image is writable

QMetaObject::connectSlotsByName: No matching signal for on_new_posture_requested(int)

QMetaObject::connectSlotsByName: No matching signal for on_dismiss_posture_selection_dialog()

QMetaObject::connectSlotsByName: No matching signal for on_new_resizable_requested(PresetEmulatorSizeType)

QMetaObject::connectSlotsByName: No matching signal for on_dismiss_resizable_dialog()

WARNING | cannot add library /Users/beezen/Library/Huawei/Sdk/hmscore/emulator/qemu/darwin-x86_64/lib64/vulkan/libvulkan.dylib: failed

QCssParser::parseHexColor: Unknown color name ‘#FFFFFFs’

WARNING | Token auth requested without tls, restricting access to localhost.

【qemu.log】

INFO | configAndStartRenderer: setting vsync to 60 hz

INFO | added library /Users/beezen/Library/Huawei/Sdk/hmscore/emulator/lib64/vulkan/libvulkan.dylib

INFO | Started GRPC server at 127.0.0.1:8554, security: Local+token

INFO | Advertising in: /Users/beezen/Library/Caches/TemporaryItems/hvd/running/pid_18859.ini

INFO | boot completed

INFO | boot time 138739 ms

INFO | Increasing screen off timeout, logcat buffer size to 256K.

INFO | Revoking microphone permissions

你好,感谢支持,麻烦告知下DevEco Studio的版本号,模拟器的镜像版本哈,

DevEco Studio 3.1.1 Release
Build Version: 3.1.0.501, built on June 20, 2023
Build #DS-223.8617.56.36.310501
Runtime version: 17.0.6+10-b829.5 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.6
GC: G1 Young Generation, G1 Old Generation
Memory: 1536M
Cores: 12
Metal Rendering is ON
Registry:
    external.system.auto.import.disabled=true

模拟器镜像
3.1.0.401
X86

好的,感谢支持哦,我们基于以上信息分析下~,

DevEco Studio 3.1 启动本地模拟器,电脑直接卡死,只能强制关机

系统: win10 内存:16G

你好,麻烦发一下你这边出现问题时模拟器的日志哦,

没有用,重新创建了个模拟器还是卡在“HarmonyOS”界面。电脑16G内存,配置应该是够的。

你好,麻烦发一下你这边出现问题时模拟器的日志,系统的信息哦,

清楚完数据之后,重新启动模拟器,一点击电脑就重启了。

你好,尝试使用管理员模式启动 cmd,输入 bcdedit /set hypervisorlaunchtype off
然后重启一下电脑,再启动模拟器试一下,

针对“HarmonyOS 鸿蒙Next 启动本地模拟器,超时没有响应”的问题,以下是一些可能的解决方案:

  1. 检查系统资源:确保你的计算机满足运行鸿蒙模拟器所需的硬件要求,包括足够的内存、CPU和存储空间。资源不足可能导致模拟器启动超时。

  2. 关闭不必要的应用程序:在启动模拟器之前,关闭所有不必要的应用程序,以释放系统资源,确保模拟器有足够的资源来运行。

  3. 更新鸿蒙开发工具和SDK:确保你使用的鸿蒙开发工具和SDK是最新版本。旧版本可能包含已知的错误或不支持新特性,导致模拟器无法正常工作。

  4. 检查网络连接:虽然启动本地模拟器通常不需要网络连接,但确保你的计算机处于稳定的网络环境中,以防万一某些组件需要从网络下载更新。

  5. 重新安装鸿蒙模拟器:如果以上步骤都没有解决问题,尝试卸载并重新安装鸿蒙模拟器。这可以修复可能因安装过程中出现的问题而导致的启动失败。

  6. 检查日志文件:查看鸿蒙模拟器的日志文件,以获取更多关于启动失败的信息。这有助于确定问题的具体原因。

如果问题依旧没法解决请联系官网客服,官网地址是:https://www.itying.com/category-93-b0.html。他们将能够提供更具体的帮助和解决方案。

回到顶部