Closed kitecodingsrl closed 1 year ago
Hi! Thanks for posting the issue.
It says that port 4045 is unsafe for Electron. I tested that port in my environment (macos) and it works.
Maybe there is a configuration we can set in linux. I'm investigating. In the meantime, please, can you send me this file please?
/home/{your user}/.phasereditor2d/all-in-one/user-data.json
There are a map of the http ports and the projects. I want to change the port it is using.
Hum... I found chromium has a couple of ports labeled as unsafe, and 4045 is one of them:
https://chromium.googlesource.com/chromium/src.git/+/refs/heads/main/net/base/port_util.cc#96
I have to prevent using them in the all-in-one editor. In the meantime, please, send me the user-data..json
file for fixing it in your setup.
By the way, I think but just deleting the /home/{your user}/.phasereditor2d/all-in-one/user-data.json
file, the editor will take a new port for the server and should work.
Please can you confirm this temporal solution?
deleting this /home/{your user}/.phasereditor2d/all-in-one/user-data.json
its works just only for launch the program but when you open a directory of a game or project stay in blank screen and do nothing. you can close the editor and open again and the user-data.json recreated by the editor but again a blank screen appear and then you have to delete the file again.
I can see in the console that apparently when a project is opened the editor tries to launch another service on a different port than the one that started when the program was opened and then there it rejects it again and the blank screen appears.
And it shows the same error in the terminal? I guess you are not using an antivirus.
You also can try Phaser Editor 2D Core https://help-v3.phasereditor2d.com/intro/core.html
Hi! Did you have any progress?
not a all, i just used the core version with this command ./PhaserEditor2D -project GameDirectory and run in a port number in Web browser. Later I tried install the PhaserEditor2D-allInOne in directory /home/user/PhaserEditor2D-allInOne and run sh install.sh and then I copied phasereditor2d-PhaserEditor2D.desktop to the Desktop and then allowed to launch in the Desktop and start working.
Sorry, I don't understand.
You say you tried with Core. Did it work?
And you say you tried again with allInOne. Did it work?
yes, both ways worked doing those steps.
Good, then I close this.
Version
PhaserEditor2D-allInOne-3.36.0-linux
Description
[22366:1122/092317.546868:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
(node:22334) electron: Failed to load URL: http://127.0.0.1:4045/editor/ with error: ERR_UNSAFE_PORT
Possible solution