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

Crashing while running the working example #26

Closed
TimSlendebroek opened this issue Sep 23, 2022 · 5 comments
Closed

Crashing while running the working example #26

TimSlendebroek opened this issue Sep 23, 2022 · 5 comments

Comments

@TimSlendebroek
Copy link

Running the working example on julia 1.8.1 is giving me some pointer malloc errors:

using SankeyPlots

src = [1, 1, 1, 1, 2, 2, 2, 3, 4, 5]
dst = [6, 3, 7, 4, 3, 7, 4, 7, 8, 8]
weights = [0.1, 0.3, 0.5, 0.5, 0.2, 2.8, 1, 0.45, 4.5, 3.3]

sankey(src, dst, weights)

error:

julia> sankey(src, dst, weights)
julia(83130,0x1024e8580) malloc: *** error for object 0xe00000000000000: pointer being freed was not allocated
julia(83130,0x1024e8580) malloc: *** set a breakpoint in malloc_error_break to debug

signal (6): Abort trap: 6
in expression starting at REPL[6]:1
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 47680881 (Pool: 47660098; Big: 20783); GC: 29

This also seems be the same issue for @davide-f 's fork:
https://github.com/davide-f/SankeyPlots.jl

I am wondering if anyone else is having the same issue with prior julia versions?
I would be happy to provide additional information needed for debugging / or help.

Thanks!

@daschw
Copy link
Owner

daschw commented Sep 24, 2022

Thanks for reporting! I cannot reproduce this error with:

julia> versioninfo()
Julia Version 1.8.1
Commit afb6c60d69a (2022-09-06 15:09 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 8 × Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, skylake)
  Threads: 8 on 8 virtual cores
Environment:
  JULIA_NUM_THREADS = 8
  LD_LIBRARY_PATH = :/opt/gurobi950/linux64/lib:/opt/gurobi950/linux64/lib
  LD_PRELOAD = /usr/lib/libstdc++.so.6

(@test-sankey) pkg> st
Status `~/.julia/environments/test-sankey/Project.toml`
  [8fd88ec8] SankeyPlots v0.2.2

@TimSlendebroek
Copy link
Author

Thank you for your quick response, we do have a different OS and CPU

Julia Version 1.8.1
Commit afb6c60d69a (2022-09-06 15:09 UTC)
Platform Info:
  OS: macOS (arm64-apple-darwin21.5.0)
  CPU: 8 × Apple M1 Pro
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, apple-m1)
  Threads: 1 on 6 virtual cores



(@v1.8) pkg> st SankeyPlots
Status `~/.julia/environments/v1.8/Project.toml`
  [8fd88ec8] SankeyPlots v0.2.2

I am surprised if that would be causing this bug, not sure what it can be.

@sjkelly
Copy link

sjkelly commented Apr 10, 2023

This appears to be caused by Clp.jl : jump-dev/Clp.jl#131

@sjkelly
Copy link

sjkelly commented Apr 11, 2023

An update of LayeredLayouts.jl has been tagged, so this should be fixed. Can you confirm?

@TimSlendebroek
Copy link
Author

TimSlendebroek commented Apr 11, 2023

An update of LayeredLayouts.jl has been tagged, so this should be fixed. Can you confirm?

Yup the update fixed it, thanks!!

image

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

No branches or pull requests

3 participants