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

[Linux] After a second run it stops loading #10

Closed
PhaserEditor2D opened this Issue Dec 6, 2016 · 8 comments

Comments

Projects
None yet
2 participants
@PhaserEditor2D
Owner

PhaserEditor2D commented Dec 6, 2016

Sometimes the editor stops loading in Linux.

We don't know the reason yet but the problem is related to restore the previous workbench state. When you close the editor it saves the state to the workspace. This state contains some information like the opened editors and views.

To get the editor to open, you should make it to load without restore this state, so you have two options:

  • Execute the editor with the -clearPersistedState option, to clear the state and start with a fresh workbench.
./PhaserEditor -clearPersistedState
  • Execute the editor with the -persistState false option. In this way the editor will not save the state when it is closed:
./PhaserEditor -persistState false

If you want to make this options by default, edit the PhaserEditor.ini file and add the following at the end:

persistState=false
clearPersistedState=true

We recommend to do both things, clear the state at the startup and disable the state saving at the closing.

Thanks to @samsstuff for report and try to fix this issue.

References: How can I prevent my workbench model from being saved on exit? https://wiki.eclipse.org/Eclipse4/RCP/FAQ

@PhaserEditor2D PhaserEditor2D added bug linux and removed bug labels Dec 6, 2016

@samsstuff

This comment has been minimized.

Show comment
Hide comment
@samsstuff

samsstuff Dec 9, 2016

Hey Arian I made a simple quick bash script to put on my desktop so I won't have to keep typing it in, lazy man way to load it lol

for others that want to do this and don't know how, open a text editor (leafpad or whatever you use)

paste this into it:

#/bin/bash
/home/yourhomefolder/PhaserEditorNew/PhaserEditor -clearPersistedState

just make it a direct link to where you have the phaser bin file at and add -clearPersistedState

save as and name it loadPhaser.sh or whatever you want with .sh at the end
right click it give allow execution as program under permissions
place it on your desktop or where ever you want that way you don't have to repeat the terminal loading and just double click it as a normal icon and run it
Quick and simple
Hope it makes it easier for the linux crowd
Sam

samsstuff commented Dec 9, 2016

Hey Arian I made a simple quick bash script to put on my desktop so I won't have to keep typing it in, lazy man way to load it lol

for others that want to do this and don't know how, open a text editor (leafpad or whatever you use)

paste this into it:

#/bin/bash
/home/yourhomefolder/PhaserEditorNew/PhaserEditor -clearPersistedState

just make it a direct link to where you have the phaser bin file at and add -clearPersistedState

save as and name it loadPhaser.sh or whatever you want with .sh at the end
right click it give allow execution as program under permissions
place it on your desktop or where ever you want that way you don't have to repeat the terminal loading and just double click it as a normal icon and run it
Quick and simple
Hope it makes it easier for the linux crowd
Sam

@PhaserEditor2D

This comment has been minimized.

Show comment
Hide comment
@PhaserEditor2D

PhaserEditor2D Dec 9, 2016

Owner

Thanks @samsstuff

I keep looking for the reason of the problem, as soon as I find it I will upload an update.

Owner

PhaserEditor2D commented Dec 9, 2016

Thanks @samsstuff

I keep looking for the reason of the problem, as soon as I find it I will upload an update.

@samsstuff

This comment has been minimized.

Show comment
Hide comment
@samsstuff

samsstuff Dec 9, 2016

no problem I'm still looking into it myself, seems to be an error with quite a few folks with different versions of eclipse.
I've been looking into the log file again
Loading extension: org.eclipse.fx.osgi
eclipse.properties not found
also
/.options not found
might be another clue, I'll keep looking also.

At least the temp fix works great for now and is as good as it can get, we only have to reopen the js files, no big deal for that one.

no problem I'm still looking into it myself, seems to be an error with quite a few folks with different versions of eclipse.
I've been looking into the log file again
Loading extension: org.eclipse.fx.osgi
eclipse.properties not found
also
/.options not found
might be another clue, I'll keep looking also.

At least the temp fix works great for now and is as good as it can get, we only have to reopen the js files, no big deal for that one.

@PhaserEditor2D PhaserEditor2D added the bug label Feb 17, 2017

@PhaserEditor2D PhaserEditor2D added this to the 1.4.0 milestone Mar 15, 2017

@PhaserEditor2D PhaserEditor2D moved this from Research to Ready for next release in Development v2.0.0 Apr 7, 2017

@PhaserEditor2D PhaserEditor2D moved this from Ready for next release to In development in Development v2.0.0 Apr 7, 2017

@PhaserEditor2D PhaserEditor2D moved this from In development to Ready for next release in Development v2.0.0 Apr 7, 2017

@PhaserEditor2D

This comment has been minimized.

Show comment
Hide comment
@PhaserEditor2D

PhaserEditor2D Apr 7, 2017

Owner

Not happening anymore for the new version. In any case we are going to release a preview that will be available to test this issue.

Owner

PhaserEditor2D commented Apr 7, 2017

Not happening anymore for the new version. In any case we are going to release a preview that will be available to test this issue.

@samsstuff

This comment has been minimized.

Show comment
Hide comment
@samsstuff

samsstuff Apr 8, 2017

cool, I'll give it a try when ready, I'm using Manjaro arch base linux now so if it works on this it should work on all.
Sam

cool, I'll give it a try when ready, I'm using Manjaro arch base linux now so if it works on this it should work on all.
Sam

@PhaserEditor2D PhaserEditor2D removed this from Ready for next release in Development v2.0.0 Apr 14, 2017

@PhaserEditor2D PhaserEditor2D added this to In plan for next release in Development v2.0.0 May 11, 2017

@PhaserEditor2D PhaserEditor2D removed this from In plan for next release in Development v2.0.0 May 11, 2017

@PhaserEditor2D

This comment has been minimized.

Show comment
Hide comment
@PhaserEditor2D

PhaserEditor2D Jun 28, 2017

Owner

Now for version 1.4.1 the option -persistState false will be used by default in Linux so the user do not have to set it. The drawback is that the editor is not going to "remember" the last opened editors and views.

Yet we do not find the way to avoid the real bug.

Owner

PhaserEditor2D commented Jun 28, 2017

Now for version 1.4.1 the option -persistState false will be used by default in Linux so the user do not have to set it. The drawback is that the editor is not going to "remember" the last opened editors and views.

Yet we do not find the way to avoid the real bug.

@samsstuff

This comment has been minimized.

Show comment
Hide comment
@samsstuff

samsstuff Jul 11, 2017

works good, tested it on manjaro xfce, no issues except remembering which is no big deal at all, a couple of clicks open the pages needed.

Thanks for the update Arian

works good, tested it on manjaro xfce, no issues except remembering which is no big deal at all, a couple of clicks open the pages needed.

Thanks for the update Arian

@PhaserEditor2D

This comment has been minimized.

Show comment
Hide comment
@PhaserEditor2D

PhaserEditor2D Jan 4, 2018

Owner

Now I am working on linux so linux users will get a better product :)

I will close this, I think this is not happening anymore since we updated to Eclipse Oxygen.

Owner

PhaserEditor2D commented Jan 4, 2018

Now I am working on linux so linux users will get a better product :)

I will close this, I think this is not happening anymore since we updated to Eclipse Oxygen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment