urbanairship / ios-library

Urban Airship iOS SDK
http://urbanairship.com
Apache License 2.0
477 stars 265 forks source link

Airship crashes App when disk is full #315

Closed iwt-sebastian-boldt closed 2 years ago

iwt-sebastian-boldt commented 2 years ago

Preliminary Info

Our current App crashes if the user has no disk space available anymore. Is it really necessary to crash the app if something internally could not be written to disk?

What Airship dependencies are you using?

16.2.0

Report

Fatal Exception: NSInternalInconsistencyException
This NSPersistentStoreCoordinator has no persistent stores (disk full). It cannot perform a save operation.

Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0x129708 __exceptionPreprocess
1  libobjc.A.dylib                0x287a8 objc_exception_throw
2  CoreData                       0x175854 -[NSPersistentStoreCoordinator _coordinator_you_never_successfully_opened_the_database_io_error:]
3  CoreData                       0x1758f4 -[NSPersistentStoreCoordinator _introspectLastErrorAndThrow]
4  CoreData                       0x175f6c __65-[NSPersistentStoreCoordinator executeRequest:withContext:error:]_block_invoke.967
5  CoreData                       0x2324 -[NSPersistentStoreCoordinator _routeHeavyweightBlock:]
6  CoreData                       0x31ec -[NSPersistentStoreCoordinator executeRequest:withContext:error:]
7  CoreData                       0xa3ec -[NSManagedObjectContext executeRequest:error:]
8  immowelt                       0x1141cd8 __41-[UAInboxStore syncMessagesWithResponse:]_block_invoke + 221 (UAInboxStore.m:221)
9  immowelt                       0x10a2a84 closure #1 in UACoreData.safePerform(_:) + 84 (UACoreData.swift:84)
10 immowelt                       0xf7f3e4 thunk for @callee_guaranteed () -> () (<compiler-generated>)
11 immowelt                       0xf7f404 thunk for @escaping @callee_guaranteed () -> () (<compiler-generated>)
12 CoreData                       0x13f754 developerSubmittedBlockToNSManagedObjectContextPerform
13 libdispatch.dylib              0x481c _dispatch_client_callout
14 libdispatch.dylib              0x13910 _dispatch_lane_barrier_sync_invoke_and_complete
15 CoreData                       0x9f70 -[NSManagedObjectContext performBlockAndWait:]
16 immowelt                       0x10a2d24 UACoreData.safePerformAndWait(_:) (<compiler-generated>)
17 immowelt                       0x10a2dd8 @objc UACoreData.safePerformAndWait(_:) (<compiler-generated>)
18 immowelt                       0x11418c4 -[UAInboxStore syncMessagesWithResponse:] + 188 (UAInboxStore.m:188)
19 immowelt                       0x11477e8 -[UAInboxMessageList handleRetrieveTask:] + 235 (UAInboxMessageList.m:235)
20 immowelt                       0x1147458 __35-[UAInboxMessageList registerTasks]_block_invoke + 195 (UAInboxMessageList.m:195)
21 immowelt                       0x103dddc closure #1 in TaskLauncher.launch(_:) (<compiler-generated>)
22 immowelt                       0xed5300 thunk for @escaping @callee_guaranteed () -> () (<compiler-generated>)
23 libdispatch.dylib              0x2a84 _dispatch_call_block_and_release
24 libdispatch.dylib              0x481c _dispatch_client_callout
25 libdispatch.dylib              0xc004 _dispatch_lane_serial_drain
26 libdispatch.dylib              0xcc00 _dispatch_lane_invoke
27 libdispatch.dylib              0x174bc _dispatch_workloop_worker_thread
28 libsystem_pthread.dylib        0x37a4 _pthread_wqthread
29 libsystem_pthread.dylib        0xa74c start_wqthread

What unexpected behavior are you seeing?

What is the expected behavior?

What are the steps to reproduce the unexpected behavior?

rlepinski commented 2 years ago

I believe this was fixed in 16.4.0 but you should update to latest 16.5.1