ENIGMA Forums

Outsourcing saves money => Issues Help Desk => Topic started by: rc_lgm on April 14, 2016, 01:28:43 pm

Title: LGM Stops Working When Using Build Menu Items
Post by: rc_lgm on April 14, 2016, 01:28:43 pm
I have Ubuntu 15.1 and have just successfully downloaded, installed and built Enigma & LGM.  LGM starts fine and the sample gmk project loads fine.  However, when I go to the Build menu and run the project LGM craps out - doesn't even try to compile.  FYI, the terminal window reports that LGM is creating a swap and then the next line mentions a java error - something like "invalid pointer".  This problem occurs whenever I press the Run, Compile, or Rebuild All buttons - haven't tried all buttons under the Build menu.  FYI, I have java 7 and have used both the open source and Oracle versions - each time, following AskUnbutu's directions to totally wipe java before re-installation.  Even tried java 8...  No dice.

Is this a java issue or a LGM issue?  Are there any fixes available?  Thanks.
Title: Re: LGM Stops Working When Using Build Menu Items
Post by: Goombert on April 14, 2016, 03:35:30 pm
Hi,

Can you visit http://www.pastebin.com and show us the error log?

Thanks.
Title: Re: LGM Stops Working When Using Build Menu Items
Post by: rc_lgm on April 15, 2016, 08:52:25 pm
Hi.

Thanks for looking into this error.  Here's the link to the Pastebin post with the output of my terminal window.

http://pastebin.com/GvS6Wqvj
Title: Re: LGM Stops Working When Using Build Menu Items
Post by: Goombert on April 16, 2016, 03:59:18 am
Why are you adding -Djna.nosys = true to the command line parameters? Also, why are you passing $1 to LGM? I don't recall seeing these parameters anywhere before, I always just do java -jar lateralgm.jar and since your error seems to be JNA related I think that may be the cause. Try running it with just "java -jar lateralgm.jar" and nothing else.
Title: Re: LGM Stops Working When Using Build Menu Items
Post by: rc_lgm on April 16, 2016, 04:45:04 pm
Okay.   I will try that.  FYI,  I was following the command that is contained in the start.sh file - see http://enigma-dev.org/docs/Wiki/Install:Linux
Title: Re: LGM Stops Working When Using Build Menu Items
Post by: Goombert on April 16, 2016, 04:46:47 pm
That might be the problem then, just do the normal command. That flag is only needed when you have JNA already installed, because we ship our own it has to resolve which one to use.
Title: Re: LGM Stops Working When Using Build Menu Items
Post by: rc_lgm on April 16, 2016, 07:55:03 pm
Hi.

Thanks for the advice. Unfortunately, I seem to get the same error - see PasteBin link.  http://pastebin.com/Fr9r6rQ4

Is there anything else to try?
Title: Re: LGM Stops Working When Using Build Menu Items
Post by: Goombert on April 17, 2016, 03:33:00 pm
I figured it out, run with sudo.

Failed to create make directory at /home/house/.enigma/
Make directory is: "/home/house/.enigma/"

It has to store the binaries of ENIGMA's engine there, apparently you don't have permission.
Title: Re: LGM Stops Working When Using Build Menu Items
Post by: Josh @ Dreamland on April 17, 2016, 05:28:36 pm
He should always have permissions to his own home folder.

Make sure the directory ~/.enigma exists, and make sure you're the owner (running tools as root leads to folders being created as the root user, meaning you might not own them).
Title: Re: LGM Stops Working When Using Build Menu Items
Post by: Goombert on April 17, 2016, 07:13:19 pm
Ignore my last post, can you tell us the output of java -version? If you are using OpenJDK please try Oracle JDK.
Title: Re: LGM Stops Working When Using Build Menu Items
Post by: rc_lgm on April 17, 2016, 08:49:44 pm
Hi.

First, the ~/,enigma director does exist and my login account is the owner - see directory listing.  I am using the Oracle version of Java - see listing at the bottom of this email.  Originally, I tried using OpenJDK 7 and received the same invalid pointer error.  I then followed AskUbuntu's advice and wiped all traces of OpenJDK.  Afterwards, I installed the Oracle version of Java.  FYI, I made this switch to the Oracle version prior to my first post to this forum.  I hope this answers all of your questions.
 
house@house-Evo-N610c:~/.enigma$ dir
API_Switchboard.h
enigma_defines.txt
Preprocessor_Environment_Editable
enigma_blank.txt
enigma_searchdirs.txt


house@house-Evo-N610c:~/.enigma$ java -version
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) Client VM (build 24.80-b11, mixed mode)
house@house-Evo-N610c:~/.enigma$
Title: Re: LGM Stops Working When Using Build Menu Items
Post by: rc_lgm on April 21, 2016, 12:42:59 pm
Is there anything else to try, or are we at an impasse?
Title: Re: LGM Stops Working When Using Build Menu Items
Post by: Goombert on April 21, 2016, 02:45:42 pm
I am having a hard time because this is the first time anyone has ever reported this error message. I keep track of all the different issues reported, and this one is a completely new one. Can you open the Help->About dialog in LateralGM and tell me what version it says? We did just release a new version of LGM and I updated the installer script so I don't know if you got that one and it's my fault or if it is an issue in the older version.

I would also try increasing the maximum heap size when launching LGM. Try the following:
Code: [Select]
java -jar -Xms256m -Xmx1000m lateralgm.jar
Here is what comes after the second "Creating swap" in a successful build. Yours passes on the first but fails on the second.
Quote from: output_log.txt
Creating swap.
Dumping whiteSpace definitions...
Opening ENIGMA for parse...
ERROR(c:\users\owner\desktop\enigma\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/include//sdkddkver.h,186,48): #error NTDDI_VERSION and _WIN32_WINNT mismatch!
ERROR(__buildint,0,34): Invalid preprocessor directive `a'
ERROR(c:\users\owner\desktop\enigma\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/include//wtypes.h,631,1): Expected closing preprocessors before end of code
ERROR(c:\users\owner\desktop\enigma\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/include//wtypes.h,631,1): Expected closing preprocessors before end of code
ERROR(c:\users\owner\desktop\enigma\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/include//wtypes.h,631,1): Expected closing preprocessors before end of code
ERROR(C:/ProgramData/ENIGMA//API_Switchboard.h,35,46): Could not find Networking_Systems/None/include.h
  Checked C:/ProgramData/ENIGMA/
  Checked ENIGMAsystem/SHELL/
  Checked C:/ProgramData/ENIGMA/
  Checked c:\users\owner\desktop\enigma\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.8.2/../../../../include/c++/4.8.2/
  Checked c:\users\owner\desktop\enigma\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.8.2/../../../../include/c++/4.8.2/i686-w64-mingw32/
  Checked c:\users\owner\desktop\enigma\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.8.2/../../../../include/c++/4.8.2/backward/
  Checked c:\users\owner\desktop\enigma\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.8.2/include/
  Checked c:\users\owner\desktop\enigma\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.8.2/include-fixed/
  Checked c:\users\owner\desktop\enigma\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/include/
ERROR(c:\users\owner\desktop\enigma\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.8.2/../../../../include/c++/4.8.2//bits/c++0x_warning.h,34,62): #error This file requires compiler and library support for the \
ISO C++ 2011 standard. This support is currently experimental, and must be \
enabled with the -std=c++11 or -std=gnu++11 compiler options.
ERROR(SHELLmain.cpp,98,68): Could not find Preprocessor_Environment_Editable/IDE_EDIT_whitespace.h
  Checked ENIGMAsystem/SHELL
  Checked ENIGMAsystem/SHELL/
  Checked C:/ProgramData/ENIGMA/
  Checked c:\users\owner\desktop\enigma\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.8.2/../../../../include/c++/4.8.2/
  Checked c:\users\owner\desktop\enigma\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.8.2/../../../../include/c++/4.8.2/i686-w64-mingw32/
  Checked c:\users\owner\desktop\enigma\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.8.2/../../../../include/c++/4.8.2/backward/
  Checked c:\users\owner\desktop\enigma\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.8.2/include/
  Checked c:\users\owner\desktop\enigma\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.8.2/include-fixed/
  Checked c:\users\owner\desktop\enigma\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/include/
Successfully loaded builtin variant type
Successfully loaded builtin var type
Successfully loaded builtin varargs type
ERROR in parsing engine file: The parser isn't happy. Don't worry, it's never happy.
ERROR: UnknownContinuing anyway.
Creating dummy primitives for old ENIGMA
Initializing EDL Parser...
Grabbing locals...
Finding parent...Found parent scope
 >> Checking ancestor object_collisions
 >> Checking ancestor object_transform
 >> Checking ancestor object_graphics
 >> Checking ancestor object_timelines
 >> Checking ancestor object_planar
 >> Checking ancestor object_basic
Plugin: Delegating to ENIGMA (out of my hands now)
Determining build target...




Starting platform inspection
 - ENIGMAsystem/SHELL/Platforms/./Info/About.ey: Failed!
 - ENIGMAsystem/SHELL/Platforms/../Info/About.ey: Failed!
 - ENIGMAsystem/SHELL/Platforms/Android/Info/About.ey: Opened.
 - ENIGMAsystem/SHELL/Platforms/Cocoa/Info/About.ey: Opened.
 - ENIGMAsystem/SHELL/Platforms/General/Info/About.ey: Opened.
 - ENIGMAsystem/SHELL/Platforms/iPhone/Info/About.ey: Opened.
 - ENIGMAsystem/SHELL/Platforms/platforms_mandatory.h/Info/About.ey: Failed!
 - ENIGMAsystem/SHELL/Platforms/Win32/Info/About.ey: Opened.
 - ENIGMAsystem/SHELL/Platforms/xlib/Info/About.ey: Opened.
 Done.
Initializing dialog boxes
Initialized.
Building for mode (0)
Cleaning up from previous executions
 - Cleared parsed objects
 - Cleared room entries
 - Cleared shared locals list
 - Cleared event info
Adding extension
extension
Universal_System/Extensions
:
Alarms
Loading shared locals from extensions list
Finding parent...Found parent scope
 >> Checking ancestor object_collisions
 >> Checking ancestor object_transform
 >> Checking ancestor object_graphics
 >> Checking ancestor object_timelines
 >> Checking ancestor object_planar
 >> Checking ancestor object_basic
Location in memory of structure: 4fbae440
Copying resources:
Copying sprite names

Copying sound names

Copying background names

Copying path names

Copying script names

Copying shader names

Copying font names [1]
Copying timeline names

Copying object names

Copying room names

Copying constant names

SYNTAX CHECKING AND PRIMARY PARSING:
0 Scripts:
"Linking" scripts
`Linking' 0 scripts and 0 timelines in 0 passes...
Completing script "Link"
Done.
Completing timeline "Link"
Done.
0 Objects:
Creating room creation code scope and parsing
"Linking" scripts into the objects...
"Linking" timelines into the objects...
"Link" complete.
Tabulating maximum argument passes to each script
Finished
Writing executable information and resources.
Writing modes and settings
Writing object switch
Writing resource names and maxima
Writing timeline control information
Linking globals and ambiguous variables
Running Secondary Parse Passes
Writing events
Writing object data
Writing local accessors
Writing font data
Writing room data
Writing shader data
Running make from `mingw32-make.exe'
Full command line: mingw32-make.exe Game WORKDIR="C:/ProgramData/ENIGMA/" GMODE=Run GRAPHICS=OpenGL1 AUDIO=OpenAL COLLISION=Precise WIDGETS=Win32 NETWORKING=None PLATFORM=Win32 CXXFLAGS="-std=c++11 -I../Additional/i686-w64-mingw32/include" COMPILEPATH="Windows/Windows" EXTENSIONS=" Universal_System/Extensions/DateTime Universal_System/Extensions/Paths Universal_System/Extensions/DataStructures Universal_System/Extensions/MotionPlanning Universal_System/Extensions/Alarms Universal_System/Extensions/BasicGUI Universal_System/Extensions/ParticleSystems Universal_System/Extensions/Timelines" OUTPUTNAME="C:/Users/Owner/AppData/Local/Temp/egm6376538652707687857.exe" eTCpath=""


********* EXECUTE:
mingw32-make.exe Game WORKDIR="C:/ProgramData/ENIGMA/" GMODE=Run GRAPHICS=OpenGL1 AUDIO=OpenAL COLLISION=Precise WIDGETS=Win32 NETWORKING=None PLATFORM=Win32 CXXFLAGS="-std=c++11 -I../Additional/i686-w64-mingw32/include" COMPILEPATH="Windows/Windows" EXTENSIONS=" Universal_System/Extensions/DateTime Universal_System/Extensions/Paths Universal_System/Extensions/DataStructures Universal_System/Extensions/MotionPlanning Universal_System/Extensions/Alarms Universal_System/Extensions/BasicGUI Universal_System/Extensions/ParticleSystems Universal_System/Extensions/Timelines" OUTPUTNAME="C:/Users/Owner/AppData/Local/Temp/egm6376538652707687857.exe" eTCpath=""

******** Make Completed Successfully ********
`$exe` == '$exe': true
0 Adding Sprites to Game Module:
Done writing sprites.
Finalized sprites.
0 Sounds:
Done writing sounds.
0 Adding Backgrounds to Game Module:
Done writing backgrounds.
1 Adding Fonts to Game Module:
Iterating included fonts...
Allocated some font stuff
Copied metrics
Sorted out some font stuff
Expanded to 128 by 64
Finished packing font stuff.
Generating font map and metrics...
Allocated a big texture. Moving font into it...
Wrote all data for font 0
Done writing fonts.
0 Adding Paths to Game Module:
Done writing paths.
Closing game module and running if requested.
Running "C:/Users/Owner/AppData/Local/Temp/egm6376538652707687857.exe"
AL lib: (EE) alc_cleanup: 1 device not closed
Initializing audio system...
Opening ALURE devices.


********* EXECUTE:
C:/Users/Owner/AppData/Local/Temp/egm6376538652707687857.exe



Game returned 0
0
Title: Re: LGM Stops Working When Using Build Menu Items
Post by: rc_lgm on April 21, 2016, 09:36:17 pm
Hi.  Here is the LGM version information (Version 1.8.6.844).  I tried launching LGM with the command you suggested and received the same invalid pointer error - see Pastebin link  http://pastebin.com/6H7SEBS7

Thanks.
Title: Re: LGM Stops Working When Using Build Menu Items
Post by: Goombert on April 21, 2016, 10:38:42 pm
Do you have any other partitions or is this the only OS you have installed?
Title: Re: LGM Stops Working When Using Build Menu Items
Post by: rc_lgm on April 23, 2016, 08:48:56 pm
Hi.  My machine is setup as a dual boot - one partition is Lunbutu 15.1 and the other is an old Win XP.  Do you think this has something to do with the problem?
Title: Re: LGM Stops Working When Using Build Menu Items
Post by: Goombert on April 23, 2016, 09:25:22 pm
No I was just curious if maybe you had another Linux distro to try on another partition. I feel like something is wrong with your Java installation. Most of the other issues that people have I am able to fix, but like I said, I've never seen this one before at all...

One more thing you can try is to run "python install.py" one more time. You posted on the 14th and I released a new LGM and plugin on the 15th and updated those packages. So try running that script one more time and it will run an md5 hash over both of the jars and update them. Then try LGM again, you'll have the newer version, and maybe that will fix it.

I'll keep thinking of what else could be causing this issue.
Title: Re: LGM Stops Working When Using Build Menu Items
Post by: rc_lgm on April 24, 2016, 09:47:42 am
Okay.  I ran python install.py and here is a listing of the terminal session - see below.  I still get the same invalid pointer issue.  The new LGM also mentions that my Java version is old and, as such, the functionality might be limited - I have Oracle V7 installed.  Does the terminal session (below) look correct?   Also, does the new LGM require Java V8?  Thanks.

house@house-Evo-N610c:~/enigma-dev$ python install.py
Enigma package manager
Installing main please wait...
INFO: no dependencies for jnaJar
INFO: jnaJar already up-to-date (same hash)
INFO: no dependencies for lgm
INFO: lgm hash did not match (probably needs updated) localhash:87c8bf44a0631f27c91d6f77ad077b11 remotehash:1468f943456c5c8f1d7a26a5a9a0ba17
INFO: no dependencies for infolist
INFO: infolist hash did not match (probably needs updated) localhash:c3d39dd9c08ed430d137e72b9e823d2c remotehash:22bee0144dc32015e424bb88a4eac356
INFO: no dependencies for icns
INFO: icns hash did not match (probably needs updated) localhash:89343464f0330b22cbd50f31e200ad7c remotehash:35fc725e522a2d26a36ea99b0e13b4cf
INFO: no dependencies for alure
INFO: alure already up-to-date (same hash)
INFO: mac already up-to-date (same hash)
INFO: main hash did not match (probably needs updated) localhash:dff7d7a5bdb7594f973057c5275c39da remotehash:48149c286daf1b68da16e2c88e34987d
Finished updating main
house@house-Evo-N610c:~/enigma-dev$

Title: Re: LGM Stops Working When Using Build Menu Items
Post by: Goombert on April 24, 2016, 10:47:47 am
That is actually a slight mistake, LGM should not have output that message. I have already patched it in the master branch, it looks like that change was accidentally made within the last year. It is really just a warning to tell people that some function we use somewhere in the IDE may not be supported by your Java version (like how we don't support Drag and Drop on the main tree in < Java 6) so ignore for it right now. I am going to be patching some other things and then updating LGM again.
https://github.com/IsmAvatar/LateralGM/pull/278
https://github.com/IsmAvatar/LateralGM/pull/279

Can you actually run that script one more time and let me see the output? There's two dependencies there that got updated but I don't think they should have been updated or needed to be.

At this point though I really do think your issue is entirely the Java installation. Could you boot a live CD of Lubuntu and see if it works there?