-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infinite loop: dirtyPayload
/onDirty
/__dirtyPayloadAwait
#177
Comments
Thank you very much for reporting this problem! I believe it's related to
Could you please copy/paste all the related log messages as plain text, instead of an image, so that I can read it more easily and see more information? |
Could you please try the latest If so, please provide all the log messages as plain text and paste them here, so that we can try to see what happends. |
the same problem happen. @huan
|
Thanks for your log, it's very clear. However, I tried to locate the problem today but I failed. I hope we can find more clues for this bug later. |
replicated this issue using docker container, with wechaty:next. |
你的来信我已收到,我会尽快查收。谢谢!
|
Reproduced with our standard getting started ding-dong bot: 08:28:26 VERB PuppetCacheMixin __dirtyPayloadAwait(Contact<2>, @@c00ec1a89247c1ddddcc0210adccb5ad8a9fe75af1637f675cf1cf7c2e0aa28b)
08:28:26 VERB PuppetCacheMixin dirtyPayload(Contact<2>, @@c00ec1a89247c1ddddcc0210adccb5ad8a9fe75af1637f675cf1cf7c2e0aa28b)
08:28:26 VERB PuppetCacheMixin onDirty(Contact<2>, @@c00ec1a89247c1ddddcc0210adccb5ad8a9fe75af1637f675cf1cf7c2e0aa28b)
08:28:26 VERB PuppetContactMixin contactPayloadDirty(@@c00ec1a89247c1ddddcc0210adccb5ad8a9fe75af1637f675cf1cf7c2e0aa28b)
08:28:26 VERB PuppetCacheMixin __dirtyPayloadAwait(Contact<2>, @@c00ec1a89247c1ddddcc0210adccb5ad8a9fe75af1637f675cf1cf7c2e0aa28b)
08:28:26 VERB PuppetCacheMixin dirtyPayload(Contact<2>, @@c00ec1a89247c1ddddcc0210adccb5ad8a9fe75af1637f675cf1cf7c2e0aa28b)
08:28:26 VERB PuppetCacheMixin onDirty(Contact<2>, @@c00ec1a89247c1ddddcc0210adccb5ad8a9fe75af1637f675cf1cf7c2e0aa28b)
08:28:26 VERB PuppetContactMixin contactPayloadDirty(@@c00ec1a89247c1ddddcc0210adccb5ad8a9fe75af1637f675cf1cf7c2e0aa28b)
08:28:26 VERB PuppetCacheMixin __dirtyPayloadAwait(Contact<2>, @@c00ec1a89247c1ddddcc0210adccb5ad8a9fe75af1637f675cf1cf7c2e0aa28b)
08:28:26 VERB PuppetCacheMixin dirtyPayload(Contact<2>, @@c00ec1a89247c1ddddcc0210adccb5ad8a9fe75af1637f675cf1cf7c2e0aa28b)
08:28:26 VERB PuppetCacheMixin onDirty(Contact<2>, @@c00ec1a89247c1ddddcc0210adccb5ad8a9fe75af1637f675cf1cf7c2e0aa28b)
08:28:26 VERB PuppetContactMixin contactPayloadDirty(@@c00ec1a89247c1ddddcc0210adccb5ad8a9fe75af1637f675cf1cf7c2e0aa28b)
08:28:26 VERB PuppetCacheMixin __dirtyPayloadAwait(Contact<2>, @@c00ec1a89247c1ddddcc0210adccb5ad8a9fe75af1637f675cf1cf7c2e0aa28b)
08:28:26 VERB PuppetCacheMixin dirtyPayload(Contact<2>, @@c00ec1a89247c1ddddcc0210adccb5ad8a9fe75af1637f675cf1cf7c2e0aa28b)
08:28:26 VERB PuppetCacheMixin onDirty(Contact<2>, @@c00ec1a89247c1ddddcc0210adccb5ad8a9fe75af1637f675cf1cf7c2e0aa28b)
08:28:26 VERB PuppetContactMixin contactPayloadDirty(@@c00ec1a89247c1ddddcc0210adccb5ad8a9fe75af1637f675cf1cf7c2e0aa28b)
08:28:26 VERB PuppetCacheMixin __dirtyPayloadAwait(Contact<2>, @@c00ec1a89247c1ddddcc0210adccb5ad8a9fe75af1637f675cf1cf7c2e0aa28b)
08:28:26 VERB PuppetCacheMixin dirtyPayload(Contact<2>, @@c00ec1a89247c1ddddcc0210adccb5ad8a9fe75af1637f675cf1cf7c2e0aa28b)
<--- Last few GCs --->
[1484665:0x6070ea0] 29091275 ms: Mark-sweep 4015.1 (4127.6) -> 4001.1 (4128.4) MB, 8142.7 / 0.3 ms (average mu = 0.177, current mu = 0.058) task scavenge might not succeed
[1484665:0x6070ea0] 29099635 ms: Mark-sweep 4017.0 (4128.4) -> 4005.3 (4132.9) MB, 7820.1 / 0.3 ms (average mu = 0.128, current mu = 0.065) allocation failure scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0xb17ec0 node::Abort() [node]
2: 0xa341f4 node::FatalError(char const*, char const*) [node]
3: 0xcfe71e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
4: 0xcfea97 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
5: 0xee8d35 [node]
6: 0xee987c [node]
7: 0xef77b1 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
8: 0xefad0c v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
9: 0xebebb5 v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [node]
10: 0xeb7724 v8::internal::FactoryBase<v8::internal::Factory>::AllocateRawWithImmortalMap(int, v8::internal::AllocationType, v8::internal::Map, v8::internal::AllocationAlignment) [node]
11: 0xeb99d1 v8::internal::FactoryBase<v8::internal::Factory>::NewRawTwoByteString(int, v8::internal::AllocationType) [node]
12: 0x12caa8c v8::internal::IncrementalStringBuilder::Extend() [node]
13: 0xfe814e v8::internal::JsonStringifier::SerializeString(v8::internal::Handle<v8::internal::String>) [node]
14: 0xfea971 v8::internal::JsonStringifier::Result v8::internal::JsonStringifier::Serialize_<true>(v8::internal::Handle<v8::internal::Object>, bool, v8::internal::Handle<v8::internal::Object>) [node]
15: 0xfeb812 v8::internal::JsonStringifier::Result v8::internal::JsonStringifier::Serialize_<true>(v8::internal::Handle<v8::internal::Object>, bool, v8::internal::Handle<v8::internal::Object>) [node]
16: 0xfee8f1 v8::internal::JsonStringifier::Result v8::internal::JsonStringifier::Serialize_<false>(v8::internal::Handle<v8::internal::Object>, bool, v8::internal::Handle<v8::internal::Object>) [node]
17: 0xff025f v8::internal::JsonStringify(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>) [node]
18: 0xda3c95 v8::internal::Builtin_JsonStringify(int, unsigned long*, v8::internal::Isolate*) [node]
19: 0x16148d9 [node] |
dirtyPayload
/onDirty
/__dirtyPayloadAwait
我遇到了同样的问题 03:37:33 VERB PuppetContactMixin contactPayloadDirty(@@790f7a5afe38091f79a475231ecc07d323735cd710bcbf3eda5f0b7b822190f5)
03:37:33 VERB PuppetCacheMixin __dirtyPayloadAwait(Contact<2>, @@790f7a5afe38091f79a475231ecc07d323735cd710bcbf3eda5f0b7b822190f5)
03:37:33 VERB PuppetCacheMixin dirtyPayload(Contact<2>, @@790f7a5afe38091f79a475231ecc07d323735cd710bcbf3eda5f0b7b822190f5)
03:37:33 VERB PuppetCacheMixin onDirty(Contact<2>, @@790f7a5afe38091f79a475231ecc07d323735cd710bcbf3eda5f0b7b822190f5)
03:37:33 VERB PuppetContactMixin contactPayloadDirty(@@790f7a5afe38091f79a475231ecc07d323735cd710bcbf3eda5f0b7b822190f5)
03:37:33 VERB PuppetCacheMixin __dirtyPayloadAwait(Contact<2>, @@790f7a5afe38091f79a475231ecc07d323735cd710bcbf3eda5f0b7b822190f5)
03:37:33 VERB PuppetCacheMixin dirtyPayload(Contact<2>, @@790f7a5afe38091f79a475231ecc07d323735cd710bcbf3eda5f0b7b822190f5)
03:37:33 VERB PuppetCacheMixin onDirty(Contact<2>, @@790f7a5afe38091f79a475231ecc07d323735cd710bcbf3eda5f0b7b822190f5)
03:37:33 VERB PuppetContactMixin contactPayloadDirty(@@790f7a5afe38091f79a475231ecc07d323735cd710bcbf3eda5f0b7b822190f5)
03:37:33 VERB PuppetCacheMixin __dirtyPayloadAwait(Contact<2>, @@790f7a5afe38091f79a475231ecc07d323735cd710bcbf3eda5f0b7b822190f5)
03:37:33 VERB PuppetCacheMixin dirtyPayload(Contact<2>, @@790f7a5afe38091f79a475231ecc07d323735cd710bcbf3eda5f0b7b822190f5)
03:37:33 VERB PuppetCacheMixin onDirty(Contact<2>, @@790f7a5afe38091f79a475231ecc07d323735cd710bcbf3eda5f0b7b822190f5)
03:37:33 VERB PuppetContactMixin contactPayloadDirty(@@790f7a5afe38091f79a475231ecc07d323735cd710bcbf3eda5f0b7b822190f5)
03:37:33 VERB PuppetCacheMixin __dirtyPayloadAwait(Contact<2>, @@790f7a5afe38091f79a475231ecc07d323735cd710bcbf3eda5f0b7b822190f5)
03:37:33 VERB PuppetCacheMixin dirtyPayload(Contact<2>, @@790f7a5afe38091f79a475231ecc07d323735cd710bcbf3eda5f0b7b822190f5)
03:37:33 VERB PuppetCacheMixin onDirty(Contact<2>, @@790f7a5afe38091f79a475231ecc07d323735cd710bcbf3eda5f0b7b822190f5)
03:37:33 VERB PuppetContactMixin contactPayloadDirty(@@790f7a5afe38091f79a475231ecc07d323735cd710bcbf3eda5f0b7b822190f5)
03:37:33 VERB PuppetCacheMixin __dirtyPayloadAwait(Contact<2>, @@790f7a5afe38091f79a475231ecc07d323735cd710bcbf3eda5f0b7b822190f5)
03:37:33 VERB PuppetCacheMixin dirtyPayload(Contact<2>, @@790f7a5afe38091f79a475231ecc07d323735cd710bcbf3eda5f0b7b822190f5)
03:37:33 VERB PuppetCacheMixin onDirty(Contact<2>, @@790f7a5afe38091f79a475231ecc07d323735cd710bcbf3eda5f0b7b822190f5)
03:37:33 VERB PuppetContactMixin contactPayloadDirty(@@790f7a5afe38091f79a475231ecc07d323735cd710bcbf3eda5f0b7b822190f5)
03:37:33 VERB PuppetCacheMixin __dirtyPayloadAwait(Contact<2>, @@790f7a5afe38091f79a475231ecc07d323735cd710bcbf3eda5f0b7b822190f5)
03:37:33 VERB PuppetCacheMixin dirtyPayload(Contact<2>, @@790f7a5afe38091f79a475231ecc07d323735cd710bcbf3eda5f0b7b822190f5)
03:37:33 VERB PuppetWeChat roomRawPayloadParser([object Object])
03:37:33 VERB PuppetWeChat roommemberList(@@790f7a5afe38091f79a475231ecc07d323735cd710bcbf3eda5f0b7b822190f5)
03:37:33 VERB PuppetWeChat roomRawPayload(@@790f7a5afe38091f79a475231ecc07d323735cd710bcbf3eda5f0b7b822190f5)
<--- Last few GCs --->
[46:0x649d110] 176418927 ms: Mark-sweep 2017.6 (2082.7) -> 2001.8 (2086.9) MB, 2589.2 / 0.2 ms (average mu = 0.223, current mu = 0.140) allocation failure scavenge might not succeed
[46:0x649d110] 176421740 ms: Mark-sweep 2017.6 (2086.9) -> 2005.4 (2086.9) MB, 2675.7 / 0.3 ms (average mu = 0.144, current mu = 0.049) allocation failure scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0xb02ec0 node::Abort() [node]
2: 0xa181fb node::FatalError(char const*, char const*) [node]
3: 0xced88e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
4: 0xcedc07 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
5: 0xea5ea5 [node]
6: 0xea6986 [node]
7: 0xeb48be [node]
8: 0xeb5300 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
9: 0xf18844 v8::internal::ScavengeJob::Task::RunInternal() [node]
10: 0xdabcfb non-virtual thunk to v8::internal::CancelableTask::Run() [node]
11: 0xb707a4 node::PerIsolatePlatformData::RunForegroundTask(std::unique_ptr<v8::Task, std::default_delete<v8::Task> >) [node]
12: 0xb72609 node::PerIsolatePlatformData::FlushForegroundTasksInternal() [node]
13: 0x155a396 [node]
14: 0x156c804 [node]
15: 0x155acc8 uv_run [node]
16: 0xa3ffe5 node::SpinEventLoop(node::Environment*) [node]
17: 0xb45056 node::NodeMainInstance::Run(node::EnvSerializeInfo const*) [node]
18: 0xac67e2 node::Start(int, char**) [node]
19: 0x7fd1ec858d0a __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
20: 0xa3bfbc [node]
Aborted (core dumped)
npm notice
npm notice New minor version of npm available! 8.1.0 -> 8.3.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.3.0
npm notice Run npm install -g npm@8.3.0 to update!
npm notice |
1. Versions
Answer:1.10.4
Answer: 默认,web
Answer:"puppeteer": "^11.0.0",
wechaty-puppet-wechat:1.10.4
Answer:v16.13.0
Answer: macos && debian
2. Describe the bug
按照例子自动接受好友请求,代码陷入死循环,一直在输出这个log
3. To Reproduce
主要代码如下,基本跟官网一致
4. Expected behavior
接受好友申请后,不要出现死循环
5. Actual behavior
6. Full Output Logs
We need full log instead of log screenshot or log fragments!
Show Logs
$ WECHATY_LOG=silly node yourbot.js -> PASTE YOUR FULL(DO NOT ONLY PROVIDE FRAGMENTS) LOG MESSAGES HERE
7. Additional context
The text was updated successfully, but these errors were encountered: