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

App crashes after recover of any user #18092

Closed
pavloburykh opened this issue Dec 6, 2023 · 14 comments
Closed

App crashes after recover of any user #18092

pavloburykh opened this issue Dec 6, 2023 · 14 comments

Comments

@pavloburykh
Copy link
Contributor

This bug is not in our develop yet. So it should be reproduced in the builds looking at current go develop.

You can reproduce the bug in PR builds that include new go version, for example #17941 or #18069

Steps:

  1. Recover any user
  2. See if app is not crashing after recovery

Actual result: app crashes

Status-debug-logs (88).zip

telegram-cloud-document-2-5442983136206012091.mp4

Expected result: app does not crash

Additional Information

  • Status version: nightly
  • Operating System: Android, iOS
@cammellos
Copy link
Contributor

INFO [11-29|10:12:55.686|github.com/status-im/status-go/protocol/messenger_mailserver_cycle.go:270]                                          connecting error                         eerr="tcp check timeout: I/O timeout"
INFO [11-29|10:12:55.686|github.com/status-im/status-go/protocol/messenger_mailserver_cycle.go:270]                                          connecting error                         eerr="tcp check timeout: I/O timeout"
INFO [11-29|10:12:55.686|github.com/status-im/status-go/protocol/messenger_mailserver_cycle.go:270]                                          connecting error                         eerr="tcp check timeout: I/O timeout"
INFO [11-29|10:12:55.687|github.com/status-im/status-go/protocol/messenger_mailserver_cycle.go:270]                                          connecting error                         eerr="tcp check timeout: I/O timeout"
INFO [11-29|10:12:55.687|github.com/status-im/status-go/protocol/messenger_mailserver_cycle.go:270]                                          connecting error                         eerr="tcp check timeout: I/O timeout"
INFO [11-29|10:12:55.687|github.com/status-im/status-go/protocol/messenger_mailserver_cycle.go:270]                                          connecting error                         eerr="tcp check timeout: I/O timeout"

Don't think it's causing the crash, but worth maybe having a look, @richard-ramos

@pavloburykh
Copy link
Contributor Author

@cammellos here is a logcat
crashlog_061223.log.zip

@cammellos
Copy link
Contributor

12-06 14:36:15.474 19241     0 E Go      : [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x7998307748]
12-06 14:36:15.474 19241     0 E Go      : 
12-06 14:36:15.474 19241     0 E Go      : goroutine 28293 [running]:
12-06 14:36:15.474 19241     0 E Go      : github.com/status-im/status-go/services/wallet/transfer.(*loadBlocksAndTransfersCommand).fetchHistoryBlocks(0x40062c2480, {0x4003be1e78?, 0x4?}, 0x4?, {0x8a, 0x13, 0x12, 0x24, 0x6b, 0x98, ...}, ...)
12-06 14:36:15.474 19241     0 E Go      : 	github.com/status-im/status-go/services/wallet/transfer/commands_sequential.go:803 +0x2d8
12-06 14:36:15.475 19241     0 E Go      : github.com/status-im/status-go/services/wallet/transfer.(*loadBlocksAndTransfersCommand).Run(0x40062c2480, {0x7998e3d818, 0x4006205340})
12-06 14:36:15.475 19241     0 E Go      : 	github.com/status-im/status-go/services/wallet/transfer/commands_sequential.go:745 +0x3c4
12-06 14:36:15.475 19241     0 E Go      : github.com/status-im/status-go/services/wallet/async.InfiniteCommand.Run({0x4006847601?, 0x4006726d00?}, {0x7998e3d818, 0x4006205340})
12-06 14:36:15.475 19241     0 E Go      : 	github.com/status-im/status-go/services/wallet/async/async.go:72 +0x40
12-06 14:36:15.475 19241     0 E Go      : github.com/status-im/status-go/services/wallet/async.(*Group).Add.func1()
12-06 14:36:15.475 19241     0 E Go      : 	github.com/status-im/status-go/services/wallet/async/async.go:101 +0x34
12-06 14:36:15.475 19241     0 E Go      : created by github.com/status-im/status-go/services/wallet/async.(*Group).Add
12-06 14:36:15.475 19241     0 E Go      : 	github.com/status-im/status-go/services/wallet/async/async.go:100 +0x8c
12-06 14:36:15.475 19241 20645 E GoLog   : panic: runtime error: invalid memory address or nil pointer dereference
12-06 14:36:15.475 19241 20645 E GoLog   : [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x7998307748]

@cammellos
Copy link
Contributor

@pavloburykh can you ask people to rebase against status-go develop? the code has changed since then

@pavloburykh
Copy link
Contributor Author

pavloburykh commented Dec 6, 2023

@pavloburykh can you ask people to rebase against status-go develop? the code has changed since then

@cammellos unfortunately rebasing didn't help. I have checked latest builds here #18069 and still facing the crash.

Attaching fresh logcat if needed.

crashlog_111333.log.zip

@cammellos
Copy link
Contributor

12-06 16:26:11.140 21775     0 E Go      : goroutine 1973 [running]:
12-06 16:26:11.140 21775     0 E Go      : github.com/status-im/status-go/services/wallet/transfer.(*loadBlocksAndTransfersCommand).fetchHistoryBlocks(0x4003f54c60, {0x4002671e78?, 0x4?}, 0x4?, {0x4, 0x88, 0x34, 0x26, 0x6d, 0x47, ...}, ...)
12-06 16:26:11.140 21775     0 E Go      : 	github.com/status-im/status-go/services/wallet/transfer/commands_sequential.go:821 +0x2d8
12-06 16:26:11.140 21775     0 E Go      : github.com/status-im/status-go/services/wallet/transfer.(*loadBlocksAndTransfersCommand).Run(0x4003f54c60, {0x7cf5213af8, 0x4003ec3b00})
12-06 16:26:11.140 21775     0 E Go      : 	github.com/status-im/status-go/services/wallet/transfer/commands_sequential.go:763 +0x3c4
12-06 16:26:11.140 21775     0 E Go      : github.com/status-im/status-go/services/wallet/async.InfiniteCommand.Run({0x0?, 0x4003f398f0?}, {0x7cf5213af8, 0x4003ec3b00})
12-06 16:26:11.140 21775     0 E Go      : 	github.com/status-im/status-go/services/wallet/async/async.go:72 +0x40
12-06 16:26:11.140 21775     0 E Go      : github.com/status-im/status-go/services/wallet/async.(*Group).Add.func1()
12-06 16:26:11.141 21775     0 E Go      : 	github.com/status-im/status-go/services/wallet/async/async.go:101 +0x34
12-06 16:26:11.141 21775     0 E Go      : created by github.com/status-im/status-go/services/wallet/async.(*Group).Add
12-06 16:26:11.141 21775     0 E Go      : 	github.com/status-im/status-go/services/wallet/async/async.go:100 +0x8c

@cammellos
Copy link
Contributor

@IvanBelyakoff could you have a look at the issue above please?

@siddarthkay
Copy link
Contributor

siddarthkay commented Dec 6, 2023

@cammellos
Copy link
Contributor

@IvanBelyakoff will take a look at this tomorrow morning. Thank you!

@IvanBelyakoff
Copy link

Guys, sorry for the issue. Here is a quick fix status-im/status-go#4433
For me no crash on recovery on desktop.
@pavloburykh @cammellos

@pavloburykh
Copy link
Contributor Author

Guys, sorry for the issue. Here is a quick fix status-im/status-go#4433 For me no crash on recovery on desktop. @pavloburykh @cammellos

@IvanBelyakoff thank you for the fix! Unfortunately still reproducing issue when recovering user with tokens. I have left the details here #18110 (comment)

@IvanBelyakoff
Copy link

I updated the PR, please check it once again. There was another crash in a different place

@cammellos
Copy link
Contributor

@pavloburykh removing release blocker label, as this is not on 1.26 branch

@pavloburykh
Copy link
Contributor Author

Fixed by #18110

@ilmotta ilmotta removed the bug label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants