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

Crash that doesn't trigger exception with g++ with wingw but not with msvc #142

Closed
IlaPoly opened this issue Aug 31, 2024 · 1 comment
Closed

Comments

@IlaPoly
Copy link

IlaPoly commented Aug 31, 2024

When creating a SmartNode in code using the app like so :

FastNoise::SmartNode<> fnGenerator = FastNoise::NewFromEncodedNodeTree("EQACAAAAAAAgQBAAAAAAQBkAEwCamRk/DQAEAAAAAAAgQAkAAAAAAD8AAAAAAAEEAAAAAAAAAEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM3MTD4AmpkZPwAAAAAA");

And then generating a 3d or 2d noise like so :

fnGenerator->GenUniformGrid3D(noiseOutput.data(), 0, 0, 0, Chunk::length, Chunk::length, Chunk::length, 0.2f, 1337);

The program crash exactly at this line if I build my program using mingw build with g++, but not if I build with msvc. I can't even catch an exception with mingw or make it crash with msvc.

This doesn't happen when using : auto fnSimplex = FastNoise::New<FastNoise::Simplex>(); and then generating noise.

Although when using this method it sometimes crashes with mingw with no explanation but doesn't do it all the time...

@Auburn
Copy link
Owner

Auburn commented Aug 31, 2024

See #69

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