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

iOS chiptool crashes when launching QR code scanner #15638

Closed
kean-apple opened this issue Feb 28, 2022 · 2 comments · Fixed by #15676
Closed

iOS chiptool crashes when launching QR code scanner #15638

kean-apple opened this issue Feb 28, 2022 · 2 comments · Fixed by #15676

Comments

@kean-apple
Copy link

Problem

iOS chiptool crashes when launching QR code scanner

  1. Build iOS chiptool using SHA 3e476ebfcae753e5b595f3ef8469dcddad5ef10c2.
  2. Launch iOS chiptool, try QRCode scanner option..app crashes

Note: This was not seen last Friday with 448578d

for task identifier: 2
2022-02-28 07:00:50.187197-0800 localhost CHIPTool[4835]: (CoreData) [com.apple.coredata:error] error: addPersistentStoreWithType:configuration:URL:options:error: returned error NSCocoaErrorDomain (512)
2022-02-28 07:00:50.187232-0800 localhost CHIPTool[4835]: (CoreData) [com.apple.coredata:annotation] annotation: userInfo:
2022-02-28 07:00:50.187260-0800 localhost CHIPTool[4835]: (CoreData) [com.apple.coredata:annotation] annotation: reason : Failed to create file; code = 1
2022-02-28 07:00:50.187292-0800 localhost CHIPTool[4835]: (CoreData) [com.apple.coredata:annotation] annotation: storeType: SQLite
2022-02-28 07:00:50.187314-0800 localhost CHIPTool[4835]: (CoreData) [com.apple.coredata:annotation] annotation: configuration: (null)
2022-02-28 07:00:50.187342-0800 localhost CHIPTool[4835]: (CoreData) [com.apple.coredata:annotation] annotation: URL: chip.store -- file:///
2022-02-28 07:00:50.187387-0800 localhost CHIPTool[4835]: (CoreFoundation) [com.apple.CFBundle:strings] Bundle: CFBundle 0x149e0a530 </System/Library/Frameworks/Foundation.framework> (not loaded), key: Err512, value: (null), table: FoundationErrors, localizationName: (null), result: The file couldn’t be saved.
2022-02-28 07:00:50.187414-0800 localhost CHIPTool[4835]: (CHIP) [com.zigbee.chip:all] ð��´ [1646060450187] [4835:324440] CHIP: [DL] Failed to initialize clear KVS storage: The file couldn’t be saved.
2022-02-28 07:00:50.187437-0800 localhost CHIPTool[4835]: (CHIP) [com.zigbee.chip:all] � [1646060450187] [4835:324440] CHIP: [-] chipDie chipDie chipDie

CHIPTool-crash-launching-QR-code-scanner.txt
d

@danh-geo
Copy link
Contributor

FYI I noticed this also and commented on here:
ad6d418

When the issue was introduced.

it seems if ([filepath hasPrefix:@"/"]) { is the problem. I wonder if it should have been if (![filepath hasPrefix:@"/"]) { ?

@vivien-apple
Copy link
Contributor

FYI I noticed this also and commented on here: ad6d418

When the issue was introduced.

it seems if ([filepath hasPrefix:@"/"]) { is the problem. I wonder if it should have been if (![filepath hasPrefix:@"/"]) { ?

Yeah, that's what it should have been.

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