-
Notifications
You must be signed in to change notification settings - Fork 435
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
mu-editor hangs on macOS Big Sur #1147
Comments
i have attached a screen shot showing that it is using cpu time while hanging. Also the Mac Dump Log that is generated when I do a Forced Quit |
Could it be because of OCSP servers overload (https://arstechnica.com/gadgets/2020/11/macos-big-sur-launch-appears-to-cause-temporary-slowdown-in-even-non-big-sur-macs/) ? |
I have this issue too. My logsStarting Mu 1.0.3 2020-11-17 11:24:25,880 - root:113(run) INFO: uname_result(system='Darwin', node='greeble-mi.local', release='20.1.0', version='Darwin Kernel Version 20.1.0: Sat Oct 31 00:07:11 PDT 2020; root:xnu-7195.50.7~2/RELEASE_X86_64', machine='x86_64', processor='i386') 2020-11-17 11:24:25,880 - root:114(run) INFO: Python path: ['/Users/ajs256/Applications/mu-editor_stable.app/Contents/MacOS', '/Users/ajs256/Applications/mu-editor_stable.app/Contents/Resources/python/lib/python36.zip', '/Users/ajs256/Applications/mu-editor_stable.app/Contents/Resources/python/lib/python3.6', '/Users/ajs256/Applications/mu-editor_stable.app/Contents/Resources/python/lib/python3.6/lib-dynload', '/Users/ajs256/Applications/mu-editor_stable.app/Contents/Resources/python/lib/python3.6/site-packages', '/Users/ajs256/Applications/mu-editor_stable.app/Contents/Resources/app', '/Users/alex/Applications/mu-editor_stable.app/Contents/Resources/app_packages', '/Users/ajs256/Applications/mu-editor_stable.app/Contents/Resources/app_packages/IPython/extensions'] 2020-11-17 11:24:25,880 - root:115(run) INFO: Language code: en_US 2020-11-17 11:24:26,136 - mu.logic:543(__init__) INFO: Setting up editor. 2020-11-17 11:24:26,136 - mu.logic:562(__init__) INFO: Settings path: /Users/ajs256/Library/Application Support/mu/settings.json 2020-11-17 11:24:26,136 - mu.logic:563(__init__) INFO: Session path: /Users/ajs256/Library/Application Support/mu/session.json 2020-11-17 11:24:26,136 - mu.logic:564(__init__) INFO: Log directory: /Users/ajs256/Library/Logs/mu 2020-11-17 11:24:26,136 - mu.logic:565(__init__) INFO: Data directory: /Users/ajs256/Library/Application Support/mu 2020-11-17 11:24:26,149 - mu.logic:578(setup) INFO: Available modes: python, adafruit, microbit, debugger, pygamezero 2020-11-17 11:24:26,288 - mu.logic:1150(change_mode) INFO: Workspace directory: /Users/ajs256/mu_code 2020-11-17 11:24:26,289 - mu.logic:627(restore_session) INFO: Restoring session from: /Users/ajs256/Library/Application Support/mu/session.json 2020-11-17 11:24:26,289 - mu.logic:628(restore_session) DEBUG: {'theme': 'day', 'mode': 'circuitpython', 'paths': [], 'envars': [], 'minify': False, 'microbit_runtime': '', 'zoom_level': 2, 'window': {'x': 146, 'y': 90, 'w': 1152, 'h': 720}} 2020-11-17 11:24:26,289 - mu.logic:1107(select_mode) INFO: Showing available modes: ['python', 'adafruit', 'microbit', 'debugger', 'pygamezero'] |
Thanks for the reports everybody! Unfortunately the log attached doesn't show any issues. Could anybody experiencing this issue try to run Mu from source code? https://mu.readthedocs.io/en/latest/setup.html In the past macOS updates have usually broken PyQt5, so I wouldn't be surprised if this is the culprit in this case as well. We should have a look at the mailing list. In the meantime I found this: https://forums.macrumors.com/threads/pyqt5-and-big-sur.2260773/
|
@carlosperate Setting |
I tried the suggested given above, but did not get anywhere. If someone would like to help me, then I will try to run this and provide whatever diagnostics I can. Please see my efforts below. Running |
@ged99 A few tips:
|
@ajs256 having the same issue. Your instruction is unclear. Could you write a more detailed guide? Thank you! |
@kurbonas: Here’s my best guide for everything you need to do:
If anything was unclear there, let me know. If you want to exit the virtual environment, type |
Thanks, mate! You are the best! |
Can reproduce the issue above. Managed to start Mu from the terminal after setting Qt variable. None of the previously successful programs run in Pygame Zero mode with the following error: |
I have this same issue as well on Big Sur. I think the code base should be refactored to avoid this type of breakage each time Apple updates Mac OS. |
@ged99 Try running it like |
@ajs256 Making progress bit-by-bit. I got as far as this before I got an error. BTW, thanks for your help! Much appreciated |
@ged99, try following steps A, B, and C to install SDL. That's what fixed that error for me. |
Thanks @carlosperate, was getting ready to try the steps above even though way over my head, but then saw your post and just switched to the alpha version - problem solved! |
The Alpha Version!!! Yes, this works. Shame that I didn't find out about this until I saw @ntomlin comment. I'd been battling with this for weeks. Anyway, happy once again! |
As pointed out by @ZanderBrown on Gitter, the newest PyQt5 version sets the However, upgrading PyQt also means that we will have to say farewell to macOS 10.12 Sierra, as PyQt 5.15.2 only supports 10.13, 10.14, 10.15 (Mojave, Catalina, Big Sur) |
I thought the version of PyQt5 we have right now already dropped support for Sierra? And it's only 10.13 High Sierra or newer? Either way, unless we find any bugs, I think I would prefer to stay in an older version of PyQt5 that supports an older macOS and manually add the env variable in the Mu source code. At least until we are force to update for any other reasons. We get a few issues opened for Mu not being able to run in older macOS versions, and I think it's worth the trouble to try to maximise the versions Mu supports. |
This archived website says that 10.13 supports 10.12, 10.13, 10.14, but it might be outdated: https://doc.qt.io/archives/qt-5.13/supported-platforms.html I agree that we should try adding the variable ourselves. I haven't dared upgrading to Big Sur, so I'm not able to test whether it works if I try to fix it. |
@dybber - I'm already fully committed to Big Sur. And it's been frustrating getting Mu to work on it. The Alpha version runs ok, but there is a problem importing libraries (as you know). I would be happy to help test anything out within reason. I am having to use Mu on my Windows m/c (which is only until I get the Mac sorted) |
Like @ged99, I am fully committed to Big Sur and would appreciate a
convenient solution which would allow Mu to work properly on this OS. I buy
Adafruit Industries products and have been dabbling with CircuitPython. The
company urges customers new to CircuitPython to use the Mu editor. I would
guess there are a lot of people who are getting their first programming
experience using Python, and many will be on an up-to-date Mac OS. Mu
should be fully supported on all versions of MacOS.
…On Wed, Dec 9, 2020 at 8:52 AM ged99 ***@***.***> wrote:
@dybber <https://github.com/dybber> - I'm already fully committed to Big
Sur. And it's been frustrating getting Mu to work on it. The Alpha version
runs ok, but there is a problem importing libraries (as you know). I would
be happy to help test anything out within reason.
I am having to use Mu on my Windows m/c (which is only until I get the Mac
sorted)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1147 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASYTSLKEYDJ6WG5EOWFMI3ST56I7ANCNFSM4TXC2UPA>
.
|
Huh...I'm not sure that's what's causing it. % cd ~/Downloads/PiBakery-darwin-x64.app
% ls -l Contents/MacOS/PiBakery # the executable
-rwxr-xr-x@ 1 ajs256 staff 8608 Jun 29 2018 Contents/MacOS/PiBakery It's still executable! Must be something weird with Github CI. |
Weird. I'm not sure either, but whatever is causing it, I'm pretty confident that it will be solved when we will shift our packaging infrastructure to use @tmontes' work on https://github.com/mu-editor/pup |
Is this bug still under review? I haven't found that any of these workarounds have stopped Mu from "hanging" whenever it is launched. Currently running MacOS Big Sur 11.0.1. |
The "alpha" version on the mu website definitely works for me. The main stable version hangs. The only problem for me is that I cannot get it to import external modules, in particular Matplotlib which I need for one application I am working on. These are known bugs but not sure when they will be fixed. I must admit that I am now turning to the 'dark side' and using another IDE which works perfectly under Big Sur. |
Yes, it is still not closed, and we're waiting for confirmation that the proposed solution works (see #1147 (comment)). However, as people seems to have trouble opening that version and confirming that it solves the problem, we aren't moving forward with this before the Mac OS signing/notarization/packaging issues are resolved (which is a different issue entirely) |
EDIT: Never mind! I wasn't in a venv properly! Previous question for reference:Hey there @dybber (or anyone else), maybe you can help me with this.I tried to Here's my output:
What should I do here? |
I think I'm running into the same problem as @ged99, where the executables are not executable and need a |
The alpha version on the download page works for me |
@ajs256 I was able to get mu-editor to work based on the advice above: But, my setup on macOS Big Sur v11.1 required a couple additional steps:
Additionally, I still can't get it to launch from the mu-editor desktop icon, instead I had to write a quick shell script, which seems to work reliably, once all your aforementioned preparation steps have been completed:
|
I just installed mu-editor on Big Sur using
and it works fine. |
This is new to me, didn't realised there is a brew formula for Mu: https://formulae.brew.sh/cask/mu-editor Edit:
But thankfully is just installing the dmg, I thought it would be running the code from source as a Python application. |
Terrific. Didn't even consider installing it as a Homebrew managed package. That approach worked well. Cheers! |
The problem was resolved by #1171, which I tested and confirmed yesterday on a machine running Big Sur. To everyone here: thanks for the reports, the problem should be solved in the next release. |
This does not seem to be fixed. I am on OS Big Sur and downloaded and tried to run Mu today. The program hangs when it attempts to load and never actually starts. I will try attaching two screenshots if I can.... also note there seems to be no way for me to bypass the security denial (right clicking does not bypass it) and I have to go to settings and get to the "open anyway" button to have it make an attempt to load.... then it hangs and the program doesn't open. |
The issue is solved, we just haven't been able to release a new version of Mu for Mac since the fix was made, I'm sorry. |
If you are running into Mu Editor hanging on Big Sur, all you have to do is set the environment variable QT_MAC_WANTS_LAYER=1 at the terminal and open the mu-editor app from the terminal as follows:
Just place the above in a shell script, make it executable and run the script from the terminal. |
@dybber When can we expect the release with the resolved issue? I am just wondering if I should try to do a work around or wait, thanks! |
@beebopkim Yep, adding that line to mu-editor works like a charm! Thanks a lot for this helpful LiveHack :-) |
Hi, could you please go through the process step by step? is it just a line on terminal...? or where? appreciate detail help as I am new to mu editor and using the terminal to run it...but need to get it to work on Mac OSX Sur Is it the same as this? @skarlekar
|
Hi @alsauter, If you are still having issue in Big Sur with beta.4 could you open a new issue detailing the problem? |
Thanks @carlosperate :: so that means I only need to download: Mu.Editor.1.1.0b4.dmg and it should work fine on Big Sur? To tell you the truth I am not on Big Sur, I have to fix this problem for a student (that does use Big Sur) using Mu Editor to program the Circuit Playground Express with Circuit Python. So I am trying to go ahead and know as much as I can before helping the student remotely. Thank you so much. |
Yes, using beta.4 and these steps should get you set up in Big Sur: #1383 (comment) |
I have been using mu-editor successfully for a while under Catolina on my Mac. Today I upgraded the OS to Big Sur. Now the mu-editor does not open. When I launch it by clicking on the icon, the app just hangs. There are no error messages.
I have to close the application through the "Force Quit Applications". In this window it shows that mu-editor is running but not responding.
I re-installed the editor with the latest version from the website, but this did not work either.
If you are reporting a bug, we would like to know:
other aspects of the context in which Mu was running.
macOS Big Sur V 11.0.1
mu_editor - the latest version (1.0.3? - hard to tell!)
Can't provide a log file as the editor does not open.
Please remember to attach a copy of the full log files for Mu. You can get
the logs by clicking on the cog icon in the bottom right of the editor window.
Click on the logs and use CTRL-A to select all, then CTRL-C to copy and CTRL-V
to paste the contents into the issue.
Thank you for contributing to Mu! :-)
The text was updated successfully, but these errors were encountered: