Pages: [1] 2
  Print  
Author Topic: LGM Stops Working When Using Build Menu Items  (Read 971 times)
Offline (Unknown gender) rc_lgm
Posted on: April 14, 2016, 01:28:43 PM
Member
Joined: Apr 2016
Posts: 9

View Profile
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.
Logged
Offline (Male) Goombert
Reply #1 Posted on: April 14, 2016, 03:35:30 PM

Contributor
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3063

View Profile WWW
Hi,

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

Thanks.
Logged
Offline (Unknown gender) rc_lgm
Reply #2 Posted on: April 15, 2016, 08:52:25 PM
Member
Joined: Apr 2016
Posts: 9

View Profile
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
Logged
Offline (Male) Goombert
Reply #3 Posted on: April 16, 2016, 03:59:18 AM

Contributor
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3063

View Profile WWW
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.
Logged
Offline (Unknown gender) rc_lgm
Reply #4 Posted on: April 16, 2016, 04:45:04 PM
Member
Joined: Apr 2016
Posts: 9

View Profile
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
Logged
Offline (Male) Goombert
Reply #5 Posted on: April 16, 2016, 04:46:47 PM

Contributor
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3063

View Profile WWW
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.
Logged
Offline (Unknown gender) rc_lgm
Reply #6 Posted on: April 16, 2016, 07:55:03 PM
Member
Joined: Apr 2016
Posts: 9

View Profile
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?
Logged
Offline (Male) Goombert
Reply #7 Posted on: April 17, 2016, 03:33:00 PM

Contributor
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3063

View Profile WWW
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.
Logged
Offline (Male) Josh @ Dreamland
Reply #8 Posted on: April 17, 2016, 05:28:36 PM

Prince of all Goldfish
Developer
Location: Ohio, United States
Joined: Feb 2008
Posts: 2950

View Profile Email
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).
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Male) Goombert
Reply #9 Posted on: April 17, 2016, 07:13:19 PM

Contributor
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3063

View Profile WWW
Ignore my last post, can you tell us the output of java -version? If you are using OpenJDK please try Oracle JDK.
Logged
Offline (Unknown gender) rc_lgm
Reply #10 Posted on: April 17, 2016, 08:49:44 PM
Member
Joined: Apr 2016
Posts: 9

View Profile
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$
Logged
Offline (Unknown gender) rc_lgm
Reply #11 Posted on: April 21, 2016, 12:42:59 PM
Member
Joined: Apr 2016
Posts: 9

View Profile
Is there anything else to try, or are we at an impasse?
Logged
Offline (Male) Goombert
Reply #12 Posted on: April 21, 2016, 02:45:42 PM

Contributor
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3063

View Profile WWW
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
« Last Edit: April 21, 2016, 02:57:01 PM by Robert B Colton » Logged
Offline (Unknown gender) rc_lgm
Reply #13 Posted on: April 21, 2016, 09:36:17 PM
Member
Joined: Apr 2016
Posts: 9

View Profile
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.
Logged
Offline (Male) Goombert
Reply #14 Posted on: April 21, 2016, 10:38:42 PM

Contributor
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3063

View Profile WWW
Do you have any other partitions or is this the only OS you have installed?
Logged
Pages: [1] 2
  Print