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

[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[2] #141

Open
philosopherdog opened this issue Jan 31, 2022 · 0 comments

Comments

@philosopherdog
Copy link
Contributor

philosopherdog commented Jan 31, 2022

I'm getting a crash on accessing any plist from the Library folder on the simulator only. What's the issue here? I am able to access plists using other mechanisms such as po or Sim Genie. It's crashing on _FileInfo.m line 140 - (BOOL)isCanPreviewInQuickLook { return [QLPreviewController canPreviewItem:self.URL]; }

self is nil.

0 CoreFoundation 0x00000001112d8ba4 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x0000000112cccbe7 objc_exception_throw + 48
2 CoreFoundation 0x0000000111358f64 _CFThrowFormattedException + 194
3 CoreFoundation 0x0000000111363434 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:].cold.5 + 0
4 CoreFoundation 0x0000000111346938 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 243
5 CoreFoundation 0x00000001112d782b +[NSDictionary dictionaryWithObjects:forKeys:count:] + 49
6 QuickLook 0x0000000132a462b7 __49+[QLItem(PreviewInfo) contentTypesToPreviewTypes]_block_invoke + 429
7 libdispatch.dylib 0x0000000116a25a2c _dispatch_client_callout + 8
8 libdispatch.dylib 0x0000000116a26f10 _dispatch_once_callout + 66
9 QuickLook 0x0000000132a46108 +[QLItem(PreviewInfo) contentTypesToPreviewTypes] + 46
10 QuickLook 0x0000000132a46a1c -[QLItem(PreviewInfo) _uncachedPreviewItemTypeForContentType:] + 117
11 QuickLook 0x0000000132a46f35 -[QLItem(PreviewInfo) _previewItemTypeForType:] + 150
12 QuickLook 0x0000000132a46d3b -[QLItem(PreviewInfo) _getPreviewItemType] + 61
13 QuickLook 0x0000000132acd6d0 -[QLItem previewItemType] + 59
14 QuickLook 0x0000000132acd225 -[QLItem canBePreviewed] + 17
15 QuickLook 0x0000000132a30a47 +[QLPreviewController canPreviewItem:] + 55
16 CocoaDebug 0x000000011046d810 -[_FileInfo isCanPreviewInQuickLook] + 68
17 CocoaDebug 0x00000001104683bb -[_DirectoryContentsTableViewController viewControllerWithFileInfo:] + 194
18 CocoaDebug 0x000000011046bb50 -[_DirectoryContentsTableViewController tableView:didSelectRowAtIndexPath:] + 314
19 UIKitCore 0x000000012b1f39a1 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:isCellMultiSelect:deselectPrevious:] + 1854
20 UIKitCore 0x000000012b1f3248 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 94
21 UIKitCore 0x000000012b1f3c64 -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 334

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

1 participant