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

On start up two Mu instances race each other and crash #1755

Open
carlosperate opened this issue Aug 17, 2021 · 1 comment
Open

On start up two Mu instances race each other and crash #1755

carlosperate opened this issue Aug 17, 2021 · 1 comment
Labels
Milestone

Comments

@carlosperate
Copy link
Member

carlosperate commented Aug 17, 2021

All the log entries for the crashed session are duplicated, and then Mu crashes at points where it check if a directory exists (it doesn't at the time), and then fails to create it because the other instance won the race.

For example:

mu/mu/logic.py

Lines 796 to 798 in 9179f64

if not os.path.exists(wd):
logger.debug("Creating directory: {}".format(wd))
os.makedirs(wd)

I'm pretty sure I've seen this myself once on Windows, although I couldn't replicate after. I didn't do it intentionally, so I don't if I accidentally double clicked more than once, or something similar, my assumption is that this was an "user mistake", but I am not sure.

We might want to reconsider or revisit this:

Crash reports affected (won't be merged here yet to try to ask the individual users to check if this is indeed the problem):

And these are possible candidates, but we won't know until the logs are shared:

@carlosperate
Copy link
Member Author

carlosperate commented Aug 20, 2021

As noted in #1762, since the Mu startup takes a long time, users are more likely going to try to relaunch the application, making this issue more common.

I've also noticed that in my Windows environment it takes a few seconds for the splash screen to appear after I click on the Mu shortcut, so even I was very tempted to reopen it at that point, thinking that maybe I didn't click it correctly.

@carlosperate carlosperate added this to the 1.2.0 milestone Jul 16, 2022
@carlosperate carlosperate modified the milestones: 1.2.0, 1.2.1 Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant