Uploaded image for project: 'Realm Java SDK'
  1. Realm Java SDK
  2. RJAVA-338

Weird crash only on Samsung A5 Android 6.0.x

      We have a really weird crash upon app launching that only happens on a Samsung A5 with android 6.0.x

      the stack trace is the following:

      Caused by java.lang.IllegalStateException: Call `Realm.init(Context)` before calling this method.
             at io.realm.Realm.getDefaultInstance(Unknown Source)
             at com.b.g.controllers.UsersController.(Unknown Source)
             at com.b.g.activities.MainActivity.onCreate(Unknown Source)
             at android.app.Activity.performCreate(Activity.java:6272)
             at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
             at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2387)
             at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2494)
             at android.app.ActivityThread.access$900(ActivityThread.java:157)
             at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1356)
             at android.os.Handler.dispatchMessage(Handler.java:102)
             at android.os.Looper.loop(Looper.java:148)
             at android.app.ActivityThread.main(ActivityThread.java:5525)
             at java.lang.reflect.Method.invoke(Method.java)
             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)
             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
      

      We understand that we have to init Realm with a context in order to get this done but it's already there. It only crash on Samsung A5. We have tested it with over 10 devices and it never crashed.

      Please advise!

      Version of Realm and tooling

      Realm version(s): io.realm:realm-gradle-plugin:3.7.1

      Realm sync feature enabled: yes/no

      Android Studio version: 2.3

      Which Android version and device: Samsung A5 Android 6.0.x (1 and 0)

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: