JuliaPlots / StatsPlots.jl

Statistical plotting recipes for Plots.jl
Other
436 stars 88 forks source link

julia 1.9.4 crashes with corrplot >11 columns #547

Closed smartinsightsfromdata closed 7 months ago

smartinsightsfromdata commented 8 months ago

I run the code below:

using MLDatasets: BostonHousing
using DataFrames
using StatsPlots

dataset = BostonHousing()

df = dataset.features

gr(size = (1400,1400))
@df df corrplot(cols(1:11), grid = false)

The code above works fine (apart issue https://github.com/JuliaPlots/StatsPlots.jl/issues/390 with no colors on the right end side - the workaround works only partially), but the dataframe df has 14 columns (and R manages to produce correct corr plots with all of the columns for this notorious dataset),

If I try with 12 columns @df df corrplot(cols(1:12), grid = false)

julia crashes and hangs with the following messages:

double free or corruption (!prev)

[358911] signal (6.-6): Aborted
in expression starting at none:0

I run julia on ubuntu 23.04 on a single thread. After the above message julia REPL becomes completely unresponsive.

smartinsightsfromdata commented 7 months ago

It actually works in the REPL. The culprit seems to be VSCODE for Julia.

See https://github.com/julia-vscode/julia-vscode/issues/3518

jheinen commented 7 months ago

The problem is fixed with this commit. A new GR release is expected in the next days.