Intel® Embree Ray Tracing Kernels
Discussion forum on the open source ray tracing kernels for fast photo-realistic rendering on Intel® CPUs.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

Embree Unhandled Exception

M_Cihan_O_
Beginner
168 Views

Hello everyone,

I am trying to use Embree for tracing the scene (just for visibility) of an existing project of mine. I can compile the program without giving any errors. However, when I try to run it, it gives an unhandled exception (std::bad_alloc at memory) before even the main function is started to execute. Last thing in the call stack is "KernelBase.dll" called after "embree.dll".

Could you give me an idea about the point I am missing?

Thank you, have a nice day!

0 Kudos
1 Reply
SvenW_Intel
Moderator
168 Views

Could you please try out if the precompiled Embree library works.

An error occuring before the main function indicates that some intialization of some static variable makes problems.

Please make sure that you do not call any Embree function in the initialization code of any static variable, e.g. do not initialize Embree through a static variable.

Could you give us the full stacktrace, best with debug symbols enabled?

Sven

Reply