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

Save a File crashes #635

Open
standera opened this issue Sep 4, 2018 · 30 comments
Open

Save a File crashes #635

standera opened this issue Sep 4, 2018 · 30 comments

Comments

@standera
Copy link

standera commented Sep 4, 2018

  1. Start Mu Editor in Micro:Bit mode,
  2. Click "Save" (there might be something to save or nothing at all) -> a window dialog for saving a file appears,
  3. after a few seconds (1..3) the crash window appears and Mu Editor is gone.

Windows 8, last version of Mu Editor. I have tried reinstalling couple of times (one / all users) but no success. Actually there is no way how to solve it, or is it?

@tjguk
Copy link
Collaborator

tjguk commented Sep 4, 2018

@standera that's certainly strange. To help us debug, can you add some more info, please?

  1. Do you have a micro:bit plugged in at the time?
  2. When you say "the crash window" -- do you mean the generic Microsoft [This application has stopped responding] popup? Or something else?
  3. Can you confirm where you're downloading the editor from, please?
  4. If you have access to any other Windows machine, have you tried there and seen the same or different results?

Thanks

@tjguk
Copy link
Collaborator

tjguk commented Sep 4, 2018

PS feel free to add screenshots if you think it will help

@ntoll
Copy link
Member

ntoll commented Sep 4, 2018

Also, please click on the cog icon in the bottom right of the editor and paste the content of the log file. Log files are recreated each day, so make sure you have recently crashed Mu.

This is really odd... since we've never had any problems in any Windows version for saving a file to the filesystem. This suggests the problem may be local to your setup. Are you using a machine that is perhaps "locked down" by school/work? Is there anything about your Windows setup that makes it different to a default install? Perhaps you're using a certain sort of anti-virus software (I'm clutching at straws here, but I'm trying to think of applications which may interfere with the workings of Mu).

The more information you can provide, the easier it'll be for us to identify the cause. The log file is key to this.

Thank you! Having bug reports like yours is so helpful to making Mu a better editor.

@standera
Copy link
Author

standera commented Sep 5, 2018 via email

@ntoll
Copy link
Member

ntoll commented Sep 5, 2018

@standera if you copy and paste the log file after Mu crashes (see my previous instructions above), we'll be able to confirm your hunch about non ASCII characters in the account name. ;-)

@standera
Copy link
Author

standera commented Sep 5, 2018 via email

@ntoll
Copy link
Member

ntoll commented Sep 5, 2018

Hi @standera,

Thanks for the log. Sorry for the barrage of questions, but this will help us isolate what the problem may be.

I can see from the logs that you started the Mu several times during the session this log file covers. Can you confirm that Mu was crashing in the way you state during this session?

I think your answer will be "yes" and I find it puzzling there's no stack trace or debug information. We've setup Mu so that if it ever crashes, then it should log exactly what went wrong. However, the lack of evidence for this crash report in the log (hence my check/confirmation that you actually observed a crash), suggests that it wasn't so much Mu that crashed, as Python itself (which Mu is written in) which crashed -- if you see what I mean.

In any case, I believe your suggestion of non-ASCII in the save path might be the problem. I guess we'll start there and try to recreate the problem. Once we can observe the problem we can write a test to recreate it, then fix Mu so it no longer crashes (or change Mu so it no longer crashes Python).

Thanks for your support!

N.

@tjguk
Copy link
Collaborator

tjguk commented Sep 5, 2018

@standera Unfortunately I can't see a screenshot in your earlier post, so it looks like Github's process has dropped it. Can you try adding directly from the GH web interface, please? I'm still unsure whether you're getting a Windows fatal error -- in which case we probably won't get anything in the logs -- or some other error.

@standera
Copy link
Author

standera commented Sep 5, 2018 via email

@standera
Copy link
Author

standera commented Sep 5, 2018

image

@standera
Copy link
Author

standera commented Sep 5, 2018 via email

@tjguk
Copy link
Collaborator

tjguk commented Sep 5, 2018

@standera Thanks. Honestly, this is going to be tricky to debug. I don't think it's as straightforward as the fact of your having non-ASCII characters, although that's always a suspect. We have at least one user running in a Chinese locale where every character is non-ASCII.

Are you in a position to run a development version of Mu? ie by creating a virtual environment and using pip to install the current version? If you don't know what I'm talking about, that's fine: I'm just trying to get a different angle on the problem and to narrow down exactly what's causing the crash.

@standera
Copy link
Author

standera commented Sep 5, 2018 via email

@carlosperate
Copy link
Member

Just to give it a quick test, I tried to create a folder with the Miroslav štandera name and point Mu to that as the workspace directory:

settings.json:

{
  "workspace": "C:\\Users\\microbit-carlos\\Miroslav štandera"
}

And Mu had issues decoding that path printing Miroslav Å¡tandera:

2018-09-05 09:19:18,326 - mu.modes.base:78(get_default_workspace) ERROR: Workspace value in the settings file is not a validdirectory: C:\Users\microbit-carlos\Miroslav Å¡tandera
2018-09-05 09:19:21,857 - mu.modes.base:78(get_default_workspace) ERROR: Workspace value in the settings file is not a validdirectory: C:\Users\microbit-carlos\Miroslav Å¡tandera

@tjguk
Copy link
Collaborator

tjguk commented Sep 5, 2018

(sigh: I don't understand github's email ingest)

Thanks for that, Carlos. Whether or not that's the current issue, we should definitely be able to fix that. I can't get to it now but if someone hasn't then I'll pick it up late

@grofte
Copy link

grofte commented Sep 8, 2018

One of my students is having a problem that sounds like this.
If Mu crashes the entire contents of the file she is working in is gone. She does not have any micro:bit attached.

@carlosperate
Copy link
Member

From @standera in #1092:

Two years ago I reported a problem with the Mu editor always crashing while saving a file (see the issue #635). Today I downloaded end installed the alpha version named "mu-editor_1.1.0-alpha.2" for Windows. The problem still persist! No way how to save a file.

@carlosperate
Copy link
Member

Thanks again for the update @standera. There has been a few updates to better support Unicode since the last release, would you be able to try Mu from the master branch and see if that still causes the crash?

https://mu.readthedocs.io/en/latest/#quickstart

@standera
Copy link
Author

standera commented Sep 5, 2020 via email

@carlosperate
Copy link
Member

Hi @standera,

You can download the (testing) latest Windows installer from the master branch here: http://mu-builds.s3-website.eu-west-2.amazonaws.com/?prefix=windows/

@standera
Copy link
Author

standera commented Sep 29, 2020 via email

@carlosperate carlosperate added this to the 1.1 milestone Oct 26, 2020
@dybber dybber modified the milestones: 1.1.0-beta.1, 1.1.0-beta.2 Feb 1, 2021
@dybber
Copy link
Collaborator

dybber commented Feb 2, 2021

Hi @standera, it's my first look at this bug.

I can see that you intended to include attached screenshots in your last email-reply to this thread. However, it seems that the attachments are not included when send as email, could you login to Github and upload the screenshots? (if you still have them... perhaps they are saved in your mailbox for "Sent mail")

@SpecialStar27
Copy link

SpecialStar27 commented Apr 12, 2021

I have the same problem. I have try to install the latest version (1.1.0 beta 3) on windows 10 (64 bits) several times

@carlosperate
Copy link
Member

Hi @MichelleStella,
It'd be really useful to get the Mu logs to debug this issue.
Could you trigger the problem in Mu (basically, make it crash so it's the last thing in the log) and then attach your log file here? It should be located in %LOCALAPPDATA%\python\mu\Logs.

@SpecialStar27
Copy link

SpecialStar27 commented Apr 12, 2021

Hi @MichelleStella,
It'd be really useful to get the Mu logs to debug this issue.
Could you trigger the problem in Mu (basically, make it crash so it's the last thing in the log) and then attach your log file here? It should be located in %LOCALAPPDATA%\python\mu\Logs.

of course :

 -----------------

Starting Mu 1.1.0.beta.3
2021-04-12 19:30:50,472 - root:267(run) INFO: uname_result(system='Windows', node='Michelle-PC', release='10', version='10.0.19041', machine='AMD64', processor='Intel64 Family 6 Model 61 Stepping 4, GenuineIntel')
2021-04-12 19:30:50,472 - root:268(run) INFO: Python path: ['C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\python38.zip', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\DLLs', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\setuptools-49.6.0-py3.8.egg', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\pip-20.2.2-py3.8.egg', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\win32', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\win32\\lib', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\Pythonwin', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\IPython\\extensions']
2021-04-12 19:30:50,472 - root:269(run) INFO: Language code: fr_CH
2021-04-12 19:30:50,673 - mu.virtual_environment:435(ensure_and_create) INFO: Added log handler.
2021-04-12 19:30:51,573 - mu.virtual_environment:439(ensure_and_create) DEBUG: Checking virtual environment; attempt #1.
2021-04-12 19:30:51,597 - mu.virtual_environment:489(ensure_path) INFO: Virtual Environment found at: C:\Users\Michelle\AppData\Local\python\mu\mu_venv-38-20210412-112738
2021-04-12 19:30:51,612 - mu.virtual_environment:502(ensure_interpreter) INFO: Interpreter found at: C:\Users\Michelle\AppData\Local\python\mu\mu_venv-38-20210412-112738\scripts\python.exe
2021-04-12 19:30:52,979 - mu.virtual_environment:535(ensure_interpreter_version) INFO: Both interpreters at version 38
2021-04-12 19:30:52,991 - mu.virtual_environment:567(ensure_pip) INFO: Pip found at: C:\Users\Michelle\AppData\Local\python\mu\mu_venv-38-20210412-112738\scripts\pip.exe
2021-04-12 19:30:53,004 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: pgzero
2021-04-12 19:30:53,892 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: flask
2021-04-12 19:30:55,870 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: serial
2021-04-12 19:30:56,846 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: qtconsole
2021-04-12 19:30:57,815 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: nudatus
2021-04-12 19:30:58,705 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: esptool
2021-04-12 19:30:59,671 - mu.virtual_environment:451(ensure_and_create) INFO: Virtual environment already exists.
2021-04-12 19:31:00,022 - mu.logic:758(__init__) INFO: Setting up editor.
2021-04-12 19:31:00,023 - mu.logic:778(__init__) INFO: Log directory: C:\Users\Michelle\AppData\Local\python\mu\Logs
2021-04-12 19:31:00,024 - mu.logic:779(__init__) INFO: Data directory: C:\Users\Michelle\AppData\Local\python\mu
2021-04-12 19:31:00,024 - mu.logic:793(setup) INFO: Available modes: python, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico
2021-04-12 19:31:00,024 - mu.modes.base:61(get_default_workspace) INFO: Using workspace C:\Users\Michelle\mu_code from settings file
2021-04-12 19:31:00,209 - mu.modes.base:61(get_default_workspace) INFO: Using workspace C:\Users\Michelle\mu_code from settings file
2021-04-12 19:31:00,209 - mu.logic:1523(change_mode) INFO: Workspace directory: C:\Users\Michelle\mu_code
2021-04-12 19:31:00,209 - mu.logic:867(restore_session) DEBUG: <SessionSettings from C:\Users\Michelle\AppData\Local\python\mu\session.json>
2021-04-12 19:31:00,253 - mu.logic:889(restore_session) INFO: Loaded files.
2021-04-12 19:31:00,254 - mu.logic:892(restore_session) INFO: User defined environment variables: []
2021-04-12 19:31:00,255 - mu.logic:897(restore_session) INFO: Minify scripts on micro:bit? False
2021-04-12 19:31:00,425 - mu.modes.base:61(get_default_workspace) INFO: Using workspace C:\Users\Michelle\mu_code from settings file
2021-04-12 19:31:00,425 - mu.logic:1523(change_mode) INFO: Workspace directory: C:\Users\Michelle\mu_code
2021-04-12 19:31:01,144 - mu.logic:943(restore_session) INFO: Starting with blank file.
2021-04-12 19:31:32,069 - mu.logic:1396(show_admin) INFO: Showing admin with logs from C:\Users\Michelle\AppData\Local\python\mu\Logs\mu.log
2021-04-12 19:31:32,069 - mu.virtual_environment:702(installed_packages) INFO: Discovering installed third party modules in venv.
2021-04-12 19:31:34,308 - mu.virtual_environment:723(installed_packages) INFO: []
2021-04-12 19:33:06,353 - mu.logic:1442(show_admin) INFO: No admin settings changed.
2021-04-12 19:33:13,947 - mu.logic:1470(select_mode) INFO: Showing available modes: ['python', 'circuitpython', 'microbit', 'esp', 'web', 'pyboard', 'debugger', 'pygamezero', 'lego', 'pico']
2021-04-12 19:33:18,539 - mu.logic:1477(select_mode) INFO: New mode selected: python
2021-04-12 19:33:18,611 - mu.modes.base:61(get_default_workspace) INFO: Using workspace C:\Users\Michelle\mu_code from settings file
2021-04-12 19:33:18,611 - mu.logic:1523(change_mode) INFO: Workspace directory: C:\Users\Michelle\mu_code
2021-04-12 19:33:20,493 - mu.modes.base:61(get_default_workspace) INFO: Using workspace C:\Users\Michelle\mu_code from settings file
2021-04-12 19:33:20,493 - mu.logic:1115(get_dialog_directory) INFO: Using path for file dialog: C:\Users\Michelle\mu_code
2021-04-12 19:33:36,410 - root:266(run) INFO: 

-----------------

Starting Mu 1.1.0.beta.3
2021-04-12 19:33:36,411 - root:267(run) INFO: uname_result(system='Windows', node='Michelle-PC', release='10', version='10.0.19041', machine='AMD64', processor='Intel64 Family 6 Model 61 Stepping 4, GenuineIntel')
2021-04-12 19:33:36,411 - root:268(run) INFO: Python path: ['C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\python38.zip', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\DLLs', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\setuptools-49.6.0-py3.8.egg', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\pip-20.2.2-py3.8.egg', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\win32', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\win32\\lib', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\Pythonwin', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\IPython\\extensions']
2021-04-12 19:33:36,411 - root:269(run) INFO: Language code: fr_CH
2021-04-12 19:33:36,522 - mu.virtual_environment:435(ensure_and_create) INFO: Added log handler.
2021-04-12 19:33:36,981 - mu.virtual_environment:439(ensure_and_create) DEBUG: Checking virtual environment; attempt #1.
2021-04-12 19:33:36,990 - mu.virtual_environment:489(ensure_path) INFO: Virtual Environment found at: C:\Users\Michelle\AppData\Local\python\mu\mu_venv-38-20210412-112738
2021-04-12 19:33:37,004 - mu.virtual_environment:502(ensure_interpreter) INFO: Interpreter found at: C:\Users\Michelle\AppData\Local\python\mu\mu_venv-38-20210412-112738\scripts\python.exe
2021-04-12 19:33:37,701 - mu.virtual_environment:535(ensure_interpreter_version) INFO: Both interpreters at version 38
2021-04-12 19:33:37,712 - mu.virtual_environment:567(ensure_pip) INFO: Pip found at: C:\Users\Michelle\AppData\Local\python\mu\mu_venv-38-20210412-112738\scripts\pip.exe
2021-04-12 19:33:37,727 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: pgzero
2021-04-12 19:33:38,566 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: flask
2021-04-12 19:33:40,167 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: serial
2021-04-12 19:33:41,214 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: qtconsole
2021-04-12 19:33:42,084 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: nudatus
2021-04-12 19:33:42,973 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: esptool
2021-04-12 19:33:43,896 - mu.virtual_environment:451(ensure_and_create) INFO: Virtual environment already exists.
2021-04-12 19:33:44,107 - mu.logic:758(__init__) INFO: Setting up editor.
2021-04-12 19:33:44,107 - mu.logic:778(__init__) INFO: Log directory: C:\Users\Michelle\AppData\Local\python\mu\Logs
2021-04-12 19:33:44,107 - mu.logic:779(__init__) INFO: Data directory: C:\Users\Michelle\AppData\Local\python\mu
2021-04-12 19:33:44,107 - mu.logic:793(setup) INFO: Available modes: python, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico
2021-04-12 19:33:44,108 - mu.modes.base:61(get_default_workspace) INFO: Using workspace C:\Users\Michelle\mu_code from settings file
2021-04-12 19:33:44,228 - mu.modes.base:61(get_default_workspace) INFO: Using workspace C:\Users\Michelle\mu_code from settings file
2021-04-12 19:33:44,229 - mu.logic:1523(change_mode) INFO: Workspace directory: C:\Users\Michelle\mu_code
2021-04-12 19:33:44,230 - mu.logic:867(restore_session) DEBUG: <SessionSettings from C:\Users\Michelle\AppData\Local\python\mu\session.json>
2021-04-12 19:33:44,262 - mu.logic:889(restore_session) INFO: Loaded files.
2021-04-12 19:33:44,263 - mu.logic:892(restore_session) INFO: User defined environment variables: []
2021-04-12 19:33:44,263 - mu.logic:897(restore_session) INFO: Minify scripts on micro:bit? False
2021-04-12 19:33:44,419 - mu.modes.base:61(get_default_workspace) INFO: Using workspace C:\Users\Michelle\mu_code from settings file
2021-04-12 19:33:44,419 - mu.logic:1523(change_mode) INFO: Workspace directory: C:\Users\Michelle\mu_code
2021-04-12 19:33:44,891 - mu.logic:943(restore_session) INFO: Starting with blank file.
2021-04-12 19:34:08,726 - mu.logic:1396(show_admin) INFO: Showing admin with logs from C:\Users\Michelle\AppData\Local\python\mu\Logs\mu.log
2021-04-12 19:34:08,727 - mu.virtual_environment:702(installed_packages) INFO: Discovering installed third party modules in venv.
2021-04-12 19:34:09,965 - mu.virtual_environment:723(installed_packages) INFO: []

@carlosperate
Copy link
Member

Thanks for the logs @MichelleStella!
I don't see any errors or crashes though, did you open Mu and trigger a crash (or the error you've experienced) before coping the log contents?

If Mu does close down or crash, what do you see, when does it crash?

@carlosperate
Copy link
Member

@standera we've done a new release since you last tested this issue, would you be able to install the latest release and try again? Thank you again for all your testing!
https://github.com/mu-editor/mu/releases

@SpecialStar27
Copy link

SpecialStar27 commented Apr 12, 2021

Thanks for the logs @MichelleStella!
I don't see any errors or crashes though, did you open Mu and trigger a crash (or the error you've experienced) before coping the log contents?

If Mu does close down or crash, what do you see, when does it crash?

Weird..
Exactly: I triggered the crash (trying to save a file), then forced the program to close, then reopened it and copied the log files

Here is the video of what happened (sorry for the background noise)

https://www.youtube.com/watch?v=3ARHA6teusI&ab_channel=MichelleStella

-----------------

Starting Mu 1.1.0.beta.3
2021-04-12 19:33:36,411 - root:267(run) INFO: uname_result(system='Windows', node='Michelle-PC', release='10', version='10.0.19041', machine='AMD64', processor='Intel64 Family 6 Model 61 Stepping 4, GenuineIntel')
2021-04-12 19:33:36,411 - root:268(run) INFO: Python path: ['C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\python38.zip', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\DLLs', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\setuptools-49.6.0-py3.8.egg', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\pip-20.2.2-py3.8.egg', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\win32', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\win32\\lib', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\Pythonwin', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\IPython\\extensions']
2021-04-12 19:33:36,411 - root:269(run) INFO: Language code: fr_CH
2021-04-12 19:33:36,522 - mu.virtual_environment:435(ensure_and_create) INFO: Added log handler.
2021-04-12 19:33:36,981 - mu.virtual_environment:439(ensure_and_create) DEBUG: Checking virtual environment; attempt #1.
2021-04-12 19:33:36,990 - mu.virtual_environment:489(ensure_path) INFO: Virtual Environment found at: C:\Users\Michelle\AppData\Local\python\mu\mu_venv-38-20210412-112738
2021-04-12 19:33:37,004 - mu.virtual_environment:502(ensure_interpreter) INFO: Interpreter found at: C:\Users\Michelle\AppData\Local\python\mu\mu_venv-38-20210412-112738\scripts\python.exe
2021-04-12 19:33:37,701 - mu.virtual_environment:535(ensure_interpreter_version) INFO: Both interpreters at version 38
2021-04-12 19:33:37,712 - mu.virtual_environment:567(ensure_pip) INFO: Pip found at: C:\Users\Michelle\AppData\Local\python\mu\mu_venv-38-20210412-112738\scripts\pip.exe
2021-04-12 19:33:37,727 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: pgzero
2021-04-12 19:33:38,566 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: flask
2021-04-12 19:33:40,167 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: serial
2021-04-12 19:33:41,214 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: qtconsole
2021-04-12 19:33:42,084 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: nudatus
2021-04-12 19:33:42,973 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: esptool
2021-04-12 19:33:43,896 - mu.virtual_environment:451(ensure_and_create) INFO: Virtual environment already exists.
2021-04-12 19:33:44,107 - mu.logic:758(__init__) INFO: Setting up editor.
2021-04-12 19:33:44,107 - mu.logic:778(__init__) INFO: Log directory: C:\Users\Michelle\AppData\Local\python\mu\Logs
2021-04-12 19:33:44,107 - mu.logic:779(__init__) INFO: Data directory: C:\Users\Michelle\AppData\Local\python\mu
2021-04-12 19:33:44,107 - mu.logic:793(setup) INFO: Available modes: python, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico
2021-04-12 19:33:44,108 - mu.modes.base:61(get_default_workspace) INFO: Using workspace C:\Users\Michelle\mu_code from settings file
2021-04-12 19:33:44,228 - mu.modes.base:61(get_default_workspace) INFO: Using workspace C:\Users\Michelle\mu_code from settings file
2021-04-12 19:33:44,229 - mu.logic:1523(change_mode) INFO: Workspace directory: C:\Users\Michelle\mu_code
2021-04-12 19:33:44,230 - mu.logic:867(restore_session) DEBUG: <SessionSettings from C:\Users\Michelle\AppData\Local\python\mu\session.json>
2021-04-12 19:33:44,262 - mu.logic:889(restore_session) INFO: Loaded files.
2021-04-12 19:33:44,263 - mu.logic:892(restore_session) INFO: User defined environment variables: []
2021-04-12 19:33:44,263 - mu.logic:897(restore_session) INFO: Minify scripts on micro:bit? False
2021-04-12 19:33:44,419 - mu.modes.base:61(get_default_workspace) INFO: Using workspace C:\Users\Michelle\mu_code from settings file
2021-04-12 19:33:44,419 - mu.logic:1523(change_mode) INFO: Workspace directory: C:\Users\Michelle\mu_code
2021-04-12 19:33:44,891 - mu.logic:943(restore_session) INFO: Starting with blank file.
2021-04-12 19:34:08,726 - mu.logic:1396(show_admin) INFO: Showing admin with logs from C:\Users\Michelle\AppData\Local\python\mu\Logs\mu.log
2021-04-12 19:34:08,727 - mu.virtual_environment:702(installed_packages) INFO: Discovering installed third party modules in venv.
2021-04-12 19:34:09,965 - mu.virtual_environment:723(installed_packages) INFO: []
2021-04-12 19:37:13,330 - mu.logic:1442(show_admin) INFO: No admin settings changed.
2021-04-12 19:53:20,668 - mu.modes.base:61(get_default_workspace) INFO: Using workspace C:\Users\Michelle\mu_code from settings file
2021-04-12 19:53:20,669 - mu.logic:1115(get_dialog_directory) INFO: Using path for file dialog: C:\Users\Michelle\mu_code
2021-04-12 19:53:36,583 - root:266(run) INFO: 

-----------------

Starting Mu 1.1.0.beta.3
2021-04-12 19:53:36,583 - root:267(run) INFO: uname_result(system='Windows', node='Michelle-PC', release='10', version='10.0.19041', machine='AMD64', processor='Intel64 Family 6 Model 61 Stepping 4, GenuineIntel')
2021-04-12 19:53:36,584 - root:268(run) INFO: Python path: ['C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\python38.zip', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\DLLs', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\setuptools-49.6.0-py3.8.egg', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\pip-20.2.2-py3.8.egg', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\win32', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\win32\\lib', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\Pythonwin', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\IPython\\extensions']
2021-04-12 19:53:36,584 - root:269(run) INFO: Language code: fr_CH
2021-04-12 19:53:36,692 - mu.virtual_environment:435(ensure_and_create) INFO: Added log handler.
2021-04-12 19:53:37,049 - mu.virtual_environment:439(ensure_and_create) DEBUG: Checking virtual environment; attempt #1.
2021-04-12 19:53:37,059 - mu.virtual_environment:489(ensure_path) INFO: Virtual Environment found at: C:\Users\Michelle\AppData\Local\python\mu\mu_venv-38-20210412-112738
2021-04-12 19:53:37,075 - mu.virtual_environment:502(ensure_interpreter) INFO: Interpreter found at: C:\Users\Michelle\AppData\Local\python\mu\mu_venv-38-20210412-112738\scripts\python.exe
2021-04-12 19:53:37,648 - mu.virtual_environment:535(ensure_interpreter_version) INFO: Both interpreters at version 38
2021-04-12 19:53:37,659 - mu.virtual_environment:567(ensure_pip) INFO: Pip found at: C:\Users\Michelle\AppData\Local\python\mu\mu_venv-38-20210412-112738\scripts\pip.exe
2021-04-12 19:53:37,671 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: pgzero
2021-04-12 19:53:38,514 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: flask
2021-04-12 19:53:39,973 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: serial
2021-04-12 19:53:40,645 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: qtconsole
2021-04-12 19:53:41,731 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: nudatus
2021-04-12 19:53:42,490 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: esptool
2021-04-12 19:53:43,323 - mu.virtual_environment:451(ensure_and_create) INFO: Virtual environment already exists.
2021-04-12 19:53:43,500 - mu.logic:758(__init__) INFO: Setting up editor.
2021-04-12 19:53:43,501 - mu.logic:778(__init__) INFO: Log directory: C:\Users\Michelle\AppData\Local\python\mu\Logs
2021-04-12 19:53:43,501 - mu.logic:779(__init__) INFO: Data directory: C:\Users\Michelle\AppData\Local\python\mu
2021-04-12 19:53:43,502 - mu.logic:793(setup) INFO: Available modes: python, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico
2021-04-12 19:53:43,502 - mu.modes.base:61(get_default_workspace) INFO: Using workspace C:\Users\Michelle\mu_code from settings file
2021-04-12 19:53:43,672 - mu.modes.base:61(get_default_workspace) INFO: Using workspace C:\Users\Michelle\mu_code from settings file
2021-04-12 19:53:43,672 - mu.logic:1523(change_mode) INFO: Workspace directory: C:\Users\Michelle\mu_code
2021-04-12 19:53:43,672 - mu.logic:867(restore_session) DEBUG: <SessionSettings from C:\Users\Michelle\AppData\Local\python\mu\session.json>
2021-04-12 19:53:43,731 - mu.logic:889(restore_session) INFO: Loaded files.
2021-04-12 19:53:43,732 - mu.logic:892(restore_session) INFO: User defined environment variables: []
2021-04-12 19:53:43,732 - mu.logic:897(restore_session) INFO: Minify scripts on micro:bit? False
2021-04-12 19:53:43,902 - mu.modes.base:61(get_default_workspace) INFO: Using workspace C:\Users\Michelle\mu_code from settings file
2021-04-12 19:53:43,902 - mu.logic:1523(change_mode) INFO: Workspace directory: C:\Users\Michelle\mu_code
2021-04-12 19:53:44,347 - mu.logic:943(restore_session) INFO: Starting with blank file.
2021-04-12 19:53:46,204 - mu.logic:1396(show_admin) INFO: Showing admin with logs from C:\Users\Michelle\AppData\Local\python\mu\Logs\mu.log
2021-04-12 19:53:46,204 - mu.virtual_environment:702(installed_packages) INFO: Discovering installed third party modules in venv.
2021-04-12 19:53:47,347 - mu.virtual_environment:723(installed_packages) INFO: []
2021-04-12 19:54:02,635 - mu.logic:1442(show_admin) INFO: No admin settings changed.
2021-04-12 19:54:39,623 - mu.modes.base:61(get_default_workspace) INFO: Using workspace C:\Users\Michelle\mu_code from settings file
2021-04-12 19:54:39,623 - mu.logic:1115(get_dialog_directory) INFO: Using path for file dialog: C:\Users\Michelle\mu_code
2021-04-12 19:55:45,467 - root:266(run) INFO: 

-----------------

Starting Mu 1.1.0.beta.3
2021-04-12 19:55:45,468 - root:267(run) INFO: uname_result(system='Windows', node='Michelle-PC', release='10', version='10.0.19041', machine='AMD64', processor='Intel64 Family 6 Model 61 Stepping 4, GenuineIntel')
2021-04-12 19:55:45,468 - root:268(run) INFO: Python path: ['C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\python38.zip', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\DLLs', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\setuptools-49.6.0-py3.8.egg', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\pip-20.2.2-py3.8.egg', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\win32', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\win32\\lib', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\Pythonwin', 'C:\\Users\\Michelle\\AppData\\Local\\Programs\\Mu Editor\\Python\\lib\\site-packages\\IPython\\extensions']
2021-04-12 19:55:45,468 - root:269(run) INFO: Language code: fr_CH
2021-04-12 19:55:45,584 - mu.virtual_environment:435(ensure_and_create) INFO: Added log handler.
2021-04-12 19:55:45,931 - mu.virtual_environment:439(ensure_and_create) DEBUG: Checking virtual environment; attempt #1.
2021-04-12 19:55:45,939 - mu.virtual_environment:489(ensure_path) INFO: Virtual Environment found at: C:\Users\Michelle\AppData\Local\python\mu\mu_venv-38-20210412-112738
2021-04-12 19:55:45,948 - mu.virtual_environment:502(ensure_interpreter) INFO: Interpreter found at: C:\Users\Michelle\AppData\Local\python\mu\mu_venv-38-20210412-112738\scripts\python.exe
2021-04-12 19:55:46,390 - mu.virtual_environment:535(ensure_interpreter_version) INFO: Both interpreters at version 38
2021-04-12 19:55:46,400 - mu.virtual_environment:567(ensure_pip) INFO: Pip found at: C:\Users\Michelle\AppData\Local\python\mu\mu_venv-38-20210412-112738\scripts\pip.exe
2021-04-12 19:55:46,417 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: pgzero
2021-04-12 19:55:46,989 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: flask
2021-04-12 19:55:48,273 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: serial
2021-04-12 19:55:48,775 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: qtconsole
2021-04-12 19:55:49,292 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: nudatus
2021-04-12 19:55:49,851 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: esptool
2021-04-12 19:55:50,432 - mu.virtual_environment:451(ensure_and_create) INFO: Virtual environment already exists.
2021-04-12 19:55:50,645 - mu.logic:758(__init__) INFO: Setting up editor.
2021-04-12 19:55:50,647 - mu.logic:778(__init__) INFO: Log directory: C:\Users\Michelle\AppData\Local\python\mu\Logs
2021-04-12 19:55:50,648 - mu.logic:779(__init__) INFO: Data directory: C:\Users\Michelle\AppData\Local\python\mu
2021-04-12 19:55:50,649 - mu.logic:793(setup) INFO: Available modes: python, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico
2021-04-12 19:55:50,650 - mu.modes.base:61(get_default_workspace) INFO: Using workspace C:\Users\Michelle\mu_code from settings file
2021-04-12 19:55:50,775 - mu.modes.base:61(get_default_workspace) INFO: Using workspace C:\Users\Michelle\mu_code from settings file
2021-04-12 19:55:50,776 - mu.logic:1523(change_mode) INFO: Workspace directory: C:\Users\Michelle\mu_code
2021-04-12 19:55:50,776 - mu.logic:867(restore_session) DEBUG: <SessionSettings from C:\Users\Michelle\AppData\Local\python\mu\session.json>
2021-04-12 19:55:50,826 - mu.logic:889(restore_session) INFO: Loaded files.
2021-04-12 19:55:50,827 - mu.logic:892(restore_session) INFO: User defined environment variables: []
2021-04-12 19:55:50,827 - mu.logic:897(restore_session) INFO: Minify scripts on micro:bit? False
2021-04-12 19:55:50,978 - mu.modes.base:61(get_default_workspace) INFO: Using workspace C:\Users\Michelle\mu_code from settings file
2021-04-12 19:55:50,978 - mu.logic:1523(change_mode) INFO: Workspace directory: C:\Users\Michelle\mu_code
2021-04-12 19:55:51,458 - mu.logic:943(restore_session) INFO: Starting with blank file.
2021-04-12 19:59:05,020 - mu.logic:1396(show_admin) INFO: Showing admin with logs from C:\Users\Michelle\AppData\Local\python\mu\Logs\mu.log
2021-04-12 19:59:05,020 - mu.virtual_environment:702(installed_packages) INFO: Discovering installed third party modules in venv.
2021-04-12 19:59:07,284 - mu.virtual_environment:723(installed_packages) INFO: []
2021-04-12 20:39:02,057 - mu.logic:1396(show_admin) INFO: Showing admin with logs from C:\Users\Michelle\AppData\Local\python\mu\Logs\mu.log
2021-04-12 20:39:02,058 - mu.virtual_environment:702(installed_packages) INFO: Discovering installed third party modules in venv.
2021-04-12 20:39:05,067 - mu.virtual_environment:723(installed_packages) INFO: []

@ntoll
Copy link
Member

ntoll commented Jul 10, 2021

This feels like a bug in Python or PyQt (the error reported is that Python has stopped responding - and this is backed up by evidence because Python hasn't written anything to the log file to indicate the problem it encountered).

I wonder if there's a core dump somewhere (clutching at straws here) that we can examine to figure out the underlying problem? There's certainly nothing visible in the Mu layer of the application (hence my thought about the problem being in the Python or Qt layer). I also notice that the error happens when the OS's file dialog is displayed / triggered by Python... again, not a Mu thing per-se... Mu is just using the standard PyQt method to trigger the dialog.

@ntoll
Copy link
Member

ntoll commented Jul 10, 2021

A further thought.... perhaps it's something in PyQt and it won't be fixed until we update to, say, latest PyQt5 or the new PyQt6.

@carlosperate carlosperate modified the milestones: 1.1.0-beta.6, 1.2 Dec 17, 2021
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

7 participants