“Failed to initialize graphics” Error - MZ (MacBook)

I’m new to RPG Maker MZ and when I click “Playtest”, it will show “Error. Failed to initialize graphics.”:
2541E8F5-89E6-4A15-B7EC-754D7ECC72A8.jpeg

The thing that’s worked, is going into the “Package” file and pasting the code:

"chromium-args": "--enable-webgl --ignore-gpu-blacklist",

I save the file, and the Playtest runs this way. However, it is only temporary. Every time I make a change to the game and resave it or reopen the program, I click Playtest and it shows the error screen again. The code I pasted in the Package file is gone, and I have to repaste it every time I want to Playtest.

My laptop is a MacBook Pro (13-inch, Mid 2010), macOS High Sierra, Version 10.13.6

I’m unsure of how to stop my computer from doing this. Please let me know if I’m missing details about the computer for help answering this. I also tried running it in Safe mode, which did not change anything.
This is due to chromium (the browser engine that runs rpgmaker) disallowing older graphics cards from running webgl by default to speed up performance on web pages. I'm not sure why your package file is being overwriten though, you're editing the package.json file in the root of your project correct? I don't have a computer with macos to test right now but one thing you could try is modifying the default package json in the rpgmaker program files. To do this navigate to your rpgmaker program folder (if you're not sure how, steams properties menu for the application has a button to open the program files), and right click the program and select "show package contents" to see the application assets. In here (I'm guessing it's a little different than windows but can't verify) there should be a package.json that's used as the project default which you can edit and add your flags to in the chromium args field as before. Not sure if that will fix the problem but it's worth a try.
First, as said above changes to your packages file should not be overwritten constantly.
You should try to find the cause for this - in a lot of similar cases in the past that was because the project was stored in the wrong folder (a restricted or cloud-sync'ed folder).

Second, I don't have the details but someone posted several month ago that different MacOS-Versions need different NW.JS versions to run without errors.
Basically you would have to deploy twice with different NW.JS versions and get two apps, one for the older MacOS and one for the newer MacOS versions.
Unfortunately I don't remember the required versions (both are not the default versions), you'll have to try and find that post yourself. It was one of the topics about problems with MacOS deployment.
Moved to: MZ Support

Original thread: https://forums.rpgmakerweb.com/threads/failed-to-initialize-graphics-error-mz-macbook.155554/