Skip to content
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

Segment Fault when manually logout wechat #145

Open
windmemory opened this issue Jun 21, 2019 · 3 comments
Open

Segment Fault when manually logout wechat #145

windmemory opened this issue Jun 21, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@windmemory
Copy link
Member

windmemory commented Jun 21, 2019

Important:Please file the issue follow the template, or we won't help you to solve the problem.

0. Report Issue Guide

  1. Please run the following command and check whether the problem has been fixed:
rm -rf package-lock.json
rm -rf node_modules
npm install
  1. Please search in FAQ List first, and make sure your problem has not been solved before.

  2. Please search in the issue first, and make sure your problem had not been reported before

1. Versions

  • What is your wechaty version?
    Answer: > 0.26.0

  • What is your wechaty-puppet-padpro version?
    Answer: 0.3.7

  • What is your node version? (run node --version)
    Answer: 0.15.1

  • What os are you using
    Answer: mac

2. Describe the bug

Segment Fault back again

3. To Reproduce

This part is very important: if you can not provide any reproduce steps, then the problem will be very hard to be recognized.

Steps to reproduce the behavior:

  1. login the bot
  2. wait for some time
  3. manually logout the iPad login on phone
  4. process exited with segment fault error

4. Expected behavior

After logout, show qrcode again

5. Actual behavior

process exited with segment fault

6. Full Output Logs

Set env WECHATY_LOG=silly in order to set log level to silly, then we can get the full log (If you dosen't set log env, log level is info as default, we cannot get the full log)

We need full log instead of log screenshot or log fragments!

Show Logs
18:45:56 SILL GrpcGateway parse(GrpcGetChatRoomMember) get response: {"ChatroomUsername":"5094551397@chatroom","ServerVersion":700000011,"MemberDetails":[{"Username":"lylezhuifeng","NickName":"高原ོ","DisplayName":"","BigHeadImgUrl":"http://wx.qlogo.cn/mmhead/KDLS0fhbCTJ
18:45:56 SILL DedupeApi dedupeApi(GrpcGetChatRoomMember) got results from external service, resolve 0 duplicate api calls.
18:45:56 SILL PadproManager syncRoomMember(5094551397@chatroom) total 6 members
18:45:56 VERB RoomConverter convertRoom() use alternative way to convert.
18:45:56 SILL WechatGateway sendLong() reqSeq: 1671493257
18:45:56 SILL WechatGateway _callApi(GrpcGetChatRoomMember, {"Chatroom":"16176922502@chatroom"}) the 14 times, booted 11.342 seconds since boot.
18:45:56 SILL WechatGateway sendShort() res: commandUrl: /cgi-bin/micromsg-bin/getchatroommemberdetail
18:45:57 SILL GrpcGateway parse(GrpcGetChatRoomMember) get response: {"ChatroomUsername":"11421066118@chatroom","ServerVersion":700000100,"MemberDetails":[{"Username":"wxid_zbym1zg75qbm22","NickName":"常蕊@句子互动运营","DisplayName":"","BigHeadImgUrl":"http://wx.qlogo.cn/mmhe
18:45:57 SILL DedupeApi dedupeApi(GrpcGetChatRoomMember) got results from external service, resolve 0 duplicate api calls.
18:45:57 SILL PadproManager syncRoomMember(11421066118@chatroom) total 16 members
18:45:57 VERB RoomConverter convertRoom() use alternative way to convert.
18:45:57 SILL WechatGateway sendLong() receive back package size: 1654
18:45:57 SILL GrpcGateway parse(GrpcSyncMessage) get response: {"data":[{"MsgType":2,"UserName":"9395151383@chatroom","NickName":"小桔机器人体验群2","Signature":"","SmallHeadImgUrl":"","BigHeadImgUrl":"http://wx.qlogo.cn/mmcrhead/jJtbwFuzNwAyXDibeIicDmljHTOWYepmbu5COtSLR
18:45:57 VERB RoomConverter convertRoom() use alternative way to convert.
18:45:57 SILL PadproManager syncRoomMember(9395151383@chatroom)
18:45:57 SILL PadproGrpc GrpcGetChatRoomMember(9395151383@chatroom)
18:45:57 SILL DedupeApi dedupeApi(GrpcGetChatRoomMember, {"Chatroom":"9395151383@chatroom"})
18:45:57 SILL DedupeApi dedupeApi(GrpcGetChatRoomMember) dedupe api call missed, call the external service.
18:45:57 SILL WechatGateway _callApi(GrpcGetChatRoomMember, {"Chatroom":"9395151383@chatroom"}) the 15 times, booted 11.603 seconds since boot.
18:45:57 VERB RoomConverter convertRoom() use alternative way to convert.
18:45:57 SILL PadproManager syncRoomMember(22515937225@chatroom)
18:45:57 SILL PadproGrpc GrpcGetChatRoomMember(22515937225@chatroom)
18:45:57 SILL DedupeApi dedupeApi(GrpcGetChatRoomMember, {"Chatroom":"22515937225@chatroom"})
18:45:57 SILL DedupeApi dedupeApi(GrpcGetChatRoomMember) dedupe api call missed, call the external service.
18:45:57 VERB RoomConverter convertRoom() use alternative way to convert.
18:45:57 SILL PadproManager syncRoomMember(22838637397@chatroom)
18:45:57 SILL PadproGrpc GrpcGetChatRoomMember(22838637397@chatroom)
18:45:57 SILL DedupeApi dedupeApi(GrpcGetChatRoomMember, {"Chatroom":"22838637397@chatroom"})
18:45:57 SILL DedupeApi dedupeApi(GrpcGetChatRoomMember) dedupe api call missed, call the external service.
18:45:57 VERB RoomConverter convertRoom() use alternative way to convert.
18:45:57 SILL PadproManager syncRoomMember(23324540124@chatroom)
18:45:57 SILL PadproGrpc GrpcGetChatRoomMember(23324540124@chatroom)
18:45:57 SILL DedupeApi dedupeApi(GrpcGetChatRoomMember, {"Chatroom":"23324540124@chatroom"})
18:45:57 SILL DedupeApi dedupeApi(GrpcGetChatRoomMember) dedupe api call missed, call the external service.
18:45:57 VERB RoomConverter convertRoom() use alternative way to convert.
18:45:57 SILL PadproManager syncRoomMember(18664671763@chatroom)
18:45:57 SILL PadproGrpc GrpcGetChatRoomMember(18664671763@chatroom)
18:45:57 SILL DedupeApi dedupeApi(GrpcGetChatRoomMember, {"Chatroom":"18664671763@chatroom"})
18:45:57 SILL DedupeApi dedupeApi(GrpcGetChatRoomMember) dedupe api call missed, call the external service.
18:45:57 SILL GrpcGateway parse(GrpcGetChatRoomMember) get response: {"ChatroomUsername":"16176922502@chatroom","ServerVersion":700000002,"MemberDetails":[{"Username":"wxid_rdwh63c150bm12","NickName":"佳芮","DisplayName":"","BigHeadImgUrl":"http://wx.qlogo.cn/mmhead/ver_
18:45:57 SILL DedupeApi dedupeApi(GrpcGetChatRoomMember) got results from external service, resolve 0 duplicate api calls.
18:45:57 SILL PadproManager syncRoomMember(16176922502@chatroom) total 2 members
18:45:57 VERB RoomConverter convertRoom() use alternative way to convert.
18:45:57 SILL WechatGateway sendShort() res: commandUrl: /cgi-bin/micromsg-bin/getchatroommemberdetail
18:45:57 SILL WechatGateway _callApi(GrpcGetChatRoomMember, {"Chatroom":"22515937225@chatroom"}) the 16 times, booted 11.809 seconds since boot.
18:45:57 SILL WechatGateway sendShort() res: commandUrl: /cgi-bin/micromsg-bin/getchatroommemberdetail
18:45:57 SILL PadproManager syncMessage()
18:45:57 SILL WechatGateway sendShort() receive flag 126 back.
18:45:57 INFO PadproManager Connection has problem, reset self to recover the connection.
18:45:57 VERB PuppetPadpro startManager() manager.on(reset) for wechaty gateway connection issue.. Restarting PuppetPadpro ... 
18:45:57 VERB PuppetPadpro stop()
18:45:57 VERB PuppetPadpro logout()
18:45:57 VERB PadproManager logout()
18:45:57 SILL PadproManager releaseQueue()
18:45:57 VERB PadproManager stopInitData()
18:45:57 INFO CacheManager release()
18:45:57 VERB CacheManager releaseCache()
18:45:57 SILL CacheManager releaseCache() closing caches ...
[1]    41108 segmentation fault  PADPRO_LOG=silly node node_modules/ts-node/dist/bin.js index.ts

7. Additional context

Add any other context about the problem here.

[bug]

@windmemory windmemory added the bug Something isn't working label Jun 21, 2019
@windmemory
Copy link
Member Author

@huan I've encountered segment fault again. Will try to get the minimal reproduce-able code with the 0.14.x flash-store later.

@qinghantang
Copy link

同上 logout的时候直接进程挂了

@huan
Copy link
Member

huan commented Aug 15, 2019

This issue should be fixed with huan/flash-store#45

huan added a commit that referenced this issue Aug 15, 2019
windmemory pushed a commit that referenced this issue Aug 22, 2019
* Upgrade flash-store to v0.15.7 (#145)

* 0.3.19

* Remove unnecessary subdir for new flash-store (#124)

* flash-store v0.16.3

* 0.3.20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants