Error processing uncompleted template specialization types

Open
#959 59 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp, csharp

Research direction

Start at Parser.cs line 66, where Parser.ClangParser.ParseHeader(options) reports the System.AccessViolationException. Reproduce the failure with a sufficiently complex C++ file containing many included headers, then verify that parsing completes without the exception.

Written by the indexing model from the issue text.

Description

bug

The C++ parse throws a System.AccessViolationException when parsing files.
The error is sent from Parser.cs@66: var result = Parser.ClangParser.ParseHeader(options);.

It doesn't always happen, for small files it's ok but as soon as I try to parse a (not too much) complex file, which includes a lot of other files, this error is thrown.

One thing that comes to my mind: could it be that since I'm using a 32bit compilation and the file includes a lot of other headers I run out of memory? For a single file, task manager shows me almost 200MB of memory used.

Dominant language
C#
Stars
3.4k
Forks
541
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mono/CppSharp

All issues in mono/CppSharp

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.