BUG(?) running csound api with 64bit java
Date | 2015-06-28 13:28 |
From | peiman khosravi |
Subject | BUG(?) running csound api with 64bit java |
Attachments | None None |
Hello, csound api works fine in 32 bit float java but crashes 64 bit java. Is this a known issue on OS X? Has anyone tested this lately? Many Thanks Peiman |
Date | 2015-06-28 13:54 |
From | Victor Lazzarini |
Subject | Re: BUG(?) running csound api with 64bit java |
32 bit float Java? We only distribute 64bit (doubles) these days (desktop platforms), e.g CsoundLib64.framework. ======================== Dr Victor Lazzarini Dean of Arts, Celtic Studies and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 28 Jun 2015, at 13:28, peiman khosravi |
Date | 2015-06-28 14:02 |
From | peiman khosravi |
Subject | Re: BUG(?) running csound api with 64bit java |
Attachments | None None |
Csound is running at 64 bit but the api only works inside java when I run java itself in 32 bit mode. On 28 June 2015 at 13:54, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: 32 bit float Java? We only distribute 64bit (doubles) these days (desktop platforms), e.g CsoundLib64.framework. |
Date | 2015-06-28 14:05 |
From | peiman khosravi |
Subject | Re: BUG(?) running csound api with 64bit java |
Attachments | None None |
This is the error I get in NetBeans as soon as I try to call csound api. run: # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x000000010e8bb388, pid=12082, tid=5891 # # JRE version: 7.0_25-b15 # Java VM: Java HotSpot(TM) 64-Bit Server VM (23.25-b01 mixed mode bsd-amd64 compressed oops) # Problematic frame: # C [liblwawt.dylib+0xe388] JNI_OnLoad+0x96 # # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # # An error report file with more information is saved as: # /Users/peimankhosravi/NetBeansProjects/Hello World App/hs_err_pid12082.log # # If you would like to submit a bug report, please visit: # http://bugreport.sun.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # Java Result: 134 BUILD SUCCESSFUL (total time: 1 second) On 28 June 2015 at 14:02, peiman khosravi <peimankhosravi@gmail.com> wrote:
|
Date | 2015-06-28 14:06 |
From | peiman khosravi |
Subject | Re: BUG(?) running csound api with 64bit java |
Attachments | None None |
And it only works in max when I start max in 32bit mode. On 28 June 2015 at 14:05, peiman khosravi <peimankhosravi@gmail.com> wrote:
|
Date | 2015-06-28 14:09 |
From | Victor Lazzarini |
Subject | Re: BUG(?) running csound api with 64bit java |
You are confusing 64bit floating point representation with processor architecture (x86_64 or i386). These are two different things. On OSX, the JNI library (and csound library) are fat binaries, built for both architectures. So, from that perspective, at least in that system you should be able to run it on either. Windows is i386 only I think. ======================== Dr Victor Lazzarini Dean of Arts, Celtic Studies and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 28 Jun 2015, at 14:02, peiman khosravi |
Date | 2015-06-28 14:11 |
From | peiman khosravi |
Subject | Re: BUG(?) running csound api with 64bit java |
Attachments | None None |
I see. Thanks Victor. So what do you think could be the problem here? On 28 June 2015 at 14:09, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: You are confusing 64bit floating point representation with processor architecture (x86_64 or i386). These are |
Date | 2015-06-28 14:13 |
From | Victor Lazzarini |
Subject | Re: BUG(?) running csound api with 64bit java |
It is complaining about liblwawt, not Csound > # Problematic frame: > # C [liblwawt.dylib+0xe388] JNI_OnLoad+0x96 ======================== Dr Victor Lazzarini Dean of Arts, Celtic Studies and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 28 Jun 2015, at 14:05, peiman khosravi |
Date | 2015-06-28 14:14 |
From | peiman khosravi |
Subject | Re: BUG(?) running csound api with 64bit java |
Attachments | None None |
This is what's installed here. Perhaps I need to update java runtime? Java(TM) SE Runtime Environment (build 1.7.0_25-b15) Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode) On 28 June 2015 at 14:11, peiman khosravi <peimankhosravi@gmail.com> wrote:
|
Date | 2015-06-28 14:21 |
From | peiman khosravi |
Subject | Re: BUG(?) running csound api with 64bit java |
Attachments | None None |
But is that being called by Csound? Now I'm simply trying to compile one of Steven's api examples in the terminal and this is the error I get. If I run any other java code it seems to work. # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x000000012effb388, pid=22228, tid=3847 # # JRE version: 7.0_25-b15 # Java VM: Java HotSpot(TM) 64-Bit Server VM (23.25-b01 mixed mode bsd-amd64 compressed oops) # Problematic frame: # C [liblwawt.dylib+0xe388] JNI_OnLoad+0x96 # # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # # An error report file with more information is saved as: # /Users/peimankhosravi/Desktop/hs_err_pid22228.log # # If you would like to submit a bug report, please visit: # http://bugreport.sun.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # /bin/sh: line 1: 22228 Abort trap: 6 java "Example1" [Finished in 1.5s with exit code 134] On 28 June 2015 at 14:13, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: It is complaining about liblwawt, not Csound |
Date | 2015-06-28 14:23 |
From | peiman khosravi |
Subject | Re: BUG(?) running csound api with 64bit java |
Attachments | None None |
This is the example I'm running: https://github.com/csound/csoundAPI_examples/blob/master/java/src/csoundapiexamples/Example1.java On 28 June 2015 at 14:21, peiman khosravi <peimankhosravi@gmail.com> wrote:
|
Date | 2015-06-28 14:25 |
From | peiman khosravi |
Subject | Re: BUG(?) running csound api with 64bit java |
Attachments | None None |
So I'm downloading a new version of java to see what happens. On 28 June 2015 at 14:23, peiman khosravi <peimankhosravi@gmail.com> wrote:
|
Date | 2015-06-28 14:25 |
From | Victor Lazzarini |
Subject | Re: BUG(?) running csound api with 64bit java |
Sorry, but I can’t help you there, it’s too java-specific. Maybe you should google liblwawt.dylib and see what it says. ======================== Dr Victor Lazzarini Dean of Arts, Celtic Studies and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 28 Jun 2015, at 14:14, peiman khosravi |
Date | 2015-06-28 14:27 |
From | peiman khosravi |
Subject | Re: BUG(?) running csound api with 64bit java |
Attachments | None None |
Well I don't really know what I'm talking about! I saw it here http://mail.openjdk.java.net/pipermail/macosx-port-dev/2013-July/005806.html On 28 June 2015 at 14:25, peiman khosravi <peimankhosravi@gmail.com> wrote:
|
Date | 2015-06-28 14:28 |
From | peiman khosravi |
Subject | Re: BUG(?) running csound api with 64bit java |
Attachments | None None |
Thanks. I'm looking it up. will post any results here. On 28 June 2015 at 14:25, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: Sorry, but I can’t help you there, it’s too java-specific. |
Date | 2015-06-28 14:35 |
From | Jacques Leplat |
Subject | Re: BUG(?) running csound api with 64bit java |
Attachments | None None |
I had a similar problem inEclipse a few days ago, it happened after I’d installed a fresh version of CSound.. I checked my Eclipse Installed JRE’s, and set my project to use JDK 1.8 (downloaded from Oracle). All works fine now. So maybe try using the latest JDK? All the best, Jacques
|
Date | 2015-06-28 15:09 |
From | peiman khosravi |
Subject | Re: BUG(?) running csound api with 64bit java |
Attachments | None None |
Thanks Jacques. I just downloaded the latest version from Oracle (1.8.0_45-b14) and the same issue. Is that the version you have? On 28 June 2015 at 14:35, Jacques Leplat <jleplat@j3ltd.com> wrote:
|
Date | 2015-06-28 15:13 |
From | Jacques Leplat |
Subject | Re: BUG(?) running csound api with 64bit java |
Attachments | None None |
macz:~ jacquesleplat$ java -version java version "1.8.0_25" Java(TM) SE Runtime Environment (build 1.8.0_25-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode) macz:~ jacquesleplat$
|
Date | 2015-06-28 15:13 |
From | Jacques Leplat |
Subject | Re: BUG(?) running csound api with 64bit java |
Attachments | None None |
Have you set your project to run using that JDK?
|
Date | 2015-06-28 15:19 |
From | peiman khosravi |
Subject | Re: BUG(?) running csound api with 64bit java |
Attachments | None None |
Thanks. Strange. I'm just running it in the terminal. It's a single file. Shouldn't this do it? peimans-air:Desktop peimankhosravi$ java -version java version "1.8.0_45" Java(TM) SE Runtime Environment (build 1.8.0_45-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode) peimans-air:Desktop peimankhosravi$ javac Example1.java peimans-air:Desktop peimankhosravi$ java Example1 # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x000000019671e875, pid=377, tid=3335 # # JRE version: Java(TM) SE Runtime Environment (8.0_45-b14) (build 1.8.0_45-b14) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.45-b02 mixed mode bsd-amd64 compressed oops) # Problematic frame: # C [libawt_lwawt.dylib+0x44875] JNI_OnLoad+0x91 # # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # # An error report file with more information is saved as: # /Users/peimankhosravi/Desktop/hs_err_pid377.log # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # Abort trap: 6 peimans-air:Desktop peimankhosravi$ On 28 June 2015 at 15:13, Jacques Leplat <jleplat@j3ltd.com> wrote:
|
Date | 2015-06-28 15:48 |
From | Jacques Leplat |
Subject | Re: BUG(?) running csound api with 64bit java |
Attachments | None None |
The jdk looks correct to me. Is the correct csound.jar being used? Sometimes I update csound and forget to point to the new caound jar Hope this helps
|
Date | 2015-06-28 15:53 |
From | peiman khosravi |
Subject | Re: BUG(?) running csound api with 64bit java |
Attachments | None None |
That's a good point. Let me do a clean reistall of csound. On 28 June 2015 at 15:48, Jacques Leplat <jleplat@j3ltd.com> wrote:
|
Date | 2015-06-28 15:58 |
From | peiman khosravi |
Subject | Re: BUG(?) running csound api with 64bit java |
Attachments | None None |
I just replaced the installed jar with the jar file that's inside the blue application/ package and all works. On 28 June 2015 at 15:48, Jacques Leplat <jleplat@j3ltd.com> wrote:
|
Date | 2015-06-28 16:04 |
From | peiman khosravi |
Subject | Re: BUG(?) running csound api with 64bit java |
Attachments | None None |
No false notice. Something's not right. Will keep investigating. On 28 June 2015 at 15:58, peiman khosravi <peimankhosravi@gmail.com> wrote:
|