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

Calling isInstantApp will automatically restart the system

      How frequently does the bug occur?

      Always

      Description

      On some Android TV and tablet devices, the Android system will automatically restart the system when the APP is started, and only a small amount of records can be collected due to the rapid crash.

      Once this issue is encountered, it will crash forever on these devices.

      Stacktrace & log output

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      android.app.ActivityThread.handleBindApplication(ActivityThread.java:5806)
      android.os.DeadSystemException:
      android.app.ApplicationPackageManager.isInstantApp(ApplicationPackageManager.java:820)
      android.app.ApplicationPackageManager.isInstantApp(ApplicationPackageManager.java:812)
      io.realm.Realm$$InternalSyntheticApiModelOutline$1$f78aa55db0d049271f2c6f4020a093f255fa00f17bdbb9bf0051600caa633485$0.boolean m(android.content.pm.PackageManager)(Realm.java:0)
      io.realm.Realm.boolean isInstantApp(android.content.Context)(Realm.java:318)
      io.realm.Realm.void initializeRealm(android.content.Context,java.lang.String)(Realm.java:344)
      io.realm.Realm.void init(android.content.Context)(Realm.java:263)
      
      Realm.init(this)
      

      Can you reproduce the bug?

      No

      Reproduction Steps

      Call Realm.init(this) in Application-onCreate.

      I don't have the relevant equipment, so I can't reproduce it.

      Version

      10.13.0

      What Atlas App Services are you using?

      Local Database only

      Are you using encryption?

      No

      Platform OS and version(s)

      IST/MS848-Android 8.0

      Build environment

      Android Studio version: ... 2022.1.1
      Android Build Tools version: ... 34.0
      Gradle version: ... 8.0

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

              Created:
              Updated:
              Resolved: