sinsinpub / jmugen

Automatically exported from code.google.com/p/jmugen
0 stars 0 forks source link

Attempt to select null character hangs a program #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
<b>What steps will reproduce the problem?</b>
1. run jmugen
2. go to arcade mode
3. try to select an empty character (that is none)...
4. proceed to VS screen...

<b>What is the expected output? What do you see instead?</b>
expected: To be determined.
actual: black screen
<i>
Aug 16, 2009 3:30:43 AM org.lee.mugen.renderer.jogl.JoglGameWindow display
SEVERE: java.io.FileNotFoundException:
~/workspace/JMugen.Launcher/../JMugen/resource/chars/null/null (No such
file or directory)
java.io.FileNotFoundException:
~/workspace/JMugen.Launcher/../JMugen/resource/chars/null/null (No such
file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:137)
    at java.io.FileInputStream.<init>(FileInputStream.java:96)
    at
org.lee.mugen.fight.select.Characters.getImageFromSpriteSFF(Characters.java:203)
    at org.lee.mugen.fight.select.Characters.getBigPortrait(Characters.java:181)
    at
org.lee.mugen.core.renderer.game.vsScreen.VsScreeenRender.render(VsScreeenRender
.java:87)
    at org.lee.mugen.core.GameVsScreen.render(GameVsScreen.java:47)
    at org.lee.mugen.renderer.jogl.JoglGameWindow.display(JoglGameWindow.java:429)
    at com.sun.opengl.impl.GLDrawableHelper.display(GLDrawableHelper.java:78)
    at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:435)
    at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)
    at
javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java
:452)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:216)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:602)
    at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275
)
    at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
    at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190
)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
</i>

<b>What version of the product are you using? On what operating system?</b>
jmugen r163
OS: Linux 2.6.26-2-amd64 #1 SMP x86_64 GNU/Linux Debian squeeze/sid

Please provide any additional information below.
Attached a temporary fix for the problem.
When you try to select a null character nothing happens.
But maybe we should do something?

Reason:
VS screen tries to load an image file from location:
data/chars/<charname>/<charname>*
But no such file exist, so we get a NullPointerException.
Null ref is returned from GameSelect.getSelectedSprite(Point p)

Original issue reported on code.google.com by stiny...@gmail.com on 15 Aug 2009 at 11:35

Attachments: