-
Notifications
You must be signed in to change notification settings - Fork 531
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
SetColormap causes seg-fault #127
Comments
@ArekSredzki, thanks for the bug report. I'll take a look and see if anything seems strange. |
Sorry, I'm wrong. Your code is fine!! I'll look into this |
Idk what the fix is but i think that's what's happening. |
@bear24rw , I think you are absolutely right. I may be able to resolve this by removing @ArekSredzki, may I ask why you choose to call |
After a little investigation, I think it is a design flaw on my part to call The reason that @ArekSredzki , can you test your code with this commit: 8a3ccf0 |
@ArekSredzki , any luck? Let me know if it's working so I can close the issue. Thanks! |
Thanks @epezent ! I just checked and it now works properly with both methods :) |
First, thanks for the great plotting library!
Unfortunately, when updating from 6a5e940 to da5b4ab last night, I hit a nasty seg fault in code that used to work.
It appears that the addition of
PushColormap
may have broken some use cases ofSetColormap
.The following code used to work but now crashes:
Changing
SetColormap
toPushColormap
andPopColormap
as so fixes it:What made this especially difficult to pinpoint was that the seg-fault occurred in
GetLegendLabel
called byEndPlot
. Note that movingSetColormap
to come afterEndPlot
did not fix the issue.It'd be great to find out what this caused a crash (I didn't have the time to dig into this) but also to ensure that changes such as this are documented under the
API BREAKING CHANGES
section in the future.It's worth noting that I see that
PushColormap
is now preferable, but a seg-fault wasn't the best way to discover that :)Thanks!
The text was updated successfully, but these errors were encountered: