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

App crashes when i click on default.realm and gives a pop-up that connection is closed #52

Open
SanchiSinghal opened this issue Apr 24, 2017 · 11 comments

Comments

@SanchiSinghal
Copy link

No description provided.

@SanchiSinghal
Copy link
Author

Now the app does not get crashed, but still the remote debugging stops showing connection at run time.

Also, realm version is : ^1.2.0

@pacifire
Copy link

Even i am facing the same issue :-(

@pacifire
Copy link

pacifire commented Jun 14, 2017

The realm object : "honeycomb.realm" can be seen. But if we try to expand it. It gets disconnected.

My Application class:

public class HoneycombApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();

        RealmConfiguration config = new RealmConfiguration.Builder(this).name(AppConstants.REALM_NAME)
                                        .deleteRealmIfMigrationNeeded().build();
        Realm.setDefaultConfiguration(config);





        Stetho.initialize(
                Stetho.newInitializerBuilder(this)
                        .enableDumpapp(Stetho.defaultDumperPluginsProvider(this))
                        .enableWebKitInspector(RealmInspectorModulesProvider.builder(this).build())
                        .build());
    }//onCreate closes here....

}//HoneycombApplication closes here....

screen shot 2017-06-14 at 12 54 13 pm
screen shot 2017-06-14 at 12 54 24 pm

@pacifire
Copy link

Hey, i fixed this issue:

The issue was with the Realm dependency.

The correct way to configure Realm is:
In Application.gradle:
dependencies {
classpath "io.realm:realm-gradle-plugin:3.3.2"//https://realm.io/docs/java/latest/#installation
}

In app.gradle:
apply plugin: 'realm-android'//https://realm.io/docs/java/latest/#installation

Remove all other dependencies for Realm. This Gradle sync should sync successfully.

Reference: https://realm.io/docs/java/latest/#installation

@sattha
Copy link

sattha commented Sep 10, 2017

I have this experienced on Realm 3.7.1

@opt05
Copy link

opt05 commented Sep 11, 2017

It seems the last working versions are:

'com.facebook.stetho:stetho:1.5.0'
'com.uphyca:stetho_realm:2.1.0'
'io.realm:realm-gradle-plugin:3.5.0'

@BoukhariAyoub
Copy link

same with realm 4.1.1

@imadbz
Copy link

imadbz commented Nov 21, 2017

Same on 4.2.0 and 3.7.4!
Works and 3.5.0

@hereisderek
Copy link

same issue on realm 5.1.0 and WickeDev fork on stetho_realm:2.2.2

@luispereira
Copy link

Same issue on realm 5.0 and stetho_realm 2.3

@RushiMThakker
Copy link

RushiMThakker commented Jul 22, 2020

I am working on a react native project with realm 6.0.3. I am getting crash on clicking default.realm in sources tab of developer tools. Below is my code for the integration:

    maven {
        url 'https://github.com/WickeDev/stetho-realm/raw/master/maven-repo'
    }

debugImplementation 'com.uphyca:stetho_realm:2.3.0';

Stetho.initialize(
  Stetho.newInitializerBuilder(this)
        .enableDumpapp(Stetho.defaultDumperPluginsProvider(this))
        .enableWebKitInspector(RealmInspectorModulesProvider.builder(this).build())
        .build());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants