-
Notifications
You must be signed in to change notification settings - Fork 48
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
Segmentation fault debugging aggdraw.Pen #58
Comments
How did you install |
Yes, it was installed from PyPI via pip. I have just uninstalled it, cloned this repository and compiled then installed it, but the same segmentation fault still happens. |
To clarify, you don't get a segmentation fault with normal operations? You only get it when using the debugger? If that is true, my guess is that your debugger is trying to use the |
Yes, there is no problem in normal program execution. I tried, during normal execution, printing |
So good news (?) is that I can reproduce this in pycharm. If I run it with the debugger enabled but without the breakpoint then it succeeds. If I use pdb A fix for this may have to wait until a large rewrite of aggdraw happens where these objects are more fully realized python objects. |
Using aggdraw 1.3.10 in arch linux with cpython 3.7, I get a segmentation fault every time my debugger tries to inspect an aggdraw.Pen object. I tried it debugging with pudb3, with vscode python extension and with pycharm. Here's a minimal code:
Put a breakpoint in the line
draw.line((0, 0, 100, 100), pen)
and try to inspectpen
in your debugger to see if you can reproduce it.I checked some issues here, and found #22 that also mentions segmentation faults related to Pen, but it seems to be a different issue, and already solved.
And less important, but just to mention it, I don't really want to inspect this object. It's just that debuggers usually show all local variables when you break, so every time I put a breakpoint with a local Pen object, my session crashes and this is the real problem
The text was updated successfully, but these errors were encountered: