Skip to content

get_bundleIdentifier can only be called from the main thread during a SaveAsync() call #16

@Nick-Graveck

Description

@Nick-Graveck

Unity 5.2.1p1 (OSX Editor)
Parse 1.6.0

While executing the following code in the editor:

 ParseQuery<ParseObject> query = new ParseQuery<ParseObject>("SomeClass") .WhereEqualTo("someField", "someValue"); query.FirstAsync().ContinueWith(delegate(Task<ParseObject> arg) { // change any value of arg.Result to make the ParseObject dirty arg.Result.SaveAsync(); }); 

The ParseObject is not saved to the database and the editor console has the following output:

get_bundleIdentifier can only be called from the main thread. Constructors and field initializers will be executed from the loading thread when loading a scene. Don't use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function. 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions