glest-source icon indicating copy to clipboard operation
glest-source copied to clipboard

Glest fails to create a user .glest directory and fails to crash when it cannot launch.

Open Jammyjamjamman opened this issue 5 years ago • 3 comments

If glest cannot access resources e.g. user files, it stops working but doesn't crash. This means glest has to be killed using kill -kill <glest-pid>.

It also fails to generate a .glest user directory freezes soon after due to this.

Jammyjamjamman avatar Apr 08 '19 18:04 Jammyjamjamman

I think that might be related to this:

andy@oceanus:~/Downloads$ ./Glest-2.0-x86_64.AppImage

File NOT FOUND, can't open file: [/home/andy/.glest/glestuser.ini]

shows in the terminal, nothing happens. no crash, doesn't go back to the prompt.

andy5995 avatar Apr 24 '19 07:04 andy5995

That should be easy enough to fix, btw. I wrote a function that'll first check for the existence of a directory, and create it if it doesn't exist: https://github.com/theimpossibleastronaut/rmw/blob/master/src/utils_rmw.c#L36

Another option is to use the boost library... But I tend to think there may already be a function in the existing code base that does that (I never had that problem with MegaGlest).

andy5995 avatar Apr 24 '19 08:04 andy5995

Just thought I'd leave an update here: afaik, @mathusummut has a plan to replace current file loading/ saving code with something better on this project, which is why a bugfix is not being rushed out.

Jammyjamjamman avatar Jun 08 '19 21:06 Jammyjamjamman