Skip to content

Instantly share code, notes, and snippets.

@Ayushk4 Ayushk4/Stacktrace
Created Dec 24, 2019

Embed
What would you like to do?
BSON fails to load 32-bit from 64-bit system. Appveyor tests for https://github.com/Ayushk4/BSON.jl/pull/2
Test threw exception
Expression: (BSON.load(joinpath(#= C:\projects\bson-jl\test\runtests.jl:87 =# @__DIR__(), "saved_on_64bit.bson")))[:a] == ones(Float32, 2, 2)
MethodError: no method matching reshape(::Array{Float32,1}, ::Int64, ::Int64)
Closest candidates are:
reshape(::Array{T,N}, !Matched::Tuple{Vararg{Int32,N}}) where {N, T} at array.jl:303
reshape(::Array{T,N} where N, !Matched::Tuple{Vararg{Int32,N}}) where {N, T} at array.jl:314
reshape(::AbstractArray, !Matched::Int32...) at reshapedarray.jl:99
...
Stacktrace:
[1] (::getfield(BSON, Symbol("##39#40")))(::Dict{Symbol,Any}) at C:\projects\bson-jl\src\extensions.jl:76
[2] _raise_recursive(::Dict{Symbol,Any}, ::IdDict{Any,Any}) at C:\projects\bson-jl\src\read.jl:79
[3] raise_recursive(::Dict{Symbol,Any}, ::IdDict{Any,Any}) at C:\projects\bson-jl\src\read.jl:89
[4] (::getfield(BSON, Symbol("##20#22")){IdDict{Any,Any}})(::Dict{Symbol,Any}) at C:\projects\bson-jl\src\read.jl:82
[5] applychildren!(::getfield(BSON, Symbol("##20#22")){IdDict{Any,Any}}, ::Dict{Symbol,Any}) at C:\projects\bson-jl\src\BSON.jl:21
[6] _raise_recursive(::Dict{Symbol,Any}, ::IdDict{Any,Any}) at C:\projects\bson-jl\src\read.jl:82
[7] raise_recursive(::Dict{Symbol,Any}, ::IdDict{Any,Any}) at C:\projects\bson-jl\src\read.jl:89
[8] raise_recursive at C:\projects\bson-jl\src\read.jl:99 [inlined]
[9] load(::String) at C:\projects\bson-jl\src\read.jl:104
[10] macro expansion at C:\projects\bson-jl\test\runtests.jl:87 [inlined]
[11] macro expansion at C:\cygwin\home\Administrator\buildbot\worker\package_win32\build\usr\share\julia\stdlib\v1.0\Test\src\Test.jl:1083 [inlined]
[12] macro expansion at C:\projects\bson-jl\test\runtests.jl:87 [inlined]
[13] macro expansion at C:\cygwin\home\Administrator\buildbot\worker\package_win32\build\usr\share\julia\stdlib\v1.0\Test\src\Test.jl:1083 [inlined]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.