JuliaImages / JuliaImages/ImageFiltering.jl
Mapwindow StackOverflowError?
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 104
- Forks
- 52
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I get a StackOverflowError with mapwindow:
julia> mapwindow(median!, rand(300,300,500), (1,1,11))
ERROR: StackOverflowError:
Stacktrace:
[1] CartesianIndex at ./multidimensional.jl:65 [inlined]
[2] CartesianIndex at ./multidimensional.jl:68 [inlined]
[3] CartesianIndex at ./multidimensional.jl:76 [inlined]
[4] nextedgeitem(::TiledIteration.EdgeIterator{3,Tuple{Base.OneTo{Int64},Base.OneTo{Int64},Base.OneTo{Int64}},Tuple{UnitRange{Int64},UnitRange{Int64},UnitRange{Int64}}}, ::CartesianIndex{3}) at /home/donghoon/.julia/packages/TiledIteration/7kjuN/src/TiledIteration.jl:110
[5] nextedgeitem(::TiledIteration.EdgeIterator{3,Tuple{Base.OneTo{Int64},Base.OneTo{Int64},Base.OneTo{Int64}},Tuple{UnitRange{Int64},UnitRange{Int64},UnitRange{Int64}}}, ::CartesianIndex{3}) at /home/donghoon/.julia/packages/TiledIteration/7kjuN/src/TiledIteration.jl:111 (repeats 79983 times)
but it works with a bit smaller array or a larger filtering window.
#Both work:
mapwindow(median!, rand(300,300,400), (1,1,11))
mapwindow(median!, rand(300,300,500), (3,3,11))
Does anyone have any idea on this issue?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the reported mapwindow(median!, rand(300,300,500), (1,1,11)) call and compare it with the two working variants in the issue. Then inspect TiledIteration.jl around nextedgeitem at lines 110-111, where the recursive stack trace repeats. Done means the failing case no longer raises StackOverflowError while the smaller-array and larger-window cases still work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- computer-vision
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100