Ciao a tutti, la mia applicazione deve far girare un suono in continua per un tempo illimitato. Il suono e' di breve durata quindi neccessita che ad ogni secondo viene riavviato nella posizione iniziale.
Il codice che utilizzo e' in modo semplificato il seguente:

codice:
@Override
    public void actionPerformed(ActionEvent e)
    {
            if( e.getSource() == soundManager) {
                synchronized (soundFileVector) {

                    if( true ) {
                        for (Clip clipAudio : soundFileVector) {
                            try {
                                clipAudio.setFramePosition(0);
                                clipAudio.start();
                            }
                            catch (Exception e1) {
                               
                                e1.printStackTrace();
                               
                            }
                        }
                    }
                }
            }

        
    }

Un action che scatta allo scadere di un timer ogni secondo! Fino qui tutto ok, il codice funziona e gira correttamente per parecchio tempo in esecuzione su Windows. Il problema nasce quando eseguo lo stesso codice su linux. All'inizio tutto ok, dopo poco piu di 1 ora ricevo SIGSEGV dalla libreria nativa che fa andare giu' tutta l'applicazione. Questo e' quello che restituisce la libreria:

codice:
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00002aaad7a36f3a, pid=8937, tid=1121270080
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (11.0-b16 mixed mode linux-amd64)
# Problematic frame:
# C  [libjsound.so+0x1bf3a]
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  T H R E A D  ---------------

Current thread (0x00002aaad81c1000):  JavaThread "Headspace mixer frame proc thread" daemon [_thread_in_native, id=8974, stack(0x0000000042c53000,0x0000000042d54000)]

siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x0000000000000000

Registers:
RAX=0x0000000000000000, RBX=0x0000000000000000, RCX=0x0000000000000000, RDX=0x00002aaad7a43eb4
RSP=0x0000000042d528a0, RBP=0x00002aaad872df48, RSI=0x00002aaad8710040, RDI=0x0000000000000000
R8 =0x00000000fffff000, R9 =0x0000000000000000, R10=0x0000000000000000, R11=0x00002aaad869ffd0
R12=0x0000000000000001, R13=0x00002aaad871f340, R14=0x0000000000000000, R15=0x0000000000000000
RIP=0x00002aaad7a36f3a, EFL=0x0000000000010246, CSGSFS=0x0000000000000033, ERR=0x0000000000000004
  TRAPNO=0x000000000000000e

Top of Stack: (sp=0x0000000042d528a0)
0x0000000042d528a0:   0000000000000000 0000000000000000
0x0000000042d528b0:   0000000000000000 0000008000000000
0x0000000042d528c0:   00002aaad81c11c0 0000000000000000
0x0000000042d528d0:   0000000000000000 0000000000000000
0x0000000042d528e0:   00002aaad871f340 0000000000000000
0x0000000042d528f0:   0000000000000003 0000000000000000
0x0000000042d52900:   00002aaad81c11c0 00002aaad7a3284d
0x0000000042d52910:   00002aaad8710040 0000000000000020
0x0000000042d52920:   00002aaad8710040 00002aaad81c11c0
0x0000000042d52930:   00002aaad81c11c0 00002aaad7b47308
0x0000000042d52940:   0000000009f46c52 00002aaad7a34ad8
0x0000000042d52950:   00002aaad8710040 00002aaad81c11c0
0x0000000042d52960:   00002aaad8733bd0 00002aaad7a3302e
0x0000000042d52970:   00002aaad8710040 00002aaad8733bd0
0x0000000042d52980:   0000000000000200 00002aaad7a32d6b
0x0000000042d52990:   00002aaad7b4edc0 00002aaad8733bd0
0x0000000042d529a0:   0000000000000007 00002aaad7b4ffc0
0x0000000042d529b0:   00002aaad81c11c0 00002aaad7b4edb0
0x0000000042d529c0:   0000000028d38000 00002aaad7a412cd
0x0000000042d529d0:   0000000042d52a20 0000000042d529e0
0x0000000042d529e0:   0000000b28d34460 00002aaa00002460
0x0000000042d529f0:   00002aaad81c1000 00002aaaafe193b0
0x0000000042d52a00:   0000000042d52a98 0000000000000102
0x0000000042d52a10:   00002aaaafe193b0 0000000042d52ac8
0x0000000042d52a20:   00002aaad81c1000 00002aaad7a1f592
0x0000000042d52a30:   0000000000000000 00002aaaab3387b0
0x0000000042d52a40:   0000000000000000 0000000000000000
0x0000000042d52a50:   00002aaad81c1000 0000000042d52a58
0x0000000042d52a60:   00002aaaafe193b0 0000000042d52ac8
0x0000000042d52a70:   00002aaaafe19910 0000000000000000
0x0000000042d52a80:   00002aaaafe193b0 0000000000000000
0x0000000042d52a90:   0000000042d52ab8 0000000042d52b10 

Instructions: (pc=0x00002aaad7a36f3a)
0x00002aaad7a36f2a:   e8 0c 81 e1 ff 0f 00 00 01 c0 89 c0 4a 8d 04 30
0x00002aaad7a36f3a:   0f b6 30 0f b6 50 02 29 f2 0f af d1 c1 fa 0c 8d 

Stack: [0x0000000042c53000,0x0000000042d54000],  sp=0x0000000042d528a0,  free space=1022k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libjsound.so+0x1bf3a]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  com.sun.media.sound.MixerThread.runNative(J)V+0
j  com.sun.media.sound.MixerThread.run()V+5
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x0000000046418800 JavaThread "JMX server connection timeout 35" daemon [_thread_blocked, id=8994, stack(0x0000000043057000,0x0000000043158000)]
  0x0000000046417800 JavaThread "RMI Scheduler(0)" daemon [_thread_blocked, id=8993, stack(0x0000000042f56000,0x0000000043057000)]
  0x00000000466d6400 JavaThread "RMI TCP Connection(1)-192.168.131.5" daemon [_thread_in_native, id=8992, stack(0x0000000042e55000,0x0000000042f56000)]
  0x000000004652cc00 JavaThread "RMI TCP Accept-0" daemon [_thread_in_native, id=8990, stack(0x000000004067b000,0x000000004077c000)]
  0x00000000461f6c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=8988, stack(0x0000000042d54000,0x0000000042e55000)]
  0x0000000046356400 JavaThread "pool-1-thread-1" [_thread_blocked, id=8980, stack(0x000000004284f000,0x0000000042950000)]
=>0x00002aaad81c1000 JavaThread "Headspace mixer frame proc thread" daemon [_thread_in_native, id=8974, stack(0x0000000042c53000,0x0000000042d54000)]
  0x00002aaad84a6800 JavaThread "Java Sound Event Dispatcher" daemon [_thread_blocked, id=8973, stack(0x0000000042b52000,0x0000000042c53000)]
  0x00000000464ae000 JavaThread "TCP server transport connection thread" daemon [_thread_in_native, id=8972, stack(0x0000000042a51000,0x0000000042b52000)]
  0x00002aaad8494800 JavaThread "Thread-4" [_thread_blocked, id=8971, stack(0x0000000042950000,0x0000000042a51000)]
  0x0000000045f32800 JavaThread "SwingWorker-pool-2-thread-5" [_thread_blocked, id=8969, stack(0x000000004274e000,0x000000004284f000)]
  0x00000000462b4400 JavaThread "SwingWorker-pool-2-thread-4" [_thread_blocked, id=8968, stack(0x000000004264d000,0x000000004274e000)]
  0x000000004658b400 JavaThread "Thread-3" [_thread_blocked, id=8967, stack(0x000000004118a000,0x000000004128b000)]
  0x00000000462b8000 JavaThread "SwingWorker-pool-2-thread-3" [_thread_blocked, id=8966, stack(0x0000000040921000,0x0000000040a22000)]
  0x00000000464ae800 JavaThread "SwingWorker-pool-2-thread-2" [_thread_blocked, id=8965, stack(0x00000000407d8000,0x00000000408d9000)]
  0x0000000046165400 JavaThread "SwingWorker-pool-2-thread-1" [_thread_blocked, id=8964, stack(0x00000000416c2000,0x00000000417c3000)]
  0x00000000462b0800 JavaThread "TCP server transport listener thread" daemon [_thread_in_native, id=8963, stack(0x000000004254c000,0x000000004264d000)]
  0x00000000463ea000 JavaThread "TimerQueue" daemon [_thread_blocked, id=8960, stack(0x0000000041089000,0x000000004118a000)]
  0x0000000045ec5000 JavaThread "DestroyJavaVM" [_thread_blocked, id=8938, stack(0x0000000040bd5000,0x0000000040cd6000)]
  0x00000000462f2000 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=8958, stack(0x000000004244b000,0x000000004254c000)]
  0x00000000462f0c00 JavaThread "AWT-Shutdown" [_thread_blocked, id=8957, stack(0x000000004183f000,0x0000000041940000)]
  0x00000000462e4800 JavaThread "AWT-XAWT" daemon [_thread_in_native, id=8956, stack(0x0000000040f88000,0x0000000041089000)]
  0x0000000046287800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=8955, stack(0x0000000040cd6000,0x0000000040dd7000)]
  0x00002aaad8002400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=8953, stack(0x0000000042249000,0x000000004234a000)]
  0x00000000460a6800 JavaThread "CompilerThread1" daemon [_thread_blocked, id=8952, stack(0x0000000040aa1000,0x0000000040ba2000)]
  0x00000000460a4000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=8951, stack(0x0000000042148000,0x0000000042249000)]
  0x00000000460a2000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=8950, stack(0x0000000040e87000,0x0000000040f88000)]
  0x0000000046083c00 JavaThread "Finalizer" daemon [_thread_blocked, id=8949, stack(0x00000000415c1000,0x00000000416c2000)]
  0x000000004607cc00 JavaThread "Reference Handler" daemon [_thread_blocked, id=8948, stack(0x00000000414c0000,0x00000000415c1000)]
...
Qualcuno ha qualche suggerimento a riguardo. Come posso risolvere il problema?? Grazie mille!!