FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Topics & Contributions
   Sound
(Moderators: pitaru, REAS)
   Sonia 2.6 trouble under Processing 68 and 69
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Sonia 2.6 trouble under Processing 68 and 69  (Read 514 times)
baffo

WWW
Sonia 2.6 trouble under Processing 68 and 69
« on: Apr 24th, 2004, 2:16pm »

Hello,
 
 I am doing this under Windows XP 2002. I have installed Sonia 2.6, and copied the QuickTime files from the WINDOWS32 directory. So now the code directory looks like this:
 
 460.586 JSynClasses.jar
 126.976 JSynV142.dll
 167.936 QTJava.dll
 970.995 QTJava.zip
 365.056 QTJavaNative.dll
  93.440 sine.aiff
  18.761 sonia_v2_6_c10.jar
 
(the sine.aiff file is from the tutorial pages). When running the following code:
 
Code:

Sample mySample;
 
void setup() {
  size(200,200);
  Sonia.start(this, 11000);
  println ("Sonia.getStatus() returns " + Sonia.getStatus());
  mySample = new Sample("sine.aiff");
  println ("loaded");
  mySample.play();
  println ("played");
}
 
void keyPressed() {
  mySample.play();
}
 
void loop() {
  // just do something
  rect(0,0,mouseX, mouseY);
}
 
public void stop(){
  Sonia.stop();
  super.stop();
}
 

 
The program hangs when running under Processing 68. Java needs then be killed manually. When running as an exported applet, it works fine, except that it seems to ignore mouse clicks. I have the same behaviour even if the keyPressed function has nothing related to sound, like this:
 
Code:

void keyPressed() {
  print ("duck");
}

If I move the sketch to Processing 69, I get this scary error, and I cannot export to applet.
 
java.lang.IncompatibleClassChangeError
 at FFTutils.initFFTtables(FFTutils.java:33)
 at FFTutils.<init>(FFTutils.java:21)
 at Sample.<clinit>(Sample.java:30)
 at Temporary_7875_7161.setup(Temporary_7875_7161.java:7)
 
I will not deny that I am confused...
 

-- art is not where you think you're going to find it
pitaru


WWW Email
Re: Sonia 2.6 trouble under Processing 68 and 69
« Reply #1 on: Apr 24th, 2004, 3:40pm »

I'm going to look into it right now. i can already tell you that the problem does not exist on P68 win2K.
 
could you please let me know more about your OS.. there is a general problem with XP International versions and Processing - where projects with a 'Code' folder hangs. There's a thread on it somewhere (sorry - not sure exactly where). We found out that certain versions of Norton AV, as well as some other software cause this problem.  
 
Other notes:  
- the sine.aiff file (and any other sampe files) should be in the 'data' folder instead of the 'code' folder.
 
- Do the same symptoms happen when you take out the QT files from the code folder?
 
 
-amit
 
 
***UPDATE***
Regarding P69 - i am having the same FFT error you mention. It looks like i'll have to recompile the sonia class files for P69. Wow - how could i have missed that one!
« Last Edit: Apr 24th, 2004, 4:11pm by pitaru »  
baffo

WWW
Re: Sonia 2.6 trouble under Processing 68 and 69
« Reply #2 on: Apr 24th, 2004, 5:12pm »

Ciao Amit,
 
 the control panel reports that this is
 
 Windows XP
 
 Professional
 
 Version 2002
 
 Service Pack 1
 
 version 5.1.2600
 
 I just unloaded the Symantec antivirus, but Processing keeps behaving (or misbehaving ) as before...
 

-- art is not where you think you're going to find it
pitaru


WWW Email
Re: Sonia 2.6 trouble under Processing 68 and 69
« Reply #3 on: Apr 24th, 2004, 5:25pm »

aha. but do you know if you are running the International or US version of XP?
 
also, does processing hang when you run a non-sonia project with an empty 'code' folder? what about a 'code' folder with some (any) class file in it?
 
(and.. sometimes we had to uninstall the NAV, not just unload it.)
 
-amit
 
ps - the P69 bug is fixed, i'll post the new version by the end of the day. also, i'll have some fixes for memory-leak issue mentioned last week.
« Last Edit: Apr 24th, 2004, 5:26pm by pitaru »  
mattgilbert

tangramkid WWW Email
Re: Sonia 2.6 trouble under Processing 68 and 69
« Reply #4 on: Apr 24th, 2004, 5:53pm »

hi,
 
It looks like you've got a fix coming, but in case your fix is only for Windows, I'm letting you know I get the same error using Processing 69 on Mac OSX 10.3.2. I don't get it in Processing 68. 69 works fine in sketches with no code folder.
 
Exception in thread "main" java.lang.IncompatibleClassChangeError
 at FFTutils.initFFTtables(FFTutils.java:33)
 at FFTutils.<init>(FFTutils.java:21)
 at Sample.<clinit>(Sample.java:30)
 at Temporary_9166_3795.setup(Temporary_9166_3795.java:90)  
 
Matt
 
 
 
baffo

WWW
Re: Sonia 2.6 trouble under Processing 68 and 69
« Reply #5 on: Apr 24th, 2004, 6:31pm »

> aha. but do you know if you are running the International or US version of XP?  
 
for the life of me, I cannot tell. Nowhere does it say "International" or "US". Since I am in Europe, I would assume International.  
 
> also, does processing hang when you run a non-sonia project with an empty 'code' folder? what about a 'code' folder with some (any) class file in it?  
 
just tried with, and I am happy to announce that some known-good code hangs wonderfully under 67, 68 and even 69 when I provide it with an empty code folder. After some user input, clicking and keyboard, it just hangs.
 
> (and.. sometimes we had to uninstall the NAV, not just unload it.)  
 
oooh, reluctance... but if it is necessary I will.
 
> ps - the P69 bug is fixed, i'll post the new version by the end of the day. also, i'll have some fixes for memory-leak issue mentioned last week
 
(applauds loudly)
 
thanks
     W.
 

-- art is not where you think you're going to find it
pitaru


WWW Email
Re: Sonia 2.6 trouble under Processing 68 and 69
« Reply #6 on: Apr 24th, 2004, 8:19pm »

Thanks for checking out the 'code' folder issue for me.
 
regarding NAV - i think it is a specific issue with the older versions of it (2002). In the thread i mentioned ( i think in the 'bugs' section), people solved the problem by updated to a leaner (just the AV without the rest of their suit), and newer version.
 
-amit
« Last Edit: Apr 24th, 2004, 8:20pm by pitaru »  
Pages: 1 

« Previous topic | Next topic »