Jump to content
Excelsior Forums

milan

Members
  • Content count

    0
  • Joined

  • Last visited

Everything posted by milan

  1. program crashing randomly

    Hi to all, i am having the most annoying problem its persistent but unpredictable, it's random program crashing. I have compiled a java 2d game with JET for linux, all seems to be working perfect (game, swing menus, comport communication socket etc...). For some reason app breaks unexpectedly after a while no exceptions in log file just quits to desktop. I am running on 32 bit debian with minimal xorg and window manager, loading game after autologin. I have 4 PC's running game clients and at least once a day one of them quits to desktop, and others just keep on running. Crash happens when game is being played or when game is idling no rules there. I am logging java exceptions and memory usage to log files, before crashing i see normal amount of memory was being used 35Mb aprox and then just end of file and no exceptions logged. How can i figure out why my game is crashing? is it possible to configure logging.properties to save report to file? Any known problems with java 2d, librxtx... ?
  2. program crashing randomly

    Hello, I have tried compiling with JET8 trial version (i have licence for 7.6 only) and results are disappointing. Works quite unstable on old celleronM crashes on load sometimes. On new intel celleron works ok but with the same unexpected crashes. I have abandoned excelsior jet for now and switched to obfuscated encrypted executable jar and sun jvm on same linux box. It works flawlessly for 20+ days so far. Hope someday jet becomes stabile for long runtimes so i can go back to having secure code without encrypting classes my self and installing jvm on each machine. Thank you all for trying to help.
  3. program crashing randomly

    Hi, sorry for long delay i was on holiday, i am using ExcelsiorJet 7.6 standard edition / java SE 6 update 27. Crash is happening randomly on any of the pc's and they are two celeronM (old cpu) and two celleron (1155 socket) I have attached dmesg files and syslog from the last crash, last log form application was 24/06/2013 16:02:19 so this is the time of crash no exceptions insisde and no error file generated in folder. i see in syslog about crash time has something logged before was just cron jobs, this crash happened after 4 days running. Thank you for helping me. Archive.zip
  4. program crashing randomly

    No files in app directory just rt folder and app itself !?
  5. Hello, I am having a problem with sound after building application with Excelsior JET, Standard Edition for Linux 7.6. All is working excellent from eclipse or from executable jar, but after building with Jet sound is not being reproduced. I see no error message when running from console and paths are static and OK, i have been testing on debian and mint. Btw. other stuff is working perfect java2d (rendering even faster than from .jar), sockets, mysql and librxtx. Here is the code i use to play audio files: import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import javax.sound.sampled.AudioFormat; import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.Clip; import javax.sound.sampled.DataLine; import javax.sound.sampled.FloatControl; public class audio { public audio(String dje){ try{ AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(new File(""+dje)); AudioFormat format = audioInputStream.getFormat(); DataLine.Info info = new DataLine.Info(Clip.class, format); Clip clip = (Clip)AudioSystem.getLine(info); clip.open(audioInputStream); //FloatControl gain = (FloatControl) clip.getControl(FloatControl.Type.MASTER_GAIN); //gain.setValue(-10.0f); clip.start(); clip.drain(); clip.close(); } catch (Exception exc) { exc.printStackTrace(System.out); } } } Hope someone can help me around this issue, i am stuck in a loop.
  6. it' working public class audio extends Thread { private final int BUFFER_SIZE = 128000; private File soundFile; private AudioInputStream audioStream; private AudioFormat audioFormat; private SourceDataLine sourceLine; String strFilename =""; public static void main(String[] argumenti){ new audio("/sound/en/23.wav"); //s.run(); } public audio(String dje){ strFilename = dje; this.start(); } @Override public void run() { try { soundFile = new File(strFilename); } catch (Exception e) { e.printStackTrace(); } try { audioStream = AudioSystem.getAudioInputStream(soundFile); } catch (Exception e){ e.printStackTrace(); } audioFormat = audioStream.getFormat(); DataLine.Info info = new DataLine.Info(SourceDataLine.class, audioFormat); try { sourceLine = (SourceDataLine) AudioSystem.getLine(info); sourceLine.open(audioFormat); } catch (LineUnavailableException e) { e.printStackTrace(); } catch (Exception e) { e.printStackTrace(); } // Volume control gain value is in db positive or negative <make param> FloatControl gain = (FloatControl) sourceLine.getControl(FloatControl.Type.MASTER_GAIN); gain.setValue(-30.0f); sourceLine.start(); int nBytesRead = 0; byte[] abData = new byte[bUFFER_SIZE]; while (nBytesRead != -1) { try { nBytesRead = audioStream.read(abData, 0, abData.length); } catch (IOException e) { e.printStackTrace(); } if (nBytesRead >= 0) { @SuppressWarnings("unused") int nBytesWritten = sourceLine.write(abData, 0, nBytesRead); } } sourceLine.drain(); sourceLine.close(); } }
  7. Machine i used for developing and building is running linux Mint-14 (Nadia), edition MATE 32-BIT and openjdk-7-jdk. Test machine is Debian server with Xserver installed running swing app from console, running openjdk-6-jre. Today i setup Debian latest version with gnome desktop 32-bit and installed Java SE Runtime Environment (build 1.6.0_39-b04) You are correct code does not play audio on debian using oracle's JVM. Same behavior as when compiled with excelsior no exceptions and no sound reproduction. Since excelsior uses oracle's JVM then i think it is normal to behave in the same way. So any idea what can i do now i think my existing code for audio will not work with Excelsior. I really need to be able to play wav(or other format) short clips. Any idea is more then welcome.
×