-
Notifications
You must be signed in to change notification settings - Fork 57
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 on database import #867
Comments
Hi Pan6ora, So, since your post I have been looking at QT and memory leaks/pointer issues and have found some issues on other programs that point to issues with QThreads. I suppose this could be the same kind of problem here but the trouble I have is that this has never previously been an issue, which to me suggests something else. So if you don't mind could you provide some more details?
|
Hi Zoophobus, Were you able to reproduce ? In my team we had one computer on which the problem never appends. About your questions:
|
Some news ! After some testing I have found that the problem doesn't appear when the import is run from the main window code. Doesn't solve the problem yet but should help. |
Hey @Pan6ora and @Zoophobus, I have been trying to track down this weird bug for quite some time now, basically since like 9 months ago when I first noticed that the automated tests for python 3.10 fail on all operating systems with a segfault: https://github.com/LCA-ActivityBrowser/activity-browser/actions?query=branch%3Atest-py310++ One consistent way to reproduce it that I found is creating a new project and adding the default biosphere data when using python 3.10. However as far as I can tell this is not limited to python 3.10, but just less frequent under other circumstances like @Pan6ora describes above. What I found so far:
To me it looks like the problem (sometimes) happens when changing the sqlite database from a separate |
Closing as resolved in #1011 |
I found this while working on a plugin system for AB. One of my test plugin was importing databases from bw2package files. While importing the databases, AB sometimes crashed with a segmentation fault error.
After some testing I found that this appends also when importing other databases such as Forwast or default Biosphere data.
The bug is not consistent between computers, and even on the same computer.
How to reproduce
Segmentation fault (core dumped)
(on my computer it appends usually between first and third try)What I tried
Any idea ?
The text was updated successfully, but these errors were encountered: