Pages: 1
  Print  
Author Topic: Issues on WinXP  (Read 1339 times)
Offline (Unknown gender) bgordebak
Posted on: July 17, 2014, 05:21:00 PM
"Guest"


Email
Hello there.

I run Enigma on Linux without issues. I want to port my little game to Windows, and trying to run Enigma on a virtual Windows XP machine.

I compiled the library fine, and it's there in enigma-dev/compileEGMf.dll But when I run the program it gives me this error message:

Operating System: Windows XP
Version: 5.1
Architecture: x86

Java Vendor: Oracle Corporation
Version: 1.7.0_65

Available processors (cores): 1
Free memory (bytes): 195928416
Maximum memory (bytes): 1013645312
Total memory available to JVM (bytes): 259522560

File system root: C:\
Total space (bytes): 10725732352
Free space (bytes): 4794122240
Usable space (bytes): 4794122240

File system root: D:\
Total space (bytes): 64647168
Free space (bytes): 0
Usable space (bytes): 0

Stack trace:
java.lang.Error: Invalid memory access
   at com.sun.jna.Native.invokePointer(Native Method)
   at com.sun.jna.Function.invokePointer(Function.java:470)
   at com.sun.jna.Function.invokeString(Function.java:651)
   at com.sun.jna.Function.invoke(Function.java:395)
   at com.sun.jna.Function.invoke(Function.java:315)
   at com.sun.jna.Library$Handler.invoke(Library.java:212)
   at com.sun.proxy.$Proxy0.libInit(Unknown Source)
   at org.enigma.EnigmaRunner$3.run(EnigmaRunner.java:196)

I'm fairly far from understanding Java (I'm more a C/C++ guy), I don't understand what does this mean. Any help?
Logged
Offline (Male) Josh @ Dreamland
Reply #1 Posted on: July 17, 2014, 10:26:53 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2959

View Profile Email
You get that error every time LGM starts? It sounds as though something that was supposed to be loaded was not, but you should have received a report much earlier in that case. Does the program crash? That's usually a sign that the invalid memory access was actually in the native code (ENIGMA).
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 (Unknown gender) bgordebak
Reply #2 Posted on: July 17, 2014, 10:39:10 PM
"Guest"


Email
You get that error every time LGM starts? It sounds as though something that was supposed to be loaded was not, but you should have received a report much earlier in that case. Does the program crash? That's usually a sign that the invalid memory access was actually in the native code (ENIGMA).

I get that error every time LGM starts. The program doesn't crash, but can't build.
Logged
Offline (Male) Josh @ Dreamland
Reply #3 Posted on: July 17, 2014, 10:50:47 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2959

View Profile Email
Perhaps Oracle has managed to get the JVM to ignore segmentation faults in library code. Are your repository and copy of LateralGM both up to date?
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 #4 Posted on: July 18, 2014, 01:37:26 AM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3110

View Profile
Well for one, ENGIMA's setup currently does not support XP because of its lack of environment variables to installation paths that do not contain spaces.

Simple fix, go to the following line in your local copy.
https://github.com/enigma-dev/enigma-dev/blob/master/settings.ey#L40

Change it to the following.
Code: (YAML) [Select]
       Default-Windows: "C:/ProgramData/ENIGMA/"
Then go to the root drive, you can optionally switch C: for whatever drive, and make sure the ProgramData folder exists there, if it doesn't then create it.

Then restart ENIGMA, and the issue should be resolved.
« Last Edit: December 25, 2014, 01:47:04 AM by Robert B Colton » Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Pages: 1
  Print