Pages: [1]
  Print  
Author Topic: LGM Bug  (Read 1989 times)
Offline (Male) Josh @ Dreamland
Posted on: June 02, 2010, 01:38:11 AM

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

View Profile Email
Too lazy to log in to Ism's forum on Vista laptop.

File corruption error with totally-LGM-made GM6:

Unhandled Exception:
org.lateralgm.file.GmFormatException - java.lang.NullPointerException: null

Stack trace:
org.lateralgm.file.GmFileReader.readRooms(GmFileReader.java:877)
org.lateralgm.file.GmFileReader.readGmFile(GmFileReader.java:167)
org.lateralgm.main.Listener.openFile(Listener.java:115)
org.lateralgm.main.Listener.actionPerformed(Listener.java:452)
javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
javax.swing.DefaultButtonModel.setPressed(Unknown Source)
javax.swing.AbstractButton.doClick(Unknown Source)
javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
java.awt.Component.processMouseEvent(Unknown Source)
javax.swing.JComponent.processMouseEvent(Unknown Source)
java.awt.Component.processEvent(Unknown Source)
java.awt.Container.processEvent(Unknown Source)
java.awt.Component.dispatchEventImpl(Unknown Source)
java.awt.Container.dispatchEventImpl(Unknown Source)
java.awt.Component.dispatchEvent(Unknown Source)
java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
java.awt.Container.dispatchEventImpl(Unknown Source)
java.awt.Window.dispatchEventImpl(Unknown Source)
java.awt.Component.dispatchEvent(Unknown Source)
java.awt.EventQueue.dispatchEvent(Unknown Source)
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.awt.EventDispatchThread.run(Unknown Source)

This was made with an older version of LGM; it may be a bug with the old one that is now corrected. Of course, I'm still seeing "Unhandled exception..." But I don't speak Javanese.
« Last Edit: June 02, 2010, 01:41:32 AM by Josh @ Dreamland » 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) retep998
Reply #1 Posted on: June 02, 2010, 11:28:07 AM

Member
Location: Where else?
Joined: Jan 2010
Posts: 248
MSN Messenger - retep998@charter.net AOL Instant Messenger - retep998 Yahoo Instant Messenger - retep998
View Profile Email
Quote
it may be a bug with the old one that is now corrected.
It is.
So get the latest LGM and stop complaining.
Logged
Offline (Female) IsmAvatar
Reply #2 Posted on: June 02, 2010, 01:50:42 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 891

View Profile Email
Like retep said. Update to latest revision. Problem solved.
Logged
Offline (Male) Josh @ Dreamland
Reply #3 Posted on: June 02, 2010, 02:08:33 PM

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

View Profile Email
I hadn't realized there was a problem with my SVN repository. For some reason, it reported that the directories were locked and refused to clean up. A clean checkout fixed both problems.
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) Josh @ Dreamland
Reply #4 Posted on: June 26, 2010, 10:21:22 AM

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

View Profile Email
java.io.IOException: Unexpected end of file reached at filepos: 0
        at org.lateralgm.file.GmStreamDecoder.read(GmStreamDecoder.java:97)
        at org.lateralgm.file.StreamDecoder.read4(StreamDecoder.java:99)
        at org.enigma.EnigmaReader.readChanges(EnigmaReader.java:42)
        at org.enigma.EnigmaRunner.compile(EnigmaRunner.java:397)
        at org.enigma.EnigmaRunner.actionPerformed(EnigmaRunner.java:427)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1223)
        at javax.swing.plaf.basic.BasicMenuItemUI$Handler.menuDragMouseReleased(BasicMenuItemUI.java:1327)
        at javax.swing.JMenuItem.fireMenuDragMouseReleased(JMenuItem.java:568)
        at javax.swing.JMenuItem.processMenuDragMouseEvent(JMenuItem.java:465)
        at javax.swing.JMenuItem.processMouseEvent(JMenuItem.java:411)
        at javax.swing.MenuSelectionManager.processMouseEvent(MenuSelectionManager.java:305)
        at javax.swing.plaf.basic.BasicPopupMenuUI$MouseGrabber.eventDispatched(BasicPopupMenuUI.java:807)
        at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Toolkit.java:2353)
        at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2245)
        at java.awt.Toolkit.notifyAWTEventListeners(Toolkit.java:2203)
        at java.awt.Component.dispatchEventImpl(Component.java:4528)
        at java.awt.Container.dispatchEventImpl(Container.java:2099)
        at java.awt.Component.dispatchEvent(Component.java:4460)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
        at java.awt.Container.dispatchEventImpl(Container.java:2085)
        at java.awt.Window.dispatchEventImpl(Window.java:2478)
        at java.awt.Component.dispatchEvent(Component.java:4460)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)


This one didn't smell right to me. Happened when I clicked "Debug" instead of "Run". Will investigate further.
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 (Female) IsmAvatar
Reply #5 Posted on: June 26, 2010, 06:06:42 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 891

View Profile Email
When you click Debug, LGM passes a filename which it expects the enigma dll/exe to produce, which must follow a very specific format. If that format is not met, I would expect an error to be displayed. As such, this is intended behavior. Fix Enigma.
Logged
Offline (Male) RetroX
Reply #6 Posted on: June 27, 2010, 06:17:00 PM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
LGM still segfaults for me.

Java Version: 10600 (1.6.0_20)
Loading lib files in /opt/enigma/lgm16b4.jar
01_move.lgl 02_main1.lgl 03_main2.lgl 04_control.lgl
 05_score.lgl 06_extra.lgl 07_draw.lgl
SvnKit missing, corrupted, or unusable. Please download and place next to the enigma plugin in order to enable auto-update.
Initializing Enigma: #
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f898c5af304, pid=5829, tid=140228728006416
#
# JRE version: 6.0_20-b02
# Java VM: Java HotSpot(TM) 64-Bit Server VM (16.3-b01 mixed mode linux-amd64 )
# Problematic frame:
# C  [libc.so.6+0x62304]  fclose+0x4
#
# An error report file with more information is saved as:
# /tmp/hs_err_pid5829.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Intializing Parsers.Aborted
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Male) Josh @ Dreamland
Reply #7 Posted on: June 27, 2010, 09:40:30 PM

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

View Profile Email
Retro:
That's an ENIGMA problem, it seems.
Something's screwy about that. No one else has reported such a problem. I'll inspect on my other platforms, but I'll probably need your collaboration to figure out what's causing that.
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) polygone
Reply #8 Posted on: June 28, 2010, 04:13:42 PM

Contributor
Location: England
Joined: Mar 2009
Posts: 809

View Profile
Would it perhaps be a good idea to start an LGM sub-forum here?
Logged
I honestly don't know wtf I'm talking about but hopefully I can muddle my way through.
Offline (Male) RetroX
Reply #9 Posted on: June 28, 2010, 08:45:29 PM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
I figured out what the problem was, and it was quite a stupid one.  It was I hadn't chmod'd ENIGMA properly and LGM couldn't run.  Because of the way that ENIGMA is designed, you can't get away with read-only permissions.  It works well for Windows, but not quite for GNU/Linux. :/
« Last Edit: June 28, 2010, 08:47:47 PM by RetroX » Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Male) Josh @ Dreamland
Reply #10 Posted on: June 28, 2010, 11:31:52 PM

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

View Profile Email
That's good.

I'm just now realizing I didn't ask; Ism: what's that filename for? I have no insight to provide you in debug mode, only build mode... And I would expect an error, yes, but not an exception...
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 (Female) IsmAvatar
Reply #11 Posted on: July 04, 2010, 12:01:42 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 891

View Profile Email
Quote
Would it perhaps be a good idea to start an LGM sub-forum here?
http://forum.lateralgm.org
That forum gets my priority and attention. If it's not on that forum, I don't really consider it an official LGM-related post. That said, I'm still open to an LGM sub-forum, and I'll certainly make an effort to respond to anything in there. But at the end of the day, LGM != Enigma, and these are the enigma forums.

Quote
what's that filename for? I have no insight to provide you in debug mode, only build mode... And I would expect an error, yes, but not an exception...
Er... Oops. Confused Debug for Build in my explanation. Actually, I see no code difference between the code for build and debug aside from passing in 1 instead of 0 for compileEGMf(--,--,mode) //mode: 0 = run, 1 = debug, 2 = build, 3 = compile
« Last Edit: July 04, 2010, 12:07:33 PM by IsmAvatar » Logged
Pages: [1]
  Print