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

I have come across with "java.lang.UnsatisfiedLinkError" error in prod cause of Eas Build #1676

Closed
AlperenLogo opened this issue Feb 6, 2023 · 7 comments
Labels
incomplete issue: missing or invalid repro A minimal reproducible example is required for most issues invalid issue: project specific issue This issue is not an issue with EAS

Comments

@AlperenLogo
Copy link

Build/Submit details page URL

https://expo.dev/accounts/hifa_nur/projects/semerkand-elcinet-app/builds/b0f45881-4a93-476c-828f-9b49f976610c

Summary

As i emhasized at title I have a problem in production. When app is opened, app shuts down itself. And the logo seems on screen.
I have catched the error's stack trace with firebase. I added at the below.

_Fatal Exception: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libjscexecutor.so caused by: couldn't find DSO to load: libfb.so caused by: couldn't find DSO to load: libc++_shared.so caused by: dlopen failed: "/data/data/com.semerkand.elcinet/lib-3/libc++shared.so" is for EM_AARCH64 (183) instead of EM_X86_64 (62) result: 0 result: 0 result: 0
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1098)
at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:914)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:826)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:773)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:743)
at com.facebook.react.jscexecutor.JSCExecutor.loadLibrary(JSCExecutor.java:24)
at com.facebook.react.jscexecutor.JSCExecutor.(JSCExecutor.java:20)
at com.facebook.react.jscexecutor.JSCExecutor.loadLibrary()
at com.facebook.react.ReactInstanceManagerBuilder.getDefaultJSExecutorFactory(ReactInstanceManagerBuilder.java:351)
at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:318)
at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:95)
at expo.modules.ReactNativeHostWrapperBase.createReactInstanceManager(ReactNativeHostWrapperBase.kt:33)
at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:42)
at com.semerkand.elcinet.MainApplication.onCreate(MainApplication.java:66)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1194)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6756)
at android.app.ActivityThread.access$1300(ActivityThread.java:238)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1914)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7701)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

###########################Adding package.Json file and eas.json files too##########################

_{
"name": "
****************",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
},
"dependencies": {
"@expo/cli": "^0.4.11",
"@react-native-async-storage/async-storage": "~1.17.3",
"@react-native-community/datetimepicker": "6.1.2",
"@react-native-community/masked-view": "^0.1.11",
"@react-navigation/bottom-tabs": "^6.3.2",
"@react-navigation/native": "^6.0.6",
"@react-navigation/native-stack": "^6.2.5",
"dayjs": "^1.10.7",
"deprecated-react-native-prop-types": "^2.3.0",
"exceljs": "^4.3.0",
"expo": "^45.0.0",
"expo-checkbox": "~2.1.0",
"expo-cli": "^6.0.8",
"expo-constants": "~13.1.1",
"expo-file-system": "~14.0.0",
"expo-linking": "~3.1.0",
"expo-secure-store": "~11.2.0",
"expo-sharing": "~10.2.0",
"expo-status-bar": "~1.3.0",
"expo-updates": "~0.13.4",
"patch-package": "^6.4.7",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-hook-form": "^7.22.1",
"react-native": "0.68.2",
"react-native-currency-input": "^1.0.1",
"react-native-gesture-bottom-sheet": "^1.1.0",
"react-native-gesture-handler": "~2.2.1",
"react-native-get-random-values": "~1.8.0",
"react-native-keyboard-aware-scroll-view": "^0.9.5",
"react-native-mask-input": "^1.1.1",
"react-native-modal-datetime-picker": "~10.2.0",
"react-native-picker-select": "^8.0.4",
"react-native-reanimated": "~2.8.0",
"react-native-root-toast": "^3.3.0",
"react-native-safe-area-context": "4.2.4",
"react-native-screens": "~3.11.1",
"react-native-uuid": "~2.0.1",
"react-native-webview": "11.18.1"
},
"devDependencies": {
"@babel/core": "^7.12.9",
"eslint": "^8.4.1",
"eslint-plugin-react": "^7.27.1"
},
"private": true
}_

##############################################################################

{
"cli": {
"version": ">= 0.47.0"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal"
},
"production": {

  "env": {
    "API_URL": "https://portal.semerkand.com/"
  }
}

},
"submit": {
"production": {}
}
}

Managed or bare?

expo with react native

Environment

expo-env-info 1.0.5 environment info:
System:
OS: Windows 10 10.0.19045
Binaries:
Node: 16.15.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
npm: 8.11.0 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: AI-212.5712.43.2112.8609683
npmPackages:
expo: ^45.0.0 => 45.0.8
react: 17.0.2 => 17.0.2
react-dom: 17.0.2 => 17.0.2
react-native: 0.68.2 => 0.68.2
Expo Workflow: managed

Error output

No response

Reproducible demo or steps to reproduce from a blank project

crashlytics report.txt

@AlperenLogo AlperenLogo added the needs review Issue is ready to be reviewed by a maintainer label Feb 6, 2023
@dsokal dsokal added incomplete issue: missing or invalid repro A minimal reproducible example is required for most issues invalid issue: project specific issue This issue is not an issue with EAS and removed needs review Issue is ready to be reviewed by a maintainer labels Feb 7, 2023
@expo-bot
Copy link
Contributor

expo-bot commented Feb 7, 2023

Hi there! It looks like your issue requires a minimal reproducible example, but it is invalid or absent. Please prepare such an example and share it in a new issue.

The best way to get attention to your issue is to provide a clean and easy way for a developer to reproduce the issue on their own machine. Please do not provide your entire project, or a project with more code than is necessary to reproduce the issue.

A side benefit of going through the process of narrowing down the minimal amount of code needed to reproduce the issue is that you may get lucky and discover that the bug is due to a mistake in your application code that you can quickly fix on your own.

Resources

Common concerns

"I've only been able to reproduce it in private, proprietary code"

You may not have spent enough time narrowing down the root cause of the issue. Try out the techniques discussed in this manual debugging guide to learn how to isolate the problem from the rest of your codebase.

"I didn't have time to create one"

That's understandable, it can take some time to prepare. We ask that you hold off on filing an issue until you are able to fully complete the required fields in the issue template.

"You can reproduce it by yourself by creating a project and following these steps"

This is useful knowledge, but it's still valuable to have the resulting project that is produced from running the steps, where you have verified you can reproduce the issue.

@expo-bot expo-bot closed this as completed Feb 7, 2023
@vinnybad
Copy link

Build/Submit details page URL

https://expo.dev/accounts/hifa_nur/projects/semerkand-elcinet-app/builds/b0f45881-4a93-476c-828f-9b49f976610c

Summary

As i emhasized at title I have a problem in production. When app is opened, app shuts down itself. And the logo seems on screen. I have catched the error's stack trace with firebase. I added at the below.

_Fatal Exception: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libjscexecutor.so caused by: couldn't find DSO to load: libfb.so caused by: couldn't find DSO to load: libc++_shared.so caused by: dlopen failed: "/data/data/com.semerkand.elcinet/lib-3/libc++shared.so" is for EM_AARCH64 (183) instead of EM_X86_64 (62) result: 0 result: 0 result: 0 at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1098) at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:914) at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:826) at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:773) at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:743) at com.facebook.react.jscexecutor.JSCExecutor.loadLibrary(JSCExecutor.java:24) at com.facebook.react.jscexecutor.JSCExecutor.(JSCExecutor.java:20) at com.facebook.react.jscexecutor.JSCExecutor.loadLibrary() at com.facebook.react.ReactInstanceManagerBuilder.getDefaultJSExecutorFactory(ReactInstanceManagerBuilder.java:351) at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:318) at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:95) at expo.modules.ReactNativeHostWrapperBase.createReactInstanceManager(ReactNativeHostWrapperBase.kt:33) at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:42) at com.semerkand.elcinet.MainApplication.onCreate(MainApplication.java:66) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1194) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6756) at android.app.ActivityThread.access$1300(ActivityThread.java:238) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1914) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7701) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

###########################Adding package.Json file and eas.json files too##########################

_{ "name": "****************", "version": "1.0.0", "main": "node_modules/expo/AppEntry.js", "scripts": { "start": "expo start", "android": "expo start --android", "ios": "expo start --ios", "web": "expo start --web", "eject": "expo eject" }, "dependencies": { "@expo/cli": "^0.4.11", "@react-native-async-storage/async-storage": "~1.17.3", "@react-native-community/datetimepicker": "6.1.2", "@react-native-community/masked-view": "^0.1.11", "@react-navigation/bottom-tabs": "^6.3.2", "@react-navigation/native": "^6.0.6", "@react-navigation/native-stack": "^6.2.5", "dayjs": "^1.10.7", "deprecated-react-native-prop-types": "^2.3.0", "exceljs": "^4.3.0", "expo": "^45.0.0", "expo-checkbox": "~2.1.0", "expo-cli": "^6.0.8", "expo-constants": "~13.1.1", "expo-file-system": "~14.0.0", "expo-linking": "~3.1.0", "expo-secure-store": "~11.2.0", "expo-sharing": "~10.2.0", "expo-status-bar": "~1.3.0", "expo-updates": "~0.13.4", "patch-package": "^6.4.7", "react": "17.0.2", "react-dom": "17.0.2", "react-hook-form": "^7.22.1", "react-native": "0.68.2", "react-native-currency-input": "^1.0.1", "react-native-gesture-bottom-sheet": "^1.1.0", "react-native-gesture-handler": "~2.2.1", "react-native-get-random-values": "~1.8.0", "react-native-keyboard-aware-scroll-view": "^0.9.5", "react-native-mask-input": "^1.1.1", "react-native-modal-datetime-picker": "~10.2.0", "react-native-picker-select": "^8.0.4", "react-native-reanimated": "~2.8.0", "react-native-root-toast": "^3.3.0", "react-native-safe-area-context": "4.2.4", "react-native-screens": "~3.11.1", "react-native-uuid": "~2.0.1", "react-native-webview": "11.18.1" }, "devDependencies": { "@babel/core": "^7.12.9", "eslint": "^8.4.1", "eslint-plugin-react": "^7.27.1" }, "private": true }_

##############################################################################

{ "cli": { "version": ">= 0.47.0" }, "build": { "development": { "developmentClient": true, "distribution": "internal" }, "preview": { "distribution": "internal" }, "production": {

  "env": {
    "API_URL": "https://portal.semerkand.com/"
  }
}

}, "submit": { "production": {} } }

Managed or bare?

expo with react native

Environment

expo-env-info 1.0.5 environment info: System: OS: Windows 10 10.0.19045 Binaries: Node: 16.15.1 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD npm: 8.11.0 - C:\Program Files\nodejs\npm.CMD IDEs: Android Studio: AI-212.5712.43.2112.8609683 npmPackages: expo: ^45.0.0 => 45.0.8 react: 17.0.2 => 17.0.2 react-dom: 17.0.2 => 17.0.2 react-native: 0.68.2 => 0.68.2 Expo Workflow: managed

Error output

No response

Reproducible demo or steps to reproduce from a blank project

crashlytics report.txt

@AlperenLogo did you resolve this issue?

@AlperenLogo
Copy link
Author

AlperenLogo commented May 13, 2023 via email

@vinnybad
Copy link

Genel Kullanım - General Yes I resolved thanks for your interest. Saygılarımla, Alperen Kabadayı Yazılım Geliştirme Uzmanı Software Development Specialist [https://cdn.logo.com.tr/images/signature/logo/logo.png] Gebze Organize Sanayi Bölgesi Şahabettin Bilgisu Caddesi No:609 Gebze 41400 Kocaeli Turkey T: [+90 262 679 80 00](tel:+90 262 679 80 00) F: [+90 262 679 80 80](tel:+90 262 679 80 80) M: +9 [https://cdn.logo.com.tr/images/signature/logo/facebook.png]<https://www.facebook.com/logoyazilim/> [https://cdn.logo.com.tr/images/signature/logo/twitter.png]<https://twitter.com/logoyazilim> [https://cdn.logo.com.tr/images/signature/logo/instagram.png]<https://www.instagram.com/logoyazilim/> [https://cdn.logo.com.tr/images/signature/logo/youtube.png]<https://www.youtube.com/channel/UCLe4HpGgF-uAmasGVTw3tyA> [https://cdn.logo.com.tr/images/signature/logo/linkedin.png]<https://www.linkedin.com/company/logo-yazilim/> [https://cdn.logo.com.tr/images/signature/logo/banner.png] From: Vinayak Ram @.> Sent: Saturday, May 13, 2023 8:45 AM To: expo/eas-cli @.> Cc: Alperen Kabadayi @.>; Mention @.> Subject: Re: [expo/eas-cli] I have come across with "java.lang.UnsatisfiedLinkError" error in prod cause of Eas Build (Issue #1676) This message is from an EXTERNAL SENDER - be CAUTIOUS, particularly with links and attachments. Build/Submit details page URL https://expo.dev/accounts/hifa_nur/projects/semerkand-elcinet-app/builds/b0f45881-4a93-476c-828f-9b49f976610c Summary As i emhasized at title I have a problem in production. When app is opened, app shuts down itself. And the logo seems on screen. I have catched the error's stack trace with firebase. I added at the below. _Fatal Exception: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libjscexecutor.so caused by: couldn't find DSO to load: libfb.so caused by: couldn't find DSO to load: libc++_shared.so caused by: dlopen failed: "/data/data/com.semerkand.elcinet/lib-3/libc++shared.so" is for EM_AARCH64 (183) instead of EM_X86_64 (62) result: 0 result: 0 result: 0 at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1098) at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:914) at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:826) at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:773) at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:743) at com.facebook.react.jscexecutor.JSCExecutor.loadLibrary(JSCExecutor.java:24) at com.facebook.react.jscexecutor.JSCExecutor.(JSCExecutor.java:20) at com.facebook.react.jscexecutor.JSCExecutor.loadLibrary() at com.facebook.react.ReactInstanceManagerBuilder.getDefaultJSExecutorFactory(ReactInstanceManagerBuilder.java:351) at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:318) at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:95) at expo.modules.ReactNativeHostWrapperBase.createReactInstanceManager(ReactNativeHostWrapperBase.kt:33) at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:42) at com.semerkand.elcinet.MainApplication.onCreate(MainApplication.java:66) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1194) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6756) at android.app.ActivityThread.access$1300(ActivityThread.java:238) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1914) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7701) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947) ###########################Adding package.Json file and eas.json files too########################## { "name": "", "version": "1.0.0", "main": "node_modules/expo/AppEntry.js", "scripts": { "start": "expo start", "android": "expo start --android", "ios": "expo start --ios", "web": "expo start --web", "eject": "expo eject" }, "dependencies": { @./cli": "^0.4.11", @./async-storage": "~1.17.3", @./datetimepicker": "6.1.2", @./masked-view": "^0.1.11", @./bottom-tabs": "^6.3.2", @./native": "^6.0.6", @./native-stack": "^6.2.5", "dayjs": "^1.10.7", "deprecated-react-native-prop-types": "^2.3.0", "exceljs": "^4.3.0", "expo": "^45.0.0", "expo-checkbox": "~2.1.0", "expo-cli": "^6.0.8", "expo-constants": "~13.1.1", "expo-file-system": "~14.0.0", "expo-linking": "~3.1.0", "expo-secure-store": "~11.2.0", "expo-sharing": "~10.2.0", "expo-status-bar": "~1.3.0", "expo-updates": "~0.13.4", "patch-package": "^6.4.7", "react": "17.0.2", "react-dom": "17.0.2", "react-hook-form": "^7.22.1", "react-native": "0.68.2", "react-native-currency-input": "^1.0.1", "react-native-gesture-bottom-sheet": "^1.1.0", "react-native-gesture-handler": "~2.2.1", "react-native-get-random-values": "~1.8.0", "react-native-keyboard-aware-scroll-view": "^0.9.5", "react-native-mask-input": "^1.1.1", "react-native-modal-datetime-picker": "~10.2.0", "react-native-picker-select": "^8.0.4", "react-native-reanimated": "~2.8.0", "react-native-root-toast": "^3.3.0", "react-native-safe-area-context": "4.2.4", "react-native-screens": "~3.11.1", "react-native-uuid": "~2.0.1", "react-native-webview": "11.18.1" }, "devDependencies": { @.**/core": "^7.12.9", "eslint": "^8.4.1", "eslint-plugin-react": "^7.27.1" }, "private": true } ############################################################################## { "cli": { "version": ">= 0.47.0" }, "build": { "development": { "developmentClient": true, "distribution": "internal" }, "preview": { "distribution": "internal" }, "production": { "env": { "API_URL": "https://portal.semerkand.com/" } } }, "submit": { "production": {} } } Managed or bare? expo with react native Environment expo-env-info 1.0.5 environment info: System: OS: Windows 10 10.0.19045 Binaries: Node: 16.15.1 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD npm: 8.11.0 - C:\Program Files\nodejs\npm.CMD IDEs: Android Studio: AI-212.5712.43.2112.8609683 npmPackages: expo: ^45.0.0 => 45.0.8 react: 17.0.2 => 17.0.2 react-dom: 17.0.2 => 17.0.2 react-native: 0.68.2 => 0.68.2 Expo Workflow: managed Error output No response Reproducible demo or steps to reproduce from a blank project crashlytics report.txthttps://github.com/expo/eas-cli/files/10663289/crashlytics.report.txt @AlperenLogohttps://github.com/AlperenLogo did you resolve this issue? — Reply to this email directly, view it on GitHub<#1676 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXB4UTUG7KXKQYW7OOBRX43XF4NV7ANCNFSM6AAAAAAUSU4Q24. You are receiving this because you were mentioned.Message ID: @.@.>> "Bu mesaji yazdirmadan once cevreye olan sorumlulugumuzu bir kez daha dusunelim. / Please consider the environment before printing this e-mail." Bu elektronik posta ve ekinde yer alan tum dosyalar gonderici ve alici kisi ve kurumlara ozel olup gizli bilgi ihtiva edebilir. Dogru aliciya ulasmamasi halinde mesajin ekleri ile birlikte silinmesi ve yok edilmesi gerekmektedir. Mesaj, icerigi ve ekinde bulunan dusunce ve yorumlar Logo Yazilim Sanayi ve Ticaret A.S.'ye degil gondericiye aittir. This electronic mail and all files attached to it are private to the sender and recipient, and may contain confidential information. If it fails to reach the right recipient, the message should be deleted and destroyed along with its attachments. The message, its content and opinion and comments attached to it belong to the sender, not Logo Yazilim Sanayi ve Ticaret A.S. Genel Kullanım - General

How did you solve it @AlperenLogo ?

@kjparkdavid
Copy link

+1 How did you solve this issue? I'm having the same error @AlperenLogo

@zhiqingchen
Copy link

How?

@lasharela
Copy link

I have something very close to this. only production

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
incomplete issue: missing or invalid repro A minimal reproducible example is required for most issues invalid issue: project specific issue This issue is not an issue with EAS
Projects
None yet
Development

No branches or pull requests

7 participants