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

[Other]: Crash after calling login (with attached Go log) #28

Closed
yedashen opened this issue Sep 12, 2023 · 4 comments
Closed

[Other]: Crash after calling login (with attached Go log) #28

yedashen opened this issue Sep 12, 2023 · 4 comments

Comments

@yedashen
Copy link

What would you like to share?

调用OpenIMClient.getInstance().login 回调success,但是出现如下日志,然后app crash了。

2023-09-12 10:43:53.942 24580-0/? E/Go: panic: runtime error: invalid memory address or nil pointer dereference
2023-09-12 10:43:53.942 24580-0/? E/Go: [signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x706f9eccd4]
2023-09-12 10:43:53.942 24580-0/? E/Go:
2023-09-12 10:43:53.942 24580-0/? E/Go: goroutine 23 [running]:
2023-09-12 10:43:53.942 24580-0/? E/Go: open_im_sdk/internal/conversation_msg.(*Conversation).doNotificationNew(0x40004c2ea0, {{0x706fbd8e86, 0x3}, {0x706fdf15a0, 0x40000322e0}, {0x706feba5e0, 0x40003aeea0}})
2023-09-12 10:43:53.942 24580-0/? E/Go: open_im_sdk@v0.0.0-00010101000000-000000000000/internal/conversation_msg/conversation_notification.go:644 +0x184
2023-09-12 10:43:53.942 24580-0/? E/Go: open_im_sdk/internal/conversation_msg.(*Conversation).Work(0x400006df18?, {{0x706fbd8e86, 0x3}, {0x706fdf15a0, 0x40000322e0}, {0x706feba5e0, 0x40003aeea0}})
2023-09-12 10:43:53.942 24580-0/? E/Go: open_im_sdk@v0.0.0-00010101000000-000000000000/internal/conversation_msg/conversation_notification.go:48 +0x248
2023-09-12 10:43:53.942 24580-0/? E/Go: open_im_sdk/pkg/common.DoListener({0x706feb83c0, 0x40004c2ea0}, {0x706feba538, 0x4000158050})
2023-09-12 10:43:53.942 24580-0/? E/Go: open_im_sdk@v0.0.0-00010101000000-000000000000/pkg/common/trigger_channel.go:212 +0x70
2023-09-12 10:43:53.942 24580-0/? E/Go: created by open_im_sdk/internal/login.(*LoginMgr).login
2023-09-12 10:43:53.942 24580-0/? E/Go: open_im_sdk@v0.0.0-00010101000000-000000000000/internal/login/init_login.go:297 +0x1058

Additional information

No response

@yedashen yedashen changed the title [Other]: <give this problem a name> [Other]: 调用login后cras(附带go日志) Sep 12, 2023
@EthanForAi
Copy link

which version?

@yedashen
Copy link
Author

implementation 'io.openim:android-sdk:3.1.0@aar'
implementation 'io.openim:core-sdk:3.1.0@aar'

@skiffer-git
Copy link
Member

Without making any changes, will the demo run properly if executed directly?

@skiffer-git skiffer-git changed the title [Other]: 调用login后cras(附带go日志) [Other]: Crash after calling login (with attached Go log) Sep 14, 2023
@Oliver-WJ
Copy link
Collaborator

Please set listener first and then call login

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants