Skip to content
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

Cutting a W-spider with the magic wand generates a segmentation fault in Windows #355

Open
semiclassical opened this issue Oct 16, 2024 · 3 comments
Labels
Priority: High Type: bug Something is not right

Comments

@semiclassical
Copy link

I run ZXLive via Git Bash on Windows 10. I draw two-leg W-spider, then move to derivation mode and attempt to cut the W-spider using the magic wand (to split it into two W-spiders). This immediately causes my session of ZXLive to end, with Git Bash indicating a segmentation fault.

image

@RazinShaikh
Copy link
Collaborator

Do you get any error messages?

@semiclassical
Copy link
Author

ZXLive immediately closes when I do with no error message. Git Bash's response is just "Segmentation fault" and moving on to a fresh prompt.

That said, while testing today I realized I'd missed that the fault only occurs if I try to cut the dot-marked wire of a W spider. If I cut one of the unmarked wires, the spider unfuses in the expected way. The former isn't a proper operation in the first place, but having that user error result in ZXLive closing doesn't seem ideal.

@jvdwetering
Copy link
Collaborator

Hmm, probably it tries to reference a node that doesn't exist, due to some special case behaviour with the W-spider. Spider cutting with the W needs to have special case behaviour anyway

@jvdwetering jvdwetering added Type: bug Something is not right Priority: High labels Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High Type: bug Something is not right
Projects
None yet
Development

No branches or pull requests

3 participants