Skip to content

Crash: PFObject.saveInBackgroundWithBlock() causes crash. #450

@dtrenz

Description

@dtrenz

When creating a new PFObject and using saveInBackgroundWithBlock(), the app crashes (only on device, not while attached to debugger).

Help is greatly appreciated.

Parse Version: 1.8.5 & 1.9.0

Here is the exception in the log:

[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]

Here is the stack trace for the crashing thread:

Hardware Model:      iPhone7,2
Code Type:           ARM-64 (Native)
Parent Process:      launchd [1]
OS Version:          iOS 9.0.2 (13A452)

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Triggered by Thread:  0

Filtered syslog:
None found

Last Exception Backtrace:
0   CoreFoundation                  0x184434f5c __exceptionPreprocess + 124
1   libobjc.A.dylib                 0x19902bf80 objc_exception_throw + 56
2   CoreFoundation                  0x18431e30c -[__NSPlaceholderArray initWithObjects:count:] + 300
3   CoreFoundation                  0x184329db4 +[NSArray arrayWithObjects:count:] + 52
4   Parse                           0x100548220 -[PFTaskQueue enqueue:] (PFTaskQueue.m:44)
5   Parse                           0x1004d4fe8 -[PFObject saveInBackground] (PFObject.m:1989)
6   Parse                           0x1004d53b4 -[PFObject saveInBackgroundWithBlock:] (PFObject.m:2001)
7   Dojo                            0x100057110 0x100030000 + 160016
8   Dojo                            0x100043344 0x100030000 + 78660
9   Dojo                            0x100038744 0x100030000 + 34628
10  Dojo                            0x1000556ec 0x100030000 + 153324
11  Dojo                            0x1000557b0 0x100030000 + 153520
12  Dojo                            0x10005551c 0x100030000 + 152860
13  Dojo                            0x100055564 0x100030000 + 152932
14  Dojo                            0x10009da60 0x100030000 + 449120
15  libdispatch.dylib               0x1998257b0 _dispatch_call_block_and_release + 24
16  libdispatch.dylib               0x199825770 _dispatch_client_callout + 16
17  libdispatch.dylib               0x19982ae20 _dispatch_main_queue_callback_4CF + 1844
18  CoreFoundation                  0x1843ec258 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
19  CoreFoundation                  0x1843ea0c0 __CFRunLoopRun + 1628
20  CoreFoundation                  0x184318dc0 CFRunLoopRunSpecific + 384
21  GraphicsServices                0x18f46c088 GSEventRunModal + 180
22  UIKit                           0x1899f2f44 UIApplicationMain + 204
23  Dojo                            0x100042030 0x100030000 + 73776
24  libdyld.dylib                   0x1998568b8 start + 4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions