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

Compiler throws internal stack overflow error when plotting with Makie on Julia master #33954

Closed
YingboMa opened this issue Nov 26, 2019 · 3 comments · Fixed by #34223
Closed
Assignees
Labels
compiler:inference Type inference kind:bug Indicates an unexpected problem or unintended behavior
Milestone

Comments

@YingboMa
Copy link
Contributor

MWE:

julia> versioninfo()
Julia Version 1.4.0-DEV.519
Commit 76ebc419f0 (2019-11-24 03:08 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
Environment:
  JULIA_PATH = /home/scheme/build/julia/usr

julia> begin
       using Makie

        x = rand(10)
        y = rand(10)
        colors = rand(10)
        scene = scatter(x, y, color = colors)
        end
Internal error: encountered unexpected error in runtime:
StackOverflowError()
getindex at ./essentials.jl:583
iterate at ./essentials.jl:602 [inlined]
iterate at ./essentials.jl:602 [inlined]
is_derived_type at ./compiler/typelimits.jl:68
is_derived_type at ./compiler/typelimits.jl:58
is_derived_type at ./compiler/typelimits.jl:71
is_derived_type at ./compiler/typelimits.jl:58
...
@iteachmachines
Copy link

Try to update the environment once.Helped in my case.

@asinghvi17
Copy link
Contributor

Smaller MWE:

using AbstractPlotting
Scene()

@KristofferC KristofferC added this to the 1.4 milestone Dec 9, 2019
@JeffBezanson JeffBezanson added kind:bug Indicates an unexpected problem or unintended behavior compiler:inference Type inference labels Dec 12, 2019
@JeffBezanson JeffBezanson self-assigned this Dec 30, 2019
@JeffBezanson
Copy link
Sponsor Member

This is due to a bits type like the following, which contains a cycle via a Ptr field:

struct FT_GlyphSlotRec
    next::Ptr{FT_GlyphSlotRec}
end

KristofferC pushed a commit that referenced this issue Jan 8, 2020
BioTurboNick pushed a commit to BioTurboNick/julia that referenced this issue Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:inference Type inference kind:bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants