-
-
Notifications
You must be signed in to change notification settings - Fork 735
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
Android Application freezes up completely when using saveEventually() #1007
Comments
Can you pinpoint the exact line that causes the freeze, and can you see if |
@Jawnnypoo, I don't know if @tutorbear problem is related with the issues I have opened about LDS and saves. Thanks! |
@Jawnnypoo
// THIS LINE is the curprit----------------------->
No error is givin in the log cat, only this is shown @ramiro-ciocca Like ramiro said complex pointer saving is causing the issue i guess ? |
So no one is going to do anything about this issue ? Has the android skd community given up on fixing bugs ? |
Hello, like I said in previous comment, in your particular case, I think that trying to save a parse object with a pointer to an unsaved parse object can lead to problems. |
Yes I too have found a work around , but its sad that we have do do work arounds while the community is still there. |
First of all, thank you for taking the time and bringing attention to the issue. Bug reporting and analysis are important first steps to fix an issue, and we are glad to have you in the community. As you already mentioned, this is a community effort. Do you want to take the next step and dig deeper into this to open a PR? |
Hello, I have same problem as above |
It would be great if someone could open a PR with a failing test to replicate this. |
What do i have to add for PR? I can create simple android code for this but on sever side i can not share info as it would not be mine. @mtrezza |
@Shvet which version of the SDK are you using, can you update the issue description? |
@mtrezza Give me time i will create simple login/register and update project with user object and upload it. |
Server code should not be needed; see the tests in the existing test directory for how to write a new test: |
When i tried testing it, it no longer freezes screen. |
Could it be related to your custom code rather than the Parse SDK? You could try to reduce your project down to the least code needed to reproduce the issue. Cut out all UI and specially thread related code until you cannot reproduce the issue anymore. That should reveal whether the issue lies really with the Parse SDK. |
Issue Description
saveEventually() is suppose to save objects using relations recursively just like saveInBackground does. The logic of my code is very simple and straight forward. I have a logged in user. I create a new ParseObject (Profile) and associate it with the user. Then when I call saveEventually The entire app freezes up.
Yes Local Db is enabled
Steps to reproduce
Signup and login.
Put this code on the onClick listener of a button in android.
Parse user = ParseUser.getCurrentUser();
//A profile object
profile = new ParseObject("StudentProfile");
profile.put("user", user);
profile.put("name", "John");
profile.setACL(new ParseACL(user));
//Put profile object into user
user.put("profile",profile);
user.saveEventually();
Expected Results
user saved along with new profile object while pointing towards it.
Actual Outcome
App Freezes
Environment Setup
Logs/Trace
Non , App freezes up and stops responding
The text was updated successfully, but these errors were encountered: