-
-
Notifications
You must be signed in to change notification settings - Fork 282
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
HiveError: Adapter not registered? #4807
Comments
@teolemon Could it be that you have a sort of dev app not really cleanly installed, that would still use old code - like an app reload in Android Studio? |
I'm having this issue with the app installed from the Play Store. |
@rodrigost23 I've just downloaded the app from scratch from the Google Play Store and didn't experience this HiveError. Can you please be more verbose about "your" error? (store, os, when in the app run, new install or upgrade...) |
It happens when opening the app. I have tried force-closing it and opening again and it just shows this white screen with the message. I'm on Android 13 (OneUI 5.1.1), app version 4.11.0 installed from the Play Store. It used to work before, but it's been a while since I haven't used the app, so I don't know if this error was caused by an update. |
I have the same and as far as I know Stefan and another person on Slack aswell. Deleting the storage of the app should fix it. But that's not something we should rely on |
I have the same issue. On Android 11 OneUI 3.1 App Version 4.11 |
I've had a look at our code around hive, and the only recent change (2 weeks ago) I noticed was that a hive box was removed (in the "old TODOs" PR). |
I have the exactly same error on a Galaxy S7 (SM-G930F) running Android 8.0.0. This started today and the app was auto upgraded to 4.11.0 yesterday. Based on the comments in this bug I first tried deleting the app's cache but it still crashed on startup. So I deleted the app's data and now it works again. |
Quick question, is everyone who had the problem in the beta channel |
Yes,it's an internal only issue |
No. I am a regular end user who downloaded it from the play store |
😱 @denseishin Can you confirm your build number by going to Settings >> FAQ >> About this App ? |
I can't access any in-app menu (just like rodrigost23) |
Just read through this long issue of people having a problem setting hive up, but found this comment isar/hive#269 (comment) Maybe it's not as simple as removing a Box but calling |
@denseishin sorry, my brain wasn't working. Can you access it from Android Settings, Apps, OFF, or by longpressing the Open Food Facts icon ? |
@teolemon I can't see a build number, only a version number (4.11.0) |
"good" news: if I get the 4.11.0 apk from https://github.com/openfoodfacts/smooth-app/releases, I can reproduce the crash (it even crashes my emulator). The first time it's when I get my first product (somehow first time a product is inserted in the database / the first time a product is inserted in history). Then it's just after the splash screen + onboarding. I recommend an emergency 4.12.0 release today, given that I've never experienced that on regular dev. |
I don't understand how 4.11.0 can be crashing (It's old 4.11.0 (2023-10-26), and I believe I used it without any hiccups.) |
I have a new build uploaded to internal, ready to promote to main. |
@teolemon feel free to ping me in slack when it's in internal. I didn't clean my storage to be able to test this (been using the F-Droid variant as alternative) |
@teolemon Could not test because I needed the same "level" of app (e.g. release vs debug) and I didn't manage to create a release apk for some gradle BS reason ( |
under playstore review |
I don't have access to my computer right now, but you can use the profile mode.
|
Cannot find @teolemon's 4.12.0 release, and cannot run flutter --release because of the same gradle BS. |
My version of Android hides build number 🤯 |
I'm working under the assumption that I have the latest build, and that it is not fixed @g123k @monsieurtanuki @M123-dev |
@teolemon If so I would stop now the upgrade to the current latest version 4.11 on Google Play. |
I'm doing damage control by email and in play store comments, but no way to rollback anymore. |
@g123k @monsieurtanuki shouldn't we try to rollback to old code with a new version? |
I'm trying to check if 4.9.1 is safe. |
This is the faulty PR: #4758 I think a revert on this PR will be enough |
We don't use it anymore [edit: |
What a brillant idea they have! So much easier for debugging. @g123k That said, I can just add a useless dao hive. Working on it. |
The update fixes it in internal. Going to promote to stable. @monsieurtanuki @g123k @M123-dev |
Please wait for some confirmations that the change is correct first |
Works for me 👍🏻 |
I was trying to reproduce the crash first but I can't anymore. |
|
I would not recommend that. That makes understanding the behavior of the app very difficult, especially if you're the only one that knows what you did.
I suggest a new unit test, with data inserted to the product and product list table.
Regular releases make sense. |
We have the confirmation that the fix is OK on Slack. |
Hi everyone,
This is a bug noticed by @teolemon when he opens the app:
Fatal Error: HiveError: Cannot read, unknown typeld: 33. Did you forget to register an adapter?
I don't know where the error is exactly and there is no issue on Sentry.
The text was updated successfully, but these errors were encountered: