wechaty / puppet-wechat

Wechaty Puppet Provider for WeChat
https://www.npmjs.com/package/wechaty-puppet-wechat
Apache License 2.0
408 stars 68 forks source link

Error: Page crashed! #131

Open he-jason opened 3 years ago

he-jason commented 3 years ago

When all dependencies are installed, use npm run start the following error pops up at startup The error report is as follows 错误 Error: Page crashed! at PuppetWeChat. (/mnt/g/wechat-assistant-pro/node_modules/wechaty/dist/src/wechaty.js:271:44) at PuppetWeChat.emit (events.js:315:20) at PuppetWeChat.EventEmitter.emit (domain.js:467:12) at Bridge. (/mnt/g/wechat-assistant-pro/node_modules/wechaty/node_modules/wechaty-puppet-wechat/dist/src/puppet-wechat.js:202:45) at Bridge.emit (events.js:315:20) at Bridge.EventEmitter.emit (domain.js:467:12) at /mnt/g/wechat-assistant-pro/node_modules/wechaty/node_modules/wechaty-puppet-wechat/dist/src/bridge.js:169:36 at /mnt/g/wechat-assistant-pro/node_modules/wechaty/node_modules/puppeteer/lib/cjs/vendor/mitt/src/index.js:51:62 at Array.map () at Object.emit (/mnt/g/wechat-assistant-pro/node_modules/wechaty/node_modules/puppeteer/lib/cjs/vendor/mitt/src/index.js:51:43) at Page.emit (/mnt/g/wechat-assistant-pro/node_modules/wechaty/node_modules/puppeteer/lib/cjs/puppeteer/common/EventEmitter.js:72:22) at Page._onTargetCrashed (/mnt/g/wechat-assistant-pro/node_modules/wechaty/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:268:14) at /mnt/g/wechat-assistant-pro/node_modules/wechaty/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:154:57 at /mnt/g/wechat-assistant-pro/node_modules/wechaty/node_modules/puppeteer/lib/cjs/vendor/mitt/src/index.js:51:62 at Array.map () at Object.emit (/mnt/g/wechat-assistant-pro/node_modules/wechaty/node_modules/puppeteer/lib/cjs/vendor/mitt/src/index.js:51:43) at CDPSession.emit (/mnt/g/wechat-assistant-pro/node_modules/wechaty/node_modules/puppeteer/lib/cjs/puppeteer/common/EventEmitter.js:72:22) at CDPSession._onMessage (/mnt/g/wechat-assistant-pro/node_modules/wechaty/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:225:18) at Connection._onMessage (/mnt/g/wechat-assistant-pro/node_modules/wechaty/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:101:25) at WebSocket. (/mnt/g/wechat-assistant-pro/node_modules/wechaty/node_modules/puppeteer/lib/cjs/puppeteer/node/NodeWebSocketTransport.js:13:32) at WebSocket.onMessage (/mnt/g/wechat-assistant-pro/node_modules/wechaty/node_modules/ws/lib/event-target.js:132:16) at WebSocket.emit (events.js:315:20) at WebSocket.EventEmitter.emit (domain.js:467:12) at Receiver.receiverOnMessage (/mnt/g/wechat-assistant-pro/node_modules/wechaty/node_modules/ws/lib/websocket.js:835:20) at Receiver.emit (events.js:315:20) at Receiver.EventEmitter.emit (domain.js:467:12) at Receiver.dataMessage (/mnt/g/wechat-assistant-pro/node_modules/wechaty/node_modules/ws/lib/receiver.js:437:14) at Receiver.getData (/mnt/g/wechat-assistant-pro/node_modules/wechaty/node_modules/ws/lib/receiver.js:367:17) at Receiver.startLoop (/mnt/g/wechat-assistant-pro/node_modules/wechaty/node_modules/ws/lib/receiver.js:143:22) at Receiver._write (/mnt/g/wechat-assistant-pro/node_modules/wechaty/node_modules/ws/lib/receiver.js:78:10) at writeOrBuffer (internal/streams/writable.js:358:12) at Receiver.Writable.write (internal/streams/writable.js:303:10) at Socket.socketOnData (/mnt/g/wechat-assistant-pro/node_modules/wechaty/node_modules/ws/lib/websocket.js:910:35) at Socket.emit (events.js:315:20) at Socket.EventEmitter.emit (domain.js:467:12) at addChunk (internal/streams/readable.js:309:12) at readableAddChunk (internal/streams/readable.js:284:9) at Socket.Readable.push (internal/streams/readable.js:223:10) at TCP.onStreamRead (internal/stream_base_commons.js:188:23) 推送错误成功 Pagecrashed!

huan commented 3 years ago

Thanks for the reporting.

It will be better if you can paste the log messages in a text format instead of an image because it would be easier to be read and searched.

I'd like to suggest that you can follow https://wechaty.js.org/docs/getting-started/quick-start to get started on the cloud, then try to run in your local environment again.

he-jason commented 3 years ago

Thanks for the reporting.

It will be better if you can paste the log messages in a text format instead of an image because it would be easier to be read and searched.

I'd like to suggest that you can follow https://wechaty.js.org/docs/getting-started/quick-start to get started on the cloud, then try to run in your local environment again.

os envoriment

root@Jason-Office:/mnt/g/wechat-assistant-pro# node --version v14.16.1 root@Jason-Office:/mnt/g/wechat-assistant-pro# npm -v 7.11.1 root@Jason-Office:/mnt/g/wechat-assistant-pro# uname -a Linux Jason-Office 4.4.0-18362-Microsoft #836-Microsoft Mon May 05 16:04:00 PST 2020 x86_64 x86_64 x86_64 GNU/Linux root@Jason-Office:/mnt/g/wechat-assistant-pro# cat /etc/ Display all 187 possibilities? (y or n) root@Jason-Office:/mnt/g/wechat-assistant-pro# cat /etc/sys sysctl.conf sysctl.d/ systemd/ root@Jason-Office:/mnt/g/wechat-assistant-pro# cat /etc/os-release NAME="Ubuntu" VERSION="20.04.1 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.1 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal