-
Notifications
You must be signed in to change notification settings - Fork 81
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
Compose.Table
raises unexpected error on 32-bit Linux
#382
Comments
Perhaps the possible fixes are in three layers.
Considering the compatibility with (earlier) Compose.jl, it seems better to take 1. or 2. first. |
Here's a simple "Compose-only" example on a 64-bit system:
I'd say this is a bug that's been introduced when upgrading Compose, so point 3 above is the solution for Compose. |
FWIW, "git blame" says this is a potential issue from the beginning. Of course, I think modifying Compose.jl is fine. |
Wondering what the root cause is here in the 32-bit Gadfly example above. E.g. is Gadfly or one of it's dependencies mistakenly forcing |
This is a topic of Gadfly, not Compose, but I guess |
I think this line in Gadfly is the issue, because that's where the |
Your point seems to be correct.:+1: |
@andreasnoack your change of |
Unfortunately, I don't remember why I made that change and I agree that it looks wrong to use |
The index of a data = Gadfly.Data(shape=["A","A", "B", "C","C"])
scale = Scale.shape_discrete()
disc_data = Scale.discretize(getfield(data, :shape), scale.levels, scale.order)
disc_data.index # are integers Can test to see if removing the Int() here causes any errors in Gadfly. |
The problem line above got changed in GiovineItalia/Gadfly.jl#1411, so I assume the OP is fixed. |
@ben-schulz can you test if this now works on master? |
when building the docs for Gadfly.jl using v1.3.1 of the 32-bit Julia binary for Linux, i get the following error:
steps to reproduce:
full stack trace:
(originally referenced in: GiovineItalia/Gadfly.jl#1374 (comment))
The text was updated successfully, but these errors were encountered: