I just used a simple code, and it gives BoundsError.
To generate the error, must have --check-bounds=yes in Julia arguments
Code:
using ImageReconstruction
radon(rand(362, 362), range(0, π; length=1000), -256:256)
Error:
ERROR: LoadError: BoundsError: attempt to access 513×1000 Matrix{Float64} at index [514, 233]
Stacktrace:
[1] getindex
@ .\array.jl:925 [inlined]
[2] radon(I::Matrix{Float64}, θ::StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}, Int64}, t::UnitRange{Int64})
@ ImageReconstruction C:\Users\Hossein Pourbozorg\.julia\packages\ImageReconstruction\0QCnO\src\ImageReconstruction.jl:35
[3] top-level scope
@ C:\Users\Hossein Pourbozorg\Code Projects\Mine\bug-report\br-8\br-8.jl:2
in expression starting at C:\Users\Hossein Pourbozorg\Code Projects\Mine\bug-report\br-8\br-8.jl:2
Environment:
Status `C:\Users\Hossein Pourbozorg\Code Projects\Mine\bug-report\br-8\Project.toml`
[d5d0ac58] ImageReconstruction v0.1.0 `https://github.com/JuliaImages/ImageReconstruction.jl#master`
Status `C:\Users\Hossein Pourbozorg\Code Projects\Mine\bug-report\br-8\Manifest.toml`
[621f4979] AbstractFFTs v1.3.1
[79e6a3ab] Adapt v3.6.1
[13072b0f] AxisAlgorithms v1.0.1
[d360d2e6] ChainRulesCore v1.15.7
[34da2185] Compat v4.6.1
[7a1cc6ca] FFTW v1.6.0
[d5d0ac58] ImageReconstruction v0.1.0 `https://github.com/JuliaImages/ImageReconstruction.jl#master`
[a98d9a8b] Interpolations v0.14.7
[692b3bcd] JLLWrappers v1.4.1
[6fe1bfb0] OffsetArrays v1.12.9
[21216c6a] Preferences v1.3.0
[c84ed2f1] Ratios v0.4.3
[189a3867] Reexport v1.2.2
[ae029012] Requires v1.3.0
[90137ffa] StaticArrays v1.5.19
[1e83bf80] StaticArraysCore v1.4.0
[efce3f68] WoodburyMatrices v0.5.5
[f5851436] FFTW_jll v3.3.10+0
[1d5cc7b8] IntelOpenMP_jll v2018.0.3+2
[856f044c] MKL_jll v2022.2.0+0
[0dad84c5] ArgTools v1.1.1
[56f22d72] Artifacts
[2a0f44e3] Base64
[ade2ca70] Dates
[8ba89e20] Distributed
[f43a241f] Downloads v1.6.0
[7b1f6079] FileWatching
[b77e0a4c] InteractiveUtils
[4af54fe1] LazyArtifacts
[b27032c2] LibCURL v0.6.3
[76f85450] LibGit2
[8f399da3] Libdl
[37e2e46d] LinearAlgebra
[56ddb016] Logging
[d6f4376e] Markdown
[a63ad114] Mmap
[ca575930] NetworkOptions v1.2.0
[44cfe95a] Pkg v1.8.0
[de0858da] Printf
[3fa0cd96] REPL
[9a3f8284] Random
[ea8e919c] SHA v0.7.0
[9e88b42a] Serialization
[1a1011a3] SharedArrays
[6462fe0b] Sockets
[2f01184e] SparseArrays
[10745b16] Statistics
[fa267f1f] TOML v1.0.0
[a4e569a6] Tar v1.10.1
[cf7118a7] UUIDs
[4ec0a83e] Unicode
[e66e0078] CompilerSupportLibraries_jll v1.0.1+0
[deac9b47] LibCURL_jll v7.84.0+0
[29816b5a] LibSSH2_jll v1.10.2+0
[c8ffd9c3] MbedTLS_jll v2.28.0+0
[14a3606d] MozillaCACerts_jll v2022.2.1
[4536629a] OpenBLAS_jll v0.3.20+0
[83775a58] Zlib_jll v1.2.12+3
[8e850b90] libblastrampoline_jll v5.1.1+0
[8e850ede] nghttp2_jll v1.48.0+0
[3f19e933] p7zip_jll v17.4.0+0
Julia Version 1.8.5
Commit 17cfb8e65e (2023-01-08 06:45 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: 12 × Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-13.0.1 (ORCJIT, skylake)
Threads: 12 on 12 virtual cores
I just used a simple code, and it gives
BoundsError.To generate the error, must have
--check-bounds=yesin Julia argumentsCode:
Error:
Environment: