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

Application crash due to several reasons #19

Open
igorjos opened this issue Sep 29, 2020 · 3 comments
Open

Application crash due to several reasons #19

igorjos opened this issue Sep 29, 2020 · 3 comments

Comments

@igorjos
Copy link

igorjos commented Sep 29, 2020

When I try to do ImapLogin the application crashes.

First in the example of imapLogin is missing the authType as parameter (which is Int as I can see)
for which I get error:

Fatal Exception: com.facebook.react.bridge.NoSuchKeyException authType
Then when I add the authType as parameter (regardless of its value 0 or 1 (I assume that this is for SSL/TLS purposes)) I get following error:
java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/com.allmail-zkP83QQ4Btp_M5Uojry5Iw==/lib/x86/libMailCore.so" has text relocations

Is there any fix for this present?

@agenthunt
Copy link
Owner

Hi @igorjos . Could you please provide more details of your setup, device and environment.

Is any other API working? or is it always crashing ?
Taking a wild guess, probably mailcore lib for android needs to be recompiled with latest android ndk (https://github.com/MailCore/mailcore2/blob/master/build-android/README.md)

@igorjos
Copy link
Author

igorjos commented Oct 15, 2020

I'm using x86 emulator and the issue seems that is present only with x86 on arm versions works well.

using Android v7 for testing on x86
"dependencies": {
"@react-native-community/async-storage": "^1.12.0",
"@react-native-community/masked-view": "^0.1.10",
"@react-navigation/native": "^5.7.5",
"@react-navigation/stack": "^5.9.2",
"react": "16.13.1",
"react-native": "0.63.2",
"react-native-bootstrap-styles": "^0.4.5-0-k",
"react-native-dropdown-picker": "^3.6.8",
"react-native-gesture-handler": "^1.8.0",
"react-native-mailcore": "^0.1.1",
"react-native-safe-area-context": "^3.1.8",
"react-native-screens": "^2.11.0",
"react-native-swipeable": "^0.6.0",
"react-native-vector-icons": "^7.1.0",
"react-native-webview": "^10.9.1",
"react-redux": "^7.2.1",
"redux": "^4.0.5",
"redux-thunk": "^2.3.0",
"rxjs": "^6.6.3",
"stacktrace-parser": "0.1.4"
},

@gerard-payne
Copy link

--------- beginning of crash
02-02 09:48:05.961 4872 4872 E AndroidRuntime: FATAL EXCEPTION: main
02-02 09:48:05.961 4872 4872 E AndroidRuntime: Process: com.-----.-----, PID: 4872
02-02 09:48:05.961 4872 4872 E AndroidRuntime: com.facebook.react.bridge.NoSuchKeyException: authType
02-02 09:48:05.961 4872 4872 E AndroidRuntime: at com.facebook.react.bridge.ReadableNativeMap.getValue(ReadableNativeMap.java:113)

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

3 participants