# Help: I get this error whenever I try to run my code

**URL:** <https://discourse.julialang.org/t/help-i-get-this-error-whenever-i-try-to-run-my-code/12318>\
**Category:** General Usage\
**Created:** [July 11, 2018, 5:01pm UTC](https://discourse.julialang.org/t/help-i-get-this-error-whenever-i-try-to-run-my-code/12318 "2018-07-11T17:01:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_Nerouppos](https://avatars.discourse-cdn.com/v4/letter/m/bc79bd/32.png) [@Mike\_Nerouppos](https://discourse.julialang.org/u/Mike_Nerouppos)\
**Post date:** [July 11, 2018, 5:01pm UTC](https://discourse.julialang.org/t/help-i-get-this-error-whenever-i-try-to-run-my-code/12318/1 "2018-07-11T17:01:09Z")

</div>

ERROR: LoadError: LoadError: During the resolution of the non-linear system, the evaluation of the following equation(s) resulted in a non-finite number: [1]  
Stacktrace:  
[1] check\_isfinite(::Array{Float64,1}) at /home/michalis/JuliaPro-0.6.2.2/JuliaPro/pkgs-0.6.2.2/v0.6/NLsolve/src/nlsolve/utils.jl:35  
[2] trust\_region\_(::NLSolversBase.OnceDifferentiable{Array{Float64,1},Array{Float64,2},Array{Float64,1},Val{false}}, ::Array{Float64,1}, ::Float64, ::Float64, ::Int64, ::Bool, ::Bool, ::Bool, ::Float64, ::Bool, ::NLsolve.NewtonTrustRegionCache{Array{Float64,1}}) at /home/michalis/JuliaPro-0.6.2.2/JuliaPro/pkgs-0.6.2.2/v0.6/NLsolve/src/solvers/trust\_region.jl:120  
[3] #nlsolve#38(::Symbol, ::Float64, ::Float64, ::Int64, ::Bool, ::Bool, ::Bool, ::LineSearches.Static{Float64}, ::Float64, ::Bool, ::Int64, ::Float64, ::NLsolve.#nlsolve, ::NLSolversBase.OnceDifferentiable{Array{Float64,1},Array{Float64,2},Array{Float64,1},Val{false}}, ::Array{Float64,1}) at /home/michalis/JuliaPro-0.6.2.2/JuliaPro/pkgs-0.6.2.2/v0.6/NLsolve/src/nlsolve/nlsolve.jl:26  
[4] (::NLsolve.#kw##nlsolve)(::Array{Any,1}, ::NLsolve.#nlsolve, ::NLSolversBase.OnceDifferentiable{Array{Float64,1},Array{Float64,2},Array{Float64,1},Val{false}}, ::Array{Float64,1}) at ./:0  
[5] #nlsolve#39(::Symbol, ::Float64, ::Float64, ::Int64, ::Bool, ::Bool, ::Bool, ::LineSearches.Static{Float64}, ::Float64, ::Bool, ::Int64, ::Float64, ::Symbol, ::Bool, ::NLsolve.#nlsolve, ::#AdsorptionSol, ::Array{Float64,1}) at /home/michalis/JuliaPro-0.6.2.2/JuliaPro/pkgs-0.6.2.2/v0.6/NLsolve/src/nlsolve/nlsolve.jl:59  
[6] (::NLsolve.#kw##nlsolve)(::Array{Any,1}, ::NLsolve.#nlsolve, ::Function, ::Array{Float64,1}) at ./:0  
[7] macro expansion at /home/michalis/Downloads/Code\_Comparison\_Modified/NAdsorption.jl:80 [inlined]  
[8] anonymous at ./:?  
[9] include\_from\_node1(::String) at ./loading.jl:576  
[10] include(::String) at ./sysimg.jl:14  
[11] include\_from\_node1(::String) at ./loading.jl:576  
[12] include(::String) at ./sysimg.jl:14  
[13] process\_options(::Base.JLOptions) at ./client.jl:305  
[14] \_start() at ./client.jl:371  
while loading /home/michalis/Downloads/Code\_Comparison\_Modified/NAdsorption.jl, in expression starting on line 72  
while loading /home/michalis/Downloads/Code\_Comparison\_Modified/Include.jl, in expression starting on line 5

---

<div class="post-metadata">

**Author:** ![John\_Gibson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/john_gibson/32/5321_2.png) [@John\_Gibson](https://discourse.julialang.org/u/John_Gibson)\
**Post date:** [July 11, 2018, 6:04pm UTC](https://discourse.julialang.org/t/help-i-get-this-error-whenever-i-try-to-run-my-code/12318/2 "2018-07-11T18:04:17Z")

</div>

You’ll need to provide a minimal working example of the problem in order to get help. That is, see if you can boil down the problem to a handful of lines of code. Post the code, the error message you get when running it, and the output of `julia> versioninfo()`, quoting it all with backticks so it’s nicely formatted ([see this PSA](https://discourse.julialang.org/t/psa-how-to-quote-code-with-backticks/7530)).
