Pages: 1 2
Author Topic: GMX Reader  (70,827 Views)
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #15 Posted on: January 19, 2014, 09:21:39 PM
Doesn't make sense you have 2GB ram. All it looks like it's saying is Java ran out of memory from loading a really large background. I loaded the project fine though with a 4GB ram, but doesn't make sense. Try updating both LGM and the plugin, and your actual Java install, it might actually be a JDK bug.
Offline (Unknown gender) time-killer-games
Guest


Email
Reply #16 Posted on: January 19, 2014, 10:57:22 PM
Alright, I updated Java and the JDK and still face the same issues. I give up.
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #17 Posted on: January 20, 2014, 02:24:23 AM
Alright, give me some time to look into it further, because I honestly have no ideas right now.
Offline (Unknown gender) time-killer-games
Guest


Email
Reply #18 Posted on: January 20, 2014, 02:25:15 AM
Thanks! =)
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #19 Posted on: January 20, 2014, 02:26:21 AM
Wait, damn you responded too fast before I could edit that. Josh said it is a Java setting, let me Google.

Basically you have Java Preferences set to not allow Java Apps to utilize a certain amount of memory, LGM uses anywhere between 60,000K on startup to 356,000K is the maximum I've seen it use, bout the same as Eclipse Java IDE that I use when coding LGM.

Edit: Follow the instructions here...
http://www.rcsb.org/pdb/staticHelp.do?p=help/viewers/appletMemory.html

Those might be incorrect, I am trying to find it, there's instructions somewhere.
https://www.google.com/#q=java+preferences+ram+

Edit 2:
Looks like you could open up settings.ini and change target parameter to the following.

Quoteidecommand="java -jar -Xms256m -Xmx512m"
Offline (Unknown gender) time-killer-games
Guest


Email
Reply #20 Posted on: January 20, 2014, 05:37:28 PM
Is this what you had in mind? I tried this among other slight variations. Still no luck.

Where is this "settings.ini" usually located? I've searched all my java folders for that file and no results. I even search for *.ini so I could open them to see if any of them had that parameter so I could update it's value like you suggested but none of them had it.
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #21 Posted on: January 20, 2014, 06:09:38 PM
Settings.ini is an ENIGMA file, it's in the top directory of your ENIGMA folder. Try it with it in that file.
Offline (Unknown gender) time-killer-games
Guest


Email
Reply #22 Posted on: January 20, 2014, 07:07:26 PM
It loaded! I'm so happy!!!
...now if I could just get it running
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #23 Posted on: January 20, 2014, 07:10:14 PM
Wow, that's crazy, I was starting to think that wasn't the issue. Glad I could help! Though I doubt you'll get it running, but nevertheless I can still help. Java is pretty bad with memory though, same as C#/VB/.NET.
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #24 Posted on: January 26, 2014, 07:55:09 AM
To come back to this, I just found a 512x512 ICO file on the internet, which I loaded into a project of mine, and copied and pasted to a GMX project, and both of the projects loaded fine with LGM.



This was the ICO file that worked.
https://www.dropbox.com/s/qc58z4kizehqy9h/512icon.ico

So I went to investigate further the program you used to convert the image, and sure enough it outputs corrupted Icon files when a size layer bigger than 192x192 was exported.
http://converticon.com/
I went there and attempted to convert the following 512x512 PNG of the Death Star to a 512x512 ICO

Then LGM had an exception trying to use it on a project just like the one you are getting, so my advice to you is to find another image converter.

That image converter did not work on ICO files larger than 192x192.
QuoteException in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
   at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
The reason is because every layer above 192x192 had a size of 0, which most likely means this image converter can't export ICO's at sizes larger than that, I went through and looked at the size of every layer, up to 192^2 was fine.
Something is clearly wrong with that converter, so please, use a different one.
Pages: 1 2