<p dir="auto">It appears that <code class="notranslate">GC_Diff.allocd</code> can sometimes be negative after <code class="notranslate">GC_Diff()</code> is called. This causes a <code class="notranslate">DomainError</code> when <code class="notranslate">prettyprint_getunits()</code> (called from <code class="notranslate">time_print()</code>) tries to take the log of this negative value.</p>
<p dir="auto">I believe the following was caused by a call to <code class="notranslate">@time</code>, but I haven't been able to narrow it down:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="ERROR: LoadError: DomainError:
log will only return a complex result if called with a complex argument. Try log(complex(x)).
 in nan_dom_err(::Float64, ::Float64) at ./math.jl:134
 in log(::Float64) at ./math.jl:140
 in log(::Int64) at ./math.jl:142
 in prettyprint_getunits(::Int64, ::Int64, ::Int64) at ./util.jl:99
 in time_print(::UInt64, ::Int64, ::Int64, ::Int64) at ./util.jl:115
 in macro expansion; at ./util.jl:159 [inlined]
 in anonymous at ./&lt;missing&gt;:?
 in include_from_node1(::String) at ./loading.jl:426
 in process_options(::Base.JLOptions) at ./client.jl:266
 in _start() at ./client.jl:322"><pre class="notranslate">ERROR<span class="pl-k">:</span> LoadError<span class="pl-k">:</span> DomainError<span class="pl-k">:</span>
log will only <span class="pl-k">return</span> a complex result <span class="pl-k">if</span> called with a complex argument. Try <span class="pl-c1">log</span>(<span class="pl-c1">complex</span>(x)).
 <span class="pl-k">in</span> <span class="pl-c1">nan_dom_err</span>(<span class="pl-k">::</span><span class="pl-c1">Float64</span>, <span class="pl-k">::</span><span class="pl-c1">Float64</span>) at <span class="pl-k">./</span>math<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">134</span>
 <span class="pl-k">in</span> <span class="pl-c1">log</span>(<span class="pl-k">::</span><span class="pl-c1">Float64</span>) at <span class="pl-k">./</span>math<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">140</span>
 <span class="pl-k">in</span> <span class="pl-c1">log</span>(<span class="pl-k">::</span><span class="pl-c1">Int64</span>) at <span class="pl-k">./</span>math<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">142</span>
 <span class="pl-k">in</span> <span class="pl-c1">prettyprint_getunits</span>(<span class="pl-k">::</span><span class="pl-c1">Int64</span>, <span class="pl-k">::</span><span class="pl-c1">Int64</span>, <span class="pl-k">::</span><span class="pl-c1">Int64</span>) at <span class="pl-k">./</span>util<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">99</span>
 <span class="pl-k">in</span> <span class="pl-c1">time_print</span>(<span class="pl-k">::</span><span class="pl-c1">UInt64</span>, <span class="pl-k">::</span><span class="pl-c1">Int64</span>, <span class="pl-k">::</span><span class="pl-c1">Int64</span>, <span class="pl-k">::</span><span class="pl-c1">Int64</span>) at <span class="pl-k">./</span>util<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">115</span>
 <span class="pl-k">in</span> <span class="pl-k">macro</span> expansion; at <span class="pl-k">./</span>util<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">159</span> [inlined]
 <span class="pl-k">in</span> anonymous at <span class="pl-k">./</span><span class="pl-k">&lt;</span><span class="pl-c1">missing</span><span class="pl-k">&gt;:</span>?
 <span class="pl-k">in</span> <span class="pl-c1">include_from_node1</span>(<span class="pl-k">::</span><span class="pl-c1">String</span>) at <span class="pl-k">./</span>loading<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">426</span>
 <span class="pl-k">in</span> <span class="pl-c1">process_options</span>(<span class="pl-k">::</span><span class="pl-c1">Base.JLOptions</span>) at <span class="pl-k">./</span>client<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">266</span>
 <span class="pl-k">in</span> <span class="pl-c1">_start</span>() at <span class="pl-k">./</span>client<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">322</span></pre></div>