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

Hermes does not work when extracting apk from android app bundles (.abb) #25926

Closed
owinter86 opened this issue Aug 2, 2019 · 4 comments
Closed
Labels
Platform: Android Android applications. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot. Tech: Bundler 📦 This issue is related to the bundler (Metro, Haul, etc) used.

Comments

@owinter86
Copy link

This can be tested quite easily with a new RN init project.

Android app builds, installs and runs fine when hermes is enabled or disabled when building a standard apk.

Android app builds, installs and runs fine when hermes disabled when using an extracted apk from android app bundle (.abb), this can be done in android studio run configurations and deploy APK from app bundle.

Android App builds, install and hangs on the splash screen when hermes is enabled and using extracted apk from android app bundle.

The logcat is as follows.

D/SoLoader: About to load: libjscexecutor.so
    libjscexecutor.so not found on /data/data/com.test/lib-main
D/SoLoader: libjscexecutor.so found on /data/data/com.test/lib-0
D/SoLoader: Loading lib dependencies: [libfb.so, libreactnativejni.so, libjsc.so, libjsinspector.so, libfolly_json.so, libglog.so, libc++_shared.so, liblog.so, libc.so, libm.so, libdl.so]
D/SoLoader: About to load: libfb.so
    libfb.so not found on /data/data/com.test/lib-main
    libfb.so found on /data/data/com.test/lib-0
D/SoLoader: Loading lib dependencies: [libc++_shared.so, liblog.so, libdl.so, libandroid.so, libc.so, libm.so]
    About to load: libc++_shared.so
D/SoLoader: libc++_shared.so not found on /data/data/com.test/lib-main
D/SoLoader: libc++_shared.so found on /data/data/com.test/lib-0
D/SoLoader: Loading lib dependencies: [libc.so, libdl.so]
    About to load: libc.so
    libc.so not found on /data/data/com.test/lib-main
    libc.so not found on /data/data/com.test/lib-0
D/SoLoader: libc.so not found on /data/data/com.test/lib-1
    libc.so not found on /data/data/com.test/lib-2
    libc.so not found on /data/data/com.test/lib-3
    libc.so not found on /data/app/com.test-lS2rnOAKng6NlOapH7INNw==/lib/arm
    libc.so not found on /system/vendor/lib
D/SoLoader: libc.so found on /system/lib
    libc.so loaded implicitly
    Loaded: libc.so
    About to load: libdl.so
    libdl.so not found on /data/data/com.test/lib-main
    libdl.so not found on /data/data/com.test/lib-0
    libdl.so not found on /data/data/com.test/lib-1
D/SoLoader: libdl.so not found on /data/data/com.test/lib-2
    libdl.so not found on /data/data/com.test/lib-3
    libdl.so not found on /data/app/com.test-lS2rnOAKng6NlOapH7INNw==/lib/arm
    libdl.so not found on /system/vendor/lib
    libdl.so found on /system/lib
    libdl.so loaded implicitly
    Loaded: libdl.so
D/SoLoader: Loaded: libc++_shared.so
    About to load: liblog.so
D/SoLoader: liblog.so not found on /data/data/com.test/lib-main
    liblog.so not found on /data/data/com.test/lib-0
    liblog.so not found on /data/data/com.test/lib-1
    liblog.so not found on /data/data/com.test/lib-2
D/SoLoader: liblog.so not found on /data/data/com.test/lib-3
D/SoLoader: liblog.so not found on /data/app/com.test-lS2rnOAKng6NlOapH7INNw==/lib/arm
    liblog.so not found on /system/vendor/lib
    liblog.so found on /system/lib
    liblog.so loaded implicitly
    Loaded: liblog.so
    About to load: libandroid.so
    libandroid.so not found on /data/data/com.test/lib-main
D/SoLoader: libandroid.so not found on /data/data/com.test/lib-0
    libandroid.so not found on /data/data/com.test/lib-1
    libandroid.so not found on /data/data/com.test/lib-2
    libandroid.so not found on /data/data/com.test/lib-3
    libandroid.so not found on /data/app/com.test-lS2rnOAKng6NlOapH7INNw==/lib/arm
D/SoLoader: libandroid.so not found on /system/vendor/lib
    libandroid.so found on /system/lib
    libandroid.so loaded implicitly
    Loaded: libandroid.so
    About to load: libm.so
    libm.so not found on /data/data/com.test/lib-main
    libm.so not found on /data/data/com.test/lib-0
D/SoLoader: libm.so not found on /data/data/com.test/lib-1
    libm.so not found on /data/data/com.test/lib-2
    libm.so not found on /data/data/com.test/lib-3
    libm.so not found on /data/app/com.test-lS2rnOAKng6NlOapH7INNw==/lib/arm
    libm.so not found on /system/vendor/lib
    libm.so found on /system/lib
    libm.so loaded implicitly
D/SoLoader: Loaded: libm.so
D/SoLoader: About to load: libfb.so
D/SoLoader: libfb.so not found on /data/data/com.test/lib-main
    libfb.so found on /data/data/com.test/lib-0
D/SoLoader: Loading lib dependencies: [libc++_shared.so, liblog.so, libdl.so, libandroid.so, libc.so, libm.so]
I/zygote: Thread[1,tid=10033,Native,Thread*=0xe9a7c000,peer=0x72bcc700,"main"] recursive attempt to load library "/data/user/0/com.test/lib-0/libfb.so"
D/SoLoader: Loaded: libfb.so
    Loaded: libfb.so
    About to load: libreactnativejni.so
D/SoLoader: libreactnativejni.so not found on /data/data/com.test/lib-main
    libreactnativejni.so found on /data/data/com.test/lib-0
D/SoLoader: Loading lib dependencies: [libglog_init.so, libyoga.so, libfb.so, libjsinspector.so, libfolly_json.so, libglog.so, libc++_shared.so, libandroid.so, liblog.so, libc.so, libm.so, libdl.so]
    About to load: libglog_init.so
    libglog_init.so not found on /data/data/com.test/lib-main
D/SoLoader: libglog_init.so found on /data/data/com.test/lib-0
D/SoLoader: Loading lib dependencies: [libglog.so, libc++_shared.so, liblog.so, libc.so, libm.so, libdl.so]
    About to load: libglog.so
D/SoLoader: libglog.so not found on /data/data/com.test/lib-main
    libglog.so found on /data/data/com.test/lib-0
D/SoLoader: Loading lib dependencies: [libc++_shared.so, libc.so, libm.so, libdl.so]
D/SoLoader: Loaded: libglog.so
D/SoLoader: Loaded: libglog_init.so
    About to load: libyoga.so
    libyoga.so not found on /data/data/com.test/lib-main
    libyoga.so found on /data/data/com.test/lib-0
D/SoLoader: Loading lib dependencies: [libfb.so, libc++_shared.so, libandroid.so, liblog.so, libc.so, libm.so, libdl.so]
D/SoLoader: Loaded: libyoga.so
    About to load: libjsinspector.so
    libjsinspector.so not found on /data/data/com.test/lib-main
    libjsinspector.so found on /data/data/com.test/lib-0
D/SoLoader: Loading lib dependencies: [libc++_shared.so, libc.so, libm.so, libdl.so]
D/SoLoader: Loaded: libjsinspector.so
D/SoLoader: About to load: libfolly_json.so
    libfolly_json.so not found on /data/data/com.test/lib-main
    libfolly_json.so found on /data/data/com.test/lib-0
D/SoLoader: Loading lib dependencies: [libglog.so, libc++_shared.so, libc.so, libm.so, libdl.so]
D/SoLoader: Loaded: libfolly_json.so
D/SoLoader: Loaded: libreactnativejni.so
    About to load: libjsc.so
D/SoLoader: libjsc.so not found on /data/data/com.test/lib-main
    libjsc.so not found on /data/data/com.test/lib-0
    libjsc.so not found on /data/data/com.test/lib-1
    libjsc.so not found on /data/data/com.test/lib-2
D/SoLoader: libjsc.so not found on /data/data/com.test/lib-3
    libjsc.so not found on /data/app/com.test-lS2rnOAKng6NlOapH7INNw==/lib/arm
    libjsc.so not found on /system/vendor/lib
    libjsc.so not found on /system/lib
@mhorowitz mhorowitz transferred this issue from facebook/hermes Aug 2, 2019
@react-native-bot react-native-bot added Platform: Android Android applications. Tech: Bundler 📦 This issue is related to the bundler (Metro, Haul, etc) used. labels Aug 2, 2019
@react-native-bot
Copy link
Collaborator

We are automatically closing this issue because it does not appear to follow any of the provided issue templates.

👉 Click here if you want to report a reproducible bug or regression in React Native.

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. Resolution: No Template labels Aug 2, 2019
@wsdt
Copy link

wsdt commented Aug 6, 2019

Having the same issue

@owinter86
Copy link
Author

@wsdt I created a valid issue here for your reference. #25927

@whalemare
Copy link

The same issue

@facebook facebook locked as resolved and limited conversation to collaborators Oct 5, 2021
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Platform: Android Android applications. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot. Tech: Bundler 📦 This issue is related to the bundler (Metro, Haul, etc) used.
Projects
None yet
Development

No branches or pull requests

4 participants