9***@qq.com
9***@qq.com
  • 发布:2022-07-01 15:18
  • 更新:2022-07-13 16:45
  • 阅读:705

关于HbuilderX无法调试真机跟模拟器的问题

分类:HBuilderX

2022-07-01 14:59:29.437 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 14:59:29.440 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 14:59:29.440 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 14:59:31.945 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 14:59:31.945 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 14:59:31 [LanguageServerProcess] java.lang.NullPointerException
at com.pandora.launcher.core.HMobileDeviceLauncher.consoleStoped(HMobileDeviceLauncher.java:1327)
at com.pandora.language.LanguageServer.doExit(LanguageServer.java:565)
at com.pandora.language.RPCHandler.execute(RPCHandler.java:501)
at com.pandora.language.PipeTransportProtocol$2.run(PipeTransportProtocol.java:116)
at java.lang.Thread.run(Unknown Source)
2022-07-01 14:59:31.973 [INFO:] LSPath is : "D:/HBuilderX/plugins/hx-language-pack-zh-cn/extensions/ls.i18n.json"
2022-07-01 14:59:31.993 [INFO:] default LSPath is : "D:/HBuilderX/plugins/hx-language-pack-zh-cn/extensions/ls.i18n.json"
2022-07-01 14:59:32.029 [WARNING:] uniapp compiled errorOccurred====== "进程已崩溃"
2022-07-01 14:59:32.294 [INFO:] Language Server Running on Port : 9191

2022-07-01 14:59:32.850 [INFO:] node "D:/HBuilderX/plugins/node/node.exe"
2022-07-01 14:59:32.851 [INFO:] args ("--max-old-space-size=2048", "D:/HBuilderX/plugins/uniapp-cli/bin/uniapp-cli.js")
2022-07-01 14:59:33.948 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 14:59:33.948 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 14:59:35.046 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 14:59:35.046 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 14:59:35 [LanguageServerProcess] java.lang.UnsatisfiedLinkError: C:\Users\AppData\Local\Temp\jna-26103307\jna4728764763907672336.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(Unknown Source)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:761)
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:736)
at com.sun.jna.Native.<clinit>(Native.java:131)
at com.pandora.core.utils.Environment$POSIX.<clinit>(Environment.java:25)
at com.pandora.core.utils.Environment.<clinit>(Environment.java:46)
at com.pandora.launcher.core.idevice.CommonToolLibraryFinder.loadPath(CommonToolLibraryFinder.java:31)
at com.pandora.launcher.core.idevice.CommonToolLibraryFinder.<clinit>(CommonToolLibraryFinder.java:17)
at com.pandora.launcher.core.idevice.md.CommonToolLibrary.<clinit>(CommonToolLibrary.java:13)
at com.pandora.launcher.core.idevice.WinCommonToolLibrary.<clinit>(WinCommonToolLibrary.java:9)
at com.pandora.launcher.core.idevice.CommonToolLibraryRegistry.getDeviceLibrary(CommonToolLibraryRegistry.java:11)
at com.pandora.launcher.core.android.AndroidLauncher.<init>(AndroidLauncher.java:147)
at com.pandora.launcher.core.listener.DeviceStartupListener.earlyStartup(DeviceStartupListener.java:22)
at com.pandora.language.LanguageServer.initLauncher(LanguageServer.java:163)
at com.pandora.language.LanguageServer.init(LanguageServer.java:151)
at com.pandora.language.LanguageServer$9.run(LanguageServer.java:2045)
at java.lang.Thread.run(Unknown Source)
2022-07-01 15:00:06.950 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:06.960 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:10.188 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:11.256 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:11.256 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:11.811 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:11.811 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:12.087 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:12 [LanguageServerProcess] zbc connect Mobile is 127.0.0.1:62026=>127.0.0.1:62026
2022-07-01 15:00:12.093 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:17.099 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:17.099 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:17.113 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:17.113 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:17 [LanguageServerProcess] java.lang.NoClassDefFoundError: Could not initialize class com.pandora.launcher.core.idevice.WinCommonToolLibrary
at com.pandora.launcher.core.idevice.CommonToolLibraryRegistry.getDeviceLibrary(CommonToolLibraryRegistry.java:11)
at com.pandora.launcher.core.android.AndroidLauncher.<init>(AndroidLauncher.java:147)
at com.pandora.launcher.core.factory.LauncherFactory.buildLauncher(LauncherFactory.java:34)
at com.pandora.launcher.core.factory.LauncherFactory.buildLauncher(LauncherFactory.java:95)
at com.pandora.launcher.core.HMobileDeviceLauncher.runDevice(HMobileDeviceLauncher.java:285)
at com.pandora.language.LanguageServer.launch(LanguageServer.java:1127)
at com.pandora.language.RPCHandler.execute(RPCHandler.java:598)
at com.pandora.language.PipeTransportProtocol$2.run(PipeTransportProtocol.java:116)
at java.lang.Thread.run(Unknown Source)
2022-07-01 15:00:17.227 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:17.734 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:17.734 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:18.796 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:18.796 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:18.796 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:29.753 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:29.757 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:32.131 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:32.139 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:32.140 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:32.140 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:46.517 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:46.517 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:46.521 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:49.376 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:49.376 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:49.376 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:49.384 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)
2022-07-01 15:00:49.384 [CRITICAL:] QWindowsPipeWriter::write failed. (句柄无效。)

上面的是运行日志,uniapp无法运行到模拟器跟真机,控制台报错如下:
15:10:36.921 java.net.ConnectException: Connection refused: connect
15:10:36.921 at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)
15:10:36.921 at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
15:10:36.921 at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
15:10:36.921 at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
15:10:36.921 at java.net.PlainSocketImpl.connect(Unknown Source)
15:10:36.921 at java.net.SocksSocketImpl.connect(Unknown Source)
15:10:36.921 at java.net.Socket.connect(Unknown Source)
15:10:36.921 at java.net.Socket.connect(Unknown Source)
15:10:36.921 at java.net.Socket.<init>(Unknown Source)
15:10:36.921 at java.net.Socket.<init>(Unknown Source)
15:10:36.923 at com.pandora.console.core.ConsoleLauncher.main(ConsoleLauncher.java:41)

求各路大神帮帮忙,这个非常着急,现在无法开发了,万分感谢!!

2022-07-01 15:18 负责人:无 分享
已邀请:
DCloud_HB_WDL

DCloud_HB_WDL

你提供的信息太少了,都没法回复你。

提供下操作系统版本、HBuilderX版本、项目类型、什么模拟器,控制台截图等等信息。

  • 9***@qq.com (作者)

    您好,楼下已经把相关信息贴出来了,麻烦您看下,谢谢了

    2022-07-01 15:59

9***@qq.com

9***@qq.com (作者)

补充下

1、操作系统版本
版本 Windows 10 家庭中文版
版本号 21H1
安装日期 ‎2020/‎6/‎5
操作系统内部版本 19043.1766
体验 Windows Feature Experience Pack 120.2212.4180.0

2、HBuilderX版本
3.4.18.20220630

3、项目类型
uni-app项目

4、模拟器
夜神模拟器7.0.3.0

5、控制台截图

6、hbuilderX运行日志截图

7、HbuilderX的设置

8、现象描述
试了好几个hbuilderX的版本了,从2.9.8到3.3.10到现在的,都是无法运行到模拟器或者真机,报的都是这样的错误,运行到H5端没问题,现在已经试过把JAVA环境变量去掉,重置过网络,VPN全局无,adb文件替换,控制台adb连接

9***@qq.com

9***@qq.com (作者)

HbuilderX 3.3.13版本时,通过菜单里的《运行》=>《运行到手机或模拟器》,打开运行日志,会产生这样的报错

giao233

giao233

解决了吗?兄弟 我真服了 我也遇到了 安卓没事 苹果运行不报错 就是无法同步代码。。。。。。uniapp 下个项目可jb不用了难受死了

  • 9***@qq.com (作者)

    解决了,我重装了系统解决的。。。

    2022-07-13 16:01

  • giao233

    回复 9***@qq.com: !!!!!!!!!!!!!!

    2022-07-13 16:14

giao233

giao233

写给后来人 如果你安卓没事 ios 无法同步 请检查你资源文件是否用中文命名了!!!

该问题目前已经被锁定, 无法添加新回复