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

Crash when reading object #194

Closed
pmiotto opened this issue Jul 3, 2018 · 3 comments
Closed

Crash when reading object #194

pmiotto opened this issue Jul 3, 2018 · 3 comments

Comments

@pmiotto
Copy link

pmiotto commented Jul 3, 2018

Crashed on Xcode 9.3.1, swift 4.

Saves correctly but crashes when reading back the object. See log below

  • thread Missing implementation #1, queue = 'Cache.SyncStorage.SerialQueue', stop reason = breakpoint 3.1
    frame #0: 0x000000010931b820 libswiftCore.dylib`swift_willThrow
    • frame Missing implementation #1: 0x0000000107e37718 CacheMemoryStorage.entry<A>(type=0x0000000113ad2ff0, key="api-server-config", self=0x00000001c0673d40) at MemoryStorage.swift:24 frame #2: 0x0000000107e25284 CacheHybridStorage.entry(type=0x0000000113ad2ff0, key="api-server-config", self=0x00000001c043d240) at HybridStorage.swift:17
      frame Add descriptive README. #3: 0x0000000107e25e40 Cacheprotocol witness for StorageAware.entry<A>(ofType:forKey:) in conformance HybridStorage at HybridStorage.swift:0 frame #4: 0x0000000107e3fa40 CacheTypeWrapperStorage.entry(type=0x0000000105cae230, key="api-server-config", self=0x00000001c0674280) at TypeWrapperStorage.swift:16
      frame Add Cachable protocol #5: 0x0000000107e40660 Cacheprotocol witness for StorageAware.entry<A>(ofType:forKey:) in conformance TypeWrapperStorage at TypeWrapperStorage.swift:0 frame #6: 0x0000000107e3da50 Cacheclosure Missing implementation #1 in SyncStorage.entry(entry=nil, self=0x00000001c0674500, type=0x0000000105cae230, key="api-server-config") at SyncStorage.swift:20
      frame File cache feature #7: 0x0000000107e3dbb0 Cachepartial apply for closure #1 in SyncStorage.entry<A>(ofType:forKey:) at SyncStorage.swift:0 frame #8: 0x0000000107e3dbe0 Cachethunk for @callee_guaranteed () -> (@error @owned Error) at SyncStorage.swift:0
      frame Remove cache task from protocol #9: 0x0000000107e3dc94 Cachepartial apply for thunk for @callee_guaranteed () -> (@error @owned Error) at SyncStorage.swift:0 frame #10: 0x00000001096c5574 libswiftDispatch.dylibclosure Missing implementation #1 () -> () in closure Missing implementation #1 (() throws -> A) -> () in (extension in Dispatch):__ObjC.DispatchQueue.(_syncHelper in _F417D752D2C4E9330E1C700411CE0C6A)(fn: (() -> ()) -> (), execute: () throws -> A, rescue: (Swift.Error) throws -> A) throws -> A + 96
      frame Expiration date #11: 0x00000001096bed7c libswiftDispatch.dylibreabstraction thunk helper from @callee_guaranteed () -> () to @callee_unowned @convention(block) () -> () + 36 frame #12: 0x0000000109a9545c libdispatch.dylib_dispatch_client_callout + 16
      frame Feature: strict cache + storages #13: 0x0000000109aa2d50 libdispatch.dylib_dispatch_queue_barrier_sync_invoke_and_complete + 120 frame #14: 0x00000001096cbbcc libswiftDispatch.dylibpartial apply forwarder for @nonobjc + 96
      frame Feature: cache clean up #15: 0x00000001096c5404 libswiftDispatch.dylib(extension in Dispatch):__ObjC.DispatchQueue.(_syncHelper in _F417D752D2C4E9330E1C700411CE0C6A)<A>(fn: (() -> ()) -> (), execute: () throws -> A, rescue: (Swift.Error) throws -> A) throws -> A + 208 frame #16: 0x00000001096c5a34 libswiftDispatch.dylib(extension in Dispatch):__ObjC.DispatchQueue.sync(execute: () throws -> A) throws -> A + 172
      frame Feature: example #17: 0x0000000107e3d710 CacheSyncStorage.entry<A>(type=0x0000000105cae230, key="api-server-config", self=0x00000001c0674500) at SyncStorage.swift:19 frame #18: 0x0000000107e3ee90 Cacheprotocol witness for StorageAware.entry(ofType:forKey:) in conformance SyncStorage at SyncStorage.swift:0
      frame Feature: README #19: 0x0000000107e3b810 CacheStorage.entry<A>(type=0x0000000105cae230, key="api-server-config", self=0x00000001c00d1170) at Storage.swift:46 frame #20: 0x0000000107e3bf58 Cacheprotocol witness for StorageAware.entry(ofType:forKey:) in conformance Storage at Storage.swift:0
      frame Fix image sizes #21: 0x0000000107e3c5a0 CacheStorageAware.object<A>(type=<unavailable>, key="api-server-config", self=0x00000001c00d1170) at StorageAware.swift:58 frame #22: 0x0000000104e076ac MaccasAtMonopolyDataManager.serverConfig.getter(self=) at DataManager.swift:29
      frame Disable code signing for Mac target #23: 0x0000000104ddc05c MaccasAtMonopolyMenuPagesViewController.getViewControllerFor(type=<unavailable>, self=<unavailable>) at MenuPagesViewController.swift:107 frame #24: 0x0000000104ddb1b4 MaccasAtMonopolyclosure Pod. #2 in MenuPagesViewController.viewDidLoad($0=, self=) at MenuPagesViewController.swift:82
      frame Remove example #25: 0x0000000104ddb234 MaccasAtMonopolythunk for @callee_guaranteed (@unowned MenuPagesViewController.PageType) -> (@owned UIViewController, @error @owned Error) at MenuPagesViewController.swift:0 frame #26: 0x0000000104ddb2f8 MaccasAtMonopolypartial apply for thunk for @callee_guaranteed (@unowned MenuPagesViewController.PageType) -> (@owned UIViewController, @error @owned Error) at MenuPagesViewController.swift:0
      frame Swift/2.2 #27: 0x000000010923a918 libswiftCore.dylibfunction signature specialization <Arg[0] = Owned To Guaranteed> of (extension in Swift):Swift.Collection.map<A>((A.Element) throws -> A1) throws -> Swift.Array<A1> + 684 frame #28: 0x0000000109163310 libswiftCore.dylibmerged (extension in Swift):Swift.Sequence.map((A.Element) throws -> A1) throws -> Swift.Array + 24
      frame Fix: expiry date #29: 0x000000010907c7a0 libswiftCore.dylib`(extension in Swift):Swift.Collection.map((A.Element) throws -> A1) throws -> Swift.Array + 20
      frame can you support cache to keychain #30: 0x0000000104ddae6c
@onmyway133
Copy link
Contributor

@pmiotto Hi, I see swift_willThrow, do you have Swift Error breakpoint set in Xcode? Just want to confirm this is an Error throwing and not crash

@pmiotto
Copy link
Author

pmiotto commented Jul 3, 2018

Hi, Yes it was just a swift error breakpoint. Closing issue now.

@pmiotto pmiotto closed this as completed Jul 3, 2018
@norman93sun
Copy link

@pmiotto Hi, I see swift_willThrow, do you have Swift Error breakpoint set in Xcode? Just want to confirm this is an Error throwing and not crash

How can I ignore this swift error breakpoint?

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

3 participants