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

Mac OS Big Sur #240

Open
puttley opened this issue May 25, 2021 · 5 comments
Open

Mac OS Big Sur #240

puttley opened this issue May 25, 2021 · 5 comments

Comments

@puttley
Copy link

puttley commented May 25, 2021

I've recently upgraded my Mac OS to Big Sur which broke Ardublockly. When the app launches all I see is a flashing white box window. Has anyone else had this issue and is there a solution?

@RoboThom
Copy link

Ardublockly_error_Prg
Ardublockly_error

Although I do not have a solution, only extension.
Maybe someone will be able to better estimate the error from the image I attach.

On the left is version 0.1.2 and on the right is the previous one: 0.1.1.

like puttley, i also have the mac OS Big Sur on the MAC.

the program itself thinks that no functions are implemented and at the end gives a window with the following error message:

A JavaScript error occurred in the main process

Uncaught Exception:
TypeError: Cannot read property 'webContents' of null
at Timeout._onTimeout (/Applications/Ardublockly.app/Contents/Resources/app.asar/main.js:95:27)
at tryOnTimeout (timers.js:224:11)
at Timer.listOnTimeout (timers.js:198:5)

Regards
Robert

@puttley
Copy link
Author

puttley commented Jun 28, 2021

I have not found a solution, but did come up with a work around. If you start the ardublockly server running first, then launch Ardublockly, the app will work. I modified start.py so that it starts the server, but does not launch the browser version. Once the server is running, start desktop Ardublockly app as normal and it should run. To automate this, I wrote a batch script and added it to my login scripts to run at startup.

@bruno0815
Copy link

bruno0815 commented Nov 14, 2021

Hello @puttley, please excuse me, but would you mind to give some more details? I am new in programming and I would like to use ardublocky on my M1, but unfortunately I cannot follow your instructions. What do you mean with starting the server first? I do not know, how this app is working in the background

@puttley
Copy link
Author

puttley commented Nov 16, 2021

Sure. Install the app as normal. Navigate to the contents folder and open start.py in an editor. Go to line 77 (I think) and set launch_browser to False. Save start.py.
After you've edited the file, execute start.py. You should see the server starting message in a terminal window. Once the server has started, launch Ardublockly as you normally would.

@bruno0815
Copy link

@puttley Thanks so much. I struggled a little with the server starting part - but finally it works. And it was line 77.

I did not expect, that you are answering my questions, as this topic is already from June. So thank you very much... Now I can start to learn :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants