doxygen 1.3.1 crashes with index out of range

Discuss anything related to product development
Post Reply
marlowa
Posts: 112
Joined: Sun Oct 25 2015 10:52 am

doxygen 1.3.1 crashes with index out of range

Post by marlowa »

Hello,

I am testing 1.3.1 on a large project and find that it chokes on something, not sure what. Here is the error I get:

Code: Select all

**  Generate Documentation Output
terminate called after throwing an instance of 'std::logic_error'
  what():  QList<T>::operator[] Index is out of Range. (Index is 5, Size is 2)
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
I will have a go at trying to narrow it down but there are thousands of source files. I'll do some sort of binary chop and post my findings here.

marlowa
Posts: 112
Joined: Sun Oct 25 2015 10:52 am

Re: doxygen 1.3.1 crashes with index out of range

Post by marlowa »

I've got a small bit of code that shows the problem:

Code: Select all

class Myclass : public SomeOtherClass
{
public:
};

class Foo : public Myclass
{
public:
};

template <class T1,class T2>
class Bar : public Foo
{
public:
};

template<class T>
class FooBar : public Bar<T,T>
{
public:
};

barbara
Posts: 165
Joined: Sat Apr 04 2015 2:32 am

Re: doxygen 1.3.1 crashes with index out of range

Post by barbara »

Thanks! We will test and figure out the problem.

barbara
Posts: 165
Joined: Sat Apr 04 2015 2:32 am

Re: doxygen 1.3.1 crashes with index out of range

Post by barbara »

We dropped your test code into our test suite and it did not break.

My initial guess is that this could be related to a JSON tag setting. If you can email a copy of your JSON project file we can look that over and see what might be different.

Barbara

marlowa
Posts: 112
Joined: Sun Oct 25 2015 10:52 am

Re: doxygen 1.3.1 crashes with index out of range

Post by marlowa »

barbara wrote:We dropped your test code into our test suite and it did not break.

My initial guess is that this could be related to a JSON tag setting. If you can email a copy of your JSON project file we can look that over and see what might be different.

Barbara
Here is the json file I used:

Code: Select all

{
    "clang": {
        "clang-compilation-path": "",
        "clang-dialect": "-std=c++14",
        "clang-flags": [
            ""
        ],
        "clang-parsing": false,
        "clang-use-headers": true
    },
    "configuration": {
        "allow-sub-grouping": true,
        "allow-unicode-names": false,
        "always-detailed-sec": false,
        "auto-link": true,
        "brief-member-desc": true,
        "built-in-stl-support": false,
        "case-sensitive-fname": true,
        "cpp-cli-support": false,
        "create-subdirs": true,
        "duplicate-docs": true,
        "enabled-sections": [
            "INTERNAL_RELEASE"
        ],
        "extract-all": true,
        "extract-anon-namespaces": false,
        "extract-local-classes": true,
        "extract-local-methods": false,
        "extract-package": false,
        "extract-private": true,
        "extract-static": true,
        "file-version-filter": "",
        "force-local-includes": false,
        "full-path-names": false,
        "generate-bug-list": false,
        "generate-deprecate-list": true,
        "generate-test-list": false,
        "generate-todo-list": false,
        "group-nested-compounds": false,
        "hide-compound-ref": false,
        "hide-friend-compounds": false,
        "hide-in-body-docs": false,
        "hide-navtree-members": false,
        "hide-scope-names": false,
        "hide-undoc-classes": false,
        "hide-undoc-members": false,
        "idl-support": true,
        "inherit-docs": false,
        "inline-grouped-classes": false,
        "inline-info": true,
        "inline-inherited-member": false,
        "inline-simple-struct": false,
        "internal-docs": false,
        "javadoc-auto-brief": true,
        "language-mapping": [
            ""
        ],
        "layout-file": "",
        "main-page-name": "",
        "main-page-omit": false,
        "markdown": true,
        "max-init-lines": 30,
        "multiline-cpp-brief": false,
        "ns-alias": [
            ""
        ],
        "qt-auto-brief": false,
        "repeat-brief": true,
        "separate-member-pages": false,
        "short-names": false,
        "show-file-page": true,
        "show-grouped-members-inc": false,
        "show-include-files": true,
        "show-namespace-page": true,
        "show-used-files": true,
        "sip-support": false,
        "sort-brief-docs": true,
        "sort-by-scope-name": true,
        "sort-class-case-sensitive": false,
        "sort-constructors-first": true,
        "sort-group-names": true,
        "sort-member-docs": true,
        "strict-sig-matching": false,
        "tcl-subst": [
            ""
        ],
        "toc-include-headers": 0,
        "use-typedef-name": false
    },
    "dot": {
        "class-diagrams": true,
        "dia-file-dirs": [
            ""
        ],
        "dia-path": "",
        "directory-graph": true,
        "dot-call": false,
        "dot-called-by": false,
        "dot-class-graph": true,
        "dot-cleanup": true,
        "dot-collaboration": false,
        "dot-file-dirs": [
            ""
        ],
        "dot-font-name": "Helvetica",
        "dot-font-path": "",
        "dot-font-size": 10,
        "dot-graph-max-depth": 4,
        "dot-graph-max-nodes": 1000,
        "dot-hierarchy": false,
        "dot-image-format": "png",
        "dot-include": true,
        "dot-included-by": true,
        "dot-multiple-targets": true,
        "dot-num-threads": 0,
        "dot-path": "",
        "dot-transparent": false,
        "generate-legend": true,
        "group-graphs": true,
        "have-dot": true,
        "hide-undoc-relations": false,
        "interactive-svg": false,
        "msc-file-dirs": [
            ""
        ],
        "mscgen-path": "",
        "plantuml-cfg-file": "",
        "plantuml-inc-path": [
            ""
        ],
        "plantuml-jar-path": "",
        "template-relations": true,
        "uml-limit-num-fields": 10,
        "uml-look": false
    },
    "doxypress-format": 1,
    "doxypress-updated": "2018-Jun-30",
    "external": {
        "all-externals": false,
        "external-groups": true,
        "external-pages": false,
        "generate-tagfile": "",
        "perl-path": "/usr/bin/perl",
        "tag-files": [
            ""
        ]
    },
    "general": {
        "abbreviate-brief": [
            ""
        ],
        "aliases": [
            ""
        ],
        "lookup-cache-size": 0,
        "optimize-c": false,
        "optimize-cplus": true,
        "optimize-fortran": false,
        "optimize-java": false,
        "optimize-python": false,
        "output-dir": "doxypress-API",
        "output-language": "English",
        "strip-from-inc-path": [
            ""
        ],
        "strip-from-path": [
            ""
        ],
        "tab-size": 8
    },
    "index": {
        "alpha-index": true,
        "cols-in-index": 4,
        "ignore-prefix": [
            ""
        ]
    },
    "input": {
        "example-patterns": [
            ""
        ],
        "example-recursive": false,
        "example-source": [
            ""
        ],
        "exclude-files": [
        ],
        "exclude-patterns": [
            "*/Debug",
            "*/Release"
        ],
        "exclude-symbols": [
            ""
        ],
        "exclude-symlinks": false,
        "filter-patterns": [
            ""
        ],
        "filter-program": "",
        "filter-source-files": false,
        "filter-source-patterns": [
            ""
        ],
        "image-path": [
            ""
        ],
        "input-encoding": "UTF-8",
        "input-patterns": [
            "*.h",
            "*.dox"
        ],
        "input-recursive": true,
        "input-source": [
            "Core/Common/andrew.h"
        ],
        "mdfile-mainpage": ""
    },
    "messages": {
        "quiet": true,
        "warn-doc-error": true,
        "warn-format": "$file($line): $text",
        "warn-logfile": "",
        "warn-undoc": false,
        "warn-undoc-param": false,
        "warnings": true
    },
    "output-chm": {
        "binary-toc": false,
        "chm-file": "",
        "chm-index-encoding": "",
        "generate-chi": false,
        "generate-chm": false,
        "hhc-location": "",
        "toc-expanded": false
    },
    "output-docbook": {
        "docbook-output": "",
        "docbook-program-listing": false,
        "generate-docbook": false
    },
    "output-docset": {
        "docset-bundle-id": "org.doxygen.Project",
        "docset-feedname": "Doxygen generated docs",
        "docset-publisher-id": "org.doxygen.Publisher",
        "docset-publisher-name": "Publisher",
        "generate-docset": false
    },
    "output-eclipse": {
        "eclipse-doc-id": "org.doxygen.Project",
        "generate-eclipse": false
    },
    "output-html": {
        "disable-index": false,
        "enum-values-per-line": 4,
        "external-links-in-window": false,
        "formula-fontsize": 10,
        "formula-transparent": true,
        "generate-html": true,
        "generate-treeview": true,
        "ghostscript": "",
        "html-colorstyle-gamma": 61,
        "html-colorstyle-hue": 214,
        "html-colorstyle-sat": 89,
        "html-dynamic-sections": false,
        "html-extra-files": [
            ""
        ],
        "html-file-extension": ".html",
        "html-footer": "",
        "html-header": "",
        "html-index-num-entries": 100,
        "html-output": "full",
        "html-search": true,
        "html-stylesheets": [
            ""
        ],
        "html-timestamp": true,
        "mathjax-codefile": "",
        "mathjax-extensions": [
            ""
        ],
        "mathjax-format": "HTML-CSS",
        "mathjax-relpath": "http://cdn.mathjax.org/mathjax/latest",
        "search-data-file": "searchdata.xml",
        "search-external": false,
        "search-external-id": "",
        "search-external-url": "",
        "search-mappings": [
            ""
        ],
        "search-server-based": false,
        "treeview-width": 250,
        "use-mathjax": false
    },
    "output-latex": {
        "cite-bib-files": [
            ""
        ],
        "generate-latex": false,
        "latex-batch-mode": false,
        "latex-bib-style": "plain",
        "latex-cmd-name": "latex",
        "latex-compact": false,
        "latex-extra-files": [
            ""
        ],
        "latex-extra-packages": [
            ""
        ],
        "latex-footer": "",
        "latex-header": "",
        "latex-hide-indices": false,
        "latex-hyper-pdf": false,
        "latex-output": "latex",
        "latex-paper-type": "",
        "latex-pdf": false,
        "latex-ps": false,
        "latex-source-code": false,
        "latex-stylesheets": [
            ""
        ],
        "latex-timestamp": true,
        "make-index-cmd-name": "makeindex"
    },
    "output-man": {
        "generate-man": false,
        "man-extension": ".3",
        "man-links": false,
        "man-output": "man",
        "man-subdir": ""
    },
    "output-perl": {
        "generate-perl": false,
        "perl-latex": false,
        "perl-prefix": "",
        "perl-pretty": true
    },
    "output-qhelp": {
        "generate-qthelp": false,
        "qch-file": "",
        "qhp-cust-attrib": [
            ""
        ],
        "qhp-cust-filter-name": "",
        "qhp-namespace": "org.doxygen.Project",
        "qhp-sect-attrib": [
            ""
        ],
        "qhp-virtual-folder": "doc",
        "qthelp-gen-path": ""
    },
    "output-rtf": {
        "generate-rtf": false,
        "rtf-compact": false,
        "rtf-extension": "",
        "rtf-hyperlinks": false,
        "rtf-output": "rtf",
        "rtf-paper-type": "a4",
        "rtf-source-code": false,
        "rtf-stylesheet": ""
    },
    "output-xml": {
        "generate-xml": false,
        "xml-output": "xml",
        "xml-program-listing": true
    },
    "preprocessor": {
        "enable-preprocessing": true,
        "expand-as-defined": [
            "_SEMICOLON_FOR_DOXYGEN"
        ],
        "expand-only-predefined": true,
        "include-path": [
            ""
        ],
        "include-patterns": [
            ""
        ],
        "macro-expansion": true,
        "predefined-macros": [
            "_SEMICOLON_FOR_DOXYGEN=;",
            "__declspec(x)="
        ],
        "search-includes": true,
        "skip-function-macros": true
    },
    "project": {
        "project-brief": "",
        "project-logo": "",
        "project-name": "myproj Full",
        "project-version": ""
    },
    "source": {
        "inline-source": false,
        "ref-by-relation": false,
        "ref-link-source": true,
        "ref-relation": false,
        "source-code": true,
        "source-tooltips": false,
        "strip-code-comments": true,
        "suffix-exclude-navtree": [
            "doc",
            "dox",
            "md",
            "markdown",
            "txt"
        ],
        "suffix-header-navtree": [
            "h",
            "hh",
            "hxx",
            "hpp",
            "h++",
            "idl",
            "ddl",
            "pidl"
        ],
        "suffix-source-navtree": [
            "c",
            "cc",
            "cxx",
            "cpp",
            "c++",
            "ii",
            "ixx",
            "ipp",
            "i++",
            "inl",
            "java",
            "m",
            "mm",
            "xml"
        ],
        "use-htags": false,
        "verbatim-headers": true
    }
}

Post Reply