-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fatal Exception: java.lang.RuntimeException: librealm-jni.so #4702
Comments
So what are your abiSplits config in build.gradle? |
@michaelbukachi The stack trace indicates that the 32 bit ARM |
This is the split section of the gradle file |
@michaelbukachi check your apk file, my guess is there are some other 3rd party |
I've just checked each apk, besides the universal apk, each apk has only one .so file for realm. There are no other compiled libraries in the apks |
@kneth How is that possible? Could gradle be putting the wrong .so file in the apk?? |
Which apk did you install on the Sumsang device and had the issue? The universal apk or the splited apk? Can you share it with us? to help@realm.io if you can share it. thanks. |
@beeender According to the version code it was the one for arm64-v8a (so it was split). Let me send you guys the apk |
I got your apk file, it looks alright, maybe there are some problem with relinker or the abi reporting by the device. Can you get below info from the Samsung device:
|
That information will be hard to get because I got the crash report from
analytics which is linked to the app on the devices of testers
…On Thu, May 25, 2017 at 7:13 AM, Chen Mulong ***@***.***> wrote:
I got your apk file, it looks alright, maybe there are some problem with
relinker or the abi reporting by the device.
Can you get below info from the Samsung device:
adb shell getprop | grep abi
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4702 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJrQOg2yxq7iME1N9cZ-nvNJlGg1XK7qks5r9P_0gaJpZM4Nlug2>
.
|
@michaelbukachi If possible, it would be great if you can send us the full crash report. |
On Thu, May 25, 2017 at 7:56 PM, Kenneth Geisshirt ***@***.*** > wrote:
@michaelbukachi <https://github.com/michaelbukachi> If possible, it would
be great if you can send us the full crash report.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4702 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJrQOji35TaojC9tTFsx4BJl2RIJmmlzks5r9bLLgaJpZM4Nlug2>
.
# Crashlytics - plaintext stacktrace downloaded by dita dev team at Wed, 24 May 2017 21:59:07 GMT
# URL: https://fabric.io/dita-dev-teams-projects/android/apps/dita.dev.myportal/issues/591cbe19be077a4dccdc3fce?time=last-seven-days/sessions/5925DB0901DF00010EFECEB143ACB25A_ebcc870c40b411e782df56847afe9799_0_v2
# Organization: dita dev team’s Projects
# Platform: android
# Application: My Portal
# Version: N/A
# Bundle Identifier: dita.dev.myportal
# Issue #: 19
# Issue ID: 591cbe19be077a4dccdc3fce
# Session ID: 5925DB0901DF00010EFECEB143ACB25A_ebcc870c40b411e782df56847afe9799_0_v2
# Date: 2017-05-24T19:12:00Z
# OS Version: 4.4.2
# Device: SM-G900R7
# RAM Free: 65.4%
# Disk Free: 73%
#0. Crashed: main: 0 0 0x0000000000000000
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4351)
at android.app.ActivityThread.-wrap1(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5021)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(NativeStart.java)
…--
Fatal Exception: java.lang.RuntimeException: Unable to create application dita.dev.myportal.MyPortal: up: lib/armeabi/librealm-jni.so
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4351)
at android.app.ActivityThread.-wrap1(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5021)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(NativeStart.java)
Caused by up: lib/armeabi/librealm-jni.so
at com.getkeepsafe.relinker.ApkLibraryInstaller.installLibrary(Unknown Source)
at com.getkeepsafe.relinker.ReLinkerInstance.loadLibraryInternal(Unknown Source)
at com.getkeepsafe.relinker.ReLinkerInstance.loadLibrary(Unknown Source)
at com.getkeepsafe.relinker.ReLinker.loadLibrary(Unknown Source)
at com.getkeepsafe.relinker.ReLinker.loadLibrary(Unknown Source)
at io.realm.internal.RealmCore.loadLibrary(Unknown Source)
at io.realm.Realm.init(Unknown Source)
at dita.dev.myportal.MyPortal.onCreate(Unknown Source)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4348)
at android.app.ActivityThread.-wrap1(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5021)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(NativeStart.java)
#0. Crashed: main: 0 0 0x0000000000000000
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4351)
at android.app.ActivityThread.-wrap1(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5021)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(NativeStart.java)
#1. Queue
at java.lang.Object.wait(Object.java)
at java.lang.Thread.parkFor(Thread.java:1205)
at sun.misc.Unsafe.park(Unsafe.java:325)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:157)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2017)
at java.util.concurrent.PriorityBlockingQueue.take(PriorityBlockingQueue.java:510)
at io.fabric.sdk.android.services.concurrency.DependencyPriorityBlockingQueue.take(Unknown Source)
at io.fabric.sdk.android.services.concurrency.DependencyPriorityBlockingQueue.peek(Unknown Source)
at io.fabric.sdk.android.services.concurrency.DependencyPriorityBlockingQueue.take(Unknown Source)
at io.fabric.sdk.android.services.concurrency.DependencyPriorityBlockingQueue.take(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1037)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1097)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
#2. FinalizerDaemon
at java.lang.Object.wait(Object.java)
at java.lang.Object.wait(Object.java:401)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:102)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:73)
at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:170)
at java.lang.Thread.run(Thread.java:841)
#3. Signal Catcher
at dalvik.system.NativeStart.run(NativeStart.java)
#4. pool-1-thread-1
at java.lang.Object.wait(Object.java)
at java.lang.Thread.parkFor(Thread.java:1205)
at sun.misc.Unsafe.park(Unsafe.java:325)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:157)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2017)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:410)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1037)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1097)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
#5. Crashlytics Exception Handler1
at dalvik.system.VMStack.getThreadStackTrace(VMStack.java)
at java.lang.Thread.getStackTrace(Thread.java:579)
at java.lang.Thread.getAllStackTraces(Thread.java:521)
at com.crashlytics.android.core.CrashlyticsController.enableExceptionHandling(Unknown Source)
at com.crashlytics.android.core.CrashlyticsController.enableExceptionHandling(Unknown Source)
at com.crashlytics.android.core.CrashlyticsController.enableExceptionHandling(Unknown Source)
at com.crashlytics.android.core.CrashlyticsController$6.call(Unknown Source)
at com.crashlytics.android.core.CrashlyticsController$6.call(Unknown Source)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at io.fabric.sdk.android.services.common.ExecutorUtils$1$1.onRun(Unknown Source)
at io.fabric.sdk.android.services.common.BackgroundPriorityRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:841)
#6. Answers Events Handler1
at java.lang.Object.wait(Object.java)
at java.lang.Thread.parkFor(Thread.java:1205)
at sun.misc.Unsafe.park(Unsafe.java:325)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:157)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2017)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1050)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1043)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1037)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1097)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at io.fabric.sdk.android.services.common.ExecutorUtils$1$1.onRun(Unknown Source)
at io.fabric.sdk.android.services.common.BackgroundPriorityRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:841)
#7. Binder_1
at dalvik.system.NativeStart.run(NativeStart.java)
#8. JDWP
at dalvik.system.NativeStart.run(NativeStart.java)
#9. main
at android.os.BinderProxy.transact(Binder.java)
at android.app.ActivityManagerProxy.handleApplicationCrash(ActivityManagerNative.java:3703)
at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:84)
at com.crashlytics.android.core.CrashlyticsUncaughtExceptionHandler.uncaughtException(Unknown Source)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
at dalvik.system.NativeStart.main(NativeStart.java)
#10. Measurement Worker
at java.lang.Object.wait(Object.java)
at java.lang.Object.wait(Object.java:401)
at com.google.android.gms.internal.zzato$zzd.run(Unknown Source)
#11. ReferenceQueueDaemon
at java.lang.Object.wait(Object.java)
at java.lang.Object.wait(Object.java:364)
at java.lang.Daemons$ReferenceQueueDaemon.run(Daemons.java:130)
at java.lang.Thread.run(Thread.java:841)
#12. OkHttp ConnectionPool
at java.lang.Object.wait(Object.java)
at java.lang.Thread.parkFor(Thread.java:1205)
at sun.misc.Unsafe.park(Unsafe.java:325)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:197)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2056)
at java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:435)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1036)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1097)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
#13. Compiler
at dalvik.system.NativeStart.run(NativeStart.java)
#14. FinalizerWatchdogDaemon
at java.lang.VMThread.sleep(VMThread.java)
at java.lang.Thread.sleep(Thread.java:1013)
at java.lang.Thread.sleep(Thread.java:995)
at java.lang.Daemons$FinalizerWatchdogDaemon.sleepFor(Daemons.java:248)
at java.lang.Daemons$FinalizerWatchdogDaemon.waitForFinalization(Daemons.java:258)
at java.lang.Daemons$FinalizerWatchdogDaemon.run(Daemons.java:212)
at java.lang.Thread.run(Thread.java:841)
#15. Binder_2
at dalvik.system.NativeStart.run(NativeStart.java)
#16. Queue
at java.lang.StringBuilder.append(StringBuilder.java:125)
at org.apache.harmony.security.x501.AttributeValue.makeCanonical(AttributeValue.java:286)
at org.apache.harmony.security.x501.AttributeTypeAndValue.appendName(AttributeTypeAndValue.java:289)
at org.apache.harmony.security.x501.Name.getName0(Name.java:184)
at org.apache.harmony.security.x501.Name.getName(Name.java:130)
at javax.security.auth.x500.X500Principal.getCanonicalName(X500Principal.java:155)
at javax.security.auth.x500.X500Principal.equals(X500Principal.java:169)
at com.android.org.bouncycastle.jce.provider.RFC3280CertPathUtilities.processCertA(RFC3280CertPathUtilities.java:1523)
at com.android.org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(PKIXCertPathValidatorSpi.java:305)
at java.security.cert.CertPathValidator.validate(CertPathValidator.java:190)
at com.android.org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:295)
at com.android.org.conscrypt.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:202)
at com.android.org.conscrypt.OpenSSLSocketImpl.verifyCertificateChain(OpenSSLSocketImpl.java:611)
at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(NativeCrypto.java)
at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:405)
at com.android.okhttp.Connection.upgradeToTls(Connection.java:146)
at com.android.okhttp.Connection.connect(Connection.java:107)
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:294)
at com.android.okhttp.internal.http.HttpEngine.sendSocketRequest(HttpEngine.java:255)
at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:206)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:345)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:296)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:503)
at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:136)
at io.fabric.sdk.android.services.network.HttpRequest.addParamPrefix(Unknown Source)
at io.fabric.sdk.android.services.settings.DefaultSettingsSpiCall.invoke(Unknown Source)
at io.fabric.sdk.android.services.settings.DefaultSettingsSpiCall.invoke(Unknown Source)
at io.fabric.sdk.android.services.settings.DefaultSettingsController.loadSettingsData(Unknown Source)
at io.fabric.sdk.android.services.settings.DefaultSettingsController.loadSettingsData(Unknown Source)
at io.fabric.sdk.android.services.settings.Settings.loadSettingsData(Unknown Source)
at io.fabric.sdk.android.Onboarding.retrieveSettingsData(Unknown Source)
at io.fabric.sdk.android.Onboarding.doInBackground(Unknown Source)
at io.fabric.sdk.android.Onboarding.doInBackground(Unknown Source)
at io.fabric.sdk.android.InitializationTask.onPreExecute(Unknown Source)
at io.fabric.sdk.android.InitializationTask.onPreExecute(Unknown Source)
at io.fabric.sdk.android.services.concurrency.AsyncTask$2.call(Unknown Source)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
#17. GC
at dalvik.system.NativeStart.run(NativeStart.java)
|
So from the information, the device is running on Android 4.4.2, but the 64 bit support is from android 5.0. So install the 64 Can you confirm that this is caused by manually installing the 64 bit only apk to the device? |
Okay. I'll get in touch with the tester and get feedback. So is it possible
for playstore to download the wrong version of the apk??
…On Fri, May 26, 2017 at 5:45 AM, Chen Mulong ***@***.***> wrote:
So from the information, the device is running on Android 4.4.2, but the
64 bit support is from android 5.0. So install the 64 so only apk on this
device surely will cause the problem.
But I don't think it will happen to the real user if they install from
google play since google play will install the universal apk or the
armeabi-v7a apk to this specific device.
Can you confirm that this is caused by manually installing the 64 bit only
apk to the device?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4702 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJrQOoXJiStwbpSDJsT2Ic1ufvRTDjqyks5r9jzggaJpZM4Nlug2>
.
|
As far as I know, if the device reported the right ABI, it will always get the right apk to install from play store. BTW.: SM-G900R7 is using Qualcom Snapdragon 801, which is a 32 bits cpu device. |
It seems the issue is only appearing on one device, I've asked the user to check his device out. It doesn't seem to be bug since no other tester is being affected by this issue. I think this issue can now be closed |
Thanks @michaelbukachi |
So I get this error from one of my testers. The device is a samsung running on arm64-v8a. I have split my apks according to architecture for small size. Could this be a bug?
Realm version : 3.2.1
Fatal Exception: java.lang.RuntimeException: Unable to create application dita.dev.myportal.MyPortal: up: lib/armeabi/librealm-jni.so at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4351) at android.app.ActivityThread.-wrap1(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5021) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) at dalvik.system.NativeStart.main(NativeStart.java) Caused by up: lib/armeabi/librealm-jni.so at com.getkeepsafe.relinker.ApkLibraryInstaller.installLibrary(Unknown Source) at com.getkeepsafe.relinker.ReLinkerInstance.loadLibraryInternal(Unknown Source) at com.getkeepsafe.relinker.ReLinkerInstance.loadLibrary(Unknown Source) at com.getkeepsafe.relinker.ReLinker.loadLibrary(Unknown Source) at com.getkeepsafe.relinker.ReLinker.loadLibrary(Unknown Source) at io.realm.internal.RealmCore.loadLibrary(Unknown Source) at io.realm.Realm.init(Unknown Source) at dita.dev.myportal.MyPortal.onCreate(Unknown Source) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4348) at android.app.ActivityThread.-wrap1(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5021) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) at dalvik.system.NativeStart.main(NativeStart.java)
The text was updated successfully, but these errors were encountered: