An atomic orbital demonstration (found here) using DensityPlot3D in Mathematica 11 on MacOS has been causing serious graphical artifacting and crashes.
a0=1;
ψ[{n_, l_, m_}, {r_, θ_, ϕ_}] :=With[{ρ = 2 r/(n a0)},
Sqrt[(2/(n a0))^3 (n - l - 1)!/(2 n (n + l)!)] Exp[-ρ/2] ρ^
l LaguerreL[n - l - 1, 2 l + 1, ρ] SphericalHarmonicY[l,
m, θ, ϕ]]
DensityPlot3D[(Abs@ψ[{3, 2, 0}, {Sqrt[x^2 + y^2 + z^2],
ArcTan[z, Sqrt[x^2 + y^2]], ArcTan[x, y]}])^2, {x, -10 a0,
10 a0}, {y, -10 a0, 10 a0}, {z, -15 a0, 15 a0},
PlotLegends -> Automatic]
The plot renders correctly, but interacting with Mathematica after the plot is rendered causes red bars to appear across the screen, and manipulating the plot or closing Mathematica will cause the computer to crash entirely. The console is reporting a GPU reset/restart caused by Mathematica, and the panic report refers to a "kernel trap type=14", and an "Intel GPU hang summary". I can upload the full crash report if needed.
Here are images of the artifacting.
I took the computer in for a repair, suspecting a hardware problem, and they replaced the logic board and display, and yet the problem persists. I'm wondering if this is a memory sink or graphics bug in Mathematica, and if there is anything I can do to prevent this from happening.
The computer is a 2015 Macbook Pro, running Mathematica 11.0.1 on MacOS Sierra. I can provide hardware details if needed.
DensityPlot3D
generatesImage3D
objects. I know my 2012 Macbook Pro had an issue with its GPU and a similar GPU issue could have persisted. Do you experience this more as a session goes on? That's been my experience, but of course that is just subjective. $\endgroup$Graphics3D
code in the same notebook. No crash on quitting. $\endgroup$