rnd-team-dev / plotoptix

Data visualisation and ray tracing in Python based on OptiX 7.7 framework.
https://rnd.team/plotoptix
Other
498 stars 25 forks source link

Compile error on calling raytracing start function #22

Closed dralois closed 3 years ago

dralois commented 3 years ago

When I try to start the raytracing framework, my console gets flooded by the error down below. My code used to work before, so maybe its due to an issue with the newest NVIDIA driver. I am using a RTX 3080 + driver 471.11.

OPTIX_ERROR_PIPELINE_LINK_ERROR: Optix call 'optixPipelineCreate( state.context, &state.modules.pipelineCompileOptions(), &pipeline_link_options, program_groups.data(), program_groups.size(), log, &sizeof_log, &state.pipeline )' failed: c:\users\sulej\documents\visual studio 2017\projects\optix\cppsharpoptix7\pathtracer.cpp:2722)
Log:
COMPILE ERROR:
Info: Pipeline has 4 module(s), 4 entry function(s), 3 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 150 basic block(s) in entry functions, 2358 instruction(s) in entry functions, 0 non-entry function(s), 0 basic block(s) in non-entry functions, 0 instruction(s) in non-entry functions      
Error: Symbol '__closesthit__mesh_occlusion_1_0xf2552e3c2bff9d8c' was defined multiple times. First seen in: '__closesthit__mesh_occlusion_and_12_more_139482679971784184'
Error: Symbol '__closesthit__mesh_occlusion_transparency_1_0xf2552e3c2bff9d8c' was defined multiple times. First seen in: '__closesthit__mesh_occlusion_and_12_more_139482679971784184'
Error: Symbol '__closesthit__mesh_radiance__blurred_dot_1_0xf2552e3c2bff9d8c' was defined multiple times. First seen in: '__closesthit__mesh_occlusion_and_12_more_139482679971784184'
Error: Symbol '__closesthit__mesh_radiance__cos_1_0xf2552e3c2bff9d8c' was defined multiple times. First seen in: '__closesthit__mesh_occlusion_and_12_more_139482679971784184'
Error: Symbol '__closesthit__mesh_radiance__diffuse_1_0xf2552e3c2bff9d8c' was defined multiple times. First seen in: '__closesthit__mesh_occlusion_and_12_more_139482679971784184'
Error: Symbol '__closesthit__mesh_radiance__diffuse_masked_1_0xf2552e3c2bff9d8c' was defined multiple times. First seen in: '__closesthit__mesh_occlusion_and_12_more_139482679971784184'
Error: Symbol '__closesthit__mesh_radiance__flat_1_0xf2552e3c2bff9d8c' was defined multiple times. First seen in: '__closesthit__mesh_occlusion_and_12_more_139482679971784184'
Error: Symbol '__closesthit__mesh_radiance__glass_1_0xf2552e3c2bff9d8c' was defined multiple times. First seen in: '__closesthit__mesh_occlusion_and_12_more_139482679971784184'
Error: Symbol '__closesthit__mesh_radiance__radio_scatter_1_0xf2552e3c2bff9d8c' was defined multiple times. First seen in: '__closesthit__mesh_occlusion_and_12_more_139482679971784184'
Error: Symbol '__closesthit__mesh_radiance__radio_target_1_0xf2552e3c2bff9d8c' was defined multiple times. First seen in: '__closesthit__mesh_occlusion_and_12_more_139482679971784184'
Error: Symbol '__closesthit__mesh_radiance__reflective_1_0xf2552e3c2bff9d8c' was defined multiple times. First seen in: '__closesthit__mesh_occlusion_and_12_more_139482679971784184'
Error: Symbol '__closesthit__mesh_radiance__reflective_masked_1_0xf2552e3c2bff9d8c' was defined multiple times. First seen in: '__closesthit__mesh_occlusion_and_12_more_139482679971784184'
Error: Symbol '__closesthit__mesh_radiance__shadow_catcher_1_0xf2552e3c2bff9d8c' was defined multiple times. First seen in: '__closesthit__mesh_occlusion_and_12_more_139482679971784184'

[ 2][COMPILE FEEDBACK]: COMPILE ERROR: 
Info: Pipeline has 4 module(s), 4 entry function(s), 3 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 150 basic block(s) in entry functions, 2358 instruction(s) in entry functions, 0 non-entry function(s), 0 basic block(s) in non-entry functions, 0 instruction(s) in non-entry functions      
Error: Symbol '__closesthit__mesh_occlusion_1_0xf2552e3c2bff9d8c' was defined multiple times. First seen in: '__closesthit__mesh_occlusion_and_12_more_139482679971784184'
Error: Symbol '__closesthit__mesh_occlusion_transparency_1_0xf2552e3c2bff9d8c' was defined multiple times. First seen in: '__closesthit__mesh_occlusion_and_12_more_139482679971784184'
Error: Symbol '__closesthit__mesh_radiance__blurred_dot_1_0xf2552e3c2bff9d8c' was defined multiple times. First seen in: '__closesthit__mesh_occlusion_and_12_more_139482679971784184'
Error: Symbol '__closesthit__mesh_radiance__cos_1_0xf2552e3c2bff9d8c' was defined multiple times. First seen in: '__closesthit__mesh_occlusion_and_12_more_139482679971784184'
Error: Symbol '__closesthit__mesh_radiance__diffuse_1_0xf2552e3c2bff9d8c' was defined multiple times. First seen in: '__closesthit__mesh_occlusion_and_12_more_139482679971784184'
Error: Symbol '__closesthit__mesh_radiance__diffuse_masked_1_0xf2552e3c2bff9d8c' was defined multiple times. First seen in: '__closesthit__mesh_occlusion_and_12_more_139482679971784184'
Error: Symbol '__closesthit__mesh_radiance__flat_1_0xf2552e3c2bff9d8c' was defined multiple times. First seen in: '__closesthit__mesh_occlusion_and_12_more_139482679971784184'
Error: Symbol '__closesthit__mesh_radiance__glass_1_0xf2552e3c2bff9d8c' was defined multiple times. First seen in: '__closesthit__mesh_occlusion_and_12_more_139482679971784184'
Error: Symbol '__closesthit__mesh_radiance__radio_scatter_1_0xf2552e3c2bff9d8c' was defined multiple times. First seen in: '__closesthit__mesh_occlusion_and_12_more_139482679971784184'
Error: Symbol '__closesthit__mesh_radiance__radio_target_1_0xf2552e3c2bff9d8c' was defined multiple times. First seen in: '__closesthit__mesh_occlusion_and_12_more_139482679971784184'
Error: Symbol '__closesthit__mesh_radiance__reflective_1_0xf2552e3c2bff9d8c' was defined multiple times. First seen in: '__closesthit__mesh_occlusion_and_12_more_139482679971784184'
Error: Symbol '__closesthit__mesh_radiance__reflective_masked_1_0xf2552e3c2bff9d8c' was defined multiple times. First seen in: '__closesthit__mesh_occlusion_and_12_more_139482679971784184'
Error: Symbol '__closesthit__mesh_radiance__shadow_catcher_1_0xf2552e3c2bff9d8c' was defined multiple times. First seen in: '__closesthit__mesh_occlusion_and_12_more_139482679971784184'
robertsulej commented 3 years ago

Yes, driver updated to 471.11 is the problem. I'll investigate if the problem can be cured on the plotoptix side and let you know here.

robertsulej commented 3 years ago

OK, it seems that the new driver does not like multiple shaders in a single ptx. I need to split all of them to solve the problem. Will try asap and if you need to run before the fix, please, use the older driver.

dralois commented 3 years ago

Alright, glad you could identity the issue so quickly. I'll use the older driver for now then!

robertsulej commented 3 years ago

Fix is pushed for Windows. Linux will follow tomorrow.

dralois commented 3 years ago

Thank you! Any eta when the pypi package is going to be updated?

robertsulej commented 3 years ago

Today or tomorrow, as soon as I finish tests in linux.

robertsulej commented 3 years ago

Just pushed the new release to PyPI, let me know in case of problems.

dralois commented 3 years ago

Seems like everything works as expected now, thanks for the fix and I'll close the issue.