Closed fisher-j closed 1 year ago
When I run your code under lldb, I get a lot of warnings that deprecated functions are being called, then it crashes, with this message when run in lldb:
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x130f52338)
frame #0: 0x0000000116248044 rayshader.so`make_baselines_cpp(heightmap=0x00007ff7bfef9378, na_matrix=0x00007ff7bfef9338, waterdepth=0) at make_base_cpp.cpp:589:12 [opt]
Target 0: (R) stopped.
(The deprecation warnings don't need the debugger. If you weren't seeing them, you're not using an up to date version of rgl
.) The crash appears to be happening in a rayshader
function. So I see no evidence of rgl
problems.
Thank you for the quick response and error report. I realize that I should have specified: devtools::install_github("tylermorganwall/rayshader")
Just to clarify, did the first example:
set.seed(42)
plot_samples(rand_samp(1))
Render without crashing?
Yes, it was fine, with the crash in the second one.
Ok. Thank you for looking into it.
On Sat, May 13, 2023, 4:22 PM dmurdoch @.***> wrote:
Yes, it was fine, with the crash in the second one.
— Reply to this email directly, view it on GitHub https://github.com/dmurdoch/rgl/issues/367#issuecomment-1546767358, or unsubscribe https://github.com/notifications/unsubscribe-auth/APBWHQOBCL6RX4WWKBPYUBTXGAJUNANCNFSM6AAAAAAYAVIHWA . You are receiving this because you authored the thread.Message ID: @.***>
I ran into a bug using
rayshader::plot_3d
to plot discontinuous subsets of a heightmap. It creates its own triangles from a height map and then callsrgl::triangles3d
(andbg3d
). I posted the issue there, but am reproducing here in case the issue is traceable torgl
.Describe the bug When plotting some subsets of a heightmap using
rayshader::plot_3d
, the r session and rgl window both crash shortly after drawing the scene with[Process exited -1073741819]
This is happening on windows 10. I tested in windows terminal and regular cmd prompt. I realize this may be an issue with rgl, but I'm not sure how to reproduce with only rgl calls.
Session Info
Reproducible Example