sorlok_reaves
 Joined: Dec 2013
Posts: 260
|
 |
Reply #15 Posted on: May 05, 2015, 02:46:39 AM |
|
|
|
Ah, my fix was just for saving + loading with constants. LGM doesn't actually freeze that much on Linux. I can still post the jar if you want.
Are you sure that LGM is getting enough memory on Windows?
As a point of reference, I've never had LGM crash during either of the 2 Ludum Dares I did (so, 2 * 48h).
|
|
|
TheExDeus
 Joined: Apr 2008
Posts: 1,860
|
 |
Reply #16 Posted on: May 05, 2015, 03:25:33 PM |
|
|
Maybe it's a Windows only bug. I haven't used LGM with Linux that much. Memory wise there shouldn't be a problem, as it crashes also when no project is opened. Just open LGM, add a room and press Run. At about 30% rate it will crash. And when it crashes with a an open project, the project doesn't need to be complicated. Here is a screenshot:  You can see it crashes at "Populating communication buffer". Memory is low (200mb) and the project is empty. In this case I had to compile the project 3 times until it crashed. The first two it didn't. On average it takes about three times, but it has happened on the first one as well. It does seem that the memory slightly increases every time I press Compile. Maybe some kind of memory leak? It doesn't allow me to debug in Windows, as the ENIGMA.exe doesn't even run then. And I don't know how to debug .jar's. Maybe on Linux regular wallgrind can do it?
|
|
|
TheExDeus
 Joined: Apr 2008
Posts: 1,860
|
 |
Reply #17 Posted on: May 10, 2015, 03:36:23 PM |
|
|
I cannot find any information on why it keeps crashing. Sometimes it's so frustrating that it crashes 10 times in a row. It doesn't write any crash dump (maybe windows does?) and I cannot run any of it in some kind of debug mode. I think the problem is in either the JNA or the plugin, as the crashes happen ONLY when using the plugin buttons (Run, Compile etc.). But that means the .jar talks with another .jar and so it makes sense that I cannot debug it. Maybe someone with more Java knowledge can see what is up. Because the crashing is unbearable. edit: The only windows log that is created is this: http://pastebin.com/3GT9hQ2f . I have a .egm that crashes every time on my PC (so I cannot run it at all), but runs fine on my laptop ("fine" meaning it crashes 50% of time, not 100%). When I save a .gmk I can get it to run with the 50% though.
|
|
|
WizzardMaker
 Joined: Feb 2015
Posts: 35
|
 |
Reply #18 Posted on: May 11, 2015, 09:43:52 AM |
|
|
|
A possible way to fix it is to finish the cpp/c version of LGM, that would fix the problem and remove the need of java
|
|
|
TheExDeus
 Joined: Apr 2008
Posts: 1,860
|
 |
Reply #19 Posted on: May 11, 2015, 11:12:40 AM |
|
|
|
You mean NaturalGM? Sadly we have problems with developers in this regard. Java was developed for almost 10 years or so, and thus it's not that easy to replicate all that very rapidly. If all else fail I will start creating an IDE in ENIGMA, but that will be slow and probably not really functional for a long time (especially if I make it alone). Right now I'm working on GUI stuff and fixing bugs in ENIGMA, but right now i'm the only one working on it.
|
|
|
Darkstar2
 Joined: Jan 2014
Posts: 1,238
|
 |
Reply #20 Posted on: May 14, 2015, 06:48:29 PM |
|
|
|
It is something I tried once doing and intended to, but I don't know the format used for the room data, it is all a mystery to me. If I were to make an IDE though, I would use the same system as GMS, meaning use all your resources externally instead of saving everything packed in the project file. Currently, the way enigma plugin works is that it takes whatever is loaded in memory and passes it along....it's ridiculous, I think GMS' has a better approach to handling this.
If we had a fully functional CLI it would greatly help to do an IDE. Or even integrate that CLI to the current IDE and get rid of the current plugin, as definitely what is causing stability issues is NOT the IDE alone but the enigma plugin. When using the LGM alone without the plugin it's a whole different ball game.
|
|
|
Goombert
 Joined: Jan 2013
Posts: 2,991
|
 |
Reply #21 Posted on: July 31, 2015, 05:59:36 AM |
|
|
|
Was this merged into the main repo?
I've moved this temporarily down to Function Peer Review as I am not quite sure where it belongs on the board.
|
|
|
TheExDeus
 Joined: Apr 2008
Posts: 1,860
|
 |
Reply #22 Posted on: July 31, 2015, 09:40:38 PM |
|
|
|
No, it is an extension and is not meant to be in main repo. It adds an additional dependency. We should have an additional way to share extensions trough some kind of extension database which could even be integrated in ENIGMA/LGM. But until more people are making extensions the forum suffices. I also have an AngelScript extension which I won't put in the repo. I haven't shared it here either though.
|
|
|
|
|
WizzardMaker
 Joined: Feb 2015
Posts: 35
|
 |
Reply #24 Posted on: September 06, 2015, 09:23:24 AM |
|
|
|
The included files are all in the mingw folder of my repository and I dont have enigma on my linux so I dont know what your include folder is called, you could move/copy those files to the folder of the extension and rewrite the include line
|
|
|
WizzardMaker
 Joined: Feb 2015
Posts: 35
|
 |
Reply #25 Posted on: January 11, 2016, 09:10:50 PM |
|
|
|
Its been a long time since somebody replied to this topic, and I want to know if there is something I should do with this extension, if somebody is using it, or if its utterly broken but no one wants to tell me.
|
|
|
|
|
Garo
 Joined: Sep 2014
Posts: 22
|
 |
Reply #27 Posted on: January 12, 2016, 06:30:00 PM |
|
|
|
I gave it a try. I several things and it seemed to finally work when I moved the folder from Additional to usr. Unfortunately it seems that the static library files weren't compatible with Linux.
|
|
|
WizzardMaker
 Joined: Feb 2015
Posts: 35
|
 |
Reply #28 Posted on: January 13, 2016, 05:39:11 AM |
|
|
|
Yeah, Linux is something I cant really try as I dont have a stable linux machine. I will try to fix some problems using a VM
|
|
|
|