PhaserEditor2D / PhaserEditor2D-v3

A web-based IDE for HTML5 game development. Powered by Phaser.
https://phasereditor2d.com
MIT License
424 stars 56 forks source link

When launch a blank white screen in phaser editor windows appear and not working. #253

Closed kitecodingsrl closed 1 year ago

kitecodingsrl commented 1 year ago

Version

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

blank_screen_allinone

Possible solution

PhaserEditor2D commented 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.

PhaserEditor2D commented 1 year ago

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.

PhaserEditor2D commented 1 year ago

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?

kitecodingsrl commented 1 year ago

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.

PhaserEditor2D commented 1 year ago

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

PhaserEditor2D commented 1 year ago

Hi! Did you have any progress?

kitecodingsrl commented 1 year ago

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.

PhaserEditor2D commented 1 year ago

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?

kitecodingsrl commented 1 year ago

yes, both ways worked doing those steps.

PhaserEditor2D commented 1 year ago

Good, then I close this.