← Back to team overview

ubuntu-x-swat team mailing list archive

[Bug 500226] [NEW] Freeze

 

Public bug reported:

Binary package hint: xorg

Hi,

Running this simple Jmonkeyengine demo (/example code) freezes X on
Ubuntu. I have tried this with 3 different ubuntu machines. Basically
this freeze starts to happen when the application is run about 3 - 5
times. The freeze happens when trying to exit the program. In fact, the
program somehow messes the graphics handling in such a way that if I run
OpenGL program, say, OpenArena, exiting openarena freezes X too.

(It might be that with this bug, a java applet could be created to
Internet which does Denial Of Service to Ubuntu or at least messes local
OpenGL applications making them to hang X.)

Please fix this bug, so that I can continue to develop games with
Jmonkeyengine.

See original post to jmonkeyengine mailing list: 
http://www.jmonkeyengine.com/forum/index.php?topic=12819.0

--- Jmonkeyengine Code that freezes X ---

import com.jme.bounding.BoundingSphere;
import com.jme.input.KeyInput;
import com.jme.input.controls.GameControl;
import com.jme.input.controls.GameControlManager;
import com.jme.input.controls.binding.KeyboardBinding;
import com.jme.input.controls.controller.ActionChangeController;
import com.jme.input.controls.controller.ControlChangeListener;
import com.jme.math.Vector3f;
import com.jme.scene.shape.Box;
import com.jmex.editors.swing.settings.GameSettingsPanel;
import com.jmex.game.StandardGame;
import com.jmex.game.state.DebugGameState;
import com.jmex.game.state.GameStateManager;


public class MyJmeTest
{
   
   void simpleTest() {
      StandardGame game = new StandardGame("A Simple Test");
      // Show settings screen
      try {
         GameSettingsPanel.prompt(game.getSettings());
      } catch (InterruptedException e) {
         // TODO Auto-generated catch block
         e.printStackTrace();
      }
      game.start();
 
      DebugGameState state = new DebugGameState();

        GameControlManager gcm=new GameControlManager();
        GameControl exitControl=gcm.addControl("exit");
        exitControl.addBinding(new KeyboardBinding(KeyInput.KEY_A));
      
       ActionChangeController quit = new ActionChangeController(exitControl, new ControlChangeListener() {
         public void changed(GameControl control, float oldValue, float newValue, float time) {
            if (newValue == 1.0f) {
               //game.shutdown();
               System.out.println("A key controller");
               System.exit(0);
            }
         }
       });
       state.getRootNode().addController(quit);
      
      Box box = new Box("my box", new Vector3f(0, 0, 0), 2, 2, 2);
      box.setModelBound(new BoundingSphere());
      box.updateModelBound();

      box.updateRenderState();
      state.getRootNode().attachChild(box);
      state.getRootNode().updateRenderState();

      GameStateManager.getInstance().attachChild(state);
      state.setActive(true);

   }
      
   public static void main(String[] args) {
      MyJmeTest app = new MyJmeTest();
      app.simpleTest();
   }
}

--------------------------

** Affects: xorg (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Freeze
https://bugs.launchpad.net/bugs/500226
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xorg in ubuntu.



Follow ups

References