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

Assertion failure in +[GBMethodData methodDataWithType:result:arguments:] #607

Open
naokihada opened this issue Mar 8, 2017 · 6 comments

Comments

@naokihada
Copy link

naokihada commented Mar 8, 2017

appledoc version: 2.2.1 (build 1334)

I got following error.
Assertion failure in +[GBMethodData methodDataWithType:result:arguments:]

Old forked code (probably around 2014) of following code.
https://github.com/thermogl/TITokenField/blob/master/TITokenField.m

I think issue is at drawRect() or next CGPathCreateTokenPath().

DEBUG | TIToken: Registering method sizeThatFits:...
DEBUG | Resetting comments...
DEBUG | Matched method -drawRect: at line 2046.
DEBUG | TIToken: Registering method drawRect:...
DEBUG | Resetting comments...
DEBUG | Resetting comments...
2017-03-08 08:03:32.791 appledoc[13513:591885] *** Assertion failure in +[GBMethodData methodDataWithType:result:arguments:], /Users/naokihada/Dev/appledoc/appledoc/Model/GBMethodData.m:44
Oops, something went wrong...
NSInternalInconsistencyException: Invalid parameter not satisfying: [arguments count] >= 1
@ 0 CoreFoundation 0x00007fffa21450db __exceptionPreprocess + 171
@ 1 libobjc.A.dylib 0x00007fffb6dd6a2a objc_exception_throw + 48
@ 2 CoreFoundation 0x00007fffa2149c32 +[NSException raise:format:arguments:] + 98
@ 3 Foundation 0x00007fffa3bb2d50 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
@ 4 appledoc 0x0000000108b2aac4 appledoc + 146116
@ 5 appledoc 0x0000000108b1edb6 appledoc + 97718
@ 6 appledoc 0x0000000108b2436e appledoc + 119662
@ 7 appledoc 0x0000000108b1e7c3 appledoc + 96195
@ 8 appledoc 0x0000000108b1b783 appledoc + 83843
@ 9 appledoc 0x0000000108b1b697 appledoc + 83607
@ 10 appledoc 0x0000000108b2436e appledoc + 119662
@ 11 appledoc 0x0000000108b2418f appledoc + 119183
@ 12 appledoc 0x0000000108b1b617 appledoc + 83479
@ 13 appledoc 0x0000000108b1b1fc appledoc + 82428
@ 14 appledoc 0x0000000108b1e36f appledoc + 95087
@ 15 appledoc 0x0000000108b1b96f appledoc + 84335
@ 16 appledoc 0x0000000108b18c27 appledoc + 72743
@ 17 appledoc 0x0000000108b16637 appledoc + 63031
@ 18 appledoc 0x0000000108b17df2 appledoc + 69106
@ 19 appledoc 0x0000000108b179fb appledoc + 68091
@ 20 appledoc 0x0000000108b17c2d appledoc + 68653
@ 21 appledoc 0x0000000108b175a5 appledoc + 66981
@ 22 appledoc 0x0000000108b162e1 appledoc + 62177
@ 23 appledoc 0x0000000108b0ac34 appledoc + 15412
@ 24 appledoc 0x0000000108b0937b appledoc + 9083
@ 25 appledoc 0x0000000108b094cf appledoc + 9423
@ 26 appledoc 0x0000000108b0965b appledoc + 9819
@ 27 appledoc 0x0000000108b08960 appledoc + 6496

Thank you

@liangdahong
Copy link

+1

@naokihada
Copy link
Author

I had workaround this case.

  • (void)drawRect:(CGRect)rect
    had issue.
    So I commented out inside of drawRect() to run through appledoc command.
    Thank you.

@zhangtibin
Copy link

zhangtibin commented Sep 27, 2017

I got same error while building:
`2017-09-27 17:53:01.982 appledoc[6455:274303] *** Assertion failure in +[GBMethodData methodDataWithType:result:arguments:], /Users/zhangtibin/appledoc/Model/GBMethodData.m:44
appledoc version: 2.2.1 (build 1334)

Oops, something went wrong...
NSInternalInconsistencyException: Invalid parameter not satisfying: [arguments count] >= 1
@ 0 CoreFoundation 0x00007fff40ad50fb __exceptionPreprocess + 171
@ 1 libobjc.A.dylib 0x00007fff6776dc76 objc_exception_throw + 48
@ 2 CoreFoundation 0x00007fff40adae92 +[NSException raise:format:arguments:] + 98
@ 3 Foundation 0x00007fff42bb3690 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 193
@ 4 appledoc 0x000000010567d0c3 appledoc + 143555
@ 5 appledoc 0x00000001056714a6 appledoc + 95398
@ 6 appledoc 0x0000000105676948 appledoc + 117064
@ 7 appledoc 0x0000000105670edc appledoc + 93916
@ 8 appledoc 0x000000010566e0a7 appledoc + 82087
@ 9 appledoc 0x000000010566dfbb appledoc + 81851
@ 10 appledoc 0x0000000105676948 appledoc + 117064
@ 11 appledoc 0x000000010567676f appledoc + 116591
@ 12 appledoc 0x000000010566df3b appledoc + 81723
@ 13 appledoc 0x000000010566db23 appledoc + 80675
@ 14 appledoc 0x0000000105670b5a appledoc + 93018
@ 15 appledoc 0x000000010566e291 appledoc + 82577
@ 16 appledoc 0x000000010566b322 appledoc + 70434
@ 17 appledoc 0x0000000105669125 appledoc + 61733
@ 18 appledoc 0x000000010566a819 appledoc + 67609
@ 19 appledoc 0x000000010566a48b appledoc + 66699
@ 20 appledoc 0x000000010566a65f appledoc + 67167
@ 21 appledoc 0x000000010566a65f appledoc + 67167
@ 22 appledoc 0x000000010566a65f appledoc + 67167
@ 23 appledoc 0x000000010566a65f appledoc + 67167
@ 24 appledoc 0x000000010566a066 appledoc + 65638
@ 25 appledoc 0x0000000105668c53 appledoc + 60499
@ 26 appledoc 0x000000010565d7eb appledoc + 14315
@ 27 appledoc 0x000000010565bf41 appledoc + 8001
@ 28 appledoc 0x000000010565c09c appledoc + 8348
@ 29 appledoc 0x000000010565c22c appledoc + 8748
@ 30 appledoc 0x000000010565b528 appledoc + 5416
@ 31 ??? 0x000000000000001c 0x0 + 28
Command /bin/sh failed with exit code 250`

@tomaz
Copy link
Owner

tomaz commented Oct 2, 2017

Use —verbose 5 to get insight into source file, line and which method it is failing parsing

@DavidHuang61
Copy link

@tomaz

appledoc version: 2.2.1 (build 1333)

WARN: --company-id argument or global setting not given, but creating DocSet is enabled, will use 'com.ibireme.yycategories'!
NORMAL | Initializing...
NORMAL | Parsing source files...
VERBOSE | Parsing objects from 1 paths...
INFO | Parsing source code from './YYCategories/YYCategories.h'...
INFO | Parsing source code from './YYCategories/YYCategoriesMacro.h'...
VERBOSE | Matched YYSYNTH_DUMMY_CLASS_ class declaration at line 62.
INFO | Parsing source code from './YYCategories/UIKit/UITextField+YYAdd.m'...
VERBOSE | Matched UITextField(YYAdd) category declaration at line 18.
INFO | Parsing source code from './YYCategories/UIKit/UIBezierPath+YYAdd.m'...
VERBOSE | Matched UIBezierPath(YYAdd) category declaration at line 20.
INFO | Parsing source code from './YYCategories/UIKit/UIColor+YYAdd.m'...
VERBOSE | Matched UIColor(YYAdd) category declaration at line 200.
INFO | Parsing source code from './YYCategories/UIKit/UIControl+YYAdd.h'...
VERBOSE | Matched UIControl(YYAdd) category definition at line 19.
INFO | Parsing source code from './YYCategories/UIKit/UIDevice+YYAdd.m'...
VERBOSE | Matched UIDevice(YYAdd) category declaration at line 26.
2017-10-17 18:25:26.569 appledoc[68885:6074959] *** Assertion failure in +[GBMethodData methodDataWithType:result:arguments:], /tmp/appledoc-20170922-89365-1se72tr/appledoc-2.2.1/Model/GBMethodData.m:44
Oops, something went wrong...
NSInternalInconsistencyException: Invalid parameter not satisfying: [arguments count] >= 1
@ 0 CoreFoundation 0x00007fff42eea0fb __exceptionPreprocess + 171
@ 1 libobjc.A.dylib 0x00007fff697dcc76 objc_exception_throw + 48
@ 2 CoreFoundation 0x00007fff42eefe92 +[NSException raise:format:arguments:] + 98
@ 3 Foundation 0x00007fff44fc8690 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 193
@ 4 appledoc 0x000000010aaeedde appledoc + 142814
@ 5 appledoc 0x000000010aae326c appledoc + 94828
@ 6 appledoc 0x000000010aae85cf appledoc + 116175
@ 7 appledoc 0x000000010aae2ca2 appledoc + 93346
@ 8 appledoc 0x000000010aae0262 appledoc + 82530
@ 9 appledoc 0x000000010aae0176 appledoc + 82294
@ 10 appledoc 0x000000010aae85cf appledoc + 116175
@ 11 appledoc 0x000000010aae83f6 appledoc + 115702
@ 12 appledoc 0x000000010aae00f6 appledoc + 82166
@ 13 appledoc 0x000000010aadffba appledoc + 81850
@ 14 appledoc 0x000000010aae2920 appledoc + 92448
@ 15 appledoc 0x000000010aae044c appledoc + 83020
@ 16 appledoc 0x000000010aadd4dd appledoc + 70877
@ 17 appledoc 0x000000010aadb2d6 appledoc + 62166
@ 18 appledoc 0x000000010aadc9ca appledoc + 68042
@ 19 appledoc 0x000000010aadc63c appledoc + 67132
@ 20 appledoc 0x000000010aadc810 appledoc + 67600
@ 21 appledoc 0x000000010aadc810 appledoc + 67600
@ 22 appledoc 0x000000010aadc217 appledoc + 66071
@ 23 appledoc 0x000000010aadae04 appledoc + 60932
@ 24 appledoc 0x000000010aacfb73 appledoc + 15219
@ 25 appledoc 0x000000010aace2fd appledoc + 8957
@ 26 appledoc 0x000000010aace458 appledoc + 9304
@ 27 appledoc 0x000000010aace5e8 appledoc + 9704
@ 28 appledoc 0x000000010aacd8e4 appledoc + 6372

@tomaz
Copy link
Owner

tomaz commented Oct 17, 2017

So it points to YYCategories/UIKit/UIDevice+YYAdd.m line 26 (could be somewhat lower). Try commenting out methods to see which one trips parser, then make sure it has all components required by appledoc - argument name, variable name etc.

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

5 participants