Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

ccdocgen crash issue when using from Visual Studio 2015 #226

Open
huwman opened this issue Aug 25, 2015 · 9 comments
Open

ccdocgen crash issue when using from Visual Studio 2015 #226

huwman opened this issue Aug 25, 2015 · 9 comments

Comments

@huwman
Copy link

huwman commented Aug 25, 2015

I receive the following issue when attempting compilation in Visual Studio 2015 (Worked in 2013):

OUTPUT:

Process is terminated due to StackOverflowException.
1>C:\Program Files (x86)\Microsoft\Contracts\MsBuild\v14.0\Microsoft.CodeContracts.targets(642,5): error MSB3073: The command ""C:\Program Files (x86)\Microsoft\Contracts\Bin\ccdocgen.exe" "@obj\Debug\Fortis.CSharpccdocgen.rsp"" exited with code -1073741571.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Configuration:

image

Please assist.

@rkeithhill
Copy link

If you uncheck the checkbox "Emit contracts into XML doc file" (bottom of the dialog) does it still error?

@ContentsMayVary
Copy link

Duplicate of #169

@ndepend
Copy link

ndepend commented Oct 7, 2015

In VS2015 + MSCC v1.9.10714.2 I get the error:

The command ""C:\Program Files (x86)\Microsoft\Contracts\Bin\ccdocgen.exe" "@obj\Debug\MyDLLNameccdocgen.rsp"" exited with code -1073741571.    MyDLLName

and when I uncheck "Emit contracts into XML doc file" I don't get it.

Hope this will be fixed soon (and so the wrong version number)

@huwman
Copy link
Author

huwman commented Oct 7, 2015

That resolves the error, thanks.

On Wed, 7 Oct 2015 15:43 psmacchia notifications@github.com wrote:

In VS2015 + MSCC v1.9.10714.2 I get the error:

The command ""C:\Program Files (x86)\Microsoft\Contracts\Bin\ccdocgen.exe" "@obj\Debug\MyDLLNameccdocgen.rsp"" exited with code -1073741571. MyDLLName

and when I uncheck "Emit contracts into XML doc file" I don't get it.

Hope this will be fixed soon (and so the wrong version number)


Reply to this email directly or view it on GitHub
#226 (comment)
.

Regards,
Huw Simpson

@ndepend
Copy link

ndepend commented Oct 8, 2015

Huw, what is resolving the error? a new patch?
or unchecking "Emit contracts into XML doc file"?
In the second case, the error is fixed ok, but this removes a very important feature we absolutely need :/

@huwman
Copy link
Author

huwman commented Oct 12, 2015

Yes, turning off the "Emit contracts into XML doc file" option resolved the error. But I agree it would be best if that feature worked.

@ndepend
Copy link

ndepend commented Oct 12, 2015

VS2015 is RTM for more than 2 months and all VS projects that are using this "Emit contracts into XML doc file" just cannot be developed with VS2015.

When a fix is forecasted?
Will it be ever fixed?
Is MS CodeContract deprecated?

@RealDotNetDave
Copy link

I'm having the same issue. Setting the xml file to false did not work. But if I set Contract Reference Assembly to DoNotBuild, I get a bunch of these errors:

CA0001 : An error was encountered while parsing IL for method: 'System.Diagnostics.Contracts.__ContractsRuntime.Requires(System.Boolean,System.String,System.String)', instruction at offset '0x4B' with opcode 'Call'.

But I don't know what is causing this error. There isn't a line reference.

David

@JamesFaix
Copy link

I'm having the same issue as huwman with VS2015 and code contracts 1.9.10714.2. Unchecking the box prevents the error message.

I have several projects in the same solution, all with code contracts configured the same way, and all have been fine for a few weeks. Now one project is throwing this error on build.

Possibly relevant, is that the project with the error is highly implementation specified, while the other projects are mostly interfaces and simple structs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants