question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IOS - crashing on attach photo

See original GitHub issue

Hey guys, how are you?

Just noticed that if I try to attach a photo on a conversation, my app suddenly crashes and I don’t know what’s going on.

2019-10-15 13:53:28.125793-0300 native[35506:918980] API error: <_UIKBCompatInputView: 0x7ffac5ca6ec0; frame = (0 0; 0 0); layer = <CALayer: 0x6000038db380>> returned 0 width, assuming UIViewNoIntrinsicMetric
2019-10-15 13:53:28.126124-0300 native[35506:918980] API error: <_UIKBCompatInputView: 0x7ffac5ca6ec0; frame = (0 0; 0 0); layer = <CALayer: 0x6000038db380>> returned 0 width, assuming UIViewNoIntrinsicMetric
2019-10-15 13:53:28.130129-0300 native[35506:918980] [LayoutConstraints] Unable to simultaneously satisfy constraints.
	Probably at least one of the constraints in the following list is one you don't want. 
	Try this: 
		(1) look at each constraint and try to figure out which you don't expect; 
		(2) find the code that added the unwanted constraint or constraints and fix it. 
(
    "<NSLayoutConstraint:0x600001a49360 'assistantHeight' TUISystemInputAssistantView:0x7ffac5dbda80.height == 45   (active)>",
    "<NSLayoutConstraint:0x600001a30dc0 'assistantView.bottom' TUISystemInputAssistantView:0x7ffac5dbda80.bottom == UIInputView:0x7ffac8010530.top   (active)>",
    "<NSLayoutConstraint:0x600001a30d70 'assistantView.top' V:[_UIRemoteKeyboardPlaceholderView:0x7ffac820a040]-(0)-[TUISystemInputAssistantView:0x7ffac5dbda80]   (active)>",
    "<NSLayoutConstraint:0x600001a30690 'inputView.top' V:[_UIRemoteKeyboardPlaceholderView:0x7ffac820a040]-(0)-[UIInputView:0x7ffac8010530]   (active)>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x600001a30d70 'assistantView.top' V:[_UIRemoteKeyboardPlaceholderView:0x7ffac820a040]-(0)-[TUISystemInputAssistantView:0x7ffac5dbda80]   (active)>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
2019-10-15 13:53:28.608749-0300 native[35506:918980] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff23baa1ee __exceptionPreprocess + 350
	1   libobjc.A.dylib                     0x00007fff50864b20 objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff23c3cb71 _CFThrowFormattedException + 194
	3   CoreFoundation                      0x00007fff23c47596 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:].cold.4 + 38
	4   CoreFoundation                      0x00007fff23c07f17 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 247
	5   CoreFoundation                      0x00007fff23ba609b +[NSDictionary dictionaryWithObjects:forKeys:count:] + 59
	6   native                              0x000000010efa8713 +[IntercomSDK_ITBBlockUtils imageBlockForUpload:appearance:] + 298
	7   native                              0x000000010f0d134e +[ICMConversationPart sendingPartWithBlocks:upload:] + 607
	8   native                              0x000000010f0b38e5 -[ICMConversationContentViewController replyToConversationWithBlocks:upload:] + 215
	9   native                              0x000000010f0b1975 -[ICMConversationContentViewController sendUpload:] + 177
	10  native                              0x000000010f08c36f -[ICMConversationViewController sendMessage:upload:] + 179
	11  native                              0x000000010f08be94 __74-[ICMConversationViewController inputAccessoryView:input:performedAction:]_block_invoke + 96
	12  libdispatch.dylib                   0x000000011201cdf8 _dispatch_call_block_and_release + 12
	13  libdispatch.dylib                   0x000000011201dd6c _dispatch_client_callout + 8
	14  libdispatch.dylib                   0x000000011202be24 _dispatch_main_queue_callback_4CF + 1500
	15  CoreFoundation                      0x00007fff23b0ce49 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
	16  CoreFoundation                      0x00007fff23b07aa9 __CFRunLoopRun + 2329
	17  CoreFoundation                      0x00007fff23b06e66 CFRunLoopRunSpecific + 438
	18  GraphicsServices                    0x00007fff38346bb0 GSEventRunModal + 65
	19  UIKitCore                           0x00007fff47578dd0 UIApplicationMain + 1621
	20  native                              0x000000010e9c51f0 main + 112
	21  libdyld.dylib                       0x00007fff516ecd29 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

Any thoughts?

Thanks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
shelbygoldcommented, Dec 11, 2019

I am having the same issue, I have updated to the latest version but am still getting crashes every time an image is added to a chat. not having this issue on web or android just iOS

0reactions
dumbestcommented, Feb 6, 2020

In my case, I installed Intercom manually. react-native-intercom is 13.2.0 Issue resolved after I download a new intercom.framework.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does my iOS app crash when users try to attach an image?
There are two reasons why an app crash can occur on iOS when users tap the 'attach' icon in their support chat. 1....
Read more >
Apps crash when taking photo to upload - Apple Community
Apps crash when taking photo to upload · Force reboot your device by holding down the Power button and Home button until the...
Read more >
Top 5 Ways to Fix Photos App Keeps Crashing on iOS 16
Solution 1: Reboot Your iPhone to Fix Crash · Solution 2: Quit and Re-Launch the Photos App · Solution 3: Delete Recent Photos...
Read more >
How to Fix Photos App Crashing & Freezing on iPhone or iPad
1: Quit and Relaunch Photos App · 2: Reboot the iPhone or iPad · 3: Free Up Storage on iPhone or iPad ·...
Read more >
[2022] Fix "Photos App Keeps Crashing" on iPhone (iOS 13 ...
1 Reboot your iPhone to Fix Crash · 2 Quit and Re-Launch the Photos App · 3 Delete Recent Photos to Quit Photos...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found