Closed snowflake closed 10 years ago
Hi @snowflake Are you able to reproduce the crash outside of AppleDoc?
Are you able to reproduce the crash outside of AppleDoc?
No. Appledoc is the only app I know of that uses GRMustache.
Hm. That's unfortunate. I mean: the line that crashes is very innocent. Upon further investigation, done by you or by @tomaz, I'm reluctant to consider that the issue belongs to GRMustache. I thus consider https://github.com/tomaz/appledoc/issues/483 the only relevant issue. Please open a new GRMustache issue when the responsibility has been elucidated.
I suspect that the bug is due to an obscure operating system bug which Apple have quietly fixed in Mavericks. I accept that you want to close this issue, and I will just have to apply the patch locally until I get Mavericks or Yosemite.
Using the debugger, I established that the alloc and init were being applied to a self which was nil.
Please, I beg you, put your comments in the appledoc issue. I'm being nice because I'm answering you. Yet the real repo with the real issue is Apoledoc. Please show me you understand.
appledoc is crashing in GRMustacheImplicitIteratorExpression.m
I have filed a bug report at
https://github.com/tomaz/appledoc/issues/483
The offending code is here:
The crash only seems to happen on OSX 10.8.5 compiled with Xcode Version 5.1.1 (5B1008) as others have not reported a crash.
I cannot see any problems with the code, but it just does not work.
Here is a suggested patch:
The only problem with it is that expression must be the first method called in the class.