You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With g++6.2.0, wrappy raise the following error when launching example_plot
terminate called after throwing an instance of 'wrappy::WrappyError'
what(): Wrappy: Lookup of function matplotlib.pyplot.plotfailed.
zsh: abort (core dumped) ./example_plot
In the original version, prefix is a char * which address the buffer of a temporary string object which is supposed to not live the next line (and thus when used by PyImport_ImportModule).
In the corrected version, prefix is a string which lives until the end of the function, its buffer is used when the string is still alive
The text was updated successfully, but these errors were encountered:
Nice find, thanks! If you care about having your name on the commit, feel free to create a pull request (or a full .patch file using git format-patch), otherwise I'll just apply the fix myself.
With g++6.2.0,
wrappy
raise the following error when launchingexample_plot
The following patch solves the issue
In the original version, prefix is a
char *
which address the buffer of a temporary string object which is supposed to not live the next line (and thus when used byPyImport_ImportModule
).In the corrected version, prefix is a string which lives until the end of the function, its buffer is used when the string is still alive
The text was updated successfully, but these errors were encountered: