-
Notifications
You must be signed in to change notification settings - Fork 158
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 keeps stopping after setup wizard #151
Comments
Odd, sqlite3.c seems to define that variable twice. Try;
|
Thank you for the quick response! For my info, when I originally cloned batphone, the build command was failing due to the libsodium.a not existing issue that was solved in #127
However, my ndk and sdk versions are the most recent released. I think I just created libsodium.a from command terminal with gradle command which caused the build command to work. |
Yeah I thought it was odd that the variable was defined twice. I'd suggest removing the second definition too. No idea why this has never failed for me. |
I commented out the second definition. Build works and reinstalled onto phone. But app still stops when main menu comes up. |
rhizome_database is a thread local value, but sqlite3_temp_directory is not. Is there something about the way you are using / have changed the application that might cause the database to be opened in multiple threads? |
We should probably change rhizome_opendb to only set the sqlite temp folder if it has never been set, then remove the cleanup code when the database is closed. |
Building the libsodium.a file from the command terminal is the only change I've made to the application thus far. Okay, that sounds like a plan. I'm still new to the code though for implementing those changes. |
To All: |
@csam23 do you solve the problem?can you give me the method?thank you! |
by the way,my envirment is |
Something like; https://github.com/servalproject/serval-dna/blob/development/rhizome_database.c#L311
https://github.com/servalproject/serval-dna/blob/development/rhizome_database.c#L488
Though this is deliberately creating a tiny memory leak. |
@lakeman thx a lot.now the project can be running, but i can't see the tiny memory leak's effect,maybe a lot of test can help me. |
I said tiny, since the backend daemon will allocate a single string and never release it when it quits gracefully. When the backend is running within batphone, the daemon never quits. I only mentioned it as the memory allocation will show up if anyone runs the daemon within valgrind or other automated tools that check for memory leaks. |
Before I push a proper fix, I'll need to work out when to release that memory, since I sometimes run all of our automated tests using clang's memory leak detection. The false positives would annoy me... |
Hello,
I have built and downloaded the serval mesh app through wifi and through usb connection. Both result in the app closing once I bypass the setup wizard window where I input the name and phone number. In the Logcat of Android studio, these two errors show once the app closes:
09-16 18:49:11.894 19038-19066/org.servalproject E/WifiApControl: Profile saved_user_ap has no SSID!
09-16 18:49:11.935 19038-19066/org.servalproject A/libc: ~/batphone/app/src/main/jni/serval-dna/rhizome_database.c:312: int rhizome_opendb(): assertion "!sqlite3_temp_directory" failed
Thanks in advance!
The text was updated successfully, but these errors were encountered: