jerson / flutter-rsa

RSA for flutter made with golang for fast performance with support for android, ios, macos, linux, windows, web and hover
https://pub.dev/packages/fast_rsa
MIT License
67 stars 20 forks source link

EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000051 #71

Open Dhciolfi opened 1 month ago

Dhciolfi commented 1 month ago

Hi,

I have a Flutter app in production where I am using this plugin to encrypt some data.

However, I have started seeing the following exception on my crashlytics:

Crashed: Thread 0 Runner 0x6ebf0 runtime.sigtramp.abi0 + 4370033648 1 Runner 0x6ebe0 runtime.sigtramp.abi0 + 4370033632 2 libsystem_platform.dylib 0x1a90 _sigtramp + 56 3 fast_rsa 0x5a14c runtime.funcMaxSPDelta + 236 4 fast_rsa 0x5a14c runtime.funcMaxSPDelta + 236 5 fast_rsa 0x3ca58 runtime.init.5 + 40 6 fast_rsa 0x4bc48 runtime.doInit1 + 216 7 fast_rsa 0x3dd50 runtime.main + 288 8 fast_rsa 0x6db84 runtime.goexit.abi0 + 4

(I attached the entire stacktrace) Stacktrace.txt

It happened with more than 3,000 users, on iOS 15, 16 and 17. It seems that the crash is happening during app startup.

Has someone had this issue before?

Best regards, Ciolfi

Arley011 commented 1 week ago

I also faced this issue. This happens randomly. It seems like some plugin initialization fails on startup because this sometimes happens even when running a debug app during app launching process. Also, this happens only for iOS (and iPadOS). I reported it here - https://github.com/jerson/flutter-rsa/issues/65#issuecomment-1994524283

jerson commented 1 week ago

Hi, which version are you using?, have this happened with other versions?

Arley011 commented 1 week ago

I am using 3.6.1. Previously I've been using 3.5.1, but I don't know whether there was such issue. I updated more than year ago and Firebase don't have such old reports. But currently Firebase says that there are 5-6K early crashes (during app start) every week because of this issue.

jerson commented 1 week ago

I have created a new PR,

https://github.com/jerson/flutter-rsa/pull/72

take a look please and if you can try to reproduce the issue, would be useful to make sure this time is fine