Skip to content
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() #6440

Closed
tutorbear opened this issue Feb 24, 2020 · 3 comments
Closed

Comments

@tutorbear
Copy link

tutorbear commented Feb 24, 2020

Issue Description

The client platform is android.
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.

Steps to reproduce

  1. Signup and login.

  2. 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

  • parse-server version: 3.9.0
  • Hosted on Back4app

Logs/Trace

Non , App freezes up and stops responding

@TomWFox
Copy link
Contributor

TomWFox commented Feb 24, 2020

Hi, if you are going to create multiple identical issues please reference them like this -> parse-community/Parse-SDK-Android#1007.

@TomWFox
Copy link
Contributor

TomWFox commented Feb 24, 2020

If the app stops responding and there is no error in your backend logs. It's unlikely that this issue is related to Parse Server.

The issue is probably related to the SDK or your implementation, so I'll close this one in favour of the Android SDK issue.

@TomWFox TomWFox closed this as completed Feb 24, 2020
@tutorbear
Copy link
Author

Thanks tom , I am new to issue reporting and did not know about referencing . I'll keep it in mind next time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants