Home | News | Documentation | Download

Assertion failed occurred when executing compiled exe with Visual Studio 2017

An error (Assertion failed) occurred when executing compiled exe with Visual Studio 2017. Is this a known problem?

RegQueryValueEx: returned 2: C
RegOpenKeyEx: returned 2:
RegQueryValueEx: returned 2: C
RegOpenKeyEx: returned 2:
Assertion failed: !(isOverridden && isOutOfDate) && “an overridden cannot be out-of-date”, file c:\build\release\buildtype\release\sources\root-6.14.04\interpreter\llvm\src\tools\clang\include\clang\serialization\module.h, line 72

#include <TCanvas.h>
int main() {
	TCanvas *c1 = new TCanvas();
	c1->SaveAs("hist.pdf");
	return 0;
}

Set C:\root\include;$(IncludePath) as IncludePath.
Set C:\root\lib*.lib;%(AdditionalDependencies) as AdditionalDependencies.
Set PATH=C:\root\bin;%PATH% as environment.
ROOTSYS=C:\root

I deleted line 43-46 in the typetraits.hxx due to the following problem.


ROOT Version: root_v6.14.04.win32.vc15.zip
Platform: Windows 10
Compiler: Visual Studio 2017 15.8.6 Win32


Hi,

in general, ROOT 6 on Windows is in a preview state, so there are some known issues and most likely some yet unknown issues to expect.

@bellenot Is this something you could help with? Do we simply have to wait for the compiler bug to be fixed upstream by Microsoft?

Cheers,
Jakob

Hi,

Let’s wait for a fix from Microsoft…

Cheers, Bertrand.

Hi,

It seems the bug of Microsoft Visual Studio compiler, right?

Thanks,
Yoshimoto

Yes, it is a bug, and it has been reported here. You can vote for it, it could accelerate the process…

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.