Actually I'm using embree with custom geometry management. The geometry provided by some random user. For each step of my software I want to know and manage error if some occurs, to give user correct information.
At the begining I was using embree 2.4
My problem was, when I have a model with a lot of triangle for my system, my software was just exit with no prompt, no catch, no exception when I call rtcCommit.
After some digging, I find that embree 2.10 resolve my problem. But after testing with the provided dll with TBB, or a compiled version with TBB and an other without I still have the same issue.
rtcCommit throw an exception that i can catch, but i still have embree thread running that have issue (Access violation writing location,). So I can't really do a clean error management and my program can't continue, because crash occurs outside my main thread.
Is there a way to check memory usage before a rtcCommit and avoiding unnecessary job to embree? or a possibility to generate accel structure with my main thread.. Or another solution that I can't guess fopr now ? In this section of my code, I d'ont need strong performance, because I only use static scene and this is done once.
L.17 call of function where the bug appear
L 92 wild crash appear. Obvsiously I've tested this code with a lot of different geometry of different size, but this one is really big.
Thanks for any advice/hint