收藏
回答

开启skyline后开发工具报错?

问题:

开启skyline渲染后,调试器崩溃,devtools报 "Devtools was disconnected from the page. "。

这一问题在同一项目中仅在调试启用了skyline的页面出现,其他页面完全正常没有问题。

这一问题在我的设备上,无论使用从webview移植的项目页面,还是使用由开发者工具生成的空白页面,均可以100%稳定复现。

----- 调试器 -----

Uncaught (in promise) undefined
(env: Windows,mp,1.06.2209222; lib: 2.26.1)
	(anonymous)	@	WAServiceMainContext…37812421&v=2.26.1:1
	_privEmit	@	WAServiceMainContext…37812421&v=2.26.1:1
	emit	@	WAServiceMainContext…37812421&v=2.26.1:1
	Be	@	WAServiceMainContext…37812421&v=2.26.1:1
	Qe	@	WAServiceMainContext…37812421&v=2.26.1:1
	(anonymous)	@	WAServiceMainContext…37812421&v=2.26.1:1
	emit	@	WAServiceMainContext…37812421&v=2.26.1:1
	(anonymous)	@	instanceframe?s=1664…8255739&autoload:19
	Promise.then (async)		
	(anonymous)	@	instanceframe?s=1664…8255739&autoload:15

----- 调试器 -----

----- 开发者工具 -----

E:\Apps\微信web开发者工具\c…ist\instrument.js:1 
[2022-09-27 08:39:44.184] [WARN] [C:\Users\SierraQin\AppData\Local\微信开发者工具\User Data\38ea236e6136d1093717eafa733b272e\WeappCode\package.nw\core.wxvpkg\f67cdfd87843382519d9c48d8a0bd4dc.js] [webview] this webview died unhappily with procid 44, target debuggee 3CEF46615958C4C87024E7329AAFB6B5

	(anonymous)	@	E:\Apps\微信web开发者工具\c…ist\instrument.js:1
	write	@	C:\Users\SierraQin\A…f6febb45c187c3.js:8
	(anonymous)	@	C:\Users\SierraQin\A…db2900a9d684.js:148
	Log.write	@	C:\Users\SierraQin\A…db2900a9d684.js:147
	Log.formattedWarn	@	C:\Users\SierraQin\A…fdb2900a9d684.js:47
	Log.warn	@	C:\Users\SierraQin\A…fdb2900a9d684.js:44
	warn	@	C:\Users\SierraQin\A…3352c5e8a76dc8.js:2
	onWebviewExit	@	C:\Users\SierraQin\A…d9c48d8a0bd4dc.js:2
	n	@	E:\Apps\微信web开发者工具\c…r\dist\helpers.js:1
	(anonymous)	@	extensions::safeMethods:20
	GuestViewContainer.dispatchEvent	@	extensions::guestViewContainer:150
	(anonymous)	@	extensions::guestViewEvents:117
	(anonymous)	@	extensions::guestViewEvents:179
E:\Apps\微信web开发者工具\c…ist\instrument.js:1 
[2022-09-27 08:39:44.185] [WARN] [C:\Users\SierraQin\AppData\Local\微信开发者工具\User Data\38ea236e6136d1093717eafa733b272e\WeappCode\package.nw\core.wxvpkg\f67cdfd87843382519d9c48d8a0bd4dc.js] [webview] webview exit reason crashed

	(anonymous)	@	E:\Apps\微信web开发者工具\c…ist\instrument.js:1
	write	@	C:\Users\SierraQin\A…f6febb45c187c3.js:8
	(anonymous)	@	C:\Users\SierraQin\A…db2900a9d684.js:148
	Log.write	@	C:\Users\SierraQin\A…db2900a9d684.js:147
	Log.formattedWarn	@	C:\Users\SierraQin\A…fdb2900a9d684.js:47
	Log.warn	@	C:\Users\SierraQin\A…fdb2900a9d684.js:44
	warn	@	C:\Users\SierraQin\A…3352c5e8a76dc8.js:2
	onWebviewExit	@	C:\Users\SierraQin\A…d9c48d8a0bd4dc.js:2
	n	@	E:\Apps\微信web开发者工具\c…r\dist\helpers.js:1
	(anonymous)	@	extensions::safeMethods:20
	GuestViewContainer.dispatchEvent	@	extensions::guestViewContainer:150
	(anonymous)	@	extensions::guestViewEvents:117
	(anonymous)	@	extensions::guestViewEvents:179
E:\Apps\微信web开发者工具\c…ist\instrument.js:1 
[2022-09-27 08:39:44.185] [ERROR] [C:\Users\SierraQin\AppData\Local\微信开发者工具\User Data\38ea236e6136d1093717eafa733b272e\WeappCode\package.nw\core.wxvpkg\0137de1627f9007d2420e9783d77cc35.js] appservice webview exit with reason: crashed

	(anonymous)	@	E:\Apps\微信web开发者工具\c…ist\instrument.js:1
	write	@	C:\Users\SierraQin\A…f6febb45c187c3.js:8
	(anonymous)	@	C:\Users\SierraQin\A…db2900a9d684.js:148
	Log.write	@	C:\Users\SierraQin\A…db2900a9d684.js:147
	Log.formattedError	@	C:\Users\SierraQin\A…fdb2900a9d684.js:61
	Log.error	@	C:\Users\SierraQin\A…fdb2900a9d684.js:58
	error	@	C:\Users\SierraQin\A…3352c5e8a76dc8.js:2
	(anonymous)	@	C:\Users\SierraQin\A…20e9783d77cc35.js:2
	n	@	E:\Apps\微信web开发者工具\c…r\dist\helpers.js:1
	(anonymous)	@	extensions::safeMethods:20
	GuestViewContainer.dispatchEvent	@	extensions::guestViewContainer:150
	(anonymous)	@	extensions::guestViewEvents:117
	(anonymous)	@	extensions::guestViewEvents:179


----- 开发者工具 -----

环境:

win10 x64 21H2

开发者工具从 Nightly 1.06.2209022 至 Nightly 1.06.2209222 的几个开发版和 Stable 1.06.2209070 及 Stable 1.06.2209190 都试过,可以稳定复现

微信基础库从 2.25.0 到 2.26.1 都试过了

特别的,这一问题似乎与安装路径是否存在中文目录名无关。同一台设备上安装了两套开发者工具,上面截图上是开发版Nightly的,带中文目录名,另一套稳定版的开发者工具整个安装路径不带中文和空格,问题同样存在。

最后一次编辑于  2022-09-27
回答关注问题邀请回答
收藏

1 个回答

  • 社区技术运营专员--阳光
    社区技术运营专员--阳光
    2022-10-10

    你好,问题已知。正在排查

    2022-10-10
    有用
    回复 1
    • SierraQin
      SierraQin
      2022-10-21
      更新至基础库2.27.0 开发者工具Nightly 1.06.2210192 后,问题已解决
      2022-10-21
      回复
登录 后发表内容