Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot load GridLayoutBase on 32-bit systems #42

Closed
eschnett opened this issue Sep 6, 2022 · 3 comments · Fixed by #47 · May be fixed by #43
Closed

Cannot load GridLayoutBase on 32-bit systems #42

eschnett opened this issue Sep 6, 2022 · 3 comments · Fixed by #47 · May be fixed by #43

Comments

@eschnett
Copy link

eschnett commented Sep 6, 2022

I tried to use CairoMakie on Github CI on a 32-bit x86 system (see https://github.com/eschnett/SixelTerm.jl/runs/8214996643). I receive this error:

ERROR: LoadError: MethodError: no method matching determinedirsize(::Int32, ::GridLayoutBase.GridLayout, ::GridLayoutBase.Col)
[391](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:394)
Closest candidates are:
[392](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:395)
  determinedirsize(::Int64, ::GridLayoutBase.GridLayout, ::GridLayoutBase.GridDir) at ~/.julia/packages/GridLayoutBase/vnfA3/src/gridlayout.jl:1177
[393](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:396)
  determinedirsize(::Any, ::GridLayoutBase.GridDir, ::GridLayoutBase.Side) at ~/.julia/packages/GridLayoutBase/vnfA3/src/gridlayout.jl:1921
[394](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:397)
Stacktrace:
[395](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:398)
  [1] determinedirsize(gl::GridLayoutBase.GridLayout, gdir::GridLayoutBase.Col)
[396](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:399)
    @ GridLayoutBase ~/.julia/packages/GridLayoutBase/vnfA3/src/gridlayout.jl:1124
[397](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:400)
  [2] update!(gl::GridLayoutBase.GridLayout)
[398](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:401)
    @ GridLayoutBase ~/.julia/packages/GridLayoutBase/vnfA3/src/gridlayout.jl:166
[399](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:402)
  [3] add_to_gridlayout!
[400](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:403)
    @ ~/.julia/packages/GridLayoutBase/vnfA3/src/gridlayout.jl:286 [inlined]
[401](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:404)
  [4] add_content!(g::GridLayoutBase.GridLayout, content::GridLayoutBase.GridLayout, rows::Int32, cols::Int32, side::GridLayoutBase.Inner)
[402](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:405)
    @ GridLayoutBase ~/.julia/packages/GridLayoutBase/vnfA3/src/gridlayout.jl:1539
[403](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:406)
  [5] setindex! (repeats 2 times)
[404](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:407)
    @ ~/.julia/packages/GridLayoutBase/vnfA3/src/gridlayout.jl:1433 [inlined]
[405](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:408)
  [6] top-level scope
[406](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:409)
    @ ~/.julia/packages/GridLayoutBase/vnfA3/src/precompile.jl:6
[407](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:410)
  [7] include(mod::Module, _path::String)
[408](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:411)
    @ Base ./Base.jl:419
[409](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:412)
  [8] include(x::String)
[410](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:413)
    @ GridLayoutBase ~/.julia/packages/GridLayoutBase/vnfA3/src/GridLayoutBase.jl:1
[411](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:414)
  [9] top-level scope
[412](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:415)
    @ ~/.julia/packages/GridLayoutBase/vnfA3/src/GridLayoutBase.jl:41
[413](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:416)
 [10] include
[414](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:417)
    @ ./Base.jl:419 [inlined]
[415](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:418)
 [11] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
[416](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:419)
    @ Base ./loading.jl:1554
[417](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:420)
 [12] top-level scope
[418](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:421)
    @ stdin:1
[419](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:422)
in expression starting at /home/runner/.julia/packages/GridLayoutBase/vnfA3/src/precompile.jl:1
[420](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:423)
in expression starting at /home/runner/.julia/packages/GridLayoutBase/vnfA3/src/GridLayoutBase.jl:1
[421](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:424)
in expression starting at stdin:1
[422](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:425)
ERROR: LoadError: Failed to precompile GridLayoutBase [3955a311-db13-416c-9275-1d80ed98e5e9] to /home/runner/.julia/compiled/v1.8/GridLayoutBase/jl_xSKNMj.
[423](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:426)
Stacktrace:
[424](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:427)
  [1] error(s::String)
[425](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:428)
    @ Base ./error.jl:35
[426](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:429)
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
[427](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:430)
    @ Base ./loading.jl:1705
[428](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:431)
  [3] compilecache
[429](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:432)
    @ ./loading.jl:1649 [inlined]
[430](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:433)
  [4] _require(pkg::Base.PkgId)
[431](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:434)
    @ Base ./loading.jl:1337
[432](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:435)
  [5] _require_prelocked(uuidkey::Base.PkgId)
[433](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:436)
    @ Base ./loading.jl:1200
[434](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:437)
  [6] macro expansion
[435](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:438)
    @ ./loading.jl:1180 [inlined]
[436](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:439)
  [7] macro expansion
[437](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:440)
    @ ./lock.jl:223 [inlined]
[438](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:441)
  [8] require(into::Module, mod::Symbol)
[439](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:442)
    @ Base ./loading.jl:1144
[440](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:443)
  [9] include
[441](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:444)
    @ ./Base.jl:419 [inlined]
[442](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:445)
 [10] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
[443](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:446)
    @ Base ./loading.jl:1554
[444](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:447)
 [11] top-level scope
[445](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:448)
    @ stdin:1
[446](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:449)
in expression starting at /home/runner/.julia/packages/Makie/Ppzqh/src/Makie.jl:1
[447](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:450)
in expression starting at stdin:1
[448](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:451)
ERROR: LoadError: Failed to precompile Makie [ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a] to /home/runner/.julia/compiled/v1.8/Makie/jl_2bdsQ1.
[449](https://github.com/eschnett/SixelTerm.jl/runs/8214996643?check_suite_focus=true#step:6:452)

I believe the problem is that the function determinedirsize expects an Int64 as first argument, whereas it is called with an Int in this case.

Could you add a wrapper that accepts other integer types, and converts these to `Int64?

@Web3NL
Copy link

Web3NL commented Aug 5, 2023

Any progress on the PR related to this issue?

I'm not able to precompile Makie / GLMakie because of this.

@timholy
Copy link
Collaborator

timholy commented Aug 5, 2023

This might be extremely hard to debug on a 64-bit system. I made a guess in #47, but if that isn't sufficient you'll probably need to dev the package and develop a more comprehensive fix yourself, then submit the changes as a pull request.

@Web3NL
Copy link

Web3NL commented Aug 5, 2023

I should mention I'm on a 64bit x86 system...

Windows 11 and wsl2 giving the same error when trying to precompile Makie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants