{"action":"closed","issue":{"url":"https://api.github.com/repos/jeff-regier/Celeste.jl/issues/292","repository_url":"https://api.github.com/repos/jeff-regier/Celeste.jl","labels_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/issues/292/comments","events_url":"https://api.github.com/repos/jeff-regier/Celeste.jl/issues/292/events","html_url":"https://github.com/jeff-regier/Celeste.jl/issues/292","id":177055893,"number":292,"title":"BoundsError in Optim/src/newton_trust_region.jl:102","user":{"login":"gostevehoward","id":1097616,"avatar_url":"https://avatars.githubusercontent.com/u/1097616?v=3","gravatar_id":"","url":"https://api.github.com/users/gostevehoward","html_url":"https://github.com/gostevehoward","followers_url":"https://api.github.com/users/gostevehoward/followers","following_url":"https://api.github.com/users/gostevehoward/following{/other_user}","gists_url":"https://api.github.com/users/gostevehoward/gists{/gist_id}","starred_url":"https://api.github.com/users/gostevehoward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gostevehoward/subscriptions","organizations_url":"https://api.github.com/users/gostevehoward/orgs","repos_url":"https://api.github.com/users/gostevehoward/repos","events_url":"https://api.github.com/users/gostevehoward/events{/privacy}","received_events_url":"https://api.github.com/users/gostevehoward/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-09-15T00:15:46Z","updated_at":"2016-09-15T22:26:06Z","closed_at":"2016-09-15T22:26:06Z","body":"I'm trying to run Celeste on a very simple synthetic galaxy image with simple settings. Depending on the position parameters in the catalog entry, sometimes it runs, and sometimes it does this:\r\n\r\n```\r\n17:01 steve@fisher:~/work/Celeste.jl/benchmark/galsim$ julia bug_repro.jl\r\nINFO: f_evals: 10 value: -664288.3457243084\r\nERROR: LoadError: BoundsError: attempt to access 0-element Array{Float64,1} at index [1]\r\n in getindex(::Array{Float64,1}, ::Int64) at ./array.jl:383\r\n in #solve_tr_subproblem!#37(::Float64, ::Int64, ::Function, ::Array{Float64,1}, ::Array{Float64,2}, ::Float64, ::Array{Float64,1}) at /home/steve/.julia/v0.5/Optim/src/newton_trust_region.jl:102\r\n in optimize(::Optim.TwiceDifferentiableFunction, ::Array{Float64,1}, ::Optim.NewtonTrustRegion{Float64}, ::Optim.OptimizationOptions{Void}) at /home/steve/.julia/v0.5/Optim/src/newton_trust_region.jl:302\r\n in optimize(::Function, ::Function, ::Function, ::Array{Float64,1}, ::Optim.NewtonTrustRegion{Float64}, ::Optim.OptimizationOptions{Void}) at /home/steve/.julia/v0.5/Optim/src/optimize.jl:129\r\n in #maximize_f#16(::Array{Int64,1}, ::Float64, ::Float64, ::Bool, ::Int64, ::Float64, ::Bool, ::Function, ::Celeste.ElboDeriv.#elbo_likelihood, ::Celeste.ElboDeriv.ElboArgs{Float64}, ::Celeste.Transform.DataTransform) at /home/steve/.julia/v0.5/Celeste/src/OptimizeElbo.jl:226\r\n in (::Celeste.OptimizeElbo.#kw##maximize_f)(::Array{Any,1}, ::Celeste.OptimizeElbo.#maximize_f, ::Function, ::Celeste.ElboDeriv.ElboArgs{Float64}, ::Celeste.Transform.DataTransform) at ./<missing>:0 (repeats 2 times)\r\n in main() at /home/steve/work/Celeste.jl/benchmark/galsim/bug_repro.jl:83\r\n in include_from_node1(::String) at ./loading.jl:426\r\n in process_options(::Base.JLOptions) at ./client.jl:262\r\n in _start() at ./client.jl:318\r\nwhile loading /home/steve/work/Celeste.jl/benchmark/galsim/bug_repro.jl, in expression starting on line 86\r\n```\r\n\r\nI've attached a \"minimal\" repro case (it's not small but I don't know how to run Celeste with less code :). The ZIP contains one script for running Celeste and one FITS image:\r\n\r\n[optim_bounds_error_repro.zip](https://github.com/jeff-regier/Celeste.jl/files/473681/optim_bounds_error_repro.zip)\r\n\r\nFYI, I'm on [this commit](https://github.com/gostevehoward/Celeste.jl/commit/9f29dce12884119989cd437e99eb3c9ec8bc26b6) in my fork, and\r\n\r\n```\r\n$ julia --version\r\njulia version 0.5.0-rc3\r\n```"}}
{"actor":{"display_login":"rgiordan"}}