-
Notifications
You must be signed in to change notification settings - Fork 475
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
Ubuntu Linux Segmentation fault with GPU #469
Comments
As best I can tell after adding a few basic print statements the segmentation fault happens when calling buildBVHForTriangles. LINE: 1457 https://github.com/mmp/pbrt-v4/blob/master/src/pbrt/gpu/optix/aggregate.cpp#L1457 |
I'm not sure if any of these building warning are relevant.
|
Again after adding a few more print lines it looks like the code is failing on the following line inside the function buildBVHForTriangles.
https://github.com/mmp/pbrt-v4/blob/master/src/pbrt/gpu/optix/aggregate.cpp#L474 |
Here's another compile warning that might be connected to the above line that seems to be cause the segmentation fault.
|
Problem: When I run pbrt on wsl2 Ubuntu 24 with the --gpu enabled I get a segmentation fault. If I run with only the cpu then my scene renders without issue but with the gpu enabled it throws a segmentation fault on every run.
Note: When I compile the windows version on the same machine is runs successfully with --gpu enabled.
Here's a snippet of the console output:
[ tid 21329 @ 1.175s gpu/optix/aggregate.cpp:1219 ] Starting OptiX initialization
[ tid 21329 @ 2.743s gpu/optix/aggregate.cpp:1233 ] Optix version 7.7.0 successfully initialized
[ tid 21329 @ 2.975s gpu/optix/aggregate.cpp:1308 ] Info: Pipeline statistics
module(s) : 1
entry function(s) : 19
trace call(s) : 4
continuation callable call(s) : 0
direct callable call(s) : 0
basic block(s) in entry functions : 3560
instruction(s) in entry functions : 58382
non-entry function(s) : 0
basic block(s) in non-entry functions: 0
instruction(s) in non-entry functions: 0
debug information : no
[ tid 21329 @ 2.975s gpu/optix/aggregate.cpp:1364 ] Finished OptiX initialization
[ tid 21329 @ 2.975s gpu/optix/aggregate.cpp:1376 ] Starting to create shapes and acceleration structures
[ tid 21329 @ 2.975s gpu/optix/aggregate.cpp:1384 ] Starting to read PLY meshes
[ tid 21329 @ 3.436s gpu/optix/aggregate.cpp:1387 ] Finished reading PLY meshes
[ tid 21329 @ 3.436s gpu/optix/aggregate.cpp:1434 ] Starting to create IASes for 14 instance definitions
Segmentation fault (core dumped)
Let me know if anyone has any thoughts about what might be the issue. I'm open to helping debug this issue too if anyone wants to suggest what might be helpful.
The text was updated successfully, but these errors were encountered: