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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Uri Patish
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

Reply | Threaded
Open this post in threaded view
|

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

Yichao Yu
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))`?


On Tue, Sep 6, 2016 at 10:07 AM, Uri Patish <[hidden email]> wrote:
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


Reply | Threaded
Open this post in threaded view
|

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

Uri Patish
In reply to this post by Uri Patish
Windows machine, and no backtrace. 

On Tuesday, September 6, 2016 at 5:19:24 PM UTC+3, Uri Patish wrote:
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

Reply | Threaded
Open this post in threaded view
|

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

Uri Patish
In reply to this post by Yichao Yu
Should I open I bug in github?

On Tuesday, September 6, 2016 at 5:45:04 PM UTC+3, Yichao Yu wrote:
Cant reproduce in a fresh repo.

```
yuyichao% ./julia
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: <a href="http://docs.julialang.org" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdocs.julialang.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH5rlOiMepdbTWymPCNWn5s-yDDRA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdocs.julialang.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH5rlOiMepdbTWymPCNWn5s-yDDRA&#39;;return true;">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))`?


On Tue, Sep 6, 2016 at 10:07 AM, Uri Patish <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="JWM-tEMfAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">urip...@...> wrote:
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


Reply | Threaded
Open this post in threaded view
|

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

Mauro
On Thu, 2016-09-08 at 08:47, Uri Patish <[hidden email]> 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?)
>> (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))`?


> On Tuesday, September 6, 2016 at 5:45:04 PM UTC+3, Yichao Yu wrote:
>>
>> 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))`?
>>
>>
>> On Tue, Sep 6, 2016 at 10:07 AM, Uri Patish <[hidden email]
>> <javascript:>> wrote:
>>
>>> 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
>>>
>>>
>>
Reply | Threaded
Open this post in threaded view
|

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

Uri Patish
In reply to this post by Yichao Yu
No packages loaded, window 8.1, and no backtrace.

On Tuesday, September 6, 2016 at 5:45:04 PM UTC+3, Yichao Yu wrote:
Cant reproduce in a fresh repo.

```
yuyichao% ./julia
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: <a href="http://docs.julialang.org" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdocs.julialang.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH5rlOiMepdbTWymPCNWn5s-yDDRA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdocs.julialang.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH5rlOiMepdbTWymPCNWn5s-yDDRA&#39;;return true;">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))`?


On Tue, Sep 6, 2016 at 10:07 AM, Uri Patish <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="JWM-tEMfAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">urip...@...> wrote:
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


Reply | Threaded
Open this post in threaded view
|

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

Uri Patish
In reply to this post by Mauro
Yes, from a freshly started REPL.

On Thursday, September 8, 2016 at 10:03:51 AM UTC+3, Mauro wrote:
On Thu, 2016-09-08 at 08:47, Uri Patish <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="uoH9yXMsAAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">urip...@...> 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?)
>> (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))`?


> On Tuesday, September 6, 2016 at 5:45:04 PM UTC+3, Yichao Yu wrote:
>>
>> Cant reproduce in a fresh repo.
>>
>> ```
>> yuyichao% ./julia
>>                _
>>    _       _ _(_)_     |  A fresh approach to technical computing
>>   (_)     | (_) (_)    |  Documentation: <a href="http://docs.julialang.org" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdocs.julialang.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH5rlOiMepdbTWymPCNWn5s-yDDRA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdocs.julialang.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH5rlOiMepdbTWymPCNWn5s-yDDRA&#39;;return true;">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))`?
>>
>>
>> On Tue, Sep 6, 2016 at 10:07 AM, Uri Patish <[hidden email]
>> <javascript:>> wrote:
>>
>>> 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
>>>
>>>
>>
Reply | Threaded
Open this post in threaded view
|

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

Andreas Noack
I also can't reproduce with RC4? Could you try to see if you can reproduce with RC4?

On Fri, Sep 9, 2016 at 9:01 AM, Uri Patish <[hidden email]> wrote:
Yes, from a freshly started REPL.

On Thursday, September 8, 2016 at 10:03:51 AM UTC+3, Mauro wrote:
On Thu, <a href="tel:2016-09-08" value="+4520160908" target="_blank">2016-09-08 at 08:47, Uri Patish <[hidden email]> 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?)
>> (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))`?


> On Tuesday, September 6, 2016 at 5:45:04 PM UTC+3, Yichao Yu wrote:
>>
>> 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))`?
>>
>>
>> On Tue, Sep 6, 2016 at 10:07 AM, Uri Patish <[hidden email]
>> <javascript:>> wrote:
>>
>>> 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
>>>
>>>
>>