No internal or system editor


Jump to: navigation, search

This problem is typically encountered during a fresh install of LateralGM on Linux, when the user attempts to Edit a sprite subimage, a background image, or a sound's data. The user will click the button, and the program will pause for a very brief moment, and then the program will seem to behave as though the user never clicked the button.

Note that this problem can be avoided entirely by following the #Workaround before ever attempting to edit any images in LateralGM.


Stack Trace

The keen user might notice the terminal will dump the following lovely stack trace:

Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: no internal or system sprite editor
        at org.lateralgm.subframes.SpriteFrame$ImageEditor.start(
        at org.lateralgm.subframes.SpriteFrame$ImageEditor.<init>(
        at org.lateralgm.subframes.SpriteFrame.editSubimage(
        at org.lateralgm.subframes.SpriteFrame.handleToolbarEvent(
        at org.lateralgm.subframes.SpriteFrame.actionPerformed(
        at javax.swing.AbstractButton.fireActionPerformed(
        at javax.swing.AbstractButton$Handler.actionPerformed(
        at javax.swing.DefaultButtonModel.fireActionPerformed(
        at javax.swing.DefaultButtonModel.setPressed(
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(
        at java.awt.Component.processMouseEvent(
        at javax.swing.JComponent.processMouseEvent(
        at java.awt.Component.processEvent(
        at java.awt.Container.processEvent(
        at java.awt.Component.dispatchEventImpl(
        at java.awt.Container.dispatchEventImpl(
        at java.awt.Component.dispatchEvent(
        at java.awt.LightweightDispatcher.retargetMouseEvent(
        at java.awt.LightweightDispatcher.processMouseEvent(
        at java.awt.LightweightDispatcher.dispatchEvent(
        at java.awt.Container.dispatchEventImpl(
        at java.awt.Window.dispatchEventImpl(
        at java.awt.Component.dispatchEvent(
        at java.awt.EventQueue.dispatchEventImpl(
        at java.awt.EventQueue.access$000(
        at java.awt.EventQueue$
        at java.awt.EventQueue$
        at Method)
        at java.awt.EventQueue$
        at java.awt.EventQueue$
        at Method)
        at java.awt.EventQueue.dispatchEvent(
        at java.awt.EventDispatchThread.pumpOneEventForFilters(
        at java.awt.EventDispatchThread.pumpEventsForFilter(
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(
        at java.awt.EventDispatchThread.pumpEvents(
        at java.awt.EventDispatchThread.pumpEvents(
Caused by: java.lang.UnsupportedOperationException: The EDIT action is not supported on the current platform!
        at java.awt.Desktop.checkActionSupport(
        at java.awt.Desktop.edit(
        at org.lateralgm.subframes.SpriteFrame$ImageEditor.start(
        ... 40 more

The two unindented lines are the ones that tell the story:

UnsupportedOperationException: no internal or system sprite editor
Caused by: UnsupportedOperationException: The EDIT action is not supported on the current platform!


The Stack Trace Exception is just telling you that you have specified that LGM should use an external sprite editor (the default behavior for LGM), but your operating system/platform does not support the EDIT action. This is a known Java bug 7035369 that affects Linux platforms (especially Debian-based).

Unfortunately, the bug has been there for ages, and it doesn't seem like any effort is being put into correcting it, so we have to provide a workaround. Since there's not a nice way to figure out what your image editor on Linux is (the nice way would have been the EDIT action...), and we cannot assume that you have a specific editor installed (we used to assume the GIMP, but Ubuntu stopped shipping with that, so now Ubuntu pretty much doesn't have an image editor), which means that you, the user, must specify a desired image editor.


LateralGM allows you to specify a desired resource editor in its Settings/Preferences. Please see Overriding settings. The properties that you would wish to modify are:

And a typical value for, say, Gimp, would be: gimp %s

Long Term Solution

A long term solution is planned by simply providing an image editor with LateralGM (similar to what Game Maker does). In order for it to be included, however, it would need to meet several criteria.

Seeing as we've pretty much ruled out every image editor in existence, this leaves the final solution: build our own. And that's exactly what we've proposed. Enter Java Easy Image Editor (JEIE).

Personal tools