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

Library editor segfaults on table element change #225

Closed
hephaisto opened this issue Jan 13, 2018 · 4 comments · Fixed by #456
Closed

Library editor segfaults on table element change #225

hephaisto opened this issue Jan 13, 2018 · 4 comments · Fixed by #456
Assignees
Labels
Milestone

Comments

@hephaisto
Copy link
Contributor

At multiple points in the library editor, segfaults occur after changing checkboxes or dropdown menus.
This particular example was when checking a "required" field when adding a new component. Another example is the pad assignment (auto-assignment works).
Stacktrace: https://pastebin.com/GpWMEShA

@ubruhin ubruhin added the bug label Jan 13, 2018
@ubruhin
Copy link
Member

ubruhin commented Jan 14, 2018

Can you describe the exact steps you have done to trigger a segfault? And which Qt version do you use?

I clicked around in the library editor a few minutes but was not able to trigger a segfault...

@hephaisto
Copy link
Contributor Author

Here an example with a completely new lib (using the demo workspace):
https://www.xup.in/dl,19886705/librepcb_create_segfault.mp4/
I have Qt 5.7.1 as reported by qtdiag. I use the packages from debian stable.

@ubruhin
Copy link
Member

ubruhin commented Jan 24, 2018

Strange, I'm not able to reproduce this bug with Qt 5.5.1 I have installed on my computer, and with Qt 5.9.1 which is used in the nightly AppImage.

Did you try to remove the whole output directory before compiling it again? Sometimes I get such strange segfaults because make does not rebuild all object files of modified source files (probably there is an issue in resolving #include dependencies). A complete rebuild fixes these segfaults...

@ubruhin
Copy link
Member

ubruhin commented May 4, 2019

Now with the official LibrePCB 0.1.1 binaries for Linux I'm able to reproduce this. I suspect it happens only with specific Qt versions (official binaries for Linux now use Qt 5.10.1).

I'm already working on a fix for this...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants