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
Unable to run the app locally due to database not copying properly to my device #16
Comments
Yeah this has been a issue for me as well, but only on Android. Looking into it. |
Hi there. I just changed the way the database is initialized, this might fix this issue you are having. |
Looks like this didn't resolve the issue for me:
I did fully delete all data and the app beforehand just to be sure :(. |
Hi there, I pushed a new change and hopefully this issue is fixed by that. |
Sadly still not working, can you reproduce this on an android emulator? I want to make sure its not just me 🤔 |
maybe try wiping all the data on emulator, and run |
I'm doing that for every attempt just to be sure, also tried this with two PCs (Linux and Windows) now really weird... 🤔 |
Can I see the result of flutter doctor? Also your emulator configs and the console output on the first run. |
Thanks to knowing that it works on your end I decided to dig a bit deeper into what could be wrong on my side and realized that my local database was corrupted and I hadn't tested that thing again after checking that it worked once before but oh well. I realized something else though, once an user has a corrupted database (for whatever reason) it's pretty much impossible to start the app again unless you completely delete all data on the device. Shouldn't the app in that case copy the database to the device again? Nonetheless, thank you very much for your support :). |
Actually my recent patch should fix the corrupted database as well. Maybe I can look into it later on. Thanks for reporting the problems. |
Hey! I've been trying to build the app locally (parts of which led to #15) but there is one issue that I haven't been able to resolve yet and you might be able to help me with this.
Whenever I run the app (the version I've built myself) on my smartphone (or an Android emulator) I get the following exception:
After checking the local database that gets installed on my device I can confirm that its pretty much empty (like a newly initialized sqlite DB) so this error is kinda obvious. My first thought was something along the lines of "Oh well, maybe I did something wrong with the git LFS step" but sadly the database that I have on my PC in data/dictDB.db is correct (as in it does have the required tables/data). So my assumption is that somehow it doesn't seem to copy the SQLite database that I have in data/ to my device (nor the emulator) and I think it does instead initialize a new one, which then causes the prior exception due to the data not being present.
Full "flutter run -d DEVICE_NAME" log (click to expand)
I've invested some time trying to figure out why this doesn't work, but sadly couldn't find a solution yet and I hope that you might know how to resolve this :).
The text was updated successfully, but these errors were encountered: