Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DemoLib2_Test - Exception Unhandled #2

Open
archudzik opened this issue Dec 27, 2018 · 1 comment
Open

DemoLib2_Test - Exception Unhandled #2

archudzik opened this issue Dec 27, 2018 · 1 comment

Comments

@archudzik
Copy link

Hello,
Thank you for a great project! I was able to build the whole project properly, however, when I'm trying to parse my .dem file by attached demo software, I'm getting an error in BitIOReader:

Unhandled exception at 0x00007FF61AFD150D in DemoLib2_Test.exe: 0xC000001D: Illegal Instruction. occurred

Occured in line:

class BitIOCore
{
protected:
	BitIOCore() = default;

	static inline constexpr uint8_t ReadUInt8(const std::byte* buffer, uint_fast8_t bits = 8, uint_fast8_t readBitOffset = 0)
	{
		const auto bitRange = s_8BitRanges[bits];
		switch ((readBitOffset + bits + 7) / 8)
		{
			case 1: return (InternalReadUInt8(buffer) >> readBitOffset) & bitRange; // < problematic line

Image

Any help would be appreciated! :)

@PazerOP
Copy link
Owner

PazerOP commented Jan 4, 2020

extremely late reply: sounds like you have an instruction set selected (or there is one set in the project settings) that your CPU does not support (AVX, etc). See https://docs.microsoft.com/en-us/cpp/build/reference/arch-x86?view=vs-2019. There is an option for this in the UI somewhere as well (can't check myself, currently). If you want to see what instruction sets your CPU supports, you can use a tool like https://www.cpuid.com/softwares/cpu-z.html.

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

No branches or pull requests

2 participants