-
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
Crash - didn't find class "io.realm.internal.network.NetworkStateReceiver" #3505
Comments
Did you do a Clean + Rebuild? (you should) Do you have Instant Run disabled? (you should) |
I reproduced this. conditions: The easiest way to reproduce this is to execute |
This is reproducible. |
Yes, I have the same problem. Is there a way how to fix this? |
2.0.1 will fix it |
++; |
I have the same problem |
+1 |
1 similar comment
+1 |
I have also encountered this problem |
already fixed in |
Same here, when can we expect 2.0.1? |
@Dimous Only our Mobile Platform Extension does that. Mostly because it allows us to do more intelligent error handling. We hope to be able to ship 2.0.1 today with a fix for this, and sorry for letting such a server error slipping through 😢 |
+1 |
1 similar comment
+1 |
Same here, when can we a bug fix release ? |
+1 |
is there any way to prevent the crash ? |
Well until 2.0.1 is released, you can add a broadcast receiver by the same name in the same package and all that. |
I added this class to my project with the same package Realm and now there is no crash. |
+1 |
2 similar comments
+1 |
+1 |
I shipped my app to production with Realm 2.0.0 and because of this issue my crash free users are at 17.5% only (down from 99.8%). Please fix that issue ASAP. I am thinking about removing Realm altogether as my database model is pretty simple. |
+1 |
+1 |
2 similar comments
+1 |
+1 |
I also shipped an app like @shahrukhamd, and it's horrible now. We depend on third-party libraries and expect releases to be stable and well-tested. This is critical issue and it can potentially destroy your reputation since it's been 7 days already. Also my app now is never closed by the system since Realm listens to network changes. This is totally unacceptable. I understand you want to make money, but it should not interfere with my application in a way that changes it's behaviour. That was the reason I dropped Firebase Crashes in favour of Fabric, since Firebase launched separate process to track crashes which is what I totally don't want. |
Hi @fuwaneko |
@cmelchior thank you. I also hope with syncEnabled = false Realm will not listen to network changes. |
It will not, it was a mistake it was in the base library. It will only be included in the sync part. |
The snapshot I tried out didn't have this issue, I think this got merged in from realm-java-private ¬¬ |
+1 waiting for 2.0.1 |
Same here, waiting for 2.0.1 :( |
Waitinggggggggggggggggg 🗡 |
+1 and i get the same error |
+1 |
It's going to happen eventually. |
+1 2.0.1 |
+1 |
1 similar comment
+1 |
Where is the Realm team sleeping. Recently the have been boasting to release new features and this fatal bug is not resolved after weeks 👎 |
@ahmadalibaloch ...man, they do know about it. Realm 2.0 has been barely out for a week, saying it hasn't been fixed for weeks is a major exaggeration and wrong, too. If you really actually wanted to create a quick fix for this problem in the meantime, you would have just added the missing class and released a new version of your app. (I am still not an official Realm person). |
Quick and dirty solution : put this into your launcher activity OR Application=> try { |
I actually didn't know you could do that. Cool. |
awesome @pc-bszabo! I have added the following code to Application onCreate try {
ComponentName componentName = new ComponentName(
getApplicationContext(),
"io.realm.internal.network.NetworkStateReceiver"
);
getPackageManager()
.setComponentEnabledSetting(
componentName,
PackageManager.COMPONENT_ENABLED_STATE_DISABLED,
PackageManager.DONT_KILL_APP);
} catch (Exception ignored) {} and it works! Someone has written a blog on disabling BroadcastReceivers |
@pc-bszabo Thanks a lot. |
2.0.1 has just been released fixing this bug. The network receiver is now only added if you enable Sync as well. I could list all the technical and process difficulties involved in getting this release out the door, but in reality we just dropped the ball on this, and I'm very sorry for those of you that got affected by this. We can only strive to do better in the future. Closing. |
We appreciate your hard work. 👍 |
Indeed we appreciate the work of the Realm team. On the other side, IMHO we should be more cautious when criticising and hurrying up a team like this whose software is open sourced for us. Once again, thanks! |
Hi, with the new Realm 2.0 I am getting crash as below:
The text was updated successfully, but these errors were encountered: