chrsmithdemos / open-ig

Automatically exported from code.google.com/p/open-ig
0 stars 0 forks source link

Sound exception #904

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Java version: 1.7.0_72
Java vendor: Oracle Corporation (http://java.oracle.com/)
Java class version: 51.0
Operating system: Linux, amd64, 3.13.0-39-generic
Game version: 0.95.201
Command line: [-memonce, -hu]
Available memory: 290 MB
Maximum memory: 5333 MB
Parallelism: 4
Language: hu

Installed using the Launcher? yes

What steps will reproduce the problem?
I got this error beginning of the space battle.

Here is the error:
javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 
44100.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian not supported.
    at com.sun.media.sound.DirectAudioDevice$DirectDL.implOpen(DirectAudioDevice.java:513)
    at com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:121)
    at com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:153)
    at hu.openig.sound.Sounds.addLine(Sounds.java:174)
    at hu.openig.sound.Sounds.getLine(Sounds.java:189)
    at hu.openig.sound.Sounds.playSound(Sounds.java:258)
    at hu.openig.sound.Sounds.playSound(Sounds.java:237)
    at hu.openig.screen.CommonResources.playSound(CommonResources.java:1070)
    at hu.openig.screen.ScreenBase.effectSound(ScreenBase.java:303)
    at hu.openig.screen.items.SpacewarScreen.doSpacewarSimulation(SpacewarScreen.java:3750)
    at hu.openig.screen.items.SpacewarScreen$8.invoke(SpacewarScreen.java:3012)
    at hu.openig.screen.CommonResources.doTimerTick(CommonResources.java:869)
    at hu.openig.screen.CommonResources$1.actionPerformed(CommonResources.java:245)
    at javax.swing.Timer.fireActionPerformed(Timer.java:312)
    at javax.swing.Timer$DoPostEvent.run(Timer.java:244)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:694)
    at java.awt.EventQueue$3.run(EventQueue.java:692)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 
44100.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian not supported.
    at com.sun.media.sound.DirectAudioDevice$DirectDL.implOpen(DirectAudioDevice.java:513)
    at com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:121)
    at com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:153)
    at hu.openig.sound.Sounds.addLine(Sounds.java:174)
    at hu.openig.sound.Sounds.getLine(Sounds.java:189)
    at hu.openig.sound.Sounds.playSound(Sounds.java:258)
    at hu.openig.sound.Sounds.playSound(Sounds.java:237)
    at hu.openig.screen.CommonResources.playSound(CommonResources.java:1070)
    at hu.openig.screen.ScreenBase.effectSound(ScreenBase.java:303)
    at hu.openig.screen.items.SpacewarScreen.createBeam(SpacewarScreen.java:4330)
    at hu.openig.screen.items.SpacewarScreen.fireAtTargetOf(SpacewarScreen.java:4295)
    at hu.openig.screen.items.SpacewarScreen.doSpacewarSimulation(SpacewarScreen.java:3707)
    at hu.openig.screen.items.SpacewarScreen$8.invoke(SpacewarScreen.java:3012)
    at hu.openig.screen.CommonResources.doTimerTick(CommonResources.java:869)
    at hu.openig.screen.CommonResources$1.actionPerformed(CommonResources.java:245)
    at javax.swing.Timer.fireActionPerformed(Timer.java:312)
    at javax.swing.Timer$DoPostEvent.run(Timer.java:244)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:694)
    at java.awt.EventQueue$3.run(EventQueue.java:692)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

Original issue reported on code.google.com by szikes.a...@gmail.com on 10 Nov 2014 at 9:47

Attachments:

GoogleCodeExporter commented 9 years ago
Hi! Can you try these troubleshooting steps?

- Try running the game from command line with the padsp prefix: padsp java 
-Xmx832M -jar open-ig-NNNN.jar -memonce.

- Alternatively, try running the game from command line with the aoss prefix: 
aoss java -Xmx832M -jar open-ig-NNNN.jar -memonce.

Original comment by akarn...@gmail.com on 10 Nov 2014 at 9:57

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I have tried the padsp prefix and there was not problem. I have also tried the 
normal way and unfortunately I could not reproduce the issue. So it could fix 
the problem but I am not sure.

Original comment by szikes.a...@gmail.com on 11 Nov 2014 at 7:25

GoogleCodeExporter commented 9 years ago
This issue is very similar: 
https://code.google.com/p/open-ig/issues/detail?id=698

The problem comes from the sound driver probably. The notebook is the same in 
the two cases and only the kernel was updated to new one.

Original comment by szikes.a...@gmail.com on 11 Nov 2014 at 7:51

GoogleCodeExporter commented 9 years ago
Java sound issues on linux is quite a general problem which I can't workaround 
from code and my virtualized Ubuntu doesn't show any problems. In linux 
sometimes the system audio, such a simple system "ding" can disrupt other sound 
apps so turning off those and not playing anything in the background sometimes 
helps. I'm glad you got it working.

Original comment by akarn...@gmail.com on 11 Nov 2014 at 8:57