StackOverflowError when assigning Array{Array{Float32, 3}, 1} in version 0.5 rc3

245 views
Skip to first unread message

Uri Patish

unread,
Sep 6, 2016, 10:19:24 AM9/6/16
to julia-dev
Hi,

I came across the following issue while using version 0.5 rc3,

julia> a = Array{Array{Float32, 3}, 1}(2) 
2-element Array{Array{Float32,3},1}:
 #undef
 #undef

julia> a[1] = rand(Float32, 2, 2, 2)
ERROR: StackOverflowError:

julia> b = Array{Array{Float64, 3}, 1}(2)
2-element Array{Array{Float64,3},1}:
 #undef
 #undef

julia> b[1] = rand(Float64, 2, 2, 2)
2x2x2 Array{Float64,3}:
[:, :, 1] =
 0.146411  0.354293
 0.672552  0.491225

[:, :, 2] =
 0.0184464  0.0200675
 0.656842   0.957667

This error doesn't occur in version 0.4.6. In addition, it doesn't happen unless the dimension of the inner array is less than 3. 

Uri

Yichao Yu

unread,
Sep 6, 2016, 10:45:04 AM9/6/16
to Julia Dev
Cant reproduce in a fresh repo.

```
yuyichao% ./julia
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.5.0-rc3+0 (2016-08-22 23:43 UTC)
 _/ |\__'_|_|_|\__'_|  | 
|__/                   |  x86_64-pc-linux-gnu

julia> a = Array{Array{Float32,3},1}(2)

2-element Array{Array{Float32,3},1}:
 #undef
 #undef

julia> a[1] = rand(Float32, 2, 2, 2)
2×2×2 Array{Float32,3}:
[:, :, 1] =
 0.403046  0.223957
 0.819245  0.527703

[:, :, 2] =
 0.608906  0.774675
 0.15354   0.43819
```

Do you have packages loaded?
(Probably unrelated but) what platform?
Does the stackoverflow error come with any backtrace at all?
What's `@which convert(Array{Float32,3}, rand(Float32, 2, 2, 2))`?

Uri Patish

unread,
Sep 6, 2016, 11:07:35 AM9/6/16
to julia-dev
Windows machine, and no backtrace. 

Uri Patish

unread,
Sep 8, 2016, 2:47:30 AM9/8/16
to julia-dev
Should I open I bug in github?

Mauro

unread,
Sep 8, 2016, 3:03:51 AM9/8/16
to juli...@googlegroups.com
On Thu, 2016-09-08 at 08:47, Uri Patish <urip...@gmail.com> wrote:
> Should I open I bug in github?

Probably yes. But I can't reproduce this either. Maybe you should
answer Yuyichao's questions first:

>> Do you have packages loaded?
(My question: this happens with a freshly started REPL?)

Uri Patish

unread,
Sep 9, 2016, 9:01:08 AM9/9/16
to julia-dev
No packages loaded, window 8.1, and no backtrace.


On Tuesday, September 6, 2016 at 5:45:04 PM UTC+3, Yichao Yu wrote:

Uri Patish

unread,
Sep 9, 2016, 9:01:40 AM9/9/16
to julia-dev
Yes, from a freshly started REPL.

Andreas Noack

unread,
Sep 9, 2016, 9:47:07 AM9/9/16
to juli...@googlegroups.com
I also can't reproduce with RC4? Could you try to see if you can reproduce with RC4?
Reply all
Reply to author
Forward
0 new messages