Skip to content

Instantly share code, notes, and snippets.

@ZevEisenberg
Created January 26, 2015 23:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ZevEisenberg/6a0f8326d302733c8819 to your computer and use it in GitHub Desktop.
Save ZevEisenberg/6a0f8326d302733c8819 to your computer and use it in GitHub Desktop.
weird iOS crash
2015-01-26 18:02:31.223 Invaluable iOS[29323:1139622] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '{objective 0x7ff55b678f30: <251:-343, 250:915> + <250:5.96046e-08>*0x7ff55d81f580.marker{id: 7363} + <250:-2.98023e-08>*0x7ff55db73220.marker{id: 7364} + <250:2>*0x7ff55fa3e030.marker{id: 9313} + <250:2>*0x7ff55fd01060.negError{id: 9018} + <250:-2>*0x7ff55fd01060.posErrorMarker{id: 9017} + <250:-2>*0x7ff55fd018b0.marker{id: 9032}}: internal error. Setting empty vector for variable INVTriColumnPriceView:0x7ff55fe35160.minX{id: 8877}.'
*** First throw call stack:
(
0 CoreFoundation 0x00000001085ddf35 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010546cbb7 objc_exception_throw + 45
2 CoreFoundation 0x00000001085dde6d +[NSException raise:format:] + 205
3 Foundation 0x00000001060cf45e -[NSISObjectiveLinearExpression setPriorityVector:forKnownAbsentVariable:] + 76
4 Foundation 0x00000001062529df __128-[NSISObjectiveLinearExpression replaceVariable:withExpression:processVariableNewToReceiver:processVariableDroppedFromReceiver:]_block_invoke + 296
5 Foundation 0x00000001060cbf0f -[NSISLinearExpression enumerateVariablesAndCoefficients:] + 364
6 Foundation 0x00000001062528a0 -[NSISObjectiveLinearExpression replaceVariable:withExpression:processVariableNewToReceiver:processVariableDroppedFromReceiver:] + 369
7 Foundation 0x00000001060cd120 -[NSISEngine substituteOutAllOccurencesOfBodyVar:withExpression:] + 661
8 Foundation 0x00000001060d0189 -[NSISEngine pivotToMakeBodyVar:newHeadOfRowWithHead:andDropRow:] + 330
9 Foundation 0x00000001060da59a -[NSISEngine removeConstraintWithMarker:] + 513
10 Foundation 0x00000001060cbbd6 -[NSISEngine _flushPendingRemovals] + 490
11 Foundation 0x00000001060cdd98 -[NSISEngine withBehaviors:performModifications:] + 197
12 UIKit 0x00000001071df9fe -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 197
13 UIKit 0x0000000106bc70f4 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 95
14 UIKit 0x0000000106bc7086 -[UIView(Hierarchy) _postMovedFromSuperview:] + 437
15 UIKit 0x0000000106bc52f2 -[UIView(Hierarchy) removeFromSuperview] + 388
16 Invaluable iOS 0x0000000104d53aec -[INVLiveAuctionPagingCollectionViewCell setLiveAuctionDetailViewController:] + 124
17 Invaluable iOS 0x0000000104be5a70 -[INVLotPagingCollectionViewDataSource collectionView:didEndDisplayingCell:forItemAtIndexPath:] + 576
18 UIKit 0x0000000107195952 -[UICollectionView _reuseCell:] + 870
19 UIKit 0x000000010718b913 __43-[UICollectionView _updateVisibleCellsNow:]_block_invoke_2692 + 246
20 CoreFoundation 0x000000010851f766 __65-[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:]_block_invoke + 102
21 CoreFoundation 0x000000010851f66c -[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] + 204
22 UIKit 0x0000000107189924 -[UICollectionView _updateVisibleCellsNow:] + 2885
23 UIKit 0x000000010718d801 -[UICollectionView layoutSubviews] + 243
24 UIKit 0x0000000106bd3973 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 521
25 QuartzCore 0x000000010832fde8 -[CALayer layoutSublayers] + 150
26 QuartzCore 0x0000000108324a0e _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380
27 QuartzCore 0x000000010832487e _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
28 QuartzCore 0x000000010829263e _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 242
29 QuartzCore 0x000000010829374a _ZN2CA11Transaction6commitEv + 390
30 QuartzCore 0x0000000108293db5 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 89
31 CoreFoundation 0x0000000108512dc7 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
32 CoreFoundation 0x0000000108512d20 __CFRunLoopDoObservers + 368
33 CoreFoundation 0x0000000108508b53 __CFRunLoopRun + 1123
34 CoreFoundation 0x0000000108508486 CFRunLoopRunSpecific + 470
35 GraphicsServices 0x000000010a07a9f0 GSEventRunModal + 161
36 UIKit 0x0000000106b5a420 UIApplicationMain + 1282
37 Invaluable iOS 0x0000000104d67a83 main + 115
38 libdyld.dylib 0x00000001099c8145 start + 1
@ndonald2
Copy link

Well whaddya know. I just got the same crash and the first result for googling NSISObjectiveLinearExpression setPriorityVector:forKnownAbsentVariable: is your gist. Small world.

@HEYGUL
Copy link

HEYGUL commented Oct 5, 2015

Does someone find out the reason of this crash? I am experiencing same on a removeFromSuperview call and cannot figure out why :(

@MoseDien
Copy link

I encounter the same problem, and app crashed while rotate, it seem that layout is not right for me. Maybe you can find something like this ' internal error. Setting empty vector for variable UIView'.

@zongren
Copy link

zongren commented Jun 20, 2016

I encounter this crash because I override updateConstraints of UITableViewCell

@mathewsanders
Copy link

In case it helps anyone else, I was getting an Setting empty vector for variable error with use of a UIStackView where the spacing property was not set.

Not sure if it's the actual cause, or just a weird correlation, but setting spacing property to a non-zero value prevents this error for me.

@chilloutman
Copy link

In my case it was improper usage of dispatch queues. Make sure you're calling the UIView methods on the main queue.

@SaurabhPrajapati
Copy link

In case it helps anyone else, I was getting an Setting empty vector for variable error with use of a UIStackView where the spacing property was not set.

Not sure if it's the actual cause, or just a weird correlation, but setting spacing property to a non-zero value prevents this error for me.

This doesn't worked for me! i have set spacing to 1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment