-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
Code crashes when both a folder and its parent are open as projects and a document present in both is opened #1494
Comments
This is critical :) |
Ideally should be confirmed by someone other than reporter before assigning priority .... |
I cannot reproduce...Can you still reproduce in your machine? |
I can reproduce it on OS8 (Wayland) but not on OS7.1. Here is the backtrace:
I'll try and investigate further when I have time. |
Not sure if it matters, but the parent folder appears below the child folder in the sidebar. |
Presumably something to do with the document having an ambiguous project associated with it. |
In OS7.1 the document simply does not open - there is no crash. There are other weird side-effects though, like you cannot change the active project. The OS8 is running in a VM but I don't see why that should matter. |
Could it be something to do with Wayland? Can you try in X11? I can open and browser a nested folder fine. I can't close the folder after it's been open IF the parent folder is expanded, though. That's odd. |
Happens in OS8/X11 too. Another possibility is that it is a race of some kind and the VM is slower than running on bare metal so the outcome is different. |
I can try to see if I can reproduce in my old laptop. Even if it was slower, it shouldn't be a reason to crash tho. |
I am working on fixing it in 7.1 where it doesn't crash but also does not open the desired document. I have narrowed the problem down to the fact that the document is closed in one thread while it is being opened in another. This is because of the intended behaviour that when the active project changes, documents belonging to another project are closed. But in this situation where the document belongs to two projects it is both opened and closed simultaneously which results in destroyed objects potentially being referenced. |
I have pushed a PR to work around this issue that was developed on 7.1 but also works on 8. I think it will take too much refactoring of Code to make it possible to have parent-child projects simultaneously open. I cannot see any particular advantage of that at the moment. All the relevant files are accessible through the parent project. I don't think |
What Happened?
Code crashed when opening a document in a parent project when the child folder was also open as a project.
Steps to Reproduce
Expected Behavior
Code should not crash - the document should open.
OS Version
8.x (Circe)
Session Type
Secure Session (Wayland)
Software Version
Compiled from git
Log Output
No response
Hardware Info
No response
The text was updated successfully, but these errors were encountered: