openimsdk / open-im-server

IM Chat
https://openim.io
Apache License 2.0
13.47k stars 2.37k forks source link

Bug: App freezes and crashes #2187

Open tianyu9090 opened 3 months ago

tianyu9090 commented 3 months ago

What happened?

App freezes and crashes

What did you expect to happen?

On the session list page, The application keeps printing error logs: 2024-04-19 06:40:06.262 ERROR [PID:479] [conversation_msg/message_controller.go:52] Unmarshal err {"operationID": "1713508780157", "conversationID": "si_1181044594_5665709918", "latestMsg": "", "error": "unexpected end of JSON input"}

On the session details page,The application keeps printing error logs: 2024-04-19 06:24:04.123 ERROR [PID:449] [util/post.go:98] ApiRequest {"operationID": "1713507779357", "type": "network error", "error": "Post \"https://openim-api.88zb3355.com/conversation/set_conversations\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"} 2024-04-19 06:24:04.123 ERROR [PID:449] [util/post.go:98] ApiRequest {"operationID": "1713507778982", "type": "network error", "error": "Post \"https://openim-api.88zb3355.com/conversation/set_conversations\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"} 2024-04-19 06:24:04.123 ERROR [PID:449] [util/post.go:98] ApiRequest {"operationID": "1713507779352", "type": "network error", "error": "Post \"https://openim-api.88zb3355.com/conversation/set_conversations\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"} 2024-04-19 06:24:04.123 ERROR [PID:449] [util/post.go:98] ApiRequest {"operationID": "1713507779369", "type": "network error", "error": "Post \"https://openim-api.88zb3355.com/conversation/set_conversations\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"}

Question: As a result, the memory increases to 1G, so the application freezes or crashes.I guess the bottom layer keeps making requests, causing the memory to skyrocket.

How can we reproduce it (as minimally and precisely as possible)?

tianming889900@gmail.com, This is my personal email. If you see the information, please contact me and let me know the solution. Thank you.

Anything else we need to know?

No response

version

V3.5.1

Cloud provider

No have

OS version

```console # On Linux: $ cat /etc/os-release # paste output here $ uname -a # paste output here # On Windows: C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture # paste output here ```

Install tools

kubbot commented 3 months ago

Hello! Thank you for filing an issue.

If this is a bug report, please include relevant logs to help us debug the problem.

Join slack 🤖 to connect and communicate with our developers.

tianyu9090 commented 3 months ago

Hello! thank you for your reply! The error log printed above is what I provided. In addition, the link you sent to join slack is invalid. Could you please send it to the developer's email address so that I can communicate with him easily and solve the problem quickly.

skiffer-git commented 2 months ago

https://join.slack.com/t/openimsdk/shared_invite/zt-2hljfom5u-9ZuzP3NfEKW~BJKbpLm0Hw