Closed jmbeckers closed 9 months ago
Actually, if you suppress the output on screen by adding a ";" at the end, the problem disappears. It seems it is the screen showing that causes the problem.
Same here, indeed it seems the display saturates the memory in gnome-terminal
If I replace the direct solver (which fits into memory), by an iterative solver with no iteration (and hence immediate warning of non-convergence), there seems to be, after the warning on non-convergence, a huge increase in memory demand and out of memory in my case:
Julia 1.8.5 and 1.7.1
[1] Array @ .\boot.jl:457 [inlined] [2] Array @ .\boot.jl:466 [inlined] [3] zeros @ .\array.jl:525 [inlined] [4] zeros @ .\array.jl:521 [inlined] [5] getindex(C::CovarIS{Float64, SparseMatrixCSC{Float64, Int64}}, i::Int64, j::Int64) @ DIVAnd C:\Users\jmbeckers.julia\packages\DIVAnd\MV3j9\src\special_matrices.jl:104 [6] isassigned(::CovarIS{Float64, SparseMatrixCSC{Float64, Int64}}, ::Int64, ::Int64) @ Base .\abstractarray.jl:553 [7] _show_nonempty(io::IOContext{IOBuffer}, X::AbstractMatrix, prefix::String, drop_brackets::Bool, axs::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}) @ Base .\arrayshow.jl:438 [8] _show_nonempty(io::IOContext{IOBuffer}, X::CovarIS{Float64, SparseMatrixCSC{Float64, Int64}}, prefix::String) @ Base .\arrayshow.jl:410 [9] show(io::IOContext{IOBuffer}, X::CovarIS{Float64, SparseMatrixCSC{Float64, Int64}}) @ Base .\arrayshow.jl:486 [10] _show_default(io::IOContext{IOBuffer}, x::Any) @ Base .\show.jl:413 [11] show_default @ .\show.jl:396 [inlined] [12] show @ .\show.jl:391 [inlined] [13] show_delim_array(io::IOContext{IOBuffer}, itr::Tuple{Array{Float64, 3}, DIVAnd.DIVAnd_struct{Float64, Int64, 3, SparseMatrixCSC{Float64, Int64}}}, op::Char, delim::Char, cl::Char, delim_one::Bool, i1::Int64, n::Int64) @ Base .\show.jl:1244 [14] show_delim_array @ .\show.jl:1229 [inlined] [15] show @ .\show.jl:1262 [inlined] [16] show @ .\multimedia.jl:47 [inlined] [17] limitstringmime(mime::MIME{Symbol("text/plain")}, x::Tuple{Array{Float64, 3}, DIVAnd.DIVAnd_struct{Float64, Int64, 3, SparseMatrixCSC{Float64, Int64}}}) @ IJulia C:\Users\jmbeckers.julia\packages\IJulia\e8kqU\src\inline.jl:43 [18] display_mimestring @ C:\Users\jmbeckers.julia\packages\IJulia\e8kqU\src\display.jl:71 [inlined] [19] display_dict(x::Tuple{Array{Float64, 3}, DIVAnd.DIVAnd_struct{Float64, Int64, 3, SparseMatrixCSC{Float64, Int64}}}) @ IJulia C:\Users\jmbeckers.julia\packages\IJulia\e8kqU\src\display.jl:102 [20] #invokelatest#2 @ .\essentials.jl:716 [inlined] [21] invokelatest @ .\essentials.jl:714 [inlined] [22] execute_request(socket::ZMQ.Socket, msg::IJulia.Msg) @ IJulia C:\Users\jmbeckers.julia\packages\IJulia\e8kqU\src\execute_request.jl:112 [23] #invokelatest#2 @ .\essentials.jl:716 [inlined] [24] invokelatest @ .\essentials.jl:714 [inlined] [25] eventloop(socket::ZMQ.Socket) @ IJulia C:\Users\jmbeckers.julia\packages\IJulia\e8kqU\src\eventloop.jl:8 [26] (::IJulia.var"#15#18")() @ IJulia .\task.jl:423