Csound Csound-dev Csound-tekno Search About

[Cs-dev] Java crash on windows

Date2013-08-14 12:29
FromMichael Gogins
Subject[Cs-dev] Java crash on windows
AttachmentsNone  None  

Gdb tells me Java crash is caused by linstd++-6.dll of wrong model found in SysWOW64, where it does not belong and was put by some incompetent installer. I'm afraid to remove it because I did once before and lost my user profile.


Date2013-08-15 12:44
FromSteven Yi
SubjectRe: [Cs-dev] Java crash on windows
Hi Michael,

I'm wondering if this is the same issue. I need to re-test, but when I
was trying things out I thought I didn't quite get a crash, just an
UnsatisfiedLinkError exception for the function I was trying to call,
which I could catch and do something about.  The test java class I put
into the bug may not be doing any catching, but then Java should have
just exited rather than crash.

steven

On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
 wrote:
> Gdb tells me Java crash is caused by linstd++-6.dll of wrong model found in
> SysWOW64, where it does not belong and was put by some incompetent
> installer. I'm afraid to remove it because I did once before and lost my
> user profile.
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-08-15 13:32
FromMichael Gogins
SubjectRe: [Cs-dev] Java crash on windows
AttachmentsNone  None  
The problem I see is that the Csound JNI


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi <stevenyi@gmail.com> wrote:
Hi Michael,

I'm wondering if this is the same issue. I need to re-test, but when I
was trying things out I thought I didn't quite get a crash, just an
UnsatisfiedLinkError exception for the function I was trying to call,
which I could catch and do something about.  The test java class I put
into the bug may not be doing any catching, but then Java should have
just exited rather than crash.

steven

On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
<michael.gogins@gmail.com> wrote:
> Gdb tells me Java crash is caused by linstd++-6.dll of wrong model found in
> SysWOW64, where it does not belong and was put by some incompetent
> installer. I'm afraid to remove it because I did once before and lost my
> user profile.
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2013-08-15 13:44
FromMichael Gogins
SubjectRe: [Cs-dev] Java crash on windows
AttachmentsNone  None  
Sorry, fumble fingers.

The problem I see is that the csnd6 low level JNI Java class needs to call SWIG's initializer in _csound.dll. The initializer is the thing not found. Without it we don't have Java Csound. 

Still no solution, though. The initializer is in _jcsound.dll. Java doesn't find it. Java finds the CsoundEditor.jar (a better test than CSDPlayer.jar because it loads csnd6 right away) and loads and begins to run the Java code. The first thing to run is the static block that loads _jcsound.dll and calls the initializer. There are 4 steps here: locate the DLL, load the DLL, find the initializer function, call the initializer. We know that we don't find the initializer. I think it fails at the load stage because I have DLL hell on my notebook right now and I seem to recall catching the DLL load. I'll verify that later. In other words I think it starts to load _jcsound.dll and then there is a problem when _jcsound.dll is loading other things or initializating its own things.


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Thu, Aug 15, 2013 at 8:32 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
The problem I see is that the Csound JNI


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi <stevenyi@gmail.com> wrote:
Hi Michael,

I'm wondering if this is the same issue. I need to re-test, but when I
was trying things out I thought I didn't quite get a crash, just an
UnsatisfiedLinkError exception for the function I was trying to call,
which I could catch and do something about.  The test java class I put
into the bug may not be doing any catching, but then Java should have
just exited rather than crash.

steven

On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
<michael.gogins@gmail.com> wrote:
> Gdb tells me Java crash is caused by linstd++-6.dll of wrong model found in
> SysWOW64, where it does not belong and was put by some incompetent
> installer. I'm afraid to remove it because I did once before and lost my
> user profile.
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



Date2013-08-15 14:20
FromMichael Gogins
SubjectRe: [Cs-dev] Java crash on windows
AttachmentsNone  None  
Okay, I did some tests on another computer where I know I do not have the libstd++-6.dll DLL hell.

The Java problem I described in my previous email remains. So now we know that Java problems with csnd6 on Windows are not caused by incompatible MinGW DLLs, or at least not ONLY caused by them.

The CsoundQt problems I have described elsewhere are better. CsoundQt does not crash. But this might be because the versions of code I am running are different. I will try to test on another computer with exactly the same code tomorrow.


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Thu, Aug 15, 2013 at 8:44 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
Sorry, fumble fingers.

The problem I see is that the csnd6 low level JNI Java class needs to call SWIG's initializer in _csound.dll. The initializer is the thing not found. Without it we don't have Java Csound. 

Still no solution, though. The initializer is in _jcsound.dll. Java doesn't find it. Java finds the CsoundEditor.jar (a better test than CSDPlayer.jar because it loads csnd6 right away) and loads and begins to run the Java code. The first thing to run is the static block that loads _jcsound.dll and calls the initializer. There are 4 steps here: locate the DLL, load the DLL, find the initializer function, call the initializer. We know that we don't find the initializer. I think it fails at the load stage because I have DLL hell on my notebook right now and I seem to recall catching the DLL load. I'll verify that later. In other words I think it starts to load _jcsound.dll and then there is a problem when _jcsound.dll is loading other things or initializating its own things.


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Thu, Aug 15, 2013 at 8:32 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
The problem I see is that the Csound JNI


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi <stevenyi@gmail.com> wrote:
Hi Michael,

I'm wondering if this is the same issue. I need to re-test, but when I
was trying things out I thought I didn't quite get a crash, just an
UnsatisfiedLinkError exception for the function I was trying to call,
which I could catch and do something about.  The test java class I put
into the bug may not be doing any catching, but then Java should have
just exited rather than crash.

steven

On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
<michael.gogins@gmail.com> wrote:
> Gdb tells me Java crash is caused by linstd++-6.dll of wrong model found in
> SysWOW64, where it does not belong and was put by some incompetent
> installer. I'm afraid to remove it because I did once before and lost my
> user profile.
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel




Date2013-08-21 03:56
FromSteven Yi
SubjectRe: [Cs-dev] Java crash on windows
Hi Michael,

I was trying to setup to get a build working on Windows to see if I
can further diagnose what's going on.  I currently have the stock
mingw/msys installed from sf.net/projects/mingw. I noticed in your How
to Build doc that you are using mingwbuilds version.  Could you
advise: should I uninstalled mingw/msys and use just mingwbuilds?
(I.e. better to start clean).

Thanks!
steven

On Thu, Aug 15, 2013 at 8:44 AM, Michael Gogins
 wrote:
> Sorry, fumble fingers.
>
> The problem I see is that the csnd6 low level JNI Java class needs to call
> SWIG's initializer in _csound.dll. The initializer is the thing not found.
> Without it we don't have Java Csound.
>
> Still no solution, though. The initializer is in _jcsound.dll. Java doesn't
> find it. Java finds the CsoundEditor.jar (a better test than CSDPlayer.jar
> because it loads csnd6 right away) and loads and begins to run the Java
> code. The first thing to run is the static block that loads _jcsound.dll and
> calls the initializer. There are 4 steps here: locate the DLL, load the DLL,
> find the initializer function, call the initializer. We know that we don't
> find the initializer. I think it fails at the load stage because I have DLL
> hell on my notebook right now and I seem to recall catching the DLL load.
> I'll verify that later. In other words I think it starts to load
> _jcsound.dll and then there is a problem when _jcsound.dll is loading other
> things or initializating its own things.
>
>
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Thu, Aug 15, 2013 at 8:32 AM, Michael Gogins 
> wrote:
>>
>> The problem I see is that the Csound JNI
>>
>>
>> ===========================
>> Michael Gogins
>> Irreducible Productions
>> http://michaelgogins.tumblr.com
>> Michael dot Gogins at gmail dot com
>>
>>
>> On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi  wrote:
>>>
>>> Hi Michael,
>>>
>>> I'm wondering if this is the same issue. I need to re-test, but when I
>>> was trying things out I thought I didn't quite get a crash, just an
>>> UnsatisfiedLinkError exception for the function I was trying to call,
>>> which I could catch and do something about.  The test java class I put
>>> into the bug may not be doing any catching, but then Java should have
>>> just exited rather than crash.
>>>
>>> steven
>>>
>>> On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
>>>  wrote:
>>> > Gdb tells me Java crash is caused by linstd++-6.dll of wrong model
>>> > found in
>>> > SysWOW64, where it does not belong and was put by some incompetent
>>> > installer. I'm afraid to remove it because I did once before and lost
>>> > my
>>> > user profile.
>>> >
>>> >
>>> >
>>> > ------------------------------------------------------------------------------
>>> > Get 100% visibility into Java/.NET code with AppDynamics Lite!
>>> > It's a free troubleshooting tool designed for production.
>>> > Get down to code-level detail for bottlenecks, with <2% overhead.
>>> > Download for free and get started troubleshooting in minutes.
>>> >
>>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>>> > _______________________________________________
>>> > Csound-devel mailing list
>>> > Csound-devel@lists.sourceforge.net
>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Get 100% visibility into Java/.NET code with AppDynamics Lite!
>>> It's a free troubleshooting tool designed for production.
>>> Get down to code-level detail for bottlenecks, with <2% overhead.
>>> Download for free and get started troubleshooting in minutes.
>>>
>>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-08-21 04:14
FromMichael Gogins
SubjectRe: [Cs-dev] Java crash on windows
AttachmentsNone  None  
People do seem to be switching to mingw-builds. I am using 4.8.1, dwarf-2, posix threads, 32 bits. If you use the same version we have a much better chance of understanding what is going on.

I think there is something pretty subtle going on both with Java and with the CsoundPerformanceThread. 

I have proved that the existence of incompatible MinGW runtime libraries can be a problem. I have also proved that that is not the ONLY problem, at least, on my computer. I succeeded finally in removing incompatible MinGW runtime libraries from my SysWOW64 directory (!) so I now can run CsoundAC code, but I am still having problems with the performance thread and with Java. Different computers behave differently, e.g. I can run CsoundQt at work but not at home.

In my programming life, these errors can arise from several errors but one common source is uninitialized members of structs and classes that contain zeroes on some machines and junk on other machines. Or writes past buffer ends that poke holes in junk on some machines and in vital organs on other machines. Having multiple threads makes this harder...

Regards,
Mike

I wish I had something like valgrind on Windows but I can't afford the equivalent.


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Tue, Aug 20, 2013 at 10:56 PM, Steven Yi <stevenyi@gmail.com> wrote:
Hi Michael,

I was trying to setup to get a build working on Windows to see if I
can further diagnose what's going on.  I currently have the stock
mingw/msys installed from sf.net/projects/mingw. I noticed in your How
to Build doc that you are using mingwbuilds version.  Could you
advise: should I uninstalled mingw/msys and use just mingwbuilds?
(I.e. better to start clean).

Thanks!
steven

On Thu, Aug 15, 2013 at 8:44 AM, Michael Gogins
<michael.gogins@gmail.com> wrote:
> Sorry, fumble fingers.
>
> The problem I see is that the csnd6 low level JNI Java class needs to call
> SWIG's initializer in _csound.dll. The initializer is the thing not found.
> Without it we don't have Java Csound.
>
> Still no solution, though. The initializer is in _jcsound.dll. Java doesn't
> find it. Java finds the CsoundEditor.jar (a better test than CSDPlayer.jar
> because it loads csnd6 right away) and loads and begins to run the Java
> code. The first thing to run is the static block that loads _jcsound.dll and
> calls the initializer. There are 4 steps here: locate the DLL, load the DLL,
> find the initializer function, call the initializer. We know that we don't
> find the initializer. I think it fails at the load stage because I have DLL
> hell on my notebook right now and I seem to recall catching the DLL load.
> I'll verify that later. In other words I think it starts to load
> _jcsound.dll and then there is a problem when _jcsound.dll is loading other
> things or initializating its own things.
>
>
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Thu, Aug 15, 2013 at 8:32 AM, Michael Gogins <michael.gogins@gmail.com>
> wrote:
>>
>> The problem I see is that the Csound JNI
>>
>>
>> ===========================
>> Michael Gogins
>> Irreducible Productions
>> http://michaelgogins.tumblr.com
>> Michael dot Gogins at gmail dot com
>>
>>
>> On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi <stevenyi@gmail.com> wrote:
>>>
>>> Hi Michael,
>>>
>>> I'm wondering if this is the same issue. I need to re-test, but when I
>>> was trying things out I thought I didn't quite get a crash, just an
>>> UnsatisfiedLinkError exception for the function I was trying to call,
>>> which I could catch and do something about.  The test java class I put
>>> into the bug may not be doing any catching, but then Java should have
>>> just exited rather than crash.
>>>
>>> steven
>>>
>>> On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
>>> <michael.gogins@gmail.com> wrote:
>>> > Gdb tells me Java crash is caused by linstd++-6.dll of wrong model
>>> > found in
>>> > SysWOW64, where it does not belong and was put by some incompetent
>>> > installer. I'm afraid to remove it because I did once before and lost
>>> > my
>>> > user profile.
>>> >
>>> >
>>> >
>>> > ------------------------------------------------------------------------------
>>> > Get 100% visibility into Java/.NET code with AppDynamics Lite!
>>> > It's a free troubleshooting tool designed for production.
>>> > Get down to code-level detail for bottlenecks, with <2% overhead.
>>> > Download for free and get started troubleshooting in minutes.
>>> >
>>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>>> > _______________________________________________
>>> > Csound-devel mailing list
>>> > Csound-devel@lists.sourceforge.net
>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Get 100% visibility into Java/.NET code with AppDynamics Lite!
>>> It's a free troubleshooting tool designed for production.
>>> Get down to code-level detail for bottlenecks, with <2% overhead.
>>> Download for free and get started troubleshooting in minutes.
>>>
>>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2013-08-27 21:15
FromSteven Yi
SubjectRe: [Cs-dev] Java crash on windows
Hi Michael and All,

I just spent a bit of time looking into this and found some very
heinous stuff going on in windows.  It looks to me that CMake actually
found all types of libraries from the PATH to use.  That meant some
libraries from C:\Program Files (x86)\Csound\bin were found, others
from C:\Program Files (x86)\Csound6\bin, and others from my MSYS
/usr/local/lib and custom set paths.  I get the impression this could
be a source of some of the issues we're seeing both with the Java
library and other windows oddities.

I mostly noticed this in looking at my CmakeCache.txt.  I'm wondering
if the Java lib is linking to Csound 5's csnd.dll instead of
Csound6's.  If that's the case, then perhaps we can change csnd to be
csnd6 instead.

I've got to move on for the day, but will come back to this tomorrow.



On Tue, Aug 20, 2013 at 11:14 PM, Michael Gogins
 wrote:
> People do seem to be switching to mingw-builds. I am using 4.8.1, dwarf-2,
> posix threads, 32 bits. If you use the same version we have a much better
> chance of understanding what is going on.
>
> I think there is something pretty subtle going on both with Java and with
> the CsoundPerformanceThread.
>
> I have proved that the existence of incompatible MinGW runtime libraries can
> be a problem. I have also proved that that is not the ONLY problem, at
> least, on my computer. I succeeded finally in removing incompatible MinGW
> runtime libraries from my SysWOW64 directory (!) so I now can run CsoundAC
> code, but I am still having problems with the performance thread and with
> Java. Different computers behave differently, e.g. I can run CsoundQt at
> work but not at home.
>
> In my programming life, these errors can arise from several errors but one
> common source is uninitialized members of structs and classes that contain
> zeroes on some machines and junk on other machines. Or writes past buffer
> ends that poke holes in junk on some machines and in vital organs on other
> machines. Having multiple threads makes this harder...
>
> Regards,
> Mike
>
> I wish I had something like valgrind on Windows but I can't afford the
> equivalent.
>
>
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Tue, Aug 20, 2013 at 10:56 PM, Steven Yi  wrote:
>>
>> Hi Michael,
>>
>> I was trying to setup to get a build working on Windows to see if I
>> can further diagnose what's going on.  I currently have the stock
>> mingw/msys installed from sf.net/projects/mingw. I noticed in your How
>> to Build doc that you are using mingwbuilds version.  Could you
>> advise: should I uninstalled mingw/msys and use just mingwbuilds?
>> (I.e. better to start clean).
>>
>> Thanks!
>> steven
>>
>> On Thu, Aug 15, 2013 at 8:44 AM, Michael Gogins
>>  wrote:
>> > Sorry, fumble fingers.
>> >
>> > The problem I see is that the csnd6 low level JNI Java class needs to
>> > call
>> > SWIG's initializer in _csound.dll. The initializer is the thing not
>> > found.
>> > Without it we don't have Java Csound.
>> >
>> > Still no solution, though. The initializer is in _jcsound.dll. Java
>> > doesn't
>> > find it. Java finds the CsoundEditor.jar (a better test than
>> > CSDPlayer.jar
>> > because it loads csnd6 right away) and loads and begins to run the Java
>> > code. The first thing to run is the static block that loads _jcsound.dll
>> > and
>> > calls the initializer. There are 4 steps here: locate the DLL, load the
>> > DLL,
>> > find the initializer function, call the initializer. We know that we
>> > don't
>> > find the initializer. I think it fails at the load stage because I have
>> > DLL
>> > hell on my notebook right now and I seem to recall catching the DLL
>> > load.
>> > I'll verify that later. In other words I think it starts to load
>> > _jcsound.dll and then there is a problem when _jcsound.dll is loading
>> > other
>> > things or initializating its own things.
>> >
>> >
>> > ===========================
>> > Michael Gogins
>> > Irreducible Productions
>> > http://michaelgogins.tumblr.com
>> > Michael dot Gogins at gmail dot com
>> >
>> >
>> > On Thu, Aug 15, 2013 at 8:32 AM, Michael Gogins
>> > 
>> > wrote:
>> >>
>> >> The problem I see is that the Csound JNI
>> >>
>> >>
>> >> ===========================
>> >> Michael Gogins
>> >> Irreducible Productions
>> >> http://michaelgogins.tumblr.com
>> >> Michael dot Gogins at gmail dot com
>> >>
>> >>
>> >> On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi  wrote:
>> >>>
>> >>> Hi Michael,
>> >>>
>> >>> I'm wondering if this is the same issue. I need to re-test, but when I
>> >>> was trying things out I thought I didn't quite get a crash, just an
>> >>> UnsatisfiedLinkError exception for the function I was trying to call,
>> >>> which I could catch and do something about.  The test java class I put
>> >>> into the bug may not be doing any catching, but then Java should have
>> >>> just exited rather than crash.
>> >>>
>> >>> steven
>> >>>
>> >>> On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
>> >>>  wrote:
>> >>> > Gdb tells me Java crash is caused by linstd++-6.dll of wrong model
>> >>> > found in
>> >>> > SysWOW64, where it does not belong and was put by some incompetent
>> >>> > installer. I'm afraid to remove it because I did once before and
>> >>> > lost
>> >>> > my
>> >>> > user profile.
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> > ------------------------------------------------------------------------------
>> >>> > Get 100% visibility into Java/.NET code with AppDynamics Lite!
>> >>> > It's a free troubleshooting tool designed for production.
>> >>> > Get down to code-level detail for bottlenecks, with <2% overhead.
>> >>> > Download for free and get started troubleshooting in minutes.
>> >>> >
>> >>> >
>> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >>> > _______________________________________________
>> >>> > Csound-devel mailing list
>> >>> > Csound-devel@lists.sourceforge.net
>> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >
>> >>>
>> >>>
>> >>>
>> >>> ------------------------------------------------------------------------------
>> >>> Get 100% visibility into Java/.NET code with AppDynamics Lite!
>> >>> It's a free troubleshooting tool designed for production.
>> >>> Get down to code-level detail for bottlenecks, with <2% overhead.
>> >>> Download for free and get started troubleshooting in minutes.
>> >>>
>> >>>
>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >>> _______________________________________________
>> >>> Csound-devel mailing list
>> >>> Csound-devel@lists.sourceforge.net
>> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>> >>
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Get 100% visibility into Java/.NET code with AppDynamics Lite!
>> > It's a free troubleshooting tool designed for production.
>> > Get down to code-level detail for bottlenecks, with <2% overhead.
>> > Download for free and get started troubleshooting in minutes.
>> >
>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> Introducing Performance Central, a new site from SourceForge and
>> AppDynamics. Performance Central is your source for news, insights,
>> analysis and resources for efficient Application Performance Management.
>> Visit us today!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-08-27 21:52
FromMichael Gogins
SubjectRe: [Cs-dev] Java crash on windows
AttachmentsNone  None  
In my build I'm very careful about the actual library paths. I look at the CMakeCache.txt, I look at the compiler and linker commands, and I look at what libraries actually get loaded during a run (there are various tools for doing this on Windows). I am careful because yes, it has been a problem for me, as you saw from my earlier emails.

But we should talk about how to make this better on Windows.

Best,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Tue, Aug 27, 2013 at 4:15 PM, Steven Yi <stevenyi@gmail.com> wrote:
Hi Michael and All,

I just spent a bit of time looking into this and found some very
heinous stuff going on in windows.  It looks to me that CMake actually
found all types of libraries from the PATH to use.  That meant some
libraries from C:\Program Files (x86)\Csound\bin were found, others
from C:\Program Files (x86)\Csound6\bin, and others from my MSYS
/usr/local/lib and custom set paths.  I get the impression this could
be a source of some of the issues we're seeing both with the Java
library and other windows oddities.

I mostly noticed this in looking at my CmakeCache.txt.  I'm wondering
if the Java lib is linking to Csound 5's csnd.dll instead of
Csound6's.  If that's the case, then perhaps we can change csnd to be
csnd6 instead.

I've got to move on for the day, but will come back to this tomorrow.



On Tue, Aug 20, 2013 at 11:14 PM, Michael Gogins
<michael.gogins@gmail.com> wrote:
> People do seem to be switching to mingw-builds. I am using 4.8.1, dwarf-2,
> posix threads, 32 bits. If you use the same version we have a much better
> chance of understanding what is going on.
>
> I think there is something pretty subtle going on both with Java and with
> the CsoundPerformanceThread.
>
> I have proved that the existence of incompatible MinGW runtime libraries can
> be a problem. I have also proved that that is not the ONLY problem, at
> least, on my computer. I succeeded finally in removing incompatible MinGW
> runtime libraries from my SysWOW64 directory (!) so I now can run CsoundAC
> code, but I am still having problems with the performance thread and with
> Java. Different computers behave differently, e.g. I can run CsoundQt at
> work but not at home.
>
> In my programming life, these errors can arise from several errors but one
> common source is uninitialized members of structs and classes that contain
> zeroes on some machines and junk on other machines. Or writes past buffer
> ends that poke holes in junk on some machines and in vital organs on other
> machines. Having multiple threads makes this harder...
>
> Regards,
> Mike
>
> I wish I had something like valgrind on Windows but I can't afford the
> equivalent.
>
>
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Tue, Aug 20, 2013 at 10:56 PM, Steven Yi <stevenyi@gmail.com> wrote:
>>
>> Hi Michael,
>>
>> I was trying to setup to get a build working on Windows to see if I
>> can further diagnose what's going on.  I currently have the stock
>> mingw/msys installed from sf.net/projects/mingw. I noticed in your How
>> to Build doc that you are using mingwbuilds version.  Could you
>> advise: should I uninstalled mingw/msys and use just mingwbuilds?
>> (I.e. better to start clean).
>>
>> Thanks!
>> steven
>>
>> On Thu, Aug 15, 2013 at 8:44 AM, Michael Gogins
>> <michael.gogins@gmail.com> wrote:
>> > Sorry, fumble fingers.
>> >
>> > The problem I see is that the csnd6 low level JNI Java class needs to
>> > call
>> > SWIG's initializer in _csound.dll. The initializer is the thing not
>> > found.
>> > Without it we don't have Java Csound.
>> >
>> > Still no solution, though. The initializer is in _jcsound.dll. Java
>> > doesn't
>> > find it. Java finds the CsoundEditor.jar (a better test than
>> > CSDPlayer.jar
>> > because it loads csnd6 right away) and loads and begins to run the Java
>> > code. The first thing to run is the static block that loads _jcsound.dll
>> > and
>> > calls the initializer. There are 4 steps here: locate the DLL, load the
>> > DLL,
>> > find the initializer function, call the initializer. We know that we
>> > don't
>> > find the initializer. I think it fails at the load stage because I have
>> > DLL
>> > hell on my notebook right now and I seem to recall catching the DLL
>> > load.
>> > I'll verify that later. In other words I think it starts to load
>> > _jcsound.dll and then there is a problem when _jcsound.dll is loading
>> > other
>> > things or initializating its own things.
>> >
>> >
>> > ===========================
>> > Michael Gogins
>> > Irreducible Productions
>> > http://michaelgogins.tumblr.com
>> > Michael dot Gogins at gmail dot com
>> >
>> >
>> > On Thu, Aug 15, 2013 at 8:32 AM, Michael Gogins
>> > <michael.gogins@gmail.com>
>> > wrote:
>> >>
>> >> The problem I see is that the Csound JNI
>> >>
>> >>
>> >> ===========================
>> >> Michael Gogins
>> >> Irreducible Productions
>> >> http://michaelgogins.tumblr.com
>> >> Michael dot Gogins at gmail dot com
>> >>
>> >>
>> >> On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi <stevenyi@gmail.com> wrote:
>> >>>
>> >>> Hi Michael,
>> >>>
>> >>> I'm wondering if this is the same issue. I need to re-test, but when I
>> >>> was trying things out I thought I didn't quite get a crash, just an
>> >>> UnsatisfiedLinkError exception for the function I was trying to call,
>> >>> which I could catch and do something about.  The test java class I put
>> >>> into the bug may not be doing any catching, but then Java should have
>> >>> just exited rather than crash.
>> >>>
>> >>> steven
>> >>>
>> >>> On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
>> >>> <michael.gogins@gmail.com> wrote:
>> >>> > Gdb tells me Java crash is caused by linstd++-6.dll of wrong model
>> >>> > found in
>> >>> > SysWOW64, where it does not belong and was put by some incompetent
>> >>> > installer. I'm afraid to remove it because I did once before and
>> >>> > lost
>> >>> > my
>> >>> > user profile.
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> > ------------------------------------------------------------------------------
>> >>> > Get 100% visibility into Java/.NET code with AppDynamics Lite!
>> >>> > It's a free troubleshooting tool designed for production.
>> >>> > Get down to code-level detail for bottlenecks, with <2% overhead.
>> >>> > Download for free and get started troubleshooting in minutes.
>> >>> >
>> >>> >
>> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >>> > _______________________________________________
>> >>> > Csound-devel mailing list
>> >>> > Csound-devel@lists.sourceforge.net
>> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >
>> >>>
>> >>>
>> >>>
>> >>> ------------------------------------------------------------------------------
>> >>> Get 100% visibility into Java/.NET code with AppDynamics Lite!
>> >>> It's a free troubleshooting tool designed for production.
>> >>> Get down to code-level detail for bottlenecks, with <2% overhead.
>> >>> Download for free and get started troubleshooting in minutes.
>> >>>
>> >>>
>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >>> _______________________________________________
>> >>> Csound-devel mailing list
>> >>> Csound-devel@lists.sourceforge.net
>> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>> >>
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Get 100% visibility into Java/.NET code with AppDynamics Lite!
>> > It's a free troubleshooting tool designed for production.
>> > Get down to code-level detail for bottlenecks, with <2% overhead.
>> > Download for free and get started troubleshooting in minutes.
>> >
>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> Introducing Performance Central, a new site from SourceForge and
>> AppDynamics. Performance Central is your source for news, insights,
>> analysis and resources for efficient Application Performance Management.
>> Visit us today!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2013-08-27 22:02
FromSteven Yi
SubjectRe: [Cs-dev] Java crash on windows
The compile paths here are a mess so I'm going to need to sort that
out here locally.  However, I'm wondering if at runtime if the wrong
dll is getting loaded due to csnd.dll being the same name in CS5 and
CS6.  Perhaps we should rename that to see if that's the source of
issues for Java (possible CsoundPerformanceThread too?). I'm imagining
if Csound runs multiple times alright, but CsoundPerformanceThread
does not, then it could be possible that the csound6 library is
loading fine, but the cs5 version of csnd is loading and causing
issues.

On Tue, Aug 27, 2013 at 4:52 PM, Michael Gogins
 wrote:
> In my build I'm very careful about the actual library paths. I look at the
> CMakeCache.txt, I look at the compiler and linker commands, and I look at
> what libraries actually get loaded during a run (there are various tools for
> doing this on Windows). I am careful because yes, it has been a problem for
> me, as you saw from my earlier emails.
>
> But we should talk about how to make this better on Windows.
>
> Best,
> Mike
>
>
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Tue, Aug 27, 2013 at 4:15 PM, Steven Yi  wrote:
>>
>> Hi Michael and All,
>>
>> I just spent a bit of time looking into this and found some very
>> heinous stuff going on in windows.  It looks to me that CMake actually
>> found all types of libraries from the PATH to use.  That meant some
>> libraries from C:\Program Files (x86)\Csound\bin were found, others
>> from C:\Program Files (x86)\Csound6\bin, and others from my MSYS
>> /usr/local/lib and custom set paths.  I get the impression this could
>> be a source of some of the issues we're seeing both with the Java
>> library and other windows oddities.
>>
>> I mostly noticed this in looking at my CmakeCache.txt.  I'm wondering
>> if the Java lib is linking to Csound 5's csnd.dll instead of
>> Csound6's.  If that's the case, then perhaps we can change csnd to be
>> csnd6 instead.
>>
>> I've got to move on for the day, but will come back to this tomorrow.
>>
>>
>>
>> On Tue, Aug 20, 2013 at 11:14 PM, Michael Gogins
>>  wrote:
>> > People do seem to be switching to mingw-builds. I am using 4.8.1,
>> > dwarf-2,
>> > posix threads, 32 bits. If you use the same version we have a much
>> > better
>> > chance of understanding what is going on.
>> >
>> > I think there is something pretty subtle going on both with Java and
>> > with
>> > the CsoundPerformanceThread.
>> >
>> > I have proved that the existence of incompatible MinGW runtime libraries
>> > can
>> > be a problem. I have also proved that that is not the ONLY problem, at
>> > least, on my computer. I succeeded finally in removing incompatible
>> > MinGW
>> > runtime libraries from my SysWOW64 directory (!) so I now can run
>> > CsoundAC
>> > code, but I am still having problems with the performance thread and
>> > with
>> > Java. Different computers behave differently, e.g. I can run CsoundQt at
>> > work but not at home.
>> >
>> > In my programming life, these errors can arise from several errors but
>> > one
>> > common source is uninitialized members of structs and classes that
>> > contain
>> > zeroes on some machines and junk on other machines. Or writes past
>> > buffer
>> > ends that poke holes in junk on some machines and in vital organs on
>> > other
>> > machines. Having multiple threads makes this harder...
>> >
>> > Regards,
>> > Mike
>> >
>> > I wish I had something like valgrind on Windows but I can't afford the
>> > equivalent.
>> >
>> >
>> > ===========================
>> > Michael Gogins
>> > Irreducible Productions
>> > http://michaelgogins.tumblr.com
>> > Michael dot Gogins at gmail dot com
>> >
>> >
>> > On Tue, Aug 20, 2013 at 10:56 PM, Steven Yi  wrote:
>> >>
>> >> Hi Michael,
>> >>
>> >> I was trying to setup to get a build working on Windows to see if I
>> >> can further diagnose what's going on.  I currently have the stock
>> >> mingw/msys installed from sf.net/projects/mingw. I noticed in your How
>> >> to Build doc that you are using mingwbuilds version.  Could you
>> >> advise: should I uninstalled mingw/msys and use just mingwbuilds?
>> >> (I.e. better to start clean).
>> >>
>> >> Thanks!
>> >> steven
>> >>
>> >> On Thu, Aug 15, 2013 at 8:44 AM, Michael Gogins
>> >>  wrote:
>> >> > Sorry, fumble fingers.
>> >> >
>> >> > The problem I see is that the csnd6 low level JNI Java class needs to
>> >> > call
>> >> > SWIG's initializer in _csound.dll. The initializer is the thing not
>> >> > found.
>> >> > Without it we don't have Java Csound.
>> >> >
>> >> > Still no solution, though. The initializer is in _jcsound.dll. Java
>> >> > doesn't
>> >> > find it. Java finds the CsoundEditor.jar (a better test than
>> >> > CSDPlayer.jar
>> >> > because it loads csnd6 right away) and loads and begins to run the
>> >> > Java
>> >> > code. The first thing to run is the static block that loads
>> >> > _jcsound.dll
>> >> > and
>> >> > calls the initializer. There are 4 steps here: locate the DLL, load
>> >> > the
>> >> > DLL,
>> >> > find the initializer function, call the initializer. We know that we
>> >> > don't
>> >> > find the initializer. I think it fails at the load stage because I
>> >> > have
>> >> > DLL
>> >> > hell on my notebook right now and I seem to recall catching the DLL
>> >> > load.
>> >> > I'll verify that later. In other words I think it starts to load
>> >> > _jcsound.dll and then there is a problem when _jcsound.dll is loading
>> >> > other
>> >> > things or initializating its own things.
>> >> >
>> >> >
>> >> > ===========================
>> >> > Michael Gogins
>> >> > Irreducible Productions
>> >> > http://michaelgogins.tumblr.com
>> >> > Michael dot Gogins at gmail dot com
>> >> >
>> >> >
>> >> > On Thu, Aug 15, 2013 at 8:32 AM, Michael Gogins
>> >> > 
>> >> > wrote:
>> >> >>
>> >> >> The problem I see is that the Csound JNI
>> >> >>
>> >> >>
>> >> >> ===========================
>> >> >> Michael Gogins
>> >> >> Irreducible Productions
>> >> >> http://michaelgogins.tumblr.com
>> >> >> Michael dot Gogins at gmail dot com
>> >> >>
>> >> >>
>> >> >> On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi 
>> >> >> wrote:
>> >> >>>
>> >> >>> Hi Michael,
>> >> >>>
>> >> >>> I'm wondering if this is the same issue. I need to re-test, but
>> >> >>> when I
>> >> >>> was trying things out I thought I didn't quite get a crash, just an
>> >> >>> UnsatisfiedLinkError exception for the function I was trying to
>> >> >>> call,
>> >> >>> which I could catch and do something about.  The test java class I
>> >> >>> put
>> >> >>> into the bug may not be doing any catching, but then Java should
>> >> >>> have
>> >> >>> just exited rather than crash.
>> >> >>>
>> >> >>> steven
>> >> >>>
>> >> >>> On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
>> >> >>>  wrote:
>> >> >>> > Gdb tells me Java crash is caused by linstd++-6.dll of wrong
>> >> >>> > model
>> >> >>> > found in
>> >> >>> > SysWOW64, where it does not belong and was put by some
>> >> >>> > incompetent
>> >> >>> > installer. I'm afraid to remove it because I did once before and
>> >> >>> > lost
>> >> >>> > my
>> >> >>> > user profile.
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> > ------------------------------------------------------------------------------
>> >> >>> > Get 100% visibility into Java/.NET code with AppDynamics Lite!
>> >> >>> > It's a free troubleshooting tool designed for production.
>> >> >>> > Get down to code-level detail for bottlenecks, with <2% overhead.
>> >> >>> > Download for free and get started troubleshooting in minutes.
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >> >>> > _______________________________________________
>> >> >>> > Csound-devel mailing list
>> >> >>> > Csound-devel@lists.sourceforge.net
>> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>> ------------------------------------------------------------------------------
>> >> >>> Get 100% visibility into Java/.NET code with AppDynamics Lite!
>> >> >>> It's a free troubleshooting tool designed for production.
>> >> >>> Get down to code-level detail for bottlenecks, with <2% overhead.
>> >> >>> Download for free and get started troubleshooting in minutes.
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >> >>> _______________________________________________
>> >> >>> Csound-devel mailing list
>> >> >>> Csound-devel@lists.sourceforge.net
>> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > ------------------------------------------------------------------------------
>> >> > Get 100% visibility into Java/.NET code with AppDynamics Lite!
>> >> > It's a free troubleshooting tool designed for production.
>> >> > Get down to code-level detail for bottlenecks, with <2% overhead.
>> >> > Download for free and get started troubleshooting in minutes.
>> >> >
>> >> >
>> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >> > _______________________________________________
>> >> > Csound-devel mailing list
>> >> > Csound-devel@lists.sourceforge.net
>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> Introducing Performance Central, a new site from SourceForge and
>> >> AppDynamics. Performance Central is your source for news, insights,
>> >> analysis and resources for efficient Application Performance
>> >> Management.
>> >> Visit us today!
>> >>
>> >>
>> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> >>
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Introducing Performance Central, a new site from SourceForge and
>> > AppDynamics. Performance Central is your source for news, insights,
>> > analysis and resources for efficient Application Performance Management.
>> > Visit us today!
>> >
>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> Discover the easy way to master current and previous Microsoft
>> technologies
>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> tutorial videos with LearnDevNow. Subscribe today and save!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-08-27 22:13
FromMichael Gogins
SubjectRe: [Cs-dev] Java crash on windows
AttachmentsNone  None  

The csnd name should be versioned but I don't have 5 on my machine at all.

On Aug 27, 2013 5:03 PM, "Steven Yi" <stevenyi@gmail.com> wrote:
The compile paths here are a mess so I'm going to need to sort that
out here locally.  However, I'm wondering if at runtime if the wrong
dll is getting loaded due to csnd.dll being the same name in CS5 and
CS6.  Perhaps we should rename that to see if that's the source of
issues for Java (possible CsoundPerformanceThread too?). I'm imagining
if Csound runs multiple times alright, but CsoundPerformanceThread
does not, then it could be possible that the csound6 library is
loading fine, but the cs5 version of csnd is loading and causing
issues.

On Tue, Aug 27, 2013 at 4:52 PM, Michael Gogins
<michael.gogins@gmail.com> wrote:
> In my build I'm very careful about the actual library paths. I look at the
> CMakeCache.txt, I look at the compiler and linker commands, and I look at
> what libraries actually get loaded during a run (there are various tools for
> doing this on Windows). I am careful because yes, it has been a problem for
> me, as you saw from my earlier emails.
>
> But we should talk about how to make this better on Windows.
>
> Best,
> Mike
>
>
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Tue, Aug 27, 2013 at 4:15 PM, Steven Yi <stevenyi@gmail.com> wrote:
>>
>> Hi Michael and All,
>>
>> I just spent a bit of time looking into this and found some very
>> heinous stuff going on in windows.  It looks to me that CMake actually
>> found all types of libraries from the PATH to use.  That meant some
>> libraries from C:\Program Files (x86)\Csound\bin were found, others
>> from C:\Program Files (x86)\Csound6\bin, and others from my MSYS
>> /usr/local/lib and custom set paths.  I get the impression this could
>> be a source of some of the issues we're seeing both with the Java
>> library and other windows oddities.
>>
>> I mostly noticed this in looking at my CmakeCache.txt.  I'm wondering
>> if the Java lib is linking to Csound 5's csnd.dll instead of
>> Csound6's.  If that's the case, then perhaps we can change csnd to be
>> csnd6 instead.
>>
>> I've got to move on for the day, but will come back to this tomorrow.
>>
>>
>>
>> On Tue, Aug 20, 2013 at 11:14 PM, Michael Gogins
>> <michael.gogins@gmail.com> wrote:
>> > People do seem to be switching to mingw-builds. I am using 4.8.1,
>> > dwarf-2,
>> > posix threads, 32 bits. If you use the same version we have a much
>> > better
>> > chance of understanding what is going on.
>> >
>> > I think there is something pretty subtle going on both with Java and
>> > with
>> > the CsoundPerformanceThread.
>> >
>> > I have proved that the existence of incompatible MinGW runtime libraries
>> > can
>> > be a problem. I have also proved that that is not the ONLY problem, at
>> > least, on my computer. I succeeded finally in removing incompatible
>> > MinGW
>> > runtime libraries from my SysWOW64 directory (!) so I now can run
>> > CsoundAC
>> > code, but I am still having problems with the performance thread and
>> > with
>> > Java. Different computers behave differently, e.g. I can run CsoundQt at
>> > work but not at home.
>> >
>> > In my programming life, these errors can arise from several errors but
>> > one
>> > common source is uninitialized members of structs and classes that
>> > contain
>> > zeroes on some machines and junk on other machines. Or writes past
>> > buffer
>> > ends that poke holes in junk on some machines and in vital organs on
>> > other
>> > machines. Having multiple threads makes this harder...
>> >
>> > Regards,
>> > Mike
>> >
>> > I wish I had something like valgrind on Windows but I can't afford the
>> > equivalent.
>> >
>> >
>> > ===========================
>> > Michael Gogins
>> > Irreducible Productions
>> > http://michaelgogins.tumblr.com
>> > Michael dot Gogins at gmail dot com
>> >
>> >
>> > On Tue, Aug 20, 2013 at 10:56 PM, Steven Yi <stevenyi@gmail.com> wrote:
>> >>
>> >> Hi Michael,
>> >>
>> >> I was trying to setup to get a build working on Windows to see if I
>> >> can further diagnose what's going on.  I currently have the stock
>> >> mingw/msys installed from sf.net/projects/mingw. I noticed in your How
>> >> to Build doc that you are using mingwbuilds version.  Could you
>> >> advise: should I uninstalled mingw/msys and use just mingwbuilds?
>> >> (I.e. better to start clean).
>> >>
>> >> Thanks!
>> >> steven
>> >>
>> >> On Thu, Aug 15, 2013 at 8:44 AM, Michael Gogins
>> >> <michael.gogins@gmail.com> wrote:
>> >> > Sorry, fumble fingers.
>> >> >
>> >> > The problem I see is that the csnd6 low level JNI Java class needs to
>> >> > call
>> >> > SWIG's initializer in _csound.dll. The initializer is the thing not
>> >> > found.
>> >> > Without it we don't have Java Csound.
>> >> >
>> >> > Still no solution, though. The initializer is in _jcsound.dll. Java
>> >> > doesn't
>> >> > find it. Java finds the CsoundEditor.jar (a better test than
>> >> > CSDPlayer.jar
>> >> > because it loads csnd6 right away) and loads and begins to run the
>> >> > Java
>> >> > code. The first thing to run is the static block that loads
>> >> > _jcsound.dll
>> >> > and
>> >> > calls the initializer. There are 4 steps here: locate the DLL, load
>> >> > the
>> >> > DLL,
>> >> > find the initializer function, call the initializer. We know that we
>> >> > don't
>> >> > find the initializer. I think it fails at the load stage because I
>> >> > have
>> >> > DLL
>> >> > hell on my notebook right now and I seem to recall catching the DLL
>> >> > load.
>> >> > I'll verify that later. In other words I think it starts to load
>> >> > _jcsound.dll and then there is a problem when _jcsound.dll is loading
>> >> > other
>> >> > things or initializating its own things.
>> >> >
>> >> >
>> >> > ===========================
>> >> > Michael Gogins
>> >> > Irreducible Productions
>> >> > http://michaelgogins.tumblr.com
>> >> > Michael dot Gogins at gmail dot com
>> >> >
>> >> >
>> >> > On Thu, Aug 15, 2013 at 8:32 AM, Michael Gogins
>> >> > <michael.gogins@gmail.com>
>> >> > wrote:
>> >> >>
>> >> >> The problem I see is that the Csound JNI
>> >> >>
>> >> >>
>> >> >> ===========================
>> >> >> Michael Gogins
>> >> >> Irreducible Productions
>> >> >> http://michaelgogins.tumblr.com
>> >> >> Michael dot Gogins at gmail dot com
>> >> >>
>> >> >>
>> >> >> On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi <stevenyi@gmail.com>
>> >> >> wrote:
>> >> >>>
>> >> >>> Hi Michael,
>> >> >>>
>> >> >>> I'm wondering if this is the same issue. I need to re-test, but
>> >> >>> when I
>> >> >>> was trying things out I thought I didn't quite get a crash, just an
>> >> >>> UnsatisfiedLinkError exception for the function I was trying to
>> >> >>> call,
>> >> >>> which I could catch and do something about.  The test java class I
>> >> >>> put
>> >> >>> into the bug may not be doing any catching, but then Java should
>> >> >>> have
>> >> >>> just exited rather than crash.
>> >> >>>
>> >> >>> steven
>> >> >>>
>> >> >>> On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
>> >> >>> <michael.gogins@gmail.com> wrote:
>> >> >>> > Gdb tells me Java crash is caused by linstd++-6.dll of wrong
>> >> >>> > model
>> >> >>> > found in
>> >> >>> > SysWOW64, where it does not belong and was put by some
>> >> >>> > incompetent
>> >> >>> > installer. I'm afraid to remove it because I did once before and
>> >> >>> > lost
>> >> >>> > my
>> >> >>> > user profile.
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> > ------------------------------------------------------------------------------
>> >> >>> > Get 100% visibility into Java/.NET code with AppDynamics Lite!
>> >> >>> > It's a free troubleshooting tool designed for production.
>> >> >>> > Get down to code-level detail for bottlenecks, with <2% overhead.
>> >> >>> > Download for free and get started troubleshooting in minutes.
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >> >>> > _______________________________________________
>> >> >>> > Csound-devel mailing list
>> >> >>> > Csound-devel@lists.sourceforge.net
>> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>> ------------------------------------------------------------------------------
>> >> >>> Get 100% visibility into Java/.NET code with AppDynamics Lite!
>> >> >>> It's a free troubleshooting tool designed for production.
>> >> >>> Get down to code-level detail for bottlenecks, with <2% overhead.
>> >> >>> Download for free and get started troubleshooting in minutes.
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >> >>> _______________________________________________
>> >> >>> Csound-devel mailing list
>> >> >>> Csound-devel@lists.sourceforge.net
>> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > ------------------------------------------------------------------------------
>> >> > Get 100% visibility into Java/.NET code with AppDynamics Lite!
>> >> > It's a free troubleshooting tool designed for production.
>> >> > Get down to code-level detail for bottlenecks, with <2% overhead.
>> >> > Download for free and get started troubleshooting in minutes.
>> >> >
>> >> >
>> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >> > _______________________________________________
>> >> > Csound-devel mailing list
>> >> > Csound-devel@lists.sourceforge.net
>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> Introducing Performance Central, a new site from SourceForge and
>> >> AppDynamics. Performance Central is your source for news, insights,
>> >> analysis and resources for efficient Application Performance
>> >> Management.
>> >> Visit us today!
>> >>
>> >>
>> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> >>
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Introducing Performance Central, a new site from SourceForge and
>> > AppDynamics. Performance Central is your source for news, insights,
>> > analysis and resources for efficient Application Performance Management.
>> > Visit us today!
>> >
>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> Discover the easy way to master current and previous Microsoft
>> technologies
>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> tutorial videos with LearnDevNow. Subscribe today and save!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2013-08-27 22:19
FromSteven Yi
SubjectRe: [Cs-dev] Java crash on windows
Thanks for the info, at least we can eliminate that possibility then.
I'll hopefully get further along tomorrow and will report anything I
find.

On Tue, Aug 27, 2013 at 5:13 PM, Michael Gogins
 wrote:
> The csnd name should be versioned but I don't have 5 on my machine at all.
>
> On Aug 27, 2013 5:03 PM, "Steven Yi"  wrote:
>>
>> The compile paths here are a mess so I'm going to need to sort that
>> out here locally.  However, I'm wondering if at runtime if the wrong
>> dll is getting loaded due to csnd.dll being the same name in CS5 and
>> CS6.  Perhaps we should rename that to see if that's the source of
>> issues for Java (possible CsoundPerformanceThread too?). I'm imagining
>> if Csound runs multiple times alright, but CsoundPerformanceThread
>> does not, then it could be possible that the csound6 library is
>> loading fine, but the cs5 version of csnd is loading and causing
>> issues.
>>
>> On Tue, Aug 27, 2013 at 4:52 PM, Michael Gogins
>>  wrote:
>> > In my build I'm very careful about the actual library paths. I look at
>> > the
>> > CMakeCache.txt, I look at the compiler and linker commands, and I look
>> > at
>> > what libraries actually get loaded during a run (there are various tools
>> > for
>> > doing this on Windows). I am careful because yes, it has been a problem
>> > for
>> > me, as you saw from my earlier emails.
>> >
>> > But we should talk about how to make this better on Windows.
>> >
>> > Best,
>> > Mike
>> >
>> >
>> > ===========================
>> > Michael Gogins
>> > Irreducible Productions
>> > http://michaelgogins.tumblr.com
>> > Michael dot Gogins at gmail dot com
>> >
>> >
>> > On Tue, Aug 27, 2013 at 4:15 PM, Steven Yi  wrote:
>> >>
>> >> Hi Michael and All,
>> >>
>> >> I just spent a bit of time looking into this and found some very
>> >> heinous stuff going on in windows.  It looks to me that CMake actually
>> >> found all types of libraries from the PATH to use.  That meant some
>> >> libraries from C:\Program Files (x86)\Csound\bin were found, others
>> >> from C:\Program Files (x86)\Csound6\bin, and others from my MSYS
>> >> /usr/local/lib and custom set paths.  I get the impression this could
>> >> be a source of some of the issues we're seeing both with the Java
>> >> library and other windows oddities.
>> >>
>> >> I mostly noticed this in looking at my CmakeCache.txt.  I'm wondering
>> >> if the Java lib is linking to Csound 5's csnd.dll instead of
>> >> Csound6's.  If that's the case, then perhaps we can change csnd to be
>> >> csnd6 instead.
>> >>
>> >> I've got to move on for the day, but will come back to this tomorrow.
>> >>
>> >>
>> >>
>> >> On Tue, Aug 20, 2013 at 11:14 PM, Michael Gogins
>> >>  wrote:
>> >> > People do seem to be switching to mingw-builds. I am using 4.8.1,
>> >> > dwarf-2,
>> >> > posix threads, 32 bits. If you use the same version we have a much
>> >> > better
>> >> > chance of understanding what is going on.
>> >> >
>> >> > I think there is something pretty subtle going on both with Java and
>> >> > with
>> >> > the CsoundPerformanceThread.
>> >> >
>> >> > I have proved that the existence of incompatible MinGW runtime
>> >> > libraries
>> >> > can
>> >> > be a problem. I have also proved that that is not the ONLY problem,
>> >> > at
>> >> > least, on my computer. I succeeded finally in removing incompatible
>> >> > MinGW
>> >> > runtime libraries from my SysWOW64 directory (!) so I now can run
>> >> > CsoundAC
>> >> > code, but I am still having problems with the performance thread and
>> >> > with
>> >> > Java. Different computers behave differently, e.g. I can run CsoundQt
>> >> > at
>> >> > work but not at home.
>> >> >
>> >> > In my programming life, these errors can arise from several errors
>> >> > but
>> >> > one
>> >> > common source is uninitialized members of structs and classes that
>> >> > contain
>> >> > zeroes on some machines and junk on other machines. Or writes past
>> >> > buffer
>> >> > ends that poke holes in junk on some machines and in vital organs on
>> >> > other
>> >> > machines. Having multiple threads makes this harder...
>> >> >
>> >> > Regards,
>> >> > Mike
>> >> >
>> >> > I wish I had something like valgrind on Windows but I can't afford
>> >> > the
>> >> > equivalent.
>> >> >
>> >> >
>> >> > ===========================
>> >> > Michael Gogins
>> >> > Irreducible Productions
>> >> > http://michaelgogins.tumblr.com
>> >> > Michael dot Gogins at gmail dot com
>> >> >
>> >> >
>> >> > On Tue, Aug 20, 2013 at 10:56 PM, Steven Yi 
>> >> > wrote:
>> >> >>
>> >> >> Hi Michael,
>> >> >>
>> >> >> I was trying to setup to get a build working on Windows to see if I
>> >> >> can further diagnose what's going on.  I currently have the stock
>> >> >> mingw/msys installed from sf.net/projects/mingw. I noticed in your
>> >> >> How
>> >> >> to Build doc that you are using mingwbuilds version.  Could you
>> >> >> advise: should I uninstalled mingw/msys and use just mingwbuilds?
>> >> >> (I.e. better to start clean).
>> >> >>
>> >> >> Thanks!
>> >> >> steven
>> >> >>
>> >> >> On Thu, Aug 15, 2013 at 8:44 AM, Michael Gogins
>> >> >>  wrote:
>> >> >> > Sorry, fumble fingers.
>> >> >> >
>> >> >> > The problem I see is that the csnd6 low level JNI Java class needs
>> >> >> > to
>> >> >> > call
>> >> >> > SWIG's initializer in _csound.dll. The initializer is the thing
>> >> >> > not
>> >> >> > found.
>> >> >> > Without it we don't have Java Csound.
>> >> >> >
>> >> >> > Still no solution, though. The initializer is in _jcsound.dll.
>> >> >> > Java
>> >> >> > doesn't
>> >> >> > find it. Java finds the CsoundEditor.jar (a better test than
>> >> >> > CSDPlayer.jar
>> >> >> > because it loads csnd6 right away) and loads and begins to run the
>> >> >> > Java
>> >> >> > code. The first thing to run is the static block that loads
>> >> >> > _jcsound.dll
>> >> >> > and
>> >> >> > calls the initializer. There are 4 steps here: locate the DLL,
>> >> >> > load
>> >> >> > the
>> >> >> > DLL,
>> >> >> > find the initializer function, call the initializer. We know that
>> >> >> > we
>> >> >> > don't
>> >> >> > find the initializer. I think it fails at the load stage because I
>> >> >> > have
>> >> >> > DLL
>> >> >> > hell on my notebook right now and I seem to recall catching the
>> >> >> > DLL
>> >> >> > load.
>> >> >> > I'll verify that later. In other words I think it starts to load
>> >> >> > _jcsound.dll and then there is a problem when _jcsound.dll is
>> >> >> > loading
>> >> >> > other
>> >> >> > things or initializating its own things.
>> >> >> >
>> >> >> >
>> >> >> > ===========================
>> >> >> > Michael Gogins
>> >> >> > Irreducible Productions
>> >> >> > http://michaelgogins.tumblr.com
>> >> >> > Michael dot Gogins at gmail dot com
>> >> >> >
>> >> >> >
>> >> >> > On Thu, Aug 15, 2013 at 8:32 AM, Michael Gogins
>> >> >> > 
>> >> >> > wrote:
>> >> >> >>
>> >> >> >> The problem I see is that the Csound JNI
>> >> >> >>
>> >> >> >>
>> >> >> >> ===========================
>> >> >> >> Michael Gogins
>> >> >> >> Irreducible Productions
>> >> >> >> http://michaelgogins.tumblr.com
>> >> >> >> Michael dot Gogins at gmail dot com
>> >> >> >>
>> >> >> >>
>> >> >> >> On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi 
>> >> >> >> wrote:
>> >> >> >>>
>> >> >> >>> Hi Michael,
>> >> >> >>>
>> >> >> >>> I'm wondering if this is the same issue. I need to re-test, but
>> >> >> >>> when I
>> >> >> >>> was trying things out I thought I didn't quite get a crash, just
>> >> >> >>> an
>> >> >> >>> UnsatisfiedLinkError exception for the function I was trying to
>> >> >> >>> call,
>> >> >> >>> which I could catch and do something about.  The test java class
>> >> >> >>> I
>> >> >> >>> put
>> >> >> >>> into the bug may not be doing any catching, but then Java should
>> >> >> >>> have
>> >> >> >>> just exited rather than crash.
>> >> >> >>>
>> >> >> >>> steven
>> >> >> >>>
>> >> >> >>> On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
>> >> >> >>>  wrote:
>> >> >> >>> > Gdb tells me Java crash is caused by linstd++-6.dll of wrong
>> >> >> >>> > model
>> >> >> >>> > found in
>> >> >> >>> > SysWOW64, where it does not belong and was put by some
>> >> >> >>> > incompetent
>> >> >> >>> > installer. I'm afraid to remove it because I did once before
>> >> >> >>> > and
>> >> >> >>> > lost
>> >> >> >>> > my
>> >> >> >>> > user profile.
>> >> >> >>> >
>> >> >> >>> >
>> >> >> >>> >
>> >> >> >>> >
>> >> >> >>> >
>> >> >> >>> >
>> >> >> >>> > ------------------------------------------------------------------------------
>> >> >> >>> > Get 100% visibility into Java/.NET code with AppDynamics Lite!
>> >> >> >>> > It's a free troubleshooting tool designed for production.
>> >> >> >>> > Get down to code-level detail for bottlenecks, with <2%
>> >> >> >>> > overhead.
>> >> >> >>> > Download for free and get started troubleshooting in minutes.
>> >> >> >>> >
>> >> >> >>> >
>> >> >> >>> >
>> >> >> >>> >
>> >> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >> >> >>> > _______________________________________________
>> >> >> >>> > Csound-devel mailing list
>> >> >> >>> > Csound-devel@lists.sourceforge.net
>> >> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >> >>> >
>> >> >> >>>
>> >> >> >>>
>> >> >> >>>
>> >> >> >>>
>> >> >> >>>
>> >> >> >>> ------------------------------------------------------------------------------
>> >> >> >>> Get 100% visibility into Java/.NET code with AppDynamics Lite!
>> >> >> >>> It's a free troubleshooting tool designed for production.
>> >> >> >>> Get down to code-level detail for bottlenecks, with <2%
>> >> >> >>> overhead.
>> >> >> >>> Download for free and get started troubleshooting in minutes.
>> >> >> >>>
>> >> >> >>>
>> >> >> >>>
>> >> >> >>>
>> >> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >> >> >>> _______________________________________________
>> >> >> >>> Csound-devel mailing list
>> >> >> >>> Csound-devel@lists.sourceforge.net
>> >> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > ------------------------------------------------------------------------------
>> >> >> > Get 100% visibility into Java/.NET code with AppDynamics Lite!
>> >> >> > It's a free troubleshooting tool designed for production.
>> >> >> > Get down to code-level detail for bottlenecks, with <2% overhead.
>> >> >> > Download for free and get started troubleshooting in minutes.
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >> >> > _______________________________________________
>> >> >> > Csound-devel mailing list
>> >> >> > Csound-devel@lists.sourceforge.net
>> >> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >> ------------------------------------------------------------------------------
>> >> >> Introducing Performance Central, a new site from SourceForge and
>> >> >> AppDynamics. Performance Central is your source for news, insights,
>> >> >> analysis and resources for efficient Application Performance
>> >> >> Management.
>> >> >> Visit us today!
>> >> >>
>> >> >>
>> >> >>
>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> >> >>
>> >> >> _______________________________________________
>> >> >> Csound-devel mailing list
>> >> >> Csound-devel@lists.sourceforge.net
>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > ------------------------------------------------------------------------------
>> >> > Introducing Performance Central, a new site from SourceForge and
>> >> > AppDynamics. Performance Central is your source for news, insights,
>> >> > analysis and resources for efficient Application Performance
>> >> > Management.
>> >> > Visit us today!
>> >> >
>> >> >
>> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> >> > _______________________________________________
>> >> > Csound-devel mailing list
>> >> > Csound-devel@lists.sourceforge.net
>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> >> Discover the easy way to master current and previous Microsoft
>> >> technologies
>> >> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>
>> >>
>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> > Discover the easy way to master current and previous Microsoft
>> > technologies
>> > and advance your career. Get an incredible 1,500+ hours of step-by-step
>> > tutorial videos with LearnDevNow. Subscribe today and save!
>> >
>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> Discover the easy way to master current and previous Microsoft
>> technologies
>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> tutorial videos with LearnDevNow. Subscribe today and save!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-08-28 16:18
FromSteven Yi
SubjectRe: [Cs-dev] Java crash on windows
Just an update, I tried modifying to use libcsnd6 and linking to that,
but it had no affect on the Java test.  I did see in the SWIG manual
for Java that they have an error shown similar to ours, with the
documentation:

"This error usually indicates that you forgot to include some object
files or libraries in the linking of the native library file. Make
sure you compile both the SWIG wrapper file and the code you are
wrapping into the native library file. If you forget to compile and
link in the SWIG wrapper file into your native library file, you will
get a message similar to the following:"

However, I don't think this is quite the issue as the same Cmake
script works on OSX and Linux. I did see an email about possibly
needing to compile the library with both the wrapper and the wrapped
lib, but that seemed odd as we had things working with CS5.

I'll continue to explore here.

On Tue, Aug 27, 2013 at 5:19 PM, Steven Yi  wrote:
> Thanks for the info, at least we can eliminate that possibility then.
> I'll hopefully get further along tomorrow and will report anything I
> find.
>
> On Tue, Aug 27, 2013 at 5:13 PM, Michael Gogins
>  wrote:
>> The csnd name should be versioned but I don't have 5 on my machine at all.
>>
>> On Aug 27, 2013 5:03 PM, "Steven Yi"  wrote:
>>>
>>> The compile paths here are a mess so I'm going to need to sort that
>>> out here locally.  However, I'm wondering if at runtime if the wrong
>>> dll is getting loaded due to csnd.dll being the same name in CS5 and
>>> CS6.  Perhaps we should rename that to see if that's the source of
>>> issues for Java (possible CsoundPerformanceThread too?). I'm imagining
>>> if Csound runs multiple times alright, but CsoundPerformanceThread
>>> does not, then it could be possible that the csound6 library is
>>> loading fine, but the cs5 version of csnd is loading and causing
>>> issues.
>>>
>>> On Tue, Aug 27, 2013 at 4:52 PM, Michael Gogins
>>>  wrote:
>>> > In my build I'm very careful about the actual library paths. I look at
>>> > the
>>> > CMakeCache.txt, I look at the compiler and linker commands, and I look
>>> > at
>>> > what libraries actually get loaded during a run (there are various tools
>>> > for
>>> > doing this on Windows). I am careful because yes, it has been a problem
>>> > for
>>> > me, as you saw from my earlier emails.
>>> >
>>> > But we should talk about how to make this better on Windows.
>>> >
>>> > Best,
>>> > Mike
>>> >
>>> >
>>> > ===========================
>>> > Michael Gogins
>>> > Irreducible Productions
>>> > http://michaelgogins.tumblr.com
>>> > Michael dot Gogins at gmail dot com
>>> >
>>> >
>>> > On Tue, Aug 27, 2013 at 4:15 PM, Steven Yi  wrote:
>>> >>
>>> >> Hi Michael and All,
>>> >>
>>> >> I just spent a bit of time looking into this and found some very
>>> >> heinous stuff going on in windows.  It looks to me that CMake actually
>>> >> found all types of libraries from the PATH to use.  That meant some
>>> >> libraries from C:\Program Files (x86)\Csound\bin were found, others
>>> >> from C:\Program Files (x86)\Csound6\bin, and others from my MSYS
>>> >> /usr/local/lib and custom set paths.  I get the impression this could
>>> >> be a source of some of the issues we're seeing both with the Java
>>> >> library and other windows oddities.
>>> >>
>>> >> I mostly noticed this in looking at my CmakeCache.txt.  I'm wondering
>>> >> if the Java lib is linking to Csound 5's csnd.dll instead of
>>> >> Csound6's.  If that's the case, then perhaps we can change csnd to be
>>> >> csnd6 instead.
>>> >>
>>> >> I've got to move on for the day, but will come back to this tomorrow.
>>> >>
>>> >>
>>> >>
>>> >> On Tue, Aug 20, 2013 at 11:14 PM, Michael Gogins
>>> >>  wrote:
>>> >> > People do seem to be switching to mingw-builds. I am using 4.8.1,
>>> >> > dwarf-2,
>>> >> > posix threads, 32 bits. If you use the same version we have a much
>>> >> > better
>>> >> > chance of understanding what is going on.
>>> >> >
>>> >> > I think there is something pretty subtle going on both with Java and
>>> >> > with
>>> >> > the CsoundPerformanceThread.
>>> >> >
>>> >> > I have proved that the existence of incompatible MinGW runtime
>>> >> > libraries
>>> >> > can
>>> >> > be a problem. I have also proved that that is not the ONLY problem,
>>> >> > at
>>> >> > least, on my computer. I succeeded finally in removing incompatible
>>> >> > MinGW
>>> >> > runtime libraries from my SysWOW64 directory (!) so I now can run
>>> >> > CsoundAC
>>> >> > code, but I am still having problems with the performance thread and
>>> >> > with
>>> >> > Java. Different computers behave differently, e.g. I can run CsoundQt
>>> >> > at
>>> >> > work but not at home.
>>> >> >
>>> >> > In my programming life, these errors can arise from several errors
>>> >> > but
>>> >> > one
>>> >> > common source is uninitialized members of structs and classes that
>>> >> > contain
>>> >> > zeroes on some machines and junk on other machines. Or writes past
>>> >> > buffer
>>> >> > ends that poke holes in junk on some machines and in vital organs on
>>> >> > other
>>> >> > machines. Having multiple threads makes this harder...
>>> >> >
>>> >> > Regards,
>>> >> > Mike
>>> >> >
>>> >> > I wish I had something like valgrind on Windows but I can't afford
>>> >> > the
>>> >> > equivalent.
>>> >> >
>>> >> >
>>> >> > ===========================
>>> >> > Michael Gogins
>>> >> > Irreducible Productions
>>> >> > http://michaelgogins.tumblr.com
>>> >> > Michael dot Gogins at gmail dot com
>>> >> >
>>> >> >
>>> >> > On Tue, Aug 20, 2013 at 10:56 PM, Steven Yi 
>>> >> > wrote:
>>> >> >>
>>> >> >> Hi Michael,
>>> >> >>
>>> >> >> I was trying to setup to get a build working on Windows to see if I
>>> >> >> can further diagnose what's going on.  I currently have the stock
>>> >> >> mingw/msys installed from sf.net/projects/mingw. I noticed in your
>>> >> >> How
>>> >> >> to Build doc that you are using mingwbuilds version.  Could you
>>> >> >> advise: should I uninstalled mingw/msys and use just mingwbuilds?
>>> >> >> (I.e. better to start clean).
>>> >> >>
>>> >> >> Thanks!
>>> >> >> steven
>>> >> >>
>>> >> >> On Thu, Aug 15, 2013 at 8:44 AM, Michael Gogins
>>> >> >>  wrote:
>>> >> >> > Sorry, fumble fingers.
>>> >> >> >
>>> >> >> > The problem I see is that the csnd6 low level JNI Java class needs
>>> >> >> > to
>>> >> >> > call
>>> >> >> > SWIG's initializer in _csound.dll. The initializer is the thing
>>> >> >> > not
>>> >> >> > found.
>>> >> >> > Without it we don't have Java Csound.
>>> >> >> >
>>> >> >> > Still no solution, though. The initializer is in _jcsound.dll.
>>> >> >> > Java
>>> >> >> > doesn't
>>> >> >> > find it. Java finds the CsoundEditor.jar (a better test than
>>> >> >> > CSDPlayer.jar
>>> >> >> > because it loads csnd6 right away) and loads and begins to run the
>>> >> >> > Java
>>> >> >> > code. The first thing to run is the static block that loads
>>> >> >> > _jcsound.dll
>>> >> >> > and
>>> >> >> > calls the initializer. There are 4 steps here: locate the DLL,
>>> >> >> > load
>>> >> >> > the
>>> >> >> > DLL,
>>> >> >> > find the initializer function, call the initializer. We know that
>>> >> >> > we
>>> >> >> > don't
>>> >> >> > find the initializer. I think it fails at the load stage because I
>>> >> >> > have
>>> >> >> > DLL
>>> >> >> > hell on my notebook right now and I seem to recall catching the
>>> >> >> > DLL
>>> >> >> > load.
>>> >> >> > I'll verify that later. In other words I think it starts to load
>>> >> >> > _jcsound.dll and then there is a problem when _jcsound.dll is
>>> >> >> > loading
>>> >> >> > other
>>> >> >> > things or initializating its own things.
>>> >> >> >
>>> >> >> >
>>> >> >> > ===========================
>>> >> >> > Michael Gogins
>>> >> >> > Irreducible Productions
>>> >> >> > http://michaelgogins.tumblr.com
>>> >> >> > Michael dot Gogins at gmail dot com
>>> >> >> >
>>> >> >> >
>>> >> >> > On Thu, Aug 15, 2013 at 8:32 AM, Michael Gogins
>>> >> >> > 
>>> >> >> > wrote:
>>> >> >> >>
>>> >> >> >> The problem I see is that the Csound JNI
>>> >> >> >>
>>> >> >> >>
>>> >> >> >> ===========================
>>> >> >> >> Michael Gogins
>>> >> >> >> Irreducible Productions
>>> >> >> >> http://michaelgogins.tumblr.com
>>> >> >> >> Michael dot Gogins at gmail dot com
>>> >> >> >>
>>> >> >> >>
>>> >> >> >> On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi 
>>> >> >> >> wrote:
>>> >> >> >>>
>>> >> >> >>> Hi Michael,
>>> >> >> >>>
>>> >> >> >>> I'm wondering if this is the same issue. I need to re-test, but
>>> >> >> >>> when I
>>> >> >> >>> was trying things out I thought I didn't quite get a crash, just
>>> >> >> >>> an
>>> >> >> >>> UnsatisfiedLinkError exception for the function I was trying to
>>> >> >> >>> call,
>>> >> >> >>> which I could catch and do something about.  The test java class
>>> >> >> >>> I
>>> >> >> >>> put
>>> >> >> >>> into the bug may not be doing any catching, but then Java should
>>> >> >> >>> have
>>> >> >> >>> just exited rather than crash.
>>> >> >> >>>
>>> >> >> >>> steven
>>> >> >> >>>
>>> >> >> >>> On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
>>> >> >> >>>  wrote:
>>> >> >> >>> > Gdb tells me Java crash is caused by linstd++-6.dll of wrong
>>> >> >> >>> > model
>>> >> >> >>> > found in
>>> >> >> >>> > SysWOW64, where it does not belong and was put by some
>>> >> >> >>> > incompetent
>>> >> >> >>> > installer. I'm afraid to remove it because I did once before
>>> >> >> >>> > and
>>> >> >> >>> > lost
>>> >> >> >>> > my
>>> >> >> >>> > user profile.
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> > ------------------------------------------------------------------------------
>>> >> >> >>> > Get 100% visibility into Java/.NET code with AppDynamics Lite!
>>> >> >> >>> > It's a free troubleshooting tool designed for production.
>>> >> >> >>> > Get down to code-level detail for bottlenecks, with <2%
>>> >> >> >>> > overhead.
>>> >> >> >>> > Download for free and get started troubleshooting in minutes.
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>>> >> >> >>> > _______________________________________________
>>> >> >> >>> > Csound-devel mailing list
>>> >> >> >>> > Csound-devel@lists.sourceforge.net
>>> >> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >> >>> >
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>> ------------------------------------------------------------------------------
>>> >> >> >>> Get 100% visibility into Java/.NET code with AppDynamics Lite!
>>> >> >> >>> It's a free troubleshooting tool designed for production.
>>> >> >> >>> Get down to code-level detail for bottlenecks, with <2%
>>> >> >> >>> overhead.
>>> >> >> >>> Download for free and get started troubleshooting in minutes.
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>>> >> >> >>> _______________________________________________
>>> >> >> >>> Csound-devel mailing list
>>> >> >> >>> Csound-devel@lists.sourceforge.net
>>> >> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >> >>
>>> >> >> >>
>>> >> >> >
>>> >> >> >
>>> >> >> >
>>> >> >> >
>>> >> >> >
>>> >> >> > ------------------------------------------------------------------------------
>>> >> >> > Get 100% visibility into Java/.NET code with AppDynamics Lite!
>>> >> >> > It's a free troubleshooting tool designed for production.
>>> >> >> > Get down to code-level detail for bottlenecks, with <2% overhead.
>>> >> >> > Download for free and get started troubleshooting in minutes.
>>> >> >> >
>>> >> >> >
>>> >> >> >
>>> >> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>>> >> >> > _______________________________________________
>>> >> >> > Csound-devel mailing list
>>> >> >> > Csound-devel@lists.sourceforge.net
>>> >> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >> >
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >> ------------------------------------------------------------------------------
>>> >> >> Introducing Performance Central, a new site from SourceForge and
>>> >> >> AppDynamics. Performance Central is your source for news, insights,
>>> >> >> analysis and resources for efficient Application Performance
>>> >> >> Management.
>>> >> >> Visit us today!
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>>> >> >>
>>> >> >> _______________________________________________
>>> >> >> Csound-devel mailing list
>>> >> >> Csound-devel@lists.sourceforge.net
>>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> >> > ------------------------------------------------------------------------------
>>> >> > Introducing Performance Central, a new site from SourceForge and
>>> >> > AppDynamics. Performance Central is your source for news, insights,
>>> >> > analysis and resources for efficient Application Performance
>>> >> > Management.
>>> >> > Visit us today!
>>> >> >
>>> >> >
>>> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>>> >> > _______________________________________________
>>> >> > Csound-devel mailing list
>>> >> > Csound-devel@lists.sourceforge.net
>>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >
>>> >>
>>> >>
>>> >>
>>> >> ------------------------------------------------------------------------------
>>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>>> >> Discover the easy way to master current and previous Microsoft
>>> >> technologies
>>> >> and advance your career. Get an incredible 1,500+ hours of step-by-step
>>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>>> >>
>>> >>
>>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> >>
>>> >> _______________________________________________
>>> >> Csound-devel mailing list
>>> >> Csound-devel@lists.sourceforge.net
>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >
>>> >
>>> >
>>> >
>>> > ------------------------------------------------------------------------------
>>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>>> > Discover the easy way to master current and previous Microsoft
>>> > technologies
>>> > and advance your career. Get an incredible 1,500+ hours of step-by-step
>>> > tutorial videos with LearnDevNow. Subscribe today and save!
>>> >
>>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> > _______________________________________________
>>> > Csound-devel mailing list
>>> > Csound-devel@lists.sourceforge.net
>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>>> Discover the easy way to master current and previous Microsoft
>>> technologies
>>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>>> tutorial videos with LearnDevNow. Subscribe today and save!
>>>
>>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> Discover the easy way to master current and previous Microsoft technologies
>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> tutorial videos with LearnDevNow. Subscribe today and save!
>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-08-28 16:35
FromMichael Gogins
SubjectRe: [Cs-dev] Java crash on windows
AttachmentsNone  None  
If I were you, I would try compiling the library with both the wrapper and the wrapped lib, just to rule that out.

There may well have been some change in the way the Java VM and library link. You could try Oracle issues on Java regarding that.

Best,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Wed, Aug 28, 2013 at 11:18 AM, Steven Yi <stevenyi@gmail.com> wrote:
Just an update, I tried modifying to use libcsnd6 and linking to that,
but it had no affect on the Java test.  I did see in the SWIG manual
for Java that they have an error shown similar to ours, with the
documentation:

"This error usually indicates that you forgot to include some object
files or libraries in the linking of the native library file. Make
sure you compile both the SWIG wrapper file and the code you are
wrapping into the native library file. If you forget to compile and
link in the SWIG wrapper file into your native library file, you will
get a message similar to the following:"

However, I don't think this is quite the issue as the same Cmake
script works on OSX and Linux. I did see an email about possibly
needing to compile the library with both the wrapper and the wrapped
lib, but that seemed odd as we had things working with CS5.

I'll continue to explore here.

On Tue, Aug 27, 2013 at 5:19 PM, Steven Yi <stevenyi@gmail.com> wrote:
> Thanks for the info, at least we can eliminate that possibility then.
> I'll hopefully get further along tomorrow and will report anything I
> find.
>
> On Tue, Aug 27, 2013 at 5:13 PM, Michael Gogins
> <michael.gogins@gmail.com> wrote:
>> The csnd name should be versioned but I don't have 5 on my machine at all.
>>
>> On Aug 27, 2013 5:03 PM, "Steven Yi" <stevenyi@gmail.com> wrote:
>>>
>>> The compile paths here are a mess so I'm going to need to sort that
>>> out here locally.  However, I'm wondering if at runtime if the wrong
>>> dll is getting loaded due to csnd.dll being the same name in CS5 and
>>> CS6.  Perhaps we should rename that to see if that's the source of
>>> issues for Java (possible CsoundPerformanceThread too?). I'm imagining
>>> if Csound runs multiple times alright, but CsoundPerformanceThread
>>> does not, then it could be possible that the csound6 library is
>>> loading fine, but the cs5 version of csnd is loading and causing
>>> issues.
>>>
>>> On Tue, Aug 27, 2013 at 4:52 PM, Michael Gogins
>>> <michael.gogins@gmail.com> wrote:
>>> > In my build I'm very careful about the actual library paths. I look at
>>> > the
>>> > CMakeCache.txt, I look at the compiler and linker commands, and I look
>>> > at
>>> > what libraries actually get loaded during a run (there are various tools
>>> > for
>>> > doing this on Windows). I am careful because yes, it has been a problem
>>> > for
>>> > me, as you saw from my earlier emails.
>>> >
>>> > But we should talk about how to make this better on Windows.
>>> >
>>> > Best,
>>> > Mike
>>> >
>>> >
>>> > ===========================
>>> > Michael Gogins
>>> > Irreducible Productions
>>> > http://michaelgogins.tumblr.com
>>> > Michael dot Gogins at gmail dot com
>>> >
>>> >
>>> > On Tue, Aug 27, 2013 at 4:15 PM, Steven Yi <stevenyi@gmail.com> wrote:
>>> >>
>>> >> Hi Michael and All,
>>> >>
>>> >> I just spent a bit of time looking into this and found some very
>>> >> heinous stuff going on in windows.  It looks to me that CMake actually
>>> >> found all types of libraries from the PATH to use.  That meant some
>>> >> libraries from C:\Program Files (x86)\Csound\bin were found, others
>>> >> from C:\Program Files (x86)\Csound6\bin, and others from my MSYS
>>> >> /usr/local/lib and custom set paths.  I get the impression this could
>>> >> be a source of some of the issues we're seeing both with the Java
>>> >> library and other windows oddities.
>>> >>
>>> >> I mostly noticed this in looking at my CmakeCache.txt.  I'm wondering
>>> >> if the Java lib is linking to Csound 5's csnd.dll instead of
>>> >> Csound6's.  If that's the case, then perhaps we can change csnd to be
>>> >> csnd6 instead.
>>> >>
>>> >> I've got to move on for the day, but will come back to this tomorrow.
>>> >>
>>> >>
>>> >>
>>> >> On Tue, Aug 20, 2013 at 11:14 PM, Michael Gogins
>>> >> <michael.gogins@gmail.com> wrote:
>>> >> > People do seem to be switching to mingw-builds. I am using 4.8.1,
>>> >> > dwarf-2,
>>> >> > posix threads, 32 bits. If you use the same version we have a much
>>> >> > better
>>> >> > chance of understanding what is going on.
>>> >> >
>>> >> > I think there is something pretty subtle going on both with Java and
>>> >> > with
>>> >> > the CsoundPerformanceThread.
>>> >> >
>>> >> > I have proved that the existence of incompatible MinGW runtime
>>> >> > libraries
>>> >> > can
>>> >> > be a problem. I have also proved that that is not the ONLY problem,
>>> >> > at
>>> >> > least, on my computer. I succeeded finally in removing incompatible
>>> >> > MinGW
>>> >> > runtime libraries from my SysWOW64 directory (!) so I now can run
>>> >> > CsoundAC
>>> >> > code, but I am still having problems with the performance thread and
>>> >> > with
>>> >> > Java. Different computers behave differently, e.g. I can run CsoundQt
>>> >> > at
>>> >> > work but not at home.
>>> >> >
>>> >> > In my programming life, these errors can arise from several errors
>>> >> > but
>>> >> > one
>>> >> > common source is uninitialized members of structs and classes that
>>> >> > contain
>>> >> > zeroes on some machines and junk on other machines. Or writes past
>>> >> > buffer
>>> >> > ends that poke holes in junk on some machines and in vital organs on
>>> >> > other
>>> >> > machines. Having multiple threads makes this harder...
>>> >> >
>>> >> > Regards,
>>> >> > Mike
>>> >> >
>>> >> > I wish I had something like valgrind on Windows but I can't afford
>>> >> > the
>>> >> > equivalent.
>>> >> >
>>> >> >
>>> >> > ===========================
>>> >> > Michael Gogins
>>> >> > Irreducible Productions
>>> >> > http://michaelgogins.tumblr.com
>>> >> > Michael dot Gogins at gmail dot com
>>> >> >
>>> >> >
>>> >> > On Tue, Aug 20, 2013 at 10:56 PM, Steven Yi <stevenyi@gmail.com>
>>> >> > wrote:
>>> >> >>
>>> >> >> Hi Michael,
>>> >> >>
>>> >> >> I was trying to setup to get a build working on Windows to see if I
>>> >> >> can further diagnose what's going on.  I currently have the stock
>>> >> >> mingw/msys installed from sf.net/projects/mingw. I noticed in your
>>> >> >> How
>>> >> >> to Build doc that you are using mingwbuilds version.  Could you
>>> >> >> advise: should I uninstalled mingw/msys and use just mingwbuilds?
>>> >> >> (I.e. better to start clean).
>>> >> >>
>>> >> >> Thanks!
>>> >> >> steven
>>> >> >>
>>> >> >> On Thu, Aug 15, 2013 at 8:44 AM, Michael Gogins
>>> >> >> <michael.gogins@gmail.com> wrote:
>>> >> >> > Sorry, fumble fingers.
>>> >> >> >
>>> >> >> > The problem I see is that the csnd6 low level JNI Java class needs
>>> >> >> > to
>>> >> >> > call
>>> >> >> > SWIG's initializer in _csound.dll. The initializer is the thing
>>> >> >> > not
>>> >> >> > found.
>>> >> >> > Without it we don't have Java Csound.
>>> >> >> >
>>> >> >> > Still no solution, though. The initializer is in _jcsound.dll.
>>> >> >> > Java
>>> >> >> > doesn't
>>> >> >> > find it. Java finds the CsoundEditor.jar (a better test than
>>> >> >> > CSDPlayer.jar
>>> >> >> > because it loads csnd6 right away) and loads and begins to run the
>>> >> >> > Java
>>> >> >> > code. The first thing to run is the static block that loads
>>> >> >> > _jcsound.dll
>>> >> >> > and
>>> >> >> > calls the initializer. There are 4 steps here: locate the DLL,
>>> >> >> > load
>>> >> >> > the
>>> >> >> > DLL,
>>> >> >> > find the initializer function, call the initializer. We know that
>>> >> >> > we
>>> >> >> > don't
>>> >> >> > find the initializer. I think it fails at the load stage because I
>>> >> >> > have
>>> >> >> > DLL
>>> >> >> > hell on my notebook right now and I seem to recall catching the
>>> >> >> > DLL
>>> >> >> > load.
>>> >> >> > I'll verify that later. In other words I think it starts to load
>>> >> >> > _jcsound.dll and then there is a problem when _jcsound.dll is
>>> >> >> > loading
>>> >> >> > other
>>> >> >> > things or initializating its own things.
>>> >> >> >
>>> >> >> >
>>> >> >> > ===========================
>>> >> >> > Michael Gogins
>>> >> >> > Irreducible Productions
>>> >> >> > http://michaelgogins.tumblr.com
>>> >> >> > Michael dot Gogins at gmail dot com
>>> >> >> >
>>> >> >> >
>>> >> >> > On Thu, Aug 15, 2013 at 8:32 AM, Michael Gogins
>>> >> >> > <michael.gogins@gmail.com>
>>> >> >> > wrote:
>>> >> >> >>
>>> >> >> >> The problem I see is that the Csound JNI
>>> >> >> >>
>>> >> >> >>
>>> >> >> >> ===========================
>>> >> >> >> Michael Gogins
>>> >> >> >> Irreducible Productions
>>> >> >> >> http://michaelgogins.tumblr.com
>>> >> >> >> Michael dot Gogins at gmail dot com
>>> >> >> >>
>>> >> >> >>
>>> >> >> >> On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi <stevenyi@gmail.com>
>>> >> >> >> wrote:
>>> >> >> >>>
>>> >> >> >>> Hi Michael,
>>> >> >> >>>
>>> >> >> >>> I'm wondering if this is the same issue. I need to re-test, but
>>> >> >> >>> when I
>>> >> >> >>> was trying things out I thought I didn't quite get a crash, just
>>> >> >> >>> an
>>> >> >> >>> UnsatisfiedLinkError exception for the function I was trying to
>>> >> >> >>> call,
>>> >> >> >>> which I could catch and do something about.  The test java class
>>> >> >> >>> I
>>> >> >> >>> put
>>> >> >> >>> into the bug may not be doing any catching, but then Java should
>>> >> >> >>> have
>>> >> >> >>> just exited rather than crash.
>>> >> >> >>>
>>> >> >> >>> steven
>>> >> >> >>>
>>> >> >> >>> On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
>>> >> >> >>> <michael.gogins@gmail.com> wrote:
>>> >> >> >>> > Gdb tells me Java crash is caused by linstd++-6.dll of wrong
>>> >> >> >>> > model
>>> >> >> >>> > found in
>>> >> >> >>> > SysWOW64, where it does not belong and was put by some
>>> >> >> >>> > incompetent
>>> >> >> >>> > installer. I'm afraid to remove it because I did once before
>>> >> >> >>> > and
>>> >> >> >>> > lost
>>> >> >> >>> > my
>>> >> >> >>> > user profile.
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> > ------------------------------------------------------------------------------
>>> >> >> >>> > Get 100% visibility into Java/.NET code with AppDynamics Lite!
>>> >> >> >>> > It's a free troubleshooting tool designed for production.
>>> >> >> >>> > Get down to code-level detail for bottlenecks, with <2%
>>> >> >> >>> > overhead.
>>> >> >> >>> > Download for free and get started troubleshooting in minutes.
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>>> >> >> >>> > _______________________________________________
>>> >> >> >>> > Csound-devel mailing list
>>> >> >> >>> > Csound-devel@lists.sourceforge.net
>>> >> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >> >>> >
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>> ------------------------------------------------------------------------------
>>> >> >> >>> Get 100% visibility into Java/.NET code with AppDynamics Lite!
>>> >> >> >>> It's a free troubleshooting tool designed for production.
>>> >> >> >>> Get down to code-level detail for bottlenecks, with <2%
>>> >> >> >>> overhead.
>>> >> >> >>> Download for free and get started troubleshooting in minutes.
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>>> >> >> >>> _______________________________________________
>>> >> >> >>> Csound-devel mailing list
>>> >> >> >>> Csound-devel@lists.sourceforge.net
>>> >> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >> >>
>>> >> >> >>
>>> >> >> >
>>> >> >> >
>>> >> >> >
>>> >> >> >
>>> >> >> >
>>> >> >> > ------------------------------------------------------------------------------
>>> >> >> > Get 100% visibility into Java/.NET code with AppDynamics Lite!
>>> >> >> > It's a free troubleshooting tool designed for production.
>>> >> >> > Get down to code-level detail for bottlenecks, with <2% overhead.
>>> >> >> > Download for free and get started troubleshooting in minutes.
>>> >> >> >
>>> >> >> >
>>> >> >> >
>>> >> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>>> >> >> > _______________________________________________
>>> >> >> > Csound-devel mailing list
>>> >> >> > Csound-devel@lists.sourceforge.net
>>> >> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >> >
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >> ------------------------------------------------------------------------------
>>> >> >> Introducing Performance Central, a new site from SourceForge and
>>> >> >> AppDynamics. Performance Central is your source for news, insights,
>>> >> >> analysis and resources for efficient Application Performance
>>> >> >> Management.
>>> >> >> Visit us today!
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>>> >> >>
>>> >> >> _______________________________________________
>>> >> >> Csound-devel mailing list
>>> >> >> Csound-devel@lists.sourceforge.net
>>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> >> > ------------------------------------------------------------------------------
>>> >> > Introducing Performance Central, a new site from SourceForge and
>>> >> > AppDynamics. Performance Central is your source for news, insights,
>>> >> > analysis and resources for efficient Application Performance
>>> >> > Management.
>>> >> > Visit us today!
>>> >> >
>>> >> >
>>> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>>> >> > _______________________________________________
>>> >> > Csound-devel mailing list
>>> >> > Csound-devel@lists.sourceforge.net
>>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >
>>> >>
>>> >>
>>> >>
>>> >> ------------------------------------------------------------------------------
>>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>>> >> Discover the easy way to master current and previous Microsoft
>>> >> technologies
>>> >> and advance your career. Get an incredible 1,500+ hours of step-by-step
>>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>>> >>
>>> >>
>>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> >>
>>> >> _______________________________________________
>>> >> Csound-devel mailing list
>>> >> Csound-devel@lists.sourceforge.net
>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >
>>> >
>>> >
>>> >
>>> > ------------------------------------------------------------------------------
>>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>>> > Discover the easy way to master current and previous Microsoft
>>> > technologies
>>> > and advance your career. Get an incredible 1,500+ hours of step-by-step
>>> > tutorial videos with LearnDevNow. Subscribe today and save!
>>> >
>>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> > _______________________________________________
>>> > Csound-devel mailing list
>>> > Csound-devel@lists.sourceforge.net
>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>>> Discover the easy way to master current and previous Microsoft
>>> technologies
>>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>>> tutorial videos with LearnDevNow. Subscribe today and save!
>>>
>>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> Discover the easy way to master current and previous Microsoft technologies
>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> tutorial videos with LearnDevNow. Subscribe today and save!
>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2013-08-28 16:35
FromMichael Gogins
SubjectRe: [Cs-dev] Java crash on windows
AttachmentsNone  None  
If I were you, I would try compiling the library with both the wrapper and the wrapped lib, just to rule that out.

There may well have been some change in the way the Java VM and library link. You could try Oracle issues on Java regarding that.

Best,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Wed, Aug 28, 2013 at 11:18 AM, Steven Yi <stevenyi@gmail.com> wrote:
Just an update, I tried modifying to use libcsnd6 and linking to that,
but it had no affect on the Java test.  I did see in the SWIG manual
for Java that they have an error shown similar to ours, with the
documentation:

"This error usually indicates that you forgot to include some object
files or libraries in the linking of the native library file. Make
sure you compile both the SWIG wrapper file and the code you are
wrapping into the native library file. If you forget to compile and
link in the SWIG wrapper file into your native library file, you will
get a message similar to the following:"

However, I don't think this is quite the issue as the same Cmake
script works on OSX and Linux. I did see an email about possibly
needing to compile the library with both the wrapper and the wrapped
lib, but that seemed odd as we had things working with CS5.

I'll continue to explore here.

On Tue, Aug 27, 2013 at 5:19 PM, Steven Yi <stevenyi@gmail.com> wrote:
> Thanks for the info, at least we can eliminate that possibility then.
> I'll hopefully get further along tomorrow and will report anything I
> find.
>
> On Tue, Aug 27, 2013 at 5:13 PM, Michael Gogins
> <michael.gogins@gmail.com> wrote:
>> The csnd name should be versioned but I don't have 5 on my machine at all.
>>
>> On Aug 27, 2013 5:03 PM, "Steven Yi" <stevenyi@gmail.com> wrote:
>>>
>>> The compile paths here are a mess so I'm going to need to sort that
>>> out here locally.  However, I'm wondering if at runtime if the wrong
>>> dll is getting loaded due to csnd.dll being the same name in CS5 and
>>> CS6.  Perhaps we should rename that to see if that's the source of
>>> issues for Java (possible CsoundPerformanceThread too?). I'm imagining
>>> if Csound runs multiple times alright, but CsoundPerformanceThread
>>> does not, then it could be possible that the csound6 library is
>>> loading fine, but the cs5 version of csnd is loading and causing
>>> issues.
>>>
>>> On Tue, Aug 27, 2013 at 4:52 PM, Michael Gogins
>>> <michael.gogins@gmail.com> wrote:
>>> > In my build I'm very careful about the actual library paths. I look at
>>> > the
>>> > CMakeCache.txt, I look at the compiler and linker commands, and I look
>>> > at
>>> > what libraries actually get loaded during a run (there are various tools
>>> > for
>>> > doing this on Windows). I am careful because yes, it has been a problem
>>> > for
>>> > me, as you saw from my earlier emails.
>>> >
>>> > But we should talk about how to make this better on Windows.
>>> >
>>> > Best,
>>> > Mike
>>> >
>>> >
>>> > ===========================
>>> > Michael Gogins
>>> > Irreducible Productions
>>> > http://michaelgogins.tumblr.com
>>> > Michael dot Gogins at gmail dot com
>>> >
>>> >
>>> > On Tue, Aug 27, 2013 at 4:15 PM, Steven Yi <stevenyi@gmail.com> wrote:
>>> >>
>>> >> Hi Michael and All,
>>> >>
>>> >> I just spent a bit of time looking into this and found some very
>>> >> heinous stuff going on in windows.  It looks to me that CMake actually
>>> >> found all types of libraries from the PATH to use.  That meant some
>>> >> libraries from C:\Program Files (x86)\Csound\bin were found, others
>>> >> from C:\Program Files (x86)\Csound6\bin, and others from my MSYS
>>> >> /usr/local/lib and custom set paths.  I get the impression this could
>>> >> be a source of some of the issues we're seeing both with the Java
>>> >> library and other windows oddities.
>>> >>
>>> >> I mostly noticed this in looking at my CmakeCache.txt.  I'm wondering
>>> >> if the Java lib is linking to Csound 5's csnd.dll instead of
>>> >> Csound6's.  If that's the case, then perhaps we can change csnd to be
>>> >> csnd6 instead.
>>> >>
>>> >> I've got to move on for the day, but will come back to this tomorrow.
>>> >>
>>> >>
>>> >>
>>> >> On Tue, Aug 20, 2013 at 11:14 PM, Michael Gogins
>>> >> <michael.gogins@gmail.com> wrote:
>>> >> > People do seem to be switching to mingw-builds. I am using 4.8.1,
>>> >> > dwarf-2,
>>> >> > posix threads, 32 bits. If you use the same version we have a much
>>> >> > better
>>> >> > chance of understanding what is going on.
>>> >> >
>>> >> > I think there is something pretty subtle going on both with Java and
>>> >> > with
>>> >> > the CsoundPerformanceThread.
>>> >> >
>>> >> > I have proved that the existence of incompatible MinGW runtime
>>> >> > libraries
>>> >> > can
>>> >> > be a problem. I have also proved that that is not the ONLY problem,
>>> >> > at
>>> >> > least, on my computer. I succeeded finally in removing incompatible
>>> >> > MinGW
>>> >> > runtime libraries from my SysWOW64 directory (!) so I now can run
>>> >> > CsoundAC
>>> >> > code, but I am still having problems with the performance thread and
>>> >> > with
>>> >> > Java. Different computers behave differently, e.g. I can run CsoundQt
>>> >> > at
>>> >> > work but not at home.
>>> >> >
>>> >> > In my programming life, these errors can arise from several errors
>>> >> > but
>>> >> > one
>>> >> > common source is uninitialized members of structs and classes that
>>> >> > contain
>>> >> > zeroes on some machines and junk on other machines. Or writes past
>>> >> > buffer
>>> >> > ends that poke holes in junk on some machines and in vital organs on
>>> >> > other
>>> >> > machines. Having multiple threads makes this harder...
>>> >> >
>>> >> > Regards,
>>> >> > Mike
>>> >> >
>>> >> > I wish I had something like valgrind on Windows but I can't afford
>>> >> > the
>>> >> > equivalent.
>>> >> >
>>> >> >
>>> >> > ===========================
>>> >> > Michael Gogins
>>> >> > Irreducible Productions
>>> >> > http://michaelgogins.tumblr.com
>>> >> > Michael dot Gogins at gmail dot com
>>> >> >
>>> >> >
>>> >> > On Tue, Aug 20, 2013 at 10:56 PM, Steven Yi <stevenyi@gmail.com>
>>> >> > wrote:
>>> >> >>
>>> >> >> Hi Michael,
>>> >> >>
>>> >> >> I was trying to setup to get a build working on Windows to see if I
>>> >> >> can further diagnose what's going on.  I currently have the stock
>>> >> >> mingw/msys installed from sf.net/projects/mingw. I noticed in your
>>> >> >> How
>>> >> >> to Build doc that you are using mingwbuilds version.  Could you
>>> >> >> advise: should I uninstalled mingw/msys and use just mingwbuilds?
>>> >> >> (I.e. better to start clean).
>>> >> >>
>>> >> >> Thanks!
>>> >> >> steven
>>> >> >>
>>> >> >> On Thu, Aug 15, 2013 at 8:44 AM, Michael Gogins
>>> >> >> <michael.gogins@gmail.com> wrote:
>>> >> >> > Sorry, fumble fingers.
>>> >> >> >
>>> >> >> > The problem I see is that the csnd6 low level JNI Java class needs
>>> >> >> > to
>>> >> >> > call
>>> >> >> > SWIG's initializer in _csound.dll. The initializer is the thing
>>> >> >> > not
>>> >> >> > found.
>>> >> >> > Without it we don't have Java Csound.
>>> >> >> >
>>> >> >> > Still no solution, though. The initializer is in _jcsound.dll.
>>> >> >> > Java
>>> >> >> > doesn't
>>> >> >> > find it. Java finds the CsoundEditor.jar (a better test than
>>> >> >> > CSDPlayer.jar
>>> >> >> > because it loads csnd6 right away) and loads and begins to run the
>>> >> >> > Java
>>> >> >> > code. The first thing to run is the static block that loads
>>> >> >> > _jcsound.dll
>>> >> >> > and
>>> >> >> > calls the initializer. There are 4 steps here: locate the DLL,
>>> >> >> > load
>>> >> >> > the
>>> >> >> > DLL,
>>> >> >> > find the initializer function, call the initializer. We know that
>>> >> >> > we
>>> >> >> > don't
>>> >> >> > find the initializer. I think it fails at the load stage because I
>>> >> >> > have
>>> >> >> > DLL
>>> >> >> > hell on my notebook right now and I seem to recall catching the
>>> >> >> > DLL
>>> >> >> > load.
>>> >> >> > I'll verify that later. In other words I think it starts to load
>>> >> >> > _jcsound.dll and then there is a problem when _jcsound.dll is
>>> >> >> > loading
>>> >> >> > other
>>> >> >> > things or initializating its own things.
>>> >> >> >
>>> >> >> >
>>> >> >> > ===========================
>>> >> >> > Michael Gogins
>>> >> >> > Irreducible Productions
>>> >> >> > http://michaelgogins.tumblr.com
>>> >> >> > Michael dot Gogins at gmail dot com
>>> >> >> >
>>> >> >> >
>>> >> >> > On Thu, Aug 15, 2013 at 8:32 AM, Michael Gogins
>>> >> >> > <michael.gogins@gmail.com>
>>> >> >> > wrote:
>>> >> >> >>
>>> >> >> >> The problem I see is that the Csound JNI
>>> >> >> >>
>>> >> >> >>
>>> >> >> >> ===========================
>>> >> >> >> Michael Gogins
>>> >> >> >> Irreducible Productions
>>> >> >> >> http://michaelgogins.tumblr.com
>>> >> >> >> Michael dot Gogins at gmail dot com
>>> >> >> >>
>>> >> >> >>
>>> >> >> >> On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi <stevenyi@gmail.com>
>>> >> >> >> wrote:
>>> >> >> >>>
>>> >> >> >>> Hi Michael,
>>> >> >> >>>
>>> >> >> >>> I'm wondering if this is the same issue. I need to re-test, but
>>> >> >> >>> when I
>>> >> >> >>> was trying things out I thought I didn't quite get a crash, just
>>> >> >> >>> an
>>> >> >> >>> UnsatisfiedLinkError exception for the function I was trying to
>>> >> >> >>> call,
>>> >> >> >>> which I could catch and do something about.  The test java class
>>> >> >> >>> I
>>> >> >> >>> put
>>> >> >> >>> into the bug may not be doing any catching, but then Java should
>>> >> >> >>> have
>>> >> >> >>> just exited rather than crash.
>>> >> >> >>>
>>> >> >> >>> steven
>>> >> >> >>>
>>> >> >> >>> On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
>>> >> >> >>> <michael.gogins@gmail.com> wrote:
>>> >> >> >>> > Gdb tells me Java crash is caused by linstd++-6.dll of wrong
>>> >> >> >>> > model
>>> >> >> >>> > found in
>>> >> >> >>> > SysWOW64, where it does not belong and was put by some
>>> >> >> >>> > incompetent
>>> >> >> >>> > installer. I'm afraid to remove it because I did once before
>>> >> >> >>> > and
>>> >> >> >>> > lost
>>> >> >> >>> > my
>>> >> >> >>> > user profile.
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> > ------------------------------------------------------------------------------
>>> >> >> >>> > Get 100% visibility into Java/.NET code with AppDynamics Lite!
>>> >> >> >>> > It's a free troubleshooting tool designed for production.
>>> >> >> >>> > Get down to code-level detail for bottlenecks, with <2%
>>> >> >> >>> > overhead.
>>> >> >> >>> > Download for free and get started troubleshooting in minutes.
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>>> >> >> >>> > _______________________________________________
>>> >> >> >>> > Csound-devel mailing list
>>> >> >> >>> > Csound-devel@lists.sourceforge.net
>>> >> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >> >>> >
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>> ------------------------------------------------------------------------------
>>> >> >> >>> Get 100% visibility into Java/.NET code with AppDynamics Lite!
>>> >> >> >>> It's a free troubleshooting tool designed for production.
>>> >> >> >>> Get down to code-level detail for bottlenecks, with <2%
>>> >> >> >>> overhead.
>>> >> >> >>> Download for free and get started troubleshooting in minutes.
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>>> >> >> >>> _______________________________________________
>>> >> >> >>> Csound-devel mailing list
>>> >> >> >>> Csound-devel@lists.sourceforge.net
>>> >> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >> >>
>>> >> >> >>
>>> >> >> >
>>> >> >> >
>>> >> >> >
>>> >> >> >
>>> >> >> >
>>> >> >> > ------------------------------------------------------------------------------
>>> >> >> > Get 100% visibility into Java/.NET code with AppDynamics Lite!
>>> >> >> > It's a free troubleshooting tool designed for production.
>>> >> >> > Get down to code-level detail for bottlenecks, with <2% overhead.
>>> >> >> > Download for free and get started troubleshooting in minutes.
>>> >> >> >
>>> >> >> >
>>> >> >> >
>>> >> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>>> >> >> > _______________________________________________
>>> >> >> > Csound-devel mailing list
>>> >> >> > Csound-devel@lists.sourceforge.net
>>> >> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >> >
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >> ------------------------------------------------------------------------------
>>> >> >> Introducing Performance Central, a new site from SourceForge and
>>> >> >> AppDynamics. Performance Central is your source for news, insights,
>>> >> >> analysis and resources for efficient Application Performance
>>> >> >> Management.
>>> >> >> Visit us today!
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>>> >> >>
>>> >> >> _______________________________________________
>>> >> >> Csound-devel mailing list
>>> >> >> Csound-devel@lists.sourceforge.net
>>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> >> > ------------------------------------------------------------------------------
>>> >> > Introducing Performance Central, a new site from SourceForge and
>>> >> > AppDynamics. Performance Central is your source for news, insights,
>>> >> > analysis and resources for efficient Application Performance
>>> >> > Management.
>>> >> > Visit us today!
>>> >> >
>>> >> >
>>> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>>> >> > _______________________________________________
>>> >> > Csound-devel mailing list
>>> >> > Csound-devel@lists.sourceforge.net
>>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >
>>> >>
>>> >>
>>> >>
>>> >> ------------------------------------------------------------------------------
>>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>>> >> Discover the easy way to master current and previous Microsoft
>>> >> technologies
>>> >> and advance your career. Get an incredible 1,500+ hours of step-by-step
>>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>>> >>
>>> >>
>>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> >>
>>> >> _______________________________________________
>>> >> Csound-devel mailing list
>>> >> Csound-devel@lists.sourceforge.net
>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >
>>> >
>>> >
>>> >
>>> > ------------------------------------------------------------------------------
>>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>>> > Discover the easy way to master current and previous Microsoft
>>> > technologies
>>> > and advance your career. Get an incredible 1,500+ hours of step-by-step
>>> > tutorial videos with LearnDevNow. Subscribe today and save!
>>> >
>>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> > _______________________________________________
>>> > Csound-devel mailing list
>>> > Csound-devel@lists.sourceforge.net
>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>>> Discover the easy way to master current and previous Microsoft
>>> technologies
>>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>>> tutorial videos with LearnDevNow. Subscribe today and save!
>>>
>>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> Discover the easy way to master current and previous Microsoft technologies
>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> tutorial videos with LearnDevNow. Subscribe today and save!
>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2013-08-28 16:57
FromSteven Yi
SubjectRe: [Cs-dev] Java crash on windows
That sounds reasonable, but the Csound5 API still loads for me fine
with Blue, using the same VM.  I think that'd rule that one out.  I
saw that csound.h has "%module csnd" isntead of "%module csnd6".  I'm
not sure that's it, as that seems like it'd affect other platforms,
but I'm giving it a try now just in case.  (compile should be done in
15-20 mins... ugh...)

On Wed, Aug 28, 2013 at 11:35 AM, Michael Gogins
 wrote:
> If I were you, I would try compiling the library with both the wrapper and
> the wrapped lib, just to rule that out.
>
> There may well have been some change in the way the Java VM and library
> link. You could try Oracle issues on Java regarding that.
>
> Best,
> Mike
>
>
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Wed, Aug 28, 2013 at 11:18 AM, Steven Yi  wrote:
>>
>> Just an update, I tried modifying to use libcsnd6 and linking to that,
>> but it had no affect on the Java test.  I did see in the SWIG manual
>> for Java that they have an error shown similar to ours, with the
>> documentation:
>>
>> "This error usually indicates that you forgot to include some object
>> files or libraries in the linking of the native library file. Make
>> sure you compile both the SWIG wrapper file and the code you are
>> wrapping into the native library file. If you forget to compile and
>> link in the SWIG wrapper file into your native library file, you will
>> get a message similar to the following:"
>>
>> However, I don't think this is quite the issue as the same Cmake
>> script works on OSX and Linux. I did see an email about possibly
>> needing to compile the library with both the wrapper and the wrapped
>> lib, but that seemed odd as we had things working with CS5.
>>
>> I'll continue to explore here.
>>
>> On Tue, Aug 27, 2013 at 5:19 PM, Steven Yi  wrote:
>> > Thanks for the info, at least we can eliminate that possibility then.
>> > I'll hopefully get further along tomorrow and will report anything I
>> > find.
>> >
>> > On Tue, Aug 27, 2013 at 5:13 PM, Michael Gogins
>> >  wrote:
>> >> The csnd name should be versioned but I don't have 5 on my machine at
>> >> all.
>> >>
>> >> On Aug 27, 2013 5:03 PM, "Steven Yi"  wrote:
>> >>>
>> >>> The compile paths here are a mess so I'm going to need to sort that
>> >>> out here locally.  However, I'm wondering if at runtime if the wrong
>> >>> dll is getting loaded due to csnd.dll being the same name in CS5 and
>> >>> CS6.  Perhaps we should rename that to see if that's the source of
>> >>> issues for Java (possible CsoundPerformanceThread too?). I'm imagining
>> >>> if Csound runs multiple times alright, but CsoundPerformanceThread
>> >>> does not, then it could be possible that the csound6 library is
>> >>> loading fine, but the cs5 version of csnd is loading and causing
>> >>> issues.
>> >>>
>> >>> On Tue, Aug 27, 2013 at 4:52 PM, Michael Gogins
>> >>>  wrote:
>> >>> > In my build I'm very careful about the actual library paths. I look
>> >>> > at
>> >>> > the
>> >>> > CMakeCache.txt, I look at the compiler and linker commands, and I
>> >>> > look
>> >>> > at
>> >>> > what libraries actually get loaded during a run (there are various
>> >>> > tools
>> >>> > for
>> >>> > doing this on Windows). I am careful because yes, it has been a
>> >>> > problem
>> >>> > for
>> >>> > me, as you saw from my earlier emails.
>> >>> >
>> >>> > But we should talk about how to make this better on Windows.
>> >>> >
>> >>> > Best,
>> >>> > Mike
>> >>> >
>> >>> >
>> >>> > ===========================
>> >>> > Michael Gogins
>> >>> > Irreducible Productions
>> >>> > http://michaelgogins.tumblr.com
>> >>> > Michael dot Gogins at gmail dot com
>> >>> >
>> >>> >
>> >>> > On Tue, Aug 27, 2013 at 4:15 PM, Steven Yi 
>> >>> > wrote:
>> >>> >>
>> >>> >> Hi Michael and All,
>> >>> >>
>> >>> >> I just spent a bit of time looking into this and found some very
>> >>> >> heinous stuff going on in windows.  It looks to me that CMake
>> >>> >> actually
>> >>> >> found all types of libraries from the PATH to use.  That meant some
>> >>> >> libraries from C:\Program Files (x86)\Csound\bin were found, others
>> >>> >> from C:\Program Files (x86)\Csound6\bin, and others from my MSYS
>> >>> >> /usr/local/lib and custom set paths.  I get the impression this
>> >>> >> could
>> >>> >> be a source of some of the issues we're seeing both with the Java
>> >>> >> library and other windows oddities.
>> >>> >>
>> >>> >> I mostly noticed this in looking at my CmakeCache.txt.  I'm
>> >>> >> wondering
>> >>> >> if the Java lib is linking to Csound 5's csnd.dll instead of
>> >>> >> Csound6's.  If that's the case, then perhaps we can change csnd to
>> >>> >> be
>> >>> >> csnd6 instead.
>> >>> >>
>> >>> >> I've got to move on for the day, but will come back to this
>> >>> >> tomorrow.
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> On Tue, Aug 20, 2013 at 11:14 PM, Michael Gogins
>> >>> >>  wrote:
>> >>> >> > People do seem to be switching to mingw-builds. I am using 4.8.1,
>> >>> >> > dwarf-2,
>> >>> >> > posix threads, 32 bits. If you use the same version we have a
>> >>> >> > much
>> >>> >> > better
>> >>> >> > chance of understanding what is going on.
>> >>> >> >
>> >>> >> > I think there is something pretty subtle going on both with Java
>> >>> >> > and
>> >>> >> > with
>> >>> >> > the CsoundPerformanceThread.
>> >>> >> >
>> >>> >> > I have proved that the existence of incompatible MinGW runtime
>> >>> >> > libraries
>> >>> >> > can
>> >>> >> > be a problem. I have also proved that that is not the ONLY
>> >>> >> > problem,
>> >>> >> > at
>> >>> >> > least, on my computer. I succeeded finally in removing
>> >>> >> > incompatible
>> >>> >> > MinGW
>> >>> >> > runtime libraries from my SysWOW64 directory (!) so I now can run
>> >>> >> > CsoundAC
>> >>> >> > code, but I am still having problems with the performance thread
>> >>> >> > and
>> >>> >> > with
>> >>> >> > Java. Different computers behave differently, e.g. I can run
>> >>> >> > CsoundQt
>> >>> >> > at
>> >>> >> > work but not at home.
>> >>> >> >
>> >>> >> > In my programming life, these errors can arise from several
>> >>> >> > errors
>> >>> >> > but
>> >>> >> > one
>> >>> >> > common source is uninitialized members of structs and classes
>> >>> >> > that
>> >>> >> > contain
>> >>> >> > zeroes on some machines and junk on other machines. Or writes
>> >>> >> > past
>> >>> >> > buffer
>> >>> >> > ends that poke holes in junk on some machines and in vital organs
>> >>> >> > on
>> >>> >> > other
>> >>> >> > machines. Having multiple threads makes this harder...
>> >>> >> >
>> >>> >> > Regards,
>> >>> >> > Mike
>> >>> >> >
>> >>> >> > I wish I had something like valgrind on Windows but I can't
>> >>> >> > afford
>> >>> >> > the
>> >>> >> > equivalent.
>> >>> >> >
>> >>> >> >
>> >>> >> > ===========================
>> >>> >> > Michael Gogins
>> >>> >> > Irreducible Productions
>> >>> >> > http://michaelgogins.tumblr.com
>> >>> >> > Michael dot Gogins at gmail dot com
>> >>> >> >
>> >>> >> >
>> >>> >> > On Tue, Aug 20, 2013 at 10:56 PM, Steven Yi 
>> >>> >> > wrote:
>> >>> >> >>
>> >>> >> >> Hi Michael,
>> >>> >> >>
>> >>> >> >> I was trying to setup to get a build working on Windows to see
>> >>> >> >> if I
>> >>> >> >> can further diagnose what's going on.  I currently have the
>> >>> >> >> stock
>> >>> >> >> mingw/msys installed from sf.net/projects/mingw. I noticed in
>> >>> >> >> your
>> >>> >> >> How
>> >>> >> >> to Build doc that you are using mingwbuilds version.  Could you
>> >>> >> >> advise: should I uninstalled mingw/msys and use just
>> >>> >> >> mingwbuilds?
>> >>> >> >> (I.e. better to start clean).
>> >>> >> >>
>> >>> >> >> Thanks!
>> >>> >> >> steven
>> >>> >> >>
>> >>> >> >> On Thu, Aug 15, 2013 at 8:44 AM, Michael Gogins
>> >>> >> >>  wrote:
>> >>> >> >> > Sorry, fumble fingers.
>> >>> >> >> >
>> >>> >> >> > The problem I see is that the csnd6 low level JNI Java class
>> >>> >> >> > needs
>> >>> >> >> > to
>> >>> >> >> > call
>> >>> >> >> > SWIG's initializer in _csound.dll. The initializer is the
>> >>> >> >> > thing
>> >>> >> >> > not
>> >>> >> >> > found.
>> >>> >> >> > Without it we don't have Java Csound.
>> >>> >> >> >
>> >>> >> >> > Still no solution, though. The initializer is in _jcsound.dll.
>> >>> >> >> > Java
>> >>> >> >> > doesn't
>> >>> >> >> > find it. Java finds the CsoundEditor.jar (a better test than
>> >>> >> >> > CSDPlayer.jar
>> >>> >> >> > because it loads csnd6 right away) and loads and begins to run
>> >>> >> >> > the
>> >>> >> >> > Java
>> >>> >> >> > code. The first thing to run is the static block that loads
>> >>> >> >> > _jcsound.dll
>> >>> >> >> > and
>> >>> >> >> > calls the initializer. There are 4 steps here: locate the DLL,
>> >>> >> >> > load
>> >>> >> >> > the
>> >>> >> >> > DLL,
>> >>> >> >> > find the initializer function, call the initializer. We know
>> >>> >> >> > that
>> >>> >> >> > we
>> >>> >> >> > don't
>> >>> >> >> > find the initializer. I think it fails at the load stage
>> >>> >> >> > because I
>> >>> >> >> > have
>> >>> >> >> > DLL
>> >>> >> >> > hell on my notebook right now and I seem to recall catching
>> >>> >> >> > the
>> >>> >> >> > DLL
>> >>> >> >> > load.
>> >>> >> >> > I'll verify that later. In other words I think it starts to
>> >>> >> >> > load
>> >>> >> >> > _jcsound.dll and then there is a problem when _jcsound.dll is
>> >>> >> >> > loading
>> >>> >> >> > other
>> >>> >> >> > things or initializating its own things.
>> >>> >> >> >
>> >>> >> >> >
>> >>> >> >> > ===========================
>> >>> >> >> > Michael Gogins
>> >>> >> >> > Irreducible Productions
>> >>> >> >> > http://michaelgogins.tumblr.com
>> >>> >> >> > Michael dot Gogins at gmail dot com
>> >>> >> >> >
>> >>> >> >> >
>> >>> >> >> > On Thu, Aug 15, 2013 at 8:32 AM, Michael Gogins
>> >>> >> >> > 
>> >>> >> >> > wrote:
>> >>> >> >> >>
>> >>> >> >> >> The problem I see is that the Csound JNI
>> >>> >> >> >>
>> >>> >> >> >>
>> >>> >> >> >> ===========================
>> >>> >> >> >> Michael Gogins
>> >>> >> >> >> Irreducible Productions
>> >>> >> >> >> http://michaelgogins.tumblr.com
>> >>> >> >> >> Michael dot Gogins at gmail dot com
>> >>> >> >> >>
>> >>> >> >> >>
>> >>> >> >> >> On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi
>> >>> >> >> >> 
>> >>> >> >> >> wrote:
>> >>> >> >> >>>
>> >>> >> >> >>> Hi Michael,
>> >>> >> >> >>>
>> >>> >> >> >>> I'm wondering if this is the same issue. I need to re-test,
>> >>> >> >> >>> but
>> >>> >> >> >>> when I
>> >>> >> >> >>> was trying things out I thought I didn't quite get a crash,
>> >>> >> >> >>> just
>> >>> >> >> >>> an
>> >>> >> >> >>> UnsatisfiedLinkError exception for the function I was trying
>> >>> >> >> >>> to
>> >>> >> >> >>> call,
>> >>> >> >> >>> which I could catch and do something about.  The test java
>> >>> >> >> >>> class
>> >>> >> >> >>> I
>> >>> >> >> >>> put
>> >>> >> >> >>> into the bug may not be doing any catching, but then Java
>> >>> >> >> >>> should
>> >>> >> >> >>> have
>> >>> >> >> >>> just exited rather than crash.
>> >>> >> >> >>>
>> >>> >> >> >>> steven
>> >>> >> >> >>>
>> >>> >> >> >>> On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
>> >>> >> >> >>>  wrote:
>> >>> >> >> >>> > Gdb tells me Java crash is caused by linstd++-6.dll of
>> >>> >> >> >>> > wrong
>> >>> >> >> >>> > model
>> >>> >> >> >>> > found in
>> >>> >> >> >>> > SysWOW64, where it does not belong and was put by some
>> >>> >> >> >>> > incompetent
>> >>> >> >> >>> > installer. I'm afraid to remove it because I did once
>> >>> >> >> >>> > before
>> >>> >> >> >>> > and
>> >>> >> >> >>> > lost
>> >>> >> >> >>> > my
>> >>> >> >> >>> > user profile.
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> > ------------------------------------------------------------------------------
>> >>> >> >> >>> > Get 100% visibility into Java/.NET code with AppDynamics
>> >>> >> >> >>> > Lite!
>> >>> >> >> >>> > It's a free troubleshooting tool designed for production.
>> >>> >> >> >>> > Get down to code-level detail for bottlenecks, with <2%
>> >>> >> >> >>> > overhead.
>> >>> >> >> >>> > Download for free and get started troubleshooting in
>> >>> >> >> >>> > minutes.
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >>> >> >> >>> > _______________________________________________
>> >>> >> >> >>> > Csound-devel mailing list
>> >>> >> >> >>> > Csound-devel@lists.sourceforge.net
>> >>> >> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >> >>> >
>> >>> >> >> >>>
>> >>> >> >> >>>
>> >>> >> >> >>>
>> >>> >> >> >>>
>> >>> >> >> >>>
>> >>> >> >> >>>
>> >>> >> >> >>> ------------------------------------------------------------------------------
>> >>> >> >> >>> Get 100% visibility into Java/.NET code with AppDynamics
>> >>> >> >> >>> Lite!
>> >>> >> >> >>> It's a free troubleshooting tool designed for production.
>> >>> >> >> >>> Get down to code-level detail for bottlenecks, with <2%
>> >>> >> >> >>> overhead.
>> >>> >> >> >>> Download for free and get started troubleshooting in
>> >>> >> >> >>> minutes.
>> >>> >> >> >>>
>> >>> >> >> >>>
>> >>> >> >> >>>
>> >>> >> >> >>>
>> >>> >> >> >>>
>> >>> >> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >>> >> >> >>> _______________________________________________
>> >>> >> >> >>> Csound-devel mailing list
>> >>> >> >> >>> Csound-devel@lists.sourceforge.net
>> >>> >> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >> >>
>> >>> >> >> >>
>> >>> >> >> >
>> >>> >> >> >
>> >>> >> >> >
>> >>> >> >> >
>> >>> >> >> >
>> >>> >> >> >
>> >>> >> >> > ------------------------------------------------------------------------------
>> >>> >> >> > Get 100% visibility into Java/.NET code with AppDynamics Lite!
>> >>> >> >> > It's a free troubleshooting tool designed for production.
>> >>> >> >> > Get down to code-level detail for bottlenecks, with <2%
>> >>> >> >> > overhead.
>> >>> >> >> > Download for free and get started troubleshooting in minutes.
>> >>> >> >> >
>> >>> >> >> >
>> >>> >> >> >
>> >>> >> >> >
>> >>> >> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >>> >> >> > _______________________________________________
>> >>> >> >> > Csound-devel mailing list
>> >>> >> >> > Csound-devel@lists.sourceforge.net
>> >>> >> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >> >
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >> ------------------------------------------------------------------------------
>> >>> >> >> Introducing Performance Central, a new site from SourceForge and
>> >>> >> >> AppDynamics. Performance Central is your source for news,
>> >>> >> >> insights,
>> >>> >> >> analysis and resources for efficient Application Performance
>> >>> >> >> Management.
>> >>> >> >> Visit us today!
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> >>> >> >>
>> >>> >> >> _______________________________________________
>> >>> >> >> Csound-devel mailing list
>> >>> >> >> Csound-devel@lists.sourceforge.net
>> >>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >
>> >>> >> >
>> >>> >> >
>> >>> >> >
>> >>> >> >
>> >>> >> >
>> >>> >> > ------------------------------------------------------------------------------
>> >>> >> > Introducing Performance Central, a new site from SourceForge and
>> >>> >> > AppDynamics. Performance Central is your source for news,
>> >>> >> > insights,
>> >>> >> > analysis and resources for efficient Application Performance
>> >>> >> > Management.
>> >>> >> > Visit us today!
>> >>> >> >
>> >>> >> >
>> >>> >> >
>> >>> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> >>> >> > _______________________________________________
>> >>> >> > Csound-devel mailing list
>> >>> >> > Csound-devel@lists.sourceforge.net
>> >>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> ------------------------------------------------------------------------------
>> >>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >>> >> more!
>> >>> >> Discover the easy way to master current and previous Microsoft
>> >>> >> technologies
>> >>> >> and advance your career. Get an incredible 1,500+ hours of
>> >>> >> step-by-step
>> >>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >>
>> >>> >> _______________________________________________
>> >>> >> Csound-devel mailing list
>> >>> >> Csound-devel@lists.sourceforge.net
>> >>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> > ------------------------------------------------------------------------------
>> >>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >>> > more!
>> >>> > Discover the easy way to master current and previous Microsoft
>> >>> > technologies
>> >>> > and advance your career. Get an incredible 1,500+ hours of
>> >>> > step-by-step
>> >>> > tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >
>> >>> >
>> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> > _______________________________________________
>> >>> > Csound-devel mailing list
>> >>> > Csound-devel@lists.sourceforge.net
>> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >
>> >>>
>> >>>
>> >>>
>> >>> ------------------------------------------------------------------------------
>> >>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> >>> Discover the easy way to master current and previous Microsoft
>> >>> technologies
>> >>> and advance your career. Get an incredible 1,500+ hours of
>> >>> step-by-step
>> >>> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>>
>> >>>
>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> _______________________________________________
>> >>> Csound-devel mailing list
>> >>> Csound-devel@lists.sourceforge.net
>> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> >> Discover the easy way to master current and previous Microsoft
>> >> technologies
>> >> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>
>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>>
>>
>> ------------------------------------------------------------------------------
>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> Discover the easy way to master current and previous Microsoft
>> technologies
>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> tutorial videos with LearnDevNow. Subscribe today and save!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-08-28 16:59
FromMichael Gogins
SubjectRe: [Cs-dev] Java crash on windows
AttachmentsNone  None  

Well, that's certainly a mistake.

On Aug 28, 2013 11:59 AM, "Steven Yi" <stevenyi@gmail.com> wrote:
That sounds reasonable, but the Csound5 API still loads for me fine
with Blue, using the same VM.  I think that'd rule that one out.  I
saw that csound.h has "%module csnd" isntead of "%module csnd6".  I'm
not sure that's it, as that seems like it'd affect other platforms,
but I'm giving it a try now just in case.  (compile should be done in
15-20 mins... ugh...)

On Wed, Aug 28, 2013 at 11:35 AM, Michael Gogins
<michael.gogins@gmail.com> wrote:
> If I were you, I would try compiling the library with both the wrapper and
> the wrapped lib, just to rule that out.
>
> There may well have been some change in the way the Java VM and library
> link. You could try Oracle issues on Java regarding that.
>
> Best,
> Mike
>
>
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Wed, Aug 28, 2013 at 11:18 AM, Steven Yi <stevenyi@gmail.com> wrote:
>>
>> Just an update, I tried modifying to use libcsnd6 and linking to that,
>> but it had no affect on the Java test.  I did see in the SWIG manual
>> for Java that they have an error shown similar to ours, with the
>> documentation:
>>
>> "This error usually indicates that you forgot to include some object
>> files or libraries in the linking of the native library file. Make
>> sure you compile both the SWIG wrapper file and the code you are
>> wrapping into the native library file. If you forget to compile and
>> link in the SWIG wrapper file into your native library file, you will
>> get a message similar to the following:"
>>
>> However, I don't think this is quite the issue as the same Cmake
>> script works on OSX and Linux. I did see an email about possibly
>> needing to compile the library with both the wrapper and the wrapped
>> lib, but that seemed odd as we had things working with CS5.
>>
>> I'll continue to explore here.
>>
>> On Tue, Aug 27, 2013 at 5:19 PM, Steven Yi <stevenyi@gmail.com> wrote:
>> > Thanks for the info, at least we can eliminate that possibility then.
>> > I'll hopefully get further along tomorrow and will report anything I
>> > find.
>> >
>> > On Tue, Aug 27, 2013 at 5:13 PM, Michael Gogins
>> > <michael.gogins@gmail.com> wrote:
>> >> The csnd name should be versioned but I don't have 5 on my machine at
>> >> all.
>> >>
>> >> On Aug 27, 2013 5:03 PM, "Steven Yi" <stevenyi@gmail.com> wrote:
>> >>>
>> >>> The compile paths here are a mess so I'm going to need to sort that
>> >>> out here locally.  However, I'm wondering if at runtime if the wrong
>> >>> dll is getting loaded due to csnd.dll being the same name in CS5 and
>> >>> CS6.  Perhaps we should rename that to see if that's the source of
>> >>> issues for Java (possible CsoundPerformanceThread too?). I'm imagining
>> >>> if Csound runs multiple times alright, but CsoundPerformanceThread
>> >>> does not, then it could be possible that the csound6 library is
>> >>> loading fine, but the cs5 version of csnd is loading and causing
>> >>> issues.
>> >>>
>> >>> On Tue, Aug 27, 2013 at 4:52 PM, Michael Gogins
>> >>> <michael.gogins@gmail.com> wrote:
>> >>> > In my build I'm very careful about the actual library paths. I look
>> >>> > at
>> >>> > the
>> >>> > CMakeCache.txt, I look at the compiler and linker commands, and I
>> >>> > look
>> >>> > at
>> >>> > what libraries actually get loaded during a run (there are various
>> >>> > tools
>> >>> > for
>> >>> > doing this on Windows). I am careful because yes, it has been a
>> >>> > problem
>> >>> > for
>> >>> > me, as you saw from my earlier emails.
>> >>> >
>> >>> > But we should talk about how to make this better on Windows.
>> >>> >
>> >>> > Best,
>> >>> > Mike
>> >>> >
>> >>> >
>> >>> > ===========================
>> >>> > Michael Gogins
>> >>> > Irreducible Productions
>> >>> > http://michaelgogins.tumblr.com
>> >>> > Michael dot Gogins at gmail dot com
>> >>> >
>> >>> >
>> >>> > On Tue, Aug 27, 2013 at 4:15 PM, Steven Yi <stevenyi@gmail.com>
>> >>> > wrote:
>> >>> >>
>> >>> >> Hi Michael and All,
>> >>> >>
>> >>> >> I just spent a bit of time looking into this and found some very
>> >>> >> heinous stuff going on in windows.  It looks to me that CMake
>> >>> >> actually
>> >>> >> found all types of libraries from the PATH to use.  That meant some
>> >>> >> libraries from C:\Program Files (x86)\Csound\bin were found, others
>> >>> >> from C:\Program Files (x86)\Csound6\bin, and others from my MSYS
>> >>> >> /usr/local/lib and custom set paths.  I get the impression this
>> >>> >> could
>> >>> >> be a source of some of the issues we're seeing both with the Java
>> >>> >> library and other windows oddities.
>> >>> >>
>> >>> >> I mostly noticed this in looking at my CmakeCache.txt.  I'm
>> >>> >> wondering
>> >>> >> if the Java lib is linking to Csound 5's csnd.dll instead of
>> >>> >> Csound6's.  If that's the case, then perhaps we can change csnd to
>> >>> >> be
>> >>> >> csnd6 instead.
>> >>> >>
>> >>> >> I've got to move on for the day, but will come back to this
>> >>> >> tomorrow.
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> On Tue, Aug 20, 2013 at 11:14 PM, Michael Gogins
>> >>> >> <michael.gogins@gmail.com> wrote:
>> >>> >> > People do seem to be switching to mingw-builds. I am using 4.8.1,
>> >>> >> > dwarf-2,
>> >>> >> > posix threads, 32 bits. If you use the same version we have a
>> >>> >> > much
>> >>> >> > better
>> >>> >> > chance of understanding what is going on.
>> >>> >> >
>> >>> >> > I think there is something pretty subtle going on both with Java
>> >>> >> > and
>> >>> >> > with
>> >>> >> > the CsoundPerformanceThread.
>> >>> >> >
>> >>> >> > I have proved that the existence of incompatible MinGW runtime
>> >>> >> > libraries
>> >>> >> > can
>> >>> >> > be a problem. I have also proved that that is not the ONLY
>> >>> >> > problem,
>> >>> >> > at
>> >>> >> > least, on my computer. I succeeded finally in removing
>> >>> >> > incompatible
>> >>> >> > MinGW
>> >>> >> > runtime libraries from my SysWOW64 directory (!) so I now can run
>> >>> >> > CsoundAC
>> >>> >> > code, but I am still having problems with the performance thread
>> >>> >> > and
>> >>> >> > with
>> >>> >> > Java. Different computers behave differently, e.g. I can run
>> >>> >> > CsoundQt
>> >>> >> > at
>> >>> >> > work but not at home.
>> >>> >> >
>> >>> >> > In my programming life, these errors can arise from several
>> >>> >> > errors
>> >>> >> > but
>> >>> >> > one
>> >>> >> > common source is uninitialized members of structs and classes
>> >>> >> > that
>> >>> >> > contain
>> >>> >> > zeroes on some machines and junk on other machines. Or writes
>> >>> >> > past
>> >>> >> > buffer
>> >>> >> > ends that poke holes in junk on some machines and in vital organs
>> >>> >> > on
>> >>> >> > other
>> >>> >> > machines. Having multiple threads makes this harder...
>> >>> >> >
>> >>> >> > Regards,
>> >>> >> > Mike
>> >>> >> >
>> >>> >> > I wish I had something like valgrind on Windows but I can't
>> >>> >> > afford
>> >>> >> > the
>> >>> >> > equivalent.
>> >>> >> >
>> >>> >> >
>> >>> >> > ===========================
>> >>> >> > Michael Gogins
>> >>> >> > Irreducible Productions
>> >>> >> > http://michaelgogins.tumblr.com
>> >>> >> > Michael dot Gogins at gmail dot com
>> >>> >> >
>> >>> >> >
>> >>> >> > On Tue, Aug 20, 2013 at 10:56 PM, Steven Yi <stevenyi@gmail.com>
>> >>> >> > wrote:
>> >>> >> >>
>> >>> >> >> Hi Michael,
>> >>> >> >>
>> >>> >> >> I was trying to setup to get a build working on Windows to see
>> >>> >> >> if I
>> >>> >> >> can further diagnose what's going on.  I currently have the
>> >>> >> >> stock
>> >>> >> >> mingw/msys installed from sf.net/projects/mingw. I noticed in
>> >>> >> >> your
>> >>> >> >> How
>> >>> >> >> to Build doc that you are using mingwbuilds version.  Could you
>> >>> >> >> advise: should I uninstalled mingw/msys and use just
>> >>> >> >> mingwbuilds?
>> >>> >> >> (I.e. better to start clean).
>> >>> >> >>
>> >>> >> >> Thanks!
>> >>> >> >> steven
>> >>> >> >>
>> >>> >> >> On Thu, Aug 15, 2013 at 8:44 AM, Michael Gogins
>> >>> >> >> <michael.gogins@gmail.com> wrote:
>> >>> >> >> > Sorry, fumble fingers.
>> >>> >> >> >
>> >>> >> >> > The problem I see is that the csnd6 low level JNI Java class
>> >>> >> >> > needs
>> >>> >> >> > to
>> >>> >> >> > call
>> >>> >> >> > SWIG's initializer in _csound.dll. The initializer is the
>> >>> >> >> > thing
>> >>> >> >> > not
>> >>> >> >> > found.
>> >>> >> >> > Without it we don't have Java Csound.
>> >>> >> >> >
>> >>> >> >> > Still no solution, though. The initializer is in _jcsound.dll.
>> >>> >> >> > Java
>> >>> >> >> > doesn't
>> >>> >> >> > find it. Java finds the CsoundEditor.jar (a better test than
>> >>> >> >> > CSDPlayer.jar
>> >>> >> >> > because it loads csnd6 right away) and loads and begins to run
>> >>> >> >> > the
>> >>> >> >> > Java
>> >>> >> >> > code. The first thing to run is the static block that loads
>> >>> >> >> > _jcsound.dll
>> >>> >> >> > and
>> >>> >> >> > calls the initializer. There are 4 steps here: locate the DLL,
>> >>> >> >> > load
>> >>> >> >> > the
>> >>> >> >> > DLL,
>> >>> >> >> > find the initializer function, call the initializer. We know
>> >>> >> >> > that
>> >>> >> >> > we
>> >>> >> >> > don't
>> >>> >> >> > find the initializer. I think it fails at the load stage
>> >>> >> >> > because I
>> >>> >> >> > have
>> >>> >> >> > DLL
>> >>> >> >> > hell on my notebook right now and I seem to recall catching
>> >>> >> >> > the
>> >>> >> >> > DLL
>> >>> >> >> > load.
>> >>> >> >> > I'll verify that later. In other words I think it starts to
>> >>> >> >> > load
>> >>> >> >> > _jcsound.dll and then there is a problem when _jcsound.dll is
>> >>> >> >> > loading
>> >>> >> >> > other
>> >>> >> >> > things or initializating its own things.
>> >>> >> >> >
>> >>> >> >> >
>> >>> >> >> > ===========================
>> >>> >> >> > Michael Gogins
>> >>> >> >> > Irreducible Productions
>> >>> >> >> > http://michaelgogins.tumblr.com
>> >>> >> >> > Michael dot Gogins at gmail dot com
>> >>> >> >> >
>> >>> >> >> >
>> >>> >> >> > On Thu, Aug 15, 2013 at 8:32 AM, Michael Gogins
>> >>> >> >> > <michael.gogins@gmail.com>
>> >>> >> >> > wrote:
>> >>> >> >> >>
>> >>> >> >> >> The problem I see is that the Csound JNI
>> >>> >> >> >>
>> >>> >> >> >>
>> >>> >> >> >> ===========================
>> >>> >> >> >> Michael Gogins
>> >>> >> >> >> Irreducible Productions
>> >>> >> >> >> http://michaelgogins.tumblr.com
>> >>> >> >> >> Michael dot Gogins at gmail dot com
>> >>> >> >> >>
>> >>> >> >> >>
>> >>> >> >> >> On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi
>> >>> >> >> >> <stevenyi@gmail.com>
>> >>> >> >> >> wrote:
>> >>> >> >> >>>
>> >>> >> >> >>> Hi Michael,
>> >>> >> >> >>>
>> >>> >> >> >>> I'm wondering if this is the same issue. I need to re-test,
>> >>> >> >> >>> but
>> >>> >> >> >>> when I
>> >>> >> >> >>> was trying things out I thought I didn't quite get a crash,
>> >>> >> >> >>> just
>> >>> >> >> >>> an
>> >>> >> >> >>> UnsatisfiedLinkError exception for the function I was trying
>> >>> >> >> >>> to
>> >>> >> >> >>> call,
>> >>> >> >> >>> which I could catch and do something about.  The test java
>> >>> >> >> >>> class
>> >>> >> >> >>> I
>> >>> >> >> >>> put
>> >>> >> >> >>> into the bug may not be doing any catching, but then Java
>> >>> >> >> >>> should
>> >>> >> >> >>> have
>> >>> >> >> >>> just exited rather than crash.
>> >>> >> >> >>>
>> >>> >> >> >>> steven
>> >>> >> >> >>>
>> >>> >> >> >>> On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
>> >>> >> >> >>> <michael.gogins@gmail.com> wrote:
>> >>> >> >> >>> > Gdb tells me Java crash is caused by linstd++-6.dll of
>> >>> >> >> >>> > wrong
>> >>> >> >> >>> > model
>> >>> >> >> >>> > found in
>> >>> >> >> >>> > SysWOW64, where it does not belong and was put by some
>> >>> >> >> >>> > incompetent
>> >>> >> >> >>> > installer. I'm afraid to remove it because I did once
>> >>> >> >> >>> > before
>> >>> >> >> >>> > and
>> >>> >> >> >>> > lost
>> >>> >> >> >>> > my
>> >>> >> >> >>> > user profile.
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> > ------------------------------------------------------------------------------
>> >>> >> >> >>> > Get 100% visibility into Java/.NET code with AppDynamics
>> >>> >> >> >>> > Lite!
>> >>> >> >> >>> > It's a free troubleshooting tool designed for production.
>> >>> >> >> >>> > Get down to code-level detail for bottlenecks, with <2%
>> >>> >> >> >>> > overhead.
>> >>> >> >> >>> > Download for free and get started troubleshooting in
>> >>> >> >> >>> > minutes.
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> >
>> >>> >> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >>> >> >> >>> > _______________________________________________
>> >>> >> >> >>> > Csound-devel mailing list
>> >>> >> >> >>> > Csound-devel@lists.sourceforge.net
>> >>> >> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >> >>> >
>> >>> >> >> >>>
>> >>> >> >> >>>
>> >>> >> >> >>>
>> >>> >> >> >>>
>> >>> >> >> >>>
>> >>> >> >> >>>
>> >>> >> >> >>> ------------------------------------------------------------------------------
>> >>> >> >> >>> Get 100% visibility into Java/.NET code with AppDynamics
>> >>> >> >> >>> Lite!
>> >>> >> >> >>> It's a free troubleshooting tool designed for production.
>> >>> >> >> >>> Get down to code-level detail for bottlenecks, with <2%
>> >>> >> >> >>> overhead.
>> >>> >> >> >>> Download for free and get started troubleshooting in
>> >>> >> >> >>> minutes.
>> >>> >> >> >>>
>> >>> >> >> >>>
>> >>> >> >> >>>
>> >>> >> >> >>>
>> >>> >> >> >>>
>> >>> >> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >>> >> >> >>> _______________________________________________
>> >>> >> >> >>> Csound-devel mailing list
>> >>> >> >> >>> Csound-devel@lists.sourceforge.net
>> >>> >> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >> >>
>> >>> >> >> >>
>> >>> >> >> >
>> >>> >> >> >
>> >>> >> >> >
>> >>> >> >> >
>> >>> >> >> >
>> >>> >> >> >
>> >>> >> >> > ------------------------------------------------------------------------------
>> >>> >> >> > Get 100% visibility into Java/.NET code with AppDynamics Lite!
>> >>> >> >> > It's a free troubleshooting tool designed for production.
>> >>> >> >> > Get down to code-level detail for bottlenecks, with <2%
>> >>> >> >> > overhead.
>> >>> >> >> > Download for free and get started troubleshooting in minutes.
>> >>> >> >> >
>> >>> >> >> >
>> >>> >> >> >
>> >>> >> >> >
>> >>> >> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >>> >> >> > _______________________________________________
>> >>> >> >> > Csound-devel mailing list
>> >>> >> >> > Csound-devel@lists.sourceforge.net
>> >>> >> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >> >
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >> ------------------------------------------------------------------------------
>> >>> >> >> Introducing Performance Central, a new site from SourceForge and
>> >>> >> >> AppDynamics. Performance Central is your source for news,
>> >>> >> >> insights,
>> >>> >> >> analysis and resources for efficient Application Performance
>> >>> >> >> Management.
>> >>> >> >> Visit us today!
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> >>> >> >>
>> >>> >> >> _______________________________________________
>> >>> >> >> Csound-devel mailing list
>> >>> >> >> Csound-devel@lists.sourceforge.net
>> >>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >
>> >>> >> >
>> >>> >> >
>> >>> >> >
>> >>> >> >
>> >>> >> >
>> >>> >> > ------------------------------------------------------------------------------
>> >>> >> > Introducing Performance Central, a new site from SourceForge and
>> >>> >> > AppDynamics. Performance Central is your source for news,
>> >>> >> > insights,
>> >>> >> > analysis and resources for efficient Application Performance
>> >>> >> > Management.
>> >>> >> > Visit us today!
>> >>> >> >
>> >>> >> >
>> >>> >> >
>> >>> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> >>> >> > _______________________________________________
>> >>> >> > Csound-devel mailing list
>> >>> >> > Csound-devel@lists.sourceforge.net
>> >>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> ------------------------------------------------------------------------------
>> >>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >>> >> more!
>> >>> >> Discover the easy way to master current and previous Microsoft
>> >>> >> technologies
>> >>> >> and advance your career. Get an incredible 1,500+ hours of
>> >>> >> step-by-step
>> >>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >>
>> >>> >> _______________________________________________
>> >>> >> Csound-devel mailing list
>> >>> >> Csound-devel@lists.sourceforge.net
>> >>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> > ------------------------------------------------------------------------------
>> >>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >>> > more!
>> >>> > Discover the easy way to master current and previous Microsoft
>> >>> > technologies
>> >>> > and advance your career. Get an incredible 1,500+ hours of
>> >>> > step-by-step
>> >>> > tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >
>> >>> >
>> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> > _______________________________________________
>> >>> > Csound-devel mailing list
>> >>> > Csound-devel@lists.sourceforge.net
>> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >
>> >>>
>> >>>
>> >>>
>> >>> ------------------------------------------------------------------------------
>> >>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> >>> Discover the easy way to master current and previous Microsoft
>> >>> technologies
>> >>> and advance your career. Get an incredible 1,500+ hours of
>> >>> step-by-step
>> >>> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>>
>> >>>
>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> _______________________________________________
>> >>> Csound-devel mailing list
>> >>> Csound-devel@lists.sourceforge.net
>> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> >> Discover the easy way to master current and previous Microsoft
>> >> technologies
>> >> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>
>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>>
>>
>> ------------------------------------------------------------------------------
>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> Discover the easy way to master current and previous Microsoft
>> technologies
>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> tutorial videos with LearnDevNow. Subscribe today and save!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2013-08-28 17:22
FromSteven Yi
SubjectRe: [Cs-dev] Java crash on windows
That didn't seem to affect anything unfortunately. Continuing on....

On Wed, Aug 28, 2013 at 11:59 AM, Michael Gogins
 wrote:
> Well, that's certainly a mistake.
>
> On Aug 28, 2013 11:59 AM, "Steven Yi"  wrote:
>>
>> That sounds reasonable, but the Csound5 API still loads for me fine
>> with Blue, using the same VM.  I think that'd rule that one out.  I
>> saw that csound.h has "%module csnd" isntead of "%module csnd6".  I'm
>> not sure that's it, as that seems like it'd affect other platforms,
>> but I'm giving it a try now just in case.  (compile should be done in
>> 15-20 mins... ugh...)
>>
>> On Wed, Aug 28, 2013 at 11:35 AM, Michael Gogins
>>  wrote:
>> > If I were you, I would try compiling the library with both the wrapper
>> > and
>> > the wrapped lib, just to rule that out.
>> >
>> > There may well have been some change in the way the Java VM and library
>> > link. You could try Oracle issues on Java regarding that.
>> >
>> > Best,
>> > Mike
>> >
>> >
>> > ===========================
>> > Michael Gogins
>> > Irreducible Productions
>> > http://michaelgogins.tumblr.com
>> > Michael dot Gogins at gmail dot com
>> >
>> >
>> > On Wed, Aug 28, 2013 at 11:18 AM, Steven Yi  wrote:
>> >>
>> >> Just an update, I tried modifying to use libcsnd6 and linking to that,
>> >> but it had no affect on the Java test.  I did see in the SWIG manual
>> >> for Java that they have an error shown similar to ours, with the
>> >> documentation:
>> >>
>> >> "This error usually indicates that you forgot to include some object
>> >> files or libraries in the linking of the native library file. Make
>> >> sure you compile both the SWIG wrapper file and the code you are
>> >> wrapping into the native library file. If you forget to compile and
>> >> link in the SWIG wrapper file into your native library file, you will
>> >> get a message similar to the following:"
>> >>
>> >> However, I don't think this is quite the issue as the same Cmake
>> >> script works on OSX and Linux. I did see an email about possibly
>> >> needing to compile the library with both the wrapper and the wrapped
>> >> lib, but that seemed odd as we had things working with CS5.
>> >>
>> >> I'll continue to explore here.
>> >>
>> >> On Tue, Aug 27, 2013 at 5:19 PM, Steven Yi  wrote:
>> >> > Thanks for the info, at least we can eliminate that possibility then.
>> >> > I'll hopefully get further along tomorrow and will report anything I
>> >> > find.
>> >> >
>> >> > On Tue, Aug 27, 2013 at 5:13 PM, Michael Gogins
>> >> >  wrote:
>> >> >> The csnd name should be versioned but I don't have 5 on my machine
>> >> >> at
>> >> >> all.
>> >> >>
>> >> >> On Aug 27, 2013 5:03 PM, "Steven Yi"  wrote:
>> >> >>>
>> >> >>> The compile paths here are a mess so I'm going to need to sort that
>> >> >>> out here locally.  However, I'm wondering if at runtime if the
>> >> >>> wrong
>> >> >>> dll is getting loaded due to csnd.dll being the same name in CS5
>> >> >>> and
>> >> >>> CS6.  Perhaps we should rename that to see if that's the source of
>> >> >>> issues for Java (possible CsoundPerformanceThread too?). I'm
>> >> >>> imagining
>> >> >>> if Csound runs multiple times alright, but CsoundPerformanceThread
>> >> >>> does not, then it could be possible that the csound6 library is
>> >> >>> loading fine, but the cs5 version of csnd is loading and causing
>> >> >>> issues.
>> >> >>>
>> >> >>> On Tue, Aug 27, 2013 at 4:52 PM, Michael Gogins
>> >> >>>  wrote:
>> >> >>> > In my build I'm very careful about the actual library paths. I
>> >> >>> > look
>> >> >>> > at
>> >> >>> > the
>> >> >>> > CMakeCache.txt, I look at the compiler and linker commands, and I
>> >> >>> > look
>> >> >>> > at
>> >> >>> > what libraries actually get loaded during a run (there are
>> >> >>> > various
>> >> >>> > tools
>> >> >>> > for
>> >> >>> > doing this on Windows). I am careful because yes, it has been a
>> >> >>> > problem
>> >> >>> > for
>> >> >>> > me, as you saw from my earlier emails.
>> >> >>> >
>> >> >>> > But we should talk about how to make this better on Windows.
>> >> >>> >
>> >> >>> > Best,
>> >> >>> > Mike
>> >> >>> >
>> >> >>> >
>> >> >>> > ===========================
>> >> >>> > Michael Gogins
>> >> >>> > Irreducible Productions
>> >> >>> > http://michaelgogins.tumblr.com
>> >> >>> > Michael dot Gogins at gmail dot com
>> >> >>> >
>> >> >>> >
>> >> >>> > On Tue, Aug 27, 2013 at 4:15 PM, Steven Yi 
>> >> >>> > wrote:
>> >> >>> >>
>> >> >>> >> Hi Michael and All,
>> >> >>> >>
>> >> >>> >> I just spent a bit of time looking into this and found some very
>> >> >>> >> heinous stuff going on in windows.  It looks to me that CMake
>> >> >>> >> actually
>> >> >>> >> found all types of libraries from the PATH to use.  That meant
>> >> >>> >> some
>> >> >>> >> libraries from C:\Program Files (x86)\Csound\bin were found,
>> >> >>> >> others
>> >> >>> >> from C:\Program Files (x86)\Csound6\bin, and others from my MSYS
>> >> >>> >> /usr/local/lib and custom set paths.  I get the impression this
>> >> >>> >> could
>> >> >>> >> be a source of some of the issues we're seeing both with the
>> >> >>> >> Java
>> >> >>> >> library and other windows oddities.
>> >> >>> >>
>> >> >>> >> I mostly noticed this in looking at my CmakeCache.txt.  I'm
>> >> >>> >> wondering
>> >> >>> >> if the Java lib is linking to Csound 5's csnd.dll instead of
>> >> >>> >> Csound6's.  If that's the case, then perhaps we can change csnd
>> >> >>> >> to
>> >> >>> >> be
>> >> >>> >> csnd6 instead.
>> >> >>> >>
>> >> >>> >> I've got to move on for the day, but will come back to this
>> >> >>> >> tomorrow.
>> >> >>> >>
>> >> >>> >>
>> >> >>> >>
>> >> >>> >> On Tue, Aug 20, 2013 at 11:14 PM, Michael Gogins
>> >> >>> >>  wrote:
>> >> >>> >> > People do seem to be switching to mingw-builds. I am using
>> >> >>> >> > 4.8.1,
>> >> >>> >> > dwarf-2,
>> >> >>> >> > posix threads, 32 bits. If you use the same version we have a
>> >> >>> >> > much
>> >> >>> >> > better
>> >> >>> >> > chance of understanding what is going on.
>> >> >>> >> >
>> >> >>> >> > I think there is something pretty subtle going on both with
>> >> >>> >> > Java
>> >> >>> >> > and
>> >> >>> >> > with
>> >> >>> >> > the CsoundPerformanceThread.
>> >> >>> >> >
>> >> >>> >> > I have proved that the existence of incompatible MinGW runtime
>> >> >>> >> > libraries
>> >> >>> >> > can
>> >> >>> >> > be a problem. I have also proved that that is not the ONLY
>> >> >>> >> > problem,
>> >> >>> >> > at
>> >> >>> >> > least, on my computer. I succeeded finally in removing
>> >> >>> >> > incompatible
>> >> >>> >> > MinGW
>> >> >>> >> > runtime libraries from my SysWOW64 directory (!) so I now can
>> >> >>> >> > run
>> >> >>> >> > CsoundAC
>> >> >>> >> > code, but I am still having problems with the performance
>> >> >>> >> > thread
>> >> >>> >> > and
>> >> >>> >> > with
>> >> >>> >> > Java. Different computers behave differently, e.g. I can run
>> >> >>> >> > CsoundQt
>> >> >>> >> > at
>> >> >>> >> > work but not at home.
>> >> >>> >> >
>> >> >>> >> > In my programming life, these errors can arise from several
>> >> >>> >> > errors
>> >> >>> >> > but
>> >> >>> >> > one
>> >> >>> >> > common source is uninitialized members of structs and classes
>> >> >>> >> > that
>> >> >>> >> > contain
>> >> >>> >> > zeroes on some machines and junk on other machines. Or writes
>> >> >>> >> > past
>> >> >>> >> > buffer
>> >> >>> >> > ends that poke holes in junk on some machines and in vital
>> >> >>> >> > organs
>> >> >>> >> > on
>> >> >>> >> > other
>> >> >>> >> > machines. Having multiple threads makes this harder...
>> >> >>> >> >
>> >> >>> >> > Regards,
>> >> >>> >> > Mike
>> >> >>> >> >
>> >> >>> >> > I wish I had something like valgrind on Windows but I can't
>> >> >>> >> > afford
>> >> >>> >> > the
>> >> >>> >> > equivalent.
>> >> >>> >> >
>> >> >>> >> >
>> >> >>> >> > ===========================
>> >> >>> >> > Michael Gogins
>> >> >>> >> > Irreducible Productions
>> >> >>> >> > http://michaelgogins.tumblr.com
>> >> >>> >> > Michael dot Gogins at gmail dot com
>> >> >>> >> >
>> >> >>> >> >
>> >> >>> >> > On Tue, Aug 20, 2013 at 10:56 PM, Steven Yi
>> >> >>> >> > 
>> >> >>> >> > wrote:
>> >> >>> >> >>
>> >> >>> >> >> Hi Michael,
>> >> >>> >> >>
>> >> >>> >> >> I was trying to setup to get a build working on Windows to
>> >> >>> >> >> see
>> >> >>> >> >> if I
>> >> >>> >> >> can further diagnose what's going on.  I currently have the
>> >> >>> >> >> stock
>> >> >>> >> >> mingw/msys installed from sf.net/projects/mingw. I noticed in
>> >> >>> >> >> your
>> >> >>> >> >> How
>> >> >>> >> >> to Build doc that you are using mingwbuilds version.  Could
>> >> >>> >> >> you
>> >> >>> >> >> advise: should I uninstalled mingw/msys and use just
>> >> >>> >> >> mingwbuilds?
>> >> >>> >> >> (I.e. better to start clean).
>> >> >>> >> >>
>> >> >>> >> >> Thanks!
>> >> >>> >> >> steven
>> >> >>> >> >>
>> >> >>> >> >> On Thu, Aug 15, 2013 at 8:44 AM, Michael Gogins
>> >> >>> >> >>  wrote:
>> >> >>> >> >> > Sorry, fumble fingers.
>> >> >>> >> >> >
>> >> >>> >> >> > The problem I see is that the csnd6 low level JNI Java
>> >> >>> >> >> > class
>> >> >>> >> >> > needs
>> >> >>> >> >> > to
>> >> >>> >> >> > call
>> >> >>> >> >> > SWIG's initializer in _csound.dll. The initializer is the
>> >> >>> >> >> > thing
>> >> >>> >> >> > not
>> >> >>> >> >> > found.
>> >> >>> >> >> > Without it we don't have Java Csound.
>> >> >>> >> >> >
>> >> >>> >> >> > Still no solution, though. The initializer is in
>> >> >>> >> >> > _jcsound.dll.
>> >> >>> >> >> > Java
>> >> >>> >> >> > doesn't
>> >> >>> >> >> > find it. Java finds the CsoundEditor.jar (a better test
>> >> >>> >> >> > than
>> >> >>> >> >> > CSDPlayer.jar
>> >> >>> >> >> > because it loads csnd6 right away) and loads and begins to
>> >> >>> >> >> > run
>> >> >>> >> >> > the
>> >> >>> >> >> > Java
>> >> >>> >> >> > code. The first thing to run is the static block that loads
>> >> >>> >> >> > _jcsound.dll
>> >> >>> >> >> > and
>> >> >>> >> >> > calls the initializer. There are 4 steps here: locate the
>> >> >>> >> >> > DLL,
>> >> >>> >> >> > load
>> >> >>> >> >> > the
>> >> >>> >> >> > DLL,
>> >> >>> >> >> > find the initializer function, call the initializer. We
>> >> >>> >> >> > know
>> >> >>> >> >> > that
>> >> >>> >> >> > we
>> >> >>> >> >> > don't
>> >> >>> >> >> > find the initializer. I think it fails at the load stage
>> >> >>> >> >> > because I
>> >> >>> >> >> > have
>> >> >>> >> >> > DLL
>> >> >>> >> >> > hell on my notebook right now and I seem to recall catching
>> >> >>> >> >> > the
>> >> >>> >> >> > DLL
>> >> >>> >> >> > load.
>> >> >>> >> >> > I'll verify that later. In other words I think it starts to
>> >> >>> >> >> > load
>> >> >>> >> >> > _jcsound.dll and then there is a problem when _jcsound.dll
>> >> >>> >> >> > is
>> >> >>> >> >> > loading
>> >> >>> >> >> > other
>> >> >>> >> >> > things or initializating its own things.
>> >> >>> >> >> >
>> >> >>> >> >> >
>> >> >>> >> >> > ===========================
>> >> >>> >> >> > Michael Gogins
>> >> >>> >> >> > Irreducible Productions
>> >> >>> >> >> > http://michaelgogins.tumblr.com
>> >> >>> >> >> > Michael dot Gogins at gmail dot com
>> >> >>> >> >> >
>> >> >>> >> >> >
>> >> >>> >> >> > On Thu, Aug 15, 2013 at 8:32 AM, Michael Gogins
>> >> >>> >> >> > 
>> >> >>> >> >> > wrote:
>> >> >>> >> >> >>
>> >> >>> >> >> >> The problem I see is that the Csound JNI
>> >> >>> >> >> >>
>> >> >>> >> >> >>
>> >> >>> >> >> >> ===========================
>> >> >>> >> >> >> Michael Gogins
>> >> >>> >> >> >> Irreducible Productions
>> >> >>> >> >> >> http://michaelgogins.tumblr.com
>> >> >>> >> >> >> Michael dot Gogins at gmail dot com
>> >> >>> >> >> >>
>> >> >>> >> >> >>
>> >> >>> >> >> >> On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi
>> >> >>> >> >> >> 
>> >> >>> >> >> >> wrote:
>> >> >>> >> >> >>>
>> >> >>> >> >> >>> Hi Michael,
>> >> >>> >> >> >>>
>> >> >>> >> >> >>> I'm wondering if this is the same issue. I need to
>> >> >>> >> >> >>> re-test,
>> >> >>> >> >> >>> but
>> >> >>> >> >> >>> when I
>> >> >>> >> >> >>> was trying things out I thought I didn't quite get a
>> >> >>> >> >> >>> crash,
>> >> >>> >> >> >>> just
>> >> >>> >> >> >>> an
>> >> >>> >> >> >>> UnsatisfiedLinkError exception for the function I was
>> >> >>> >> >> >>> trying
>> >> >>> >> >> >>> to
>> >> >>> >> >> >>> call,
>> >> >>> >> >> >>> which I could catch and do something about.  The test
>> >> >>> >> >> >>> java
>> >> >>> >> >> >>> class
>> >> >>> >> >> >>> I
>> >> >>> >> >> >>> put
>> >> >>> >> >> >>> into the bug may not be doing any catching, but then Java
>> >> >>> >> >> >>> should
>> >> >>> >> >> >>> have
>> >> >>> >> >> >>> just exited rather than crash.
>> >> >>> >> >> >>>
>> >> >>> >> >> >>> steven
>> >> >>> >> >> >>>
>> >> >>> >> >> >>> On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
>> >> >>> >> >> >>>  wrote:
>> >> >>> >> >> >>> > Gdb tells me Java crash is caused by linstd++-6.dll of
>> >> >>> >> >> >>> > wrong
>> >> >>> >> >> >>> > model
>> >> >>> >> >> >>> > found in
>> >> >>> >> >> >>> > SysWOW64, where it does not belong and was put by some
>> >> >>> >> >> >>> > incompetent
>> >> >>> >> >> >>> > installer. I'm afraid to remove it because I did once
>> >> >>> >> >> >>> > before
>> >> >>> >> >> >>> > and
>> >> >>> >> >> >>> > lost
>> >> >>> >> >> >>> > my
>> >> >>> >> >> >>> > user profile.
>> >> >>> >> >> >>> >
>> >> >>> >> >> >>> >
>> >> >>> >> >> >>> >
>> >> >>> >> >> >>> >
>> >> >>> >> >> >>> >
>> >> >>> >> >> >>> >
>> >> >>> >> >> >>> >
>> >> >>> >> >> >>> >
>> >> >>> >> >> >>> > ------------------------------------------------------------------------------
>> >> >>> >> >> >>> > Get 100% visibility into Java/.NET code with
>> >> >>> >> >> >>> > AppDynamics
>> >> >>> >> >> >>> > Lite!
>> >> >>> >> >> >>> > It's a free troubleshooting tool designed for
>> >> >>> >> >> >>> > production.
>> >> >>> >> >> >>> > Get down to code-level detail for bottlenecks, with <2%
>> >> >>> >> >> >>> > overhead.
>> >> >>> >> >> >>> > Download for free and get started troubleshooting in
>> >> >>> >> >> >>> > minutes.
>> >> >>> >> >> >>> >
>> >> >>> >> >> >>> >
>> >> >>> >> >> >>> >
>> >> >>> >> >> >>> >
>> >> >>> >> >> >>> >
>> >> >>> >> >> >>> >
>> >> >>> >> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >> >>> >> >> >>> > _______________________________________________
>> >> >>> >> >> >>> > Csound-devel mailing list
>> >> >>> >> >> >>> > Csound-devel@lists.sourceforge.net
>> >> >>> >> >> >>> >
>> >> >>> >> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >> >> >>> >
>> >> >>> >> >> >>>
>> >> >>> >> >> >>>
>> >> >>> >> >> >>>
>> >> >>> >> >> >>>
>> >> >>> >> >> >>>
>> >> >>> >> >> >>>
>> >> >>> >> >> >>>
>> >> >>> >> >> >>> ------------------------------------------------------------------------------
>> >> >>> >> >> >>> Get 100% visibility into Java/.NET code with AppDynamics
>> >> >>> >> >> >>> Lite!
>> >> >>> >> >> >>> It's a free troubleshooting tool designed for production.
>> >> >>> >> >> >>> Get down to code-level detail for bottlenecks, with <2%
>> >> >>> >> >> >>> overhead.
>> >> >>> >> >> >>> Download for free and get started troubleshooting in
>> >> >>> >> >> >>> minutes.
>> >> >>> >> >> >>>
>> >> >>> >> >> >>>
>> >> >>> >> >> >>>
>> >> >>> >> >> >>>
>> >> >>> >> >> >>>
>> >> >>> >> >> >>>
>> >> >>> >> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >> >>> >> >> >>> _______________________________________________
>> >> >>> >> >> >>> Csound-devel mailing list
>> >> >>> >> >> >>> Csound-devel@lists.sourceforge.net
>> >> >>> >> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >> >> >>
>> >> >>> >> >> >>
>> >> >>> >> >> >
>> >> >>> >> >> >
>> >> >>> >> >> >
>> >> >>> >> >> >
>> >> >>> >> >> >
>> >> >>> >> >> >
>> >> >>> >> >> >
>> >> >>> >> >> > ------------------------------------------------------------------------------
>> >> >>> >> >> > Get 100% visibility into Java/.NET code with AppDynamics
>> >> >>> >> >> > Lite!
>> >> >>> >> >> > It's a free troubleshooting tool designed for production.
>> >> >>> >> >> > Get down to code-level detail for bottlenecks, with <2%
>> >> >>> >> >> > overhead.
>> >> >>> >> >> > Download for free and get started troubleshooting in
>> >> >>> >> >> > minutes.
>> >> >>> >> >> >
>> >> >>> >> >> >
>> >> >>> >> >> >
>> >> >>> >> >> >
>> >> >>> >> >> >
>> >> >>> >> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >> >>> >> >> > _______________________________________________
>> >> >>> >> >> > Csound-devel mailing list
>> >> >>> >> >> > Csound-devel@lists.sourceforge.net
>> >> >>> >> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >> >> >
>> >> >>> >> >>
>> >> >>> >> >>
>> >> >>> >> >>
>> >> >>> >> >>
>> >> >>> >> >>
>> >> >>> >> >>
>> >> >>> >> >> ------------------------------------------------------------------------------
>> >> >>> >> >> Introducing Performance Central, a new site from SourceForge
>> >> >>> >> >> and
>> >> >>> >> >> AppDynamics. Performance Central is your source for news,
>> >> >>> >> >> insights,
>> >> >>> >> >> analysis and resources for efficient Application Performance
>> >> >>> >> >> Management.
>> >> >>> >> >> Visit us today!
>> >> >>> >> >>
>> >> >>> >> >>
>> >> >>> >> >>
>> >> >>> >> >>
>> >> >>> >> >>
>> >> >>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> >> >>> >> >>
>> >> >>> >> >> _______________________________________________
>> >> >>> >> >> Csound-devel mailing list
>> >> >>> >> >> Csound-devel@lists.sourceforge.net
>> >> >>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >> >
>> >> >>> >> >
>> >> >>> >> >
>> >> >>> >> >
>> >> >>> >> >
>> >> >>> >> >
>> >> >>> >> >
>> >> >>> >> > ------------------------------------------------------------------------------
>> >> >>> >> > Introducing Performance Central, a new site from SourceForge
>> >> >>> >> > and
>> >> >>> >> > AppDynamics. Performance Central is your source for news,
>> >> >>> >> > insights,
>> >> >>> >> > analysis and resources for efficient Application Performance
>> >> >>> >> > Management.
>> >> >>> >> > Visit us today!
>> >> >>> >> >
>> >> >>> >> >
>> >> >>> >> >
>> >> >>> >> >
>> >> >>> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> >> >>> >> > _______________________________________________
>> >> >>> >> > Csound-devel mailing list
>> >> >>> >> > Csound-devel@lists.sourceforge.net
>> >> >>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >> >
>> >> >>> >>
>> >> >>> >>
>> >> >>> >>
>> >> >>> >>
>> >> >>> >>
>> >> >>> >> ------------------------------------------------------------------------------
>> >> >>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >> >>> >> more!
>> >> >>> >> Discover the easy way to master current and previous Microsoft
>> >> >>> >> technologies
>> >> >>> >> and advance your career. Get an incredible 1,500+ hours of
>> >> >>> >> step-by-step
>> >> >>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >> >>> >>
>> >> >>> >>
>> >> >>> >>
>> >> >>> >>
>> >> >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >>> >>
>> >> >>> >> _______________________________________________
>> >> >>> >> Csound-devel mailing list
>> >> >>> >> Csound-devel@lists.sourceforge.net
>> >> >>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> > ------------------------------------------------------------------------------
>> >> >>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >> >>> > more!
>> >> >>> > Discover the easy way to master current and previous Microsoft
>> >> >>> > technologies
>> >> >>> > and advance your career. Get an incredible 1,500+ hours of
>> >> >>> > step-by-step
>> >> >>> > tutorial videos with LearnDevNow. Subscribe today and save!
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >>> > _______________________________________________
>> >> >>> > Csound-devel mailing list
>> >> >>> > Csound-devel@lists.sourceforge.net
>> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>> ------------------------------------------------------------------------------
>> >> >>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >> >>> more!
>> >> >>> Discover the easy way to master current and previous Microsoft
>> >> >>> technologies
>> >> >>> and advance your career. Get an incredible 1,500+ hours of
>> >> >>> step-by-step
>> >> >>> tutorial videos with LearnDevNow. Subscribe today and save!
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >>> _______________________________________________
>> >> >>> Csound-devel mailing list
>> >> >>> Csound-devel@lists.sourceforge.net
>> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >> ------------------------------------------------------------------------------
>> >> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >> >> more!
>> >> >> Discover the easy way to master current and previous Microsoft
>> >> >> technologies
>> >> >> and advance your career. Get an incredible 1,500+ hours of
>> >> >> step-by-step
>> >> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >> >>
>> >> >>
>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >> _______________________________________________
>> >> >> Csound-devel mailing list
>> >> >> Csound-devel@lists.sourceforge.net
>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> >> Discover the easy way to master current and previous Microsoft
>> >> technologies
>> >> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>
>> >>
>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> > Discover the easy way to master current and previous Microsoft
>> > technologies
>> > and advance your career. Get an incredible 1,500+ hours of step-by-step
>> > tutorial videos with LearnDevNow. Subscribe today and save!
>> >
>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> Discover the easy way to master current and previous Microsoft
>> technologies
>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> tutorial videos with LearnDevNow. Subscribe today and save!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-08-28 18:25
FromSteven Yi
SubjectRe: [Cs-dev] Java crash on windows
I found something that looks useful.  In _jcsound.dll from CS5,
DependencyWalker shows symbols like:

Java_csnd_csndJNI_swig_1module_1init
Java_csnd_csndJNI_swig_1module_1init@8

while CS6 only has:

Java_csnd6_csnd6JNI_swig_1module_1init@8

I get the impression that the PUBLIC attribute isn't working
correctly, or something along those lines.  I've got to take a break
but will continue on with this after lunch.

On Wed, Aug 28, 2013 at 12:22 PM, Steven Yi  wrote:
> That didn't seem to affect anything unfortunately. Continuing on....
>
> On Wed, Aug 28, 2013 at 11:59 AM, Michael Gogins
>  wrote:
>> Well, that's certainly a mistake.
>>
>> On Aug 28, 2013 11:59 AM, "Steven Yi"  wrote:
>>>
>>> That sounds reasonable, but the Csound5 API still loads for me fine
>>> with Blue, using the same VM.  I think that'd rule that one out.  I
>>> saw that csound.h has "%module csnd" isntead of "%module csnd6".  I'm
>>> not sure that's it, as that seems like it'd affect other platforms,
>>> but I'm giving it a try now just in case.  (compile should be done in
>>> 15-20 mins... ugh...)
>>>
>>> On Wed, Aug 28, 2013 at 11:35 AM, Michael Gogins
>>>  wrote:
>>> > If I were you, I would try compiling the library with both the wrapper
>>> > and
>>> > the wrapped lib, just to rule that out.
>>> >
>>> > There may well have been some change in the way the Java VM and library
>>> > link. You could try Oracle issues on Java regarding that.
>>> >
>>> > Best,
>>> > Mike
>>> >
>>> >
>>> > ===========================
>>> > Michael Gogins
>>> > Irreducible Productions
>>> > http://michaelgogins.tumblr.com
>>> > Michael dot Gogins at gmail dot com
>>> >
>>> >
>>> > On Wed, Aug 28, 2013 at 11:18 AM, Steven Yi  wrote:
>>> >>
>>> >> Just an update, I tried modifying to use libcsnd6 and linking to that,
>>> >> but it had no affect on the Java test.  I did see in the SWIG manual
>>> >> for Java that they have an error shown similar to ours, with the
>>> >> documentation:
>>> >>
>>> >> "This error usually indicates that you forgot to include some object
>>> >> files or libraries in the linking of the native library file. Make
>>> >> sure you compile both the SWIG wrapper file and the code you are
>>> >> wrapping into the native library file. If you forget to compile and
>>> >> link in the SWIG wrapper file into your native library file, you will
>>> >> get a message similar to the following:"
>>> >>
>>> >> However, I don't think this is quite the issue as the same Cmake
>>> >> script works on OSX and Linux. I did see an email about possibly
>>> >> needing to compile the library with both the wrapper and the wrapped
>>> >> lib, but that seemed odd as we had things working with CS5.
>>> >>
>>> >> I'll continue to explore here.
>>> >>
>>> >> On Tue, Aug 27, 2013 at 5:19 PM, Steven Yi  wrote:
>>> >> > Thanks for the info, at least we can eliminate that possibility then.
>>> >> > I'll hopefully get further along tomorrow and will report anything I
>>> >> > find.
>>> >> >
>>> >> > On Tue, Aug 27, 2013 at 5:13 PM, Michael Gogins
>>> >> >  wrote:
>>> >> >> The csnd name should be versioned but I don't have 5 on my machine
>>> >> >> at
>>> >> >> all.
>>> >> >>
>>> >> >> On Aug 27, 2013 5:03 PM, "Steven Yi"  wrote:
>>> >> >>>
>>> >> >>> The compile paths here are a mess so I'm going to need to sort that
>>> >> >>> out here locally.  However, I'm wondering if at runtime if the
>>> >> >>> wrong
>>> >> >>> dll is getting loaded due to csnd.dll being the same name in CS5
>>> >> >>> and
>>> >> >>> CS6.  Perhaps we should rename that to see if that's the source of
>>> >> >>> issues for Java (possible CsoundPerformanceThread too?). I'm
>>> >> >>> imagining
>>> >> >>> if Csound runs multiple times alright, but CsoundPerformanceThread
>>> >> >>> does not, then it could be possible that the csound6 library is
>>> >> >>> loading fine, but the cs5 version of csnd is loading and causing
>>> >> >>> issues.
>>> >> >>>
>>> >> >>> On Tue, Aug 27, 2013 at 4:52 PM, Michael Gogins
>>> >> >>>  wrote:
>>> >> >>> > In my build I'm very careful about the actual library paths. I
>>> >> >>> > look
>>> >> >>> > at
>>> >> >>> > the
>>> >> >>> > CMakeCache.txt, I look at the compiler and linker commands, and I
>>> >> >>> > look
>>> >> >>> > at
>>> >> >>> > what libraries actually get loaded during a run (there are
>>> >> >>> > various
>>> >> >>> > tools
>>> >> >>> > for
>>> >> >>> > doing this on Windows). I am careful because yes, it has been a
>>> >> >>> > problem
>>> >> >>> > for
>>> >> >>> > me, as you saw from my earlier emails.
>>> >> >>> >
>>> >> >>> > But we should talk about how to make this better on Windows.
>>> >> >>> >
>>> >> >>> > Best,
>>> >> >>> > Mike
>>> >> >>> >
>>> >> >>> >
>>> >> >>> > ===========================
>>> >> >>> > Michael Gogins
>>> >> >>> > Irreducible Productions
>>> >> >>> > http://michaelgogins.tumblr.com
>>> >> >>> > Michael dot Gogins at gmail dot com
>>> >> >>> >
>>> >> >>> >
>>> >> >>> > On Tue, Aug 27, 2013 at 4:15 PM, Steven Yi 
>>> >> >>> > wrote:
>>> >> >>> >>
>>> >> >>> >> Hi Michael and All,
>>> >> >>> >>
>>> >> >>> >> I just spent a bit of time looking into this and found some very
>>> >> >>> >> heinous stuff going on in windows.  It looks to me that CMake
>>> >> >>> >> actually
>>> >> >>> >> found all types of libraries from the PATH to use.  That meant
>>> >> >>> >> some
>>> >> >>> >> libraries from C:\Program Files (x86)\Csound\bin were found,
>>> >> >>> >> others
>>> >> >>> >> from C:\Program Files (x86)\Csound6\bin, and others from my MSYS
>>> >> >>> >> /usr/local/lib and custom set paths.  I get the impression this
>>> >> >>> >> could
>>> >> >>> >> be a source of some of the issues we're seeing both with the
>>> >> >>> >> Java
>>> >> >>> >> library and other windows oddities.
>>> >> >>> >>
>>> >> >>> >> I mostly noticed this in looking at my CmakeCache.txt.  I'm
>>> >> >>> >> wondering
>>> >> >>> >> if the Java lib is linking to Csound 5's csnd.dll instead of
>>> >> >>> >> Csound6's.  If that's the case, then perhaps we can change csnd
>>> >> >>> >> to
>>> >> >>> >> be
>>> >> >>> >> csnd6 instead.
>>> >> >>> >>
>>> >> >>> >> I've got to move on for the day, but will come back to this
>>> >> >>> >> tomorrow.
>>> >> >>> >>
>>> >> >>> >>
>>> >> >>> >>
>>> >> >>> >> On Tue, Aug 20, 2013 at 11:14 PM, Michael Gogins
>>> >> >>> >>  wrote:
>>> >> >>> >> > People do seem to be switching to mingw-builds. I am using
>>> >> >>> >> > 4.8.1,
>>> >> >>> >> > dwarf-2,
>>> >> >>> >> > posix threads, 32 bits. If you use the same version we have a
>>> >> >>> >> > much
>>> >> >>> >> > better
>>> >> >>> >> > chance of understanding what is going on.
>>> >> >>> >> >
>>> >> >>> >> > I think there is something pretty subtle going on both with
>>> >> >>> >> > Java
>>> >> >>> >> > and
>>> >> >>> >> > with
>>> >> >>> >> > the CsoundPerformanceThread.
>>> >> >>> >> >
>>> >> >>> >> > I have proved that the existence of incompatible MinGW runtime
>>> >> >>> >> > libraries
>>> >> >>> >> > can
>>> >> >>> >> > be a problem. I have also proved that that is not the ONLY
>>> >> >>> >> > problem,
>>> >> >>> >> > at
>>> >> >>> >> > least, on my computer. I succeeded finally in removing
>>> >> >>> >> > incompatible
>>> >> >>> >> > MinGW
>>> >> >>> >> > runtime libraries from my SysWOW64 directory (!) so I now can
>>> >> >>> >> > run
>>> >> >>> >> > CsoundAC
>>> >> >>> >> > code, but I am still having problems with the performance
>>> >> >>> >> > thread
>>> >> >>> >> > and
>>> >> >>> >> > with
>>> >> >>> >> > Java. Different computers behave differently, e.g. I can run
>>> >> >>> >> > CsoundQt
>>> >> >>> >> > at
>>> >> >>> >> > work but not at home.
>>> >> >>> >> >
>>> >> >>> >> > In my programming life, these errors can arise from several
>>> >> >>> >> > errors
>>> >> >>> >> > but
>>> >> >>> >> > one
>>> >> >>> >> > common source is uninitialized members of structs and classes
>>> >> >>> >> > that
>>> >> >>> >> > contain
>>> >> >>> >> > zeroes on some machines and junk on other machines. Or writes
>>> >> >>> >> > past
>>> >> >>> >> > buffer
>>> >> >>> >> > ends that poke holes in junk on some machines and in vital
>>> >> >>> >> > organs
>>> >> >>> >> > on
>>> >> >>> >> > other
>>> >> >>> >> > machines. Having multiple threads makes this harder...
>>> >> >>> >> >
>>> >> >>> >> > Regards,
>>> >> >>> >> > Mike
>>> >> >>> >> >
>>> >> >>> >> > I wish I had something like valgrind on Windows but I can't
>>> >> >>> >> > afford
>>> >> >>> >> > the
>>> >> >>> >> > equivalent.
>>> >> >>> >> >
>>> >> >>> >> >
>>> >> >>> >> > ===========================
>>> >> >>> >> > Michael Gogins
>>> >> >>> >> > Irreducible Productions
>>> >> >>> >> > http://michaelgogins.tumblr.com
>>> >> >>> >> > Michael dot Gogins at gmail dot com
>>> >> >>> >> >
>>> >> >>> >> >
>>> >> >>> >> > On Tue, Aug 20, 2013 at 10:56 PM, Steven Yi
>>> >> >>> >> > 
>>> >> >>> >> > wrote:
>>> >> >>> >> >>
>>> >> >>> >> >> Hi Michael,
>>> >> >>> >> >>
>>> >> >>> >> >> I was trying to setup to get a build working on Windows to
>>> >> >>> >> >> see
>>> >> >>> >> >> if I
>>> >> >>> >> >> can further diagnose what's going on.  I currently have the
>>> >> >>> >> >> stock
>>> >> >>> >> >> mingw/msys installed from sf.net/projects/mingw. I noticed in
>>> >> >>> >> >> your
>>> >> >>> >> >> How
>>> >> >>> >> >> to Build doc that you are using mingwbuilds version.  Could
>>> >> >>> >> >> you
>>> >> >>> >> >> advise: should I uninstalled mingw/msys and use just
>>> >> >>> >> >> mingwbuilds?
>>> >> >>> >> >> (I.e. better to start clean).
>>> >> >>> >> >>
>>> >> >>> >> >> Thanks!
>>> >> >>> >> >> steven
>>> >> >>> >> >>
>>> >> >>> >> >> On Thu, Aug 15, 2013 at 8:44 AM, Michael Gogins
>>> >> >>> >> >>  wrote:
>>> >> >>> >> >> > Sorry, fumble fingers.
>>> >> >>> >> >> >
>>> >> >>> >> >> > The problem I see is that the csnd6 low level JNI Java
>>> >> >>> >> >> > class
>>> >> >>> >> >> > needs
>>> >> >>> >> >> > to
>>> >> >>> >> >> > call
>>> >> >>> >> >> > SWIG's initializer in _csound.dll. The initializer is the
>>> >> >>> >> >> > thing
>>> >> >>> >> >> > not
>>> >> >>> >> >> > found.
>>> >> >>> >> >> > Without it we don't have Java Csound.
>>> >> >>> >> >> >
>>> >> >>> >> >> > Still no solution, though. The initializer is in
>>> >> >>> >> >> > _jcsound.dll.
>>> >> >>> >> >> > Java
>>> >> >>> >> >> > doesn't
>>> >> >>> >> >> > find it. Java finds the CsoundEditor.jar (a better test
>>> >> >>> >> >> > than
>>> >> >>> >> >> > CSDPlayer.jar
>>> >> >>> >> >> > because it loads csnd6 right away) and loads and begins to
>>> >> >>> >> >> > run
>>> >> >>> >> >> > the
>>> >> >>> >> >> > Java
>>> >> >>> >> >> > code. The first thing to run is the static block that loads
>>> >> >>> >> >> > _jcsound.dll
>>> >> >>> >> >> > and
>>> >> >>> >> >> > calls the initializer. There are 4 steps here: locate the
>>> >> >>> >> >> > DLL,
>>> >> >>> >> >> > load
>>> >> >>> >> >> > the
>>> >> >>> >> >> > DLL,
>>> >> >>> >> >> > find the initializer function, call the initializer. We
>>> >> >>> >> >> > know
>>> >> >>> >> >> > that
>>> >> >>> >> >> > we
>>> >> >>> >> >> > don't
>>> >> >>> >> >> > find the initializer. I think it fails at the load stage
>>> >> >>> >> >> > because I
>>> >> >>> >> >> > have
>>> >> >>> >> >> > DLL
>>> >> >>> >> >> > hell on my notebook right now and I seem to recall catching
>>> >> >>> >> >> > the
>>> >> >>> >> >> > DLL
>>> >> >>> >> >> > load.
>>> >> >>> >> >> > I'll verify that later. In other words I think it starts to
>>> >> >>> >> >> > load
>>> >> >>> >> >> > _jcsound.dll and then there is a problem when _jcsound.dll
>>> >> >>> >> >> > is
>>> >> >>> >> >> > loading
>>> >> >>> >> >> > other
>>> >> >>> >> >> > things or initializating its own things.
>>> >> >>> >> >> >
>>> >> >>> >> >> >
>>> >> >>> >> >> > ===========================
>>> >> >>> >> >> > Michael Gogins
>>> >> >>> >> >> > Irreducible Productions
>>> >> >>> >> >> > http://michaelgogins.tumblr.com
>>> >> >>> >> >> > Michael dot Gogins at gmail dot com
>>> >> >>> >> >> >
>>> >> >>> >> >> >
>>> >> >>> >> >> > On Thu, Aug 15, 2013 at 8:32 AM, Michael Gogins
>>> >> >>> >> >> > 
>>> >> >>> >> >> > wrote:
>>> >> >>> >> >> >>
>>> >> >>> >> >> >> The problem I see is that the Csound JNI
>>> >> >>> >> >> >>
>>> >> >>> >> >> >>
>>> >> >>> >> >> >> ===========================
>>> >> >>> >> >> >> Michael Gogins
>>> >> >>> >> >> >> Irreducible Productions
>>> >> >>> >> >> >> http://michaelgogins.tumblr.com
>>> >> >>> >> >> >> Michael dot Gogins at gmail dot com
>>> >> >>> >> >> >>
>>> >> >>> >> >> >>
>>> >> >>> >> >> >> On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi
>>> >> >>> >> >> >> 
>>> >> >>> >> >> >> wrote:
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>> Hi Michael,
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>> I'm wondering if this is the same issue. I need to
>>> >> >>> >> >> >>> re-test,
>>> >> >>> >> >> >>> but
>>> >> >>> >> >> >>> when I
>>> >> >>> >> >> >>> was trying things out I thought I didn't quite get a
>>> >> >>> >> >> >>> crash,
>>> >> >>> >> >> >>> just
>>> >> >>> >> >> >>> an
>>> >> >>> >> >> >>> UnsatisfiedLinkError exception for the function I was
>>> >> >>> >> >> >>> trying
>>> >> >>> >> >> >>> to
>>> >> >>> >> >> >>> call,
>>> >> >>> >> >> >>> which I could catch and do something about.  The test
>>> >> >>> >> >> >>> java
>>> >> >>> >> >> >>> class
>>> >> >>> >> >> >>> I
>>> >> >>> >> >> >>> put
>>> >> >>> >> >> >>> into the bug may not be doing any catching, but then Java
>>> >> >>> >> >> >>> should
>>> >> >>> >> >> >>> have
>>> >> >>> >> >> >>> just exited rather than crash.
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>> steven
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>> On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
>>> >> >>> >> >> >>>  wrote:
>>> >> >>> >> >> >>> > Gdb tells me Java crash is caused by linstd++-6.dll of
>>> >> >>> >> >> >>> > wrong
>>> >> >>> >> >> >>> > model
>>> >> >>> >> >> >>> > found in
>>> >> >>> >> >> >>> > SysWOW64, where it does not belong and was put by some
>>> >> >>> >> >> >>> > incompetent
>>> >> >>> >> >> >>> > installer. I'm afraid to remove it because I did once
>>> >> >>> >> >> >>> > before
>>> >> >>> >> >> >>> > and
>>> >> >>> >> >> >>> > lost
>>> >> >>> >> >> >>> > my
>>> >> >>> >> >> >>> > user profile.
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> > ------------------------------------------------------------------------------
>>> >> >>> >> >> >>> > Get 100% visibility into Java/.NET code with
>>> >> >>> >> >> >>> > AppDynamics
>>> >> >>> >> >> >>> > Lite!
>>> >> >>> >> >> >>> > It's a free troubleshooting tool designed for
>>> >> >>> >> >> >>> > production.
>>> >> >>> >> >> >>> > Get down to code-level detail for bottlenecks, with <2%
>>> >> >>> >> >> >>> > overhead.
>>> >> >>> >> >> >>> > Download for free and get started troubleshooting in
>>> >> >>> >> >> >>> > minutes.
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>>> >> >>> >> >> >>> > _______________________________________________
>>> >> >>> >> >> >>> > Csound-devel mailing list
>>> >> >>> >> >> >>> > Csound-devel@lists.sourceforge.net
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>> ------------------------------------------------------------------------------
>>> >> >>> >> >> >>> Get 100% visibility into Java/.NET code with AppDynamics
>>> >> >>> >> >> >>> Lite!
>>> >> >>> >> >> >>> It's a free troubleshooting tool designed for production.
>>> >> >>> >> >> >>> Get down to code-level detail for bottlenecks, with <2%
>>> >> >>> >> >> >>> overhead.
>>> >> >>> >> >> >>> Download for free and get started troubleshooting in
>>> >> >>> >> >> >>> minutes.
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>>> >> >>> >> >> >>> _______________________________________________
>>> >> >>> >> >> >>> Csound-devel mailing list
>>> >> >>> >> >> >>> Csound-devel@lists.sourceforge.net
>>> >> >>> >> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >>> >> >> >>
>>> >> >>> >> >> >>
>>> >> >>> >> >> >
>>> >> >>> >> >> >
>>> >> >>> >> >> >
>>> >> >>> >> >> >
>>> >> >>> >> >> >
>>> >> >>> >> >> >
>>> >> >>> >> >> >
>>> >> >>> >> >> > ------------------------------------------------------------------------------
>>> >> >>> >> >> > Get 100% visibility into Java/.NET code with AppDynamics
>>> >> >>> >> >> > Lite!
>>> >> >>> >> >> > It's a free troubleshooting tool designed for production.
>>> >> >>> >> >> > Get down to code-level detail for bottlenecks, with <2%
>>> >> >>> >> >> > overhead.
>>> >> >>> >> >> > Download for free and get started troubleshooting in
>>> >> >>> >> >> > minutes.
>>> >> >>> >> >> >
>>> >> >>> >> >> >
>>> >> >>> >> >> >
>>> >> >>> >> >> >
>>> >> >>> >> >> >
>>> >> >>> >> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>>> >> >>> >> >> > _______________________________________________
>>> >> >>> >> >> > Csound-devel mailing list
>>> >> >>> >> >> > Csound-devel@lists.sourceforge.net
>>> >> >>> >> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >>> >> >> >
>>> >> >>> >> >>
>>> >> >>> >> >>
>>> >> >>> >> >>
>>> >> >>> >> >>
>>> >> >>> >> >>
>>> >> >>> >> >>
>>> >> >>> >> >> ------------------------------------------------------------------------------
>>> >> >>> >> >> Introducing Performance Central, a new site from SourceForge
>>> >> >>> >> >> and
>>> >> >>> >> >> AppDynamics. Performance Central is your source for news,
>>> >> >>> >> >> insights,
>>> >> >>> >> >> analysis and resources for efficient Application Performance
>>> >> >>> >> >> Management.
>>> >> >>> >> >> Visit us today!
>>> >> >>> >> >>
>>> >> >>> >> >>
>>> >> >>> >> >>
>>> >> >>> >> >>
>>> >> >>> >> >>
>>> >> >>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>>> >> >>> >> >>
>>> >> >>> >> >> _______________________________________________
>>> >> >>> >> >> Csound-devel mailing list
>>> >> >>> >> >> Csound-devel@lists.sourceforge.net
>>> >> >>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >>> >> >
>>> >> >>> >> >
>>> >> >>> >> >
>>> >> >>> >> >
>>> >> >>> >> >
>>> >> >>> >> >
>>> >> >>> >> >
>>> >> >>> >> > ------------------------------------------------------------------------------
>>> >> >>> >> > Introducing Performance Central, a new site from SourceForge
>>> >> >>> >> > and
>>> >> >>> >> > AppDynamics. Performance Central is your source for news,
>>> >> >>> >> > insights,
>>> >> >>> >> > analysis and resources for efficient Application Performance
>>> >> >>> >> > Management.
>>> >> >>> >> > Visit us today!
>>> >> >>> >> >
>>> >> >>> >> >
>>> >> >>> >> >
>>> >> >>> >> >
>>> >> >>> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>>> >> >>> >> > _______________________________________________
>>> >> >>> >> > Csound-devel mailing list
>>> >> >>> >> > Csound-devel@lists.sourceforge.net
>>> >> >>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >>> >> >
>>> >> >>> >>
>>> >> >>> >>
>>> >> >>> >>
>>> >> >>> >>
>>> >> >>> >>
>>> >> >>> >> ------------------------------------------------------------------------------
>>> >> >>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>>> >> >>> >> more!
>>> >> >>> >> Discover the easy way to master current and previous Microsoft
>>> >> >>> >> technologies
>>> >> >>> >> and advance your career. Get an incredible 1,500+ hours of
>>> >> >>> >> step-by-step
>>> >> >>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>>> >> >>> >>
>>> >> >>> >>
>>> >> >>> >>
>>> >> >>> >>
>>> >> >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> >> >>> >>
>>> >> >>> >> _______________________________________________
>>> >> >>> >> Csound-devel mailing list
>>> >> >>> >> Csound-devel@lists.sourceforge.net
>>> >> >>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >>> >
>>> >> >>> >
>>> >> >>> >
>>> >> >>> >
>>> >> >>> >
>>> >> >>> >
>>> >> >>> > ------------------------------------------------------------------------------
>>> >> >>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>>> >> >>> > more!
>>> >> >>> > Discover the easy way to master current and previous Microsoft
>>> >> >>> > technologies
>>> >> >>> > and advance your career. Get an incredible 1,500+ hours of
>>> >> >>> > step-by-step
>>> >> >>> > tutorial videos with LearnDevNow. Subscribe today and save!
>>> >> >>> >
>>> >> >>> >
>>> >> >>> >
>>> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> >> >>> > _______________________________________________
>>> >> >>> > Csound-devel mailing list
>>> >> >>> > Csound-devel@lists.sourceforge.net
>>> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >>> >
>>> >> >>>
>>> >> >>>
>>> >> >>>
>>> >> >>>
>>> >> >>> ------------------------------------------------------------------------------
>>> >> >>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>>> >> >>> more!
>>> >> >>> Discover the easy way to master current and previous Microsoft
>>> >> >>> technologies
>>> >> >>> and advance your career. Get an incredible 1,500+ hours of
>>> >> >>> step-by-step
>>> >> >>> tutorial videos with LearnDevNow. Subscribe today and save!
>>> >> >>>
>>> >> >>>
>>> >> >>>
>>> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> >> >>> _______________________________________________
>>> >> >>> Csound-devel mailing list
>>> >> >>> Csound-devel@lists.sourceforge.net
>>> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >> ------------------------------------------------------------------------------
>>> >> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>>> >> >> more!
>>> >> >> Discover the easy way to master current and previous Microsoft
>>> >> >> technologies
>>> >> >> and advance your career. Get an incredible 1,500+ hours of
>>> >> >> step-by-step
>>> >> >> tutorial videos with LearnDevNow. Subscribe today and save!
>>> >> >>
>>> >> >>
>>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> >> >> _______________________________________________
>>> >> >> Csound-devel mailing list
>>> >> >> Csound-devel@lists.sourceforge.net
>>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >>
>>> >>
>>> >>
>>> >>
>>> >> ------------------------------------------------------------------------------
>>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>>> >> Discover the easy way to master current and previous Microsoft
>>> >> technologies
>>> >> and advance your career. Get an incredible 1,500+ hours of step-by-step
>>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>>> >>
>>> >>
>>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> >> _______________________________________________
>>> >> Csound-devel mailing list
>>> >> Csound-devel@lists.sourceforge.net
>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >
>>> >
>>> >
>>> >
>>> > ------------------------------------------------------------------------------
>>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>>> > Discover the easy way to master current and previous Microsoft
>>> > technologies
>>> > and advance your career. Get an incredible 1,500+ hours of step-by-step
>>> > tutorial videos with LearnDevNow. Subscribe today and save!
>>> >
>>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> > _______________________________________________
>>> > Csound-devel mailing list
>>> > Csound-devel@lists.sourceforge.net
>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>>> Discover the easy way to master current and previous Microsoft
>>> technologies
>>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>>> tutorial videos with LearnDevNow. Subscribe today and save!
>>>
>>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> Discover the easy way to master current and previous Microsoft technologies
>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> tutorial videos with LearnDevNow. Subscribe today and save!
>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-08-28 19:40
FromMichael Gogins
SubjectRe: [Cs-dev] Java crash on windows
AttachmentsNone  None  
If that's the case, then changing the linker flags should do the trick. @8 marks the function as stdcall calling convention with 8 bytes to be popped off the stack after returning from the call. 

To CFLAGS and CXXFLAGS for the DLL, add -"Wl,--add-stdcall-alias -Wl,--enable-stdcall-fixup". I think only the first is required but I used to add both to everything just to cover my bases.

--add-stdcall-alias                Export symbols with and without @nn 
--disable-stdcall-fixup            Don't link _sym to _sym@nn DON'T USE!
--enable-stdcall-fixup             Link _sym to _sym@nn without warnings 

Best,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Wed, Aug 28, 2013 at 1:25 PM, Steven Yi <stevenyi@gmail.com> wrote:
I found something that looks useful.  In _jcsound.dll from CS5,
DependencyWalker shows symbols like:

Java_csnd_csndJNI_swig_1module_1init
Java_csnd_csndJNI_swig_1module_1init@8

while CS6 only has:

Java_csnd6_csnd6JNI_swig_1module_1init@8

I get the impression that the PUBLIC attribute isn't working
correctly, or something along those lines.  I've got to take a break
but will continue on with this after lunch.

On Wed, Aug 28, 2013 at 12:22 PM, Steven Yi <stevenyi@gmail.com> wrote:
> That didn't seem to affect anything unfortunately. Continuing on....
>
> On Wed, Aug 28, 2013 at 11:59 AM, Michael Gogins
> <michael.gogins@gmail.com> wrote:
>> Well, that's certainly a mistake.
>>
>> On Aug 28, 2013 11:59 AM, "Steven Yi" <stevenyi@gmail.com> wrote:
>>>
>>> That sounds reasonable, but the Csound5 API still loads for me fine
>>> with Blue, using the same VM.  I think that'd rule that one out.  I
>>> saw that csound.h has "%module csnd" isntead of "%module csnd6".  I'm
>>> not sure that's it, as that seems like it'd affect other platforms,
>>> but I'm giving it a try now just in case.  (compile should be done in
>>> 15-20 mins... ugh...)
>>>
>>> On Wed, Aug 28, 2013 at 11:35 AM, Michael Gogins
>>> <michael.gogins@gmail.com> wrote:
>>> > If I were you, I would try compiling the library with both the wrapper
>>> > and
>>> > the wrapped lib, just to rule that out.
>>> >
>>> > There may well have been some change in the way the Java VM and library
>>> > link. You could try Oracle issues on Java regarding that.
>>> >
>>> > Best,
>>> > Mike
>>> >
>>> >
>>> > ===========================
>>> > Michael Gogins
>>> > Irreducible Productions
>>> > http://michaelgogins.tumblr.com
>>> > Michael dot Gogins at gmail dot com
>>> >
>>> >
>>> > On Wed, Aug 28, 2013 at 11:18 AM, Steven Yi <stevenyi@gmail.com> wrote:
>>> >>
>>> >> Just an update, I tried modifying to use libcsnd6 and linking to that,
>>> >> but it had no affect on the Java test.  I did see in the SWIG manual
>>> >> for Java that they have an error shown similar to ours, with the
>>> >> documentation:
>>> >>
>>> >> "This error usually indicates that you forgot to include some object
>>> >> files or libraries in the linking of the native library file. Make
>>> >> sure you compile both the SWIG wrapper file and the code you are
>>> >> wrapping into the native library file. If you forget to compile and
>>> >> link in the SWIG wrapper file into your native library file, you will
>>> >> get a message similar to the following:"
>>> >>
>>> >> However, I don't think this is quite the issue as the same Cmake
>>> >> script works on OSX and Linux. I did see an email about possibly
>>> >> needing to compile the library with both the wrapper and the wrapped
>>> >> lib, but that seemed odd as we had things working with CS5.
>>> >>
>>> >> I'll continue to explore here.
>>> >>
>>> >> On Tue, Aug 27, 2013 at 5:19 PM, Steven Yi <stevenyi@gmail.com> wrote:
>>> >> > Thanks for the info, at least we can eliminate that possibility then.
>>> >> > I'll hopefully get further along tomorrow and will report anything I
>>> >> > find.
>>> >> >
>>> >> > On Tue, Aug 27, 2013 at 5:13 PM, Michael Gogins
>>> >> > <michael.gogins@gmail.com> wrote:
>>> >> >> The csnd name should be versioned but I don't have 5 on my machine
>>> >> >> at
>>> >> >> all.
>>> >> >>
>>> >> >> On Aug 27, 2013 5:03 PM, "Steven Yi" <stevenyi@gmail.com> wrote:
>>> >> >>>
>>> >> >>> The compile paths here are a mess so I'm going to need to sort that
>>> >> >>> out here locally.  However, I'm wondering if at runtime if the
>>> >> >>> wrong
>>> >> >>> dll is getting loaded due to csnd.dll being the same name in CS5
>>> >> >>> and
>>> >> >>> CS6.  Perhaps we should rename that to see if that's the source of
>>> >> >>> issues for Java (possible CsoundPerformanceThread too?). I'm
>>> >> >>> imagining
>>> >> >>> if Csound runs multiple times alright, but CsoundPerformanceThread
>>> >> >>> does not, then it could be possible that the csound6 library is
>>> >> >>> loading fine, but the cs5 version of csnd is loading and causing
>>> >> >>> issues.
>>> >> >>>
>>> >> >>> On Tue, Aug 27, 2013 at 4:52 PM, Michael Gogins
>>> >> >>> <michael.gogins@gmail.com> wrote:
>>> >> >>> > In my build I'm very careful about the actual library paths. I
>>> >> >>> > look
>>> >> >>> > at
>>> >> >>> > the
>>> >> >>> > CMakeCache.txt, I look at the compiler and linker commands, and I
>>> >> >>> > look
>>> >> >>> > at
>>> >> >>> > what libraries actually get loaded during a run (there are
>>> >> >>> > various
>>> >> >>> > tools
>>> >> >>> > for
>>> >> >>> > doing this on Windows). I am careful because yes, it has been a
>>> >> >>> > problem
>>> >> >>> > for
>>> >> >>> > me, as you saw from my earlier emails.
>>> >> >>> >
>>> >> >>> > But we should talk about how to make this better on Windows.
>>> >> >>> >
>>> >> >>> > Best,
>>> >> >>> > Mike
>>> >> >>> >
>>> >> >>> >
>>> >> >>> > ===========================
>>> >> >>> > Michael Gogins
>>> >> >>> > Irreducible Productions
>>> >> >>> > http://michaelgogins.tumblr.com
>>> >> >>> > Michael dot Gogins at gmail dot com
>>> >> >>> >
>>> >> >>> >
>>> >> >>> > On Tue, Aug 27, 2013 at 4:15 PM, Steven Yi <stevenyi@gmail.com>
>>> >> >>> > wrote:
>>> >> >>> >>
>>> >> >>> >> Hi Michael and All,
>>> >> >>> >>
>>> >> >>> >> I just spent a bit of time looking into this and found some very
>>> >> >>> >> heinous stuff going on in windows.  It looks to me that CMake
>>> >> >>> >> actually
>>> >> >>> >> found all types of libraries from the PATH to use.  That meant
>>> >> >>> >> some
>>> >> >>> >> libraries from C:\Program Files (x86)\Csound\bin were found,
>>> >> >>> >> others
>>> >> >>> >> from C:\Program Files (x86)\Csound6\bin, and others from my MSYS
>>> >> >>> >> /usr/local/lib and custom set paths.  I get the impression this
>>> >> >>> >> could
>>> >> >>> >> be a source of some of the issues we're seeing both with the
>>> >> >>> >> Java
>>> >> >>> >> library and other windows oddities.
>>> >> >>> >>
>>> >> >>> >> I mostly noticed this in looking at my CmakeCache.txt.  I'm
>>> >> >>> >> wondering
>>> >> >>> >> if the Java lib is linking to Csound 5's csnd.dll instead of
>>> >> >>> >> Csound6's.  If that's the case, then perhaps we can change csnd
>>> >> >>> >> to
>>> >> >>> >> be
>>> >> >>> >> csnd6 instead.
>>> >> >>> >>
>>> >> >>> >> I've got to move on for the day, but will come back to this
>>> >> >>> >> tomorrow.
>>> >> >>> >>
>>> >> >>> >>
>>> >> >>> >>
>>> >> >>> >> On Tue, Aug 20, 2013 at 11:14 PM, Michael Gogins
>>> >> >>> >> <michael.gogins@gmail.com> wrote:
>>> >> >>> >> > People do seem to be switching to mingw-builds. I am using
>>> >> >>> >> > 4.8.1,
>>> >> >>> >> > dwarf-2,
>>> >> >>> >> > posix threads, 32 bits. If you use the same version we have a
>>> >> >>> >> > much
>>> >> >>> >> > better
>>> >> >>> >> > chance of understanding what is going on.
>>> >> >>> >> >
>>> >> >>> >> > I think there is something pretty subtle going on both with
>>> >> >>> >> > Java
>>> >> >>> >> > and
>>> >> >>> >> > with
>>> >> >>> >> > the CsoundPerformanceThread.
>>> >> >>> >> >
>>> >> >>> >> > I have proved that the existence of incompatible MinGW runtime
>>> >> >>> >> > libraries
>>> >> >>> >> > can
>>> >> >>> >> > be a problem. I have also proved that that is not the ONLY
>>> >> >>> >> > problem,
>>> >> >>> >> > at
>>> >> >>> >> > least, on my computer. I succeeded finally in removing
>>> >> >>> >> > incompatible
>>> >> >>> >> > MinGW
>>> >> >>> >> > runtime libraries from my SysWOW64 directory (!) so I now can
>>> >> >>> >> > run
>>> >> >>> >> > CsoundAC
>>> >> >>> >> > code, but I am still having problems with the performance
>>> >> >>> >> > thread
>>> >> >>> >> > and
>>> >> >>> >> > with
>>> >> >>> >> > Java. Different computers behave differently, e.g. I can run
>>> >> >>> >> > CsoundQt
>>> >> >>> >> > at
>>> >> >>> >> > work but not at home.
>>> >> >>> >> >
>>> >> >>> >> > In my programming life, these errors can arise from several
>>> >> >>> >> > errors
>>> >> >>> >> > but
>>> >> >>> >> > one
>>> >> >>> >> > common source is uninitialized members of structs and classes
>>> >> >>> >> > that
>>> >> >>> >> > contain
>>> >> >>> >> > zeroes on some machines and junk on other machines. Or writes
>>> >> >>> >> > past
>>> >> >>> >> > buffer
>>> >> >>> >> > ends that poke holes in junk on some machines and in vital
>>> >> >>> >> > organs
>>> >> >>> >> > on
>>> >> >>> >> > other
>>> >> >>> >> > machines. Having multiple threads makes this harder...
>>> >> >>> >> >
>>> >> >>> >> > Regards,
>>> >> >>> >> > Mike
>>> >> >>> >> >
>>> >> >>> >> > I wish I had something like valgrind on Windows but I can't
>>> >> >>> >> > afford
>>> >> >>> >> > the
>>> >> >>> >> > equivalent.
>>> >> >>> >> >
>>> >> >>> >> >
>>> >> >>> >> > ===========================
>>> >> >>> >> > Michael Gogins
>>> >> >>> >> > Irreducible Productions
>>> >> >>> >> > http://michaelgogins.tumblr.com
>>> >> >>> >> > Michael dot Gogins at gmail dot com
>>> >> >>> >> >
>>> >> >>> >> >
>>> >> >>> >> > On Tue, Aug 20, 2013 at 10:56 PM, Steven Yi
>>> >> >>> >> > <stevenyi@gmail.com>
>>> >> >>> >> > wrote:
>>> >> >>> >> >>
>>> >> >>> >> >> Hi Michael,
>>> >> >>> >> >>
>>> >> >>> >> >> I was trying to setup to get a build working on Windows to
>>> >> >>> >> >> see
>>> >> >>> >> >> if I
>>> >> >>> >> >> can further diagnose what's going on.  I currently have the
>>> >> >>> >> >> stock
>>> >> >>> >> >> mingw/msys installed from sf.net/projects/mingw. I noticed in
>>> >> >>> >> >> your
>>> >> >>> >> >> How
>>> >> >>> >> >> to Build doc that you are using mingwbuilds version.  Could
>>> >> >>> >> >> you
>>> >> >>> >> >> advise: should I uninstalled mingw/msys and use just
>>> >> >>> >> >> mingwbuilds?
>>> >> >>> >> >> (I.e. better to start clean).
>>> >> >>> >> >>
>>> >> >>> >> >> Thanks!
>>> >> >>> >> >> steven
>>> >> >>> >> >>
>>> >> >>> >> >> On Thu, Aug 15, 2013 at 8:44 AM, Michael Gogins
>>> >> >>> >> >> <michael.gogins@gmail.com> wrote:
>>> >> >>> >> >> > Sorry, fumble fingers.
>>> >> >>> >> >> >
>>> >> >>> >> >> > The problem I see is that the csnd6 low level JNI Java
>>> >> >>> >> >> > class
>>> >> >>> >> >> > needs
>>> >> >>> >> >> > to
>>> >> >>> >> >> > call
>>> >> >>> >> >> > SWIG's initializer in _csound.dll. The initializer is the
>>> >> >>> >> >> > thing
>>> >> >>> >> >> > not
>>> >> >>> >> >> > found.
>>> >> >>> >> >> > Without it we don't have Java Csound.
>>> >> >>> >> >> >
>>> >> >>> >> >> > Still no solution, though. The initializer is in
>>> >> >>> >> >> > _jcsound.dll.
>>> >> >>> >> >> > Java
>>> >> >>> >> >> > doesn't
>>> >> >>> >> >> > find it. Java finds the CsoundEditor.jar (a better test
>>> >> >>> >> >> > than
>>> >> >>> >> >> > CSDPlayer.jar
>>> >> >>> >> >> > because it loads csnd6 right away) and loads and begins to
>>> >> >>> >> >> > run
>>> >> >>> >> >> > the
>>> >> >>> >> >> > Java
>>> >> >>> >> >> > code. The first thing to run is the static block that loads
>>> >> >>> >> >> > _jcsound.dll
>>> >> >>> >> >> > and
>>> >> >>> >> >> > calls the initializer. There are 4 steps here: locate the
>>> >> >>> >> >> > DLL,
>>> >> >>> >> >> > load
>>> >> >>> >> >> > the
>>> >> >>> >> >> > DLL,
>>> >> >>> >> >> > find the initializer function, call the initializer. We
>>> >> >>> >> >> > know
>>> >> >>> >> >> > that
>>> >> >>> >> >> > we
>>> >> >>> >> >> > don't
>>> >> >>> >> >> > find the initializer. I think it fails at the load stage
>>> >> >>> >> >> > because I
>>> >> >>> >> >> > have
>>> >> >>> >> >> > DLL
>>> >> >>> >> >> > hell on my notebook right now and I seem to recall catching
>>> >> >>> >> >> > the
>>> >> >>> >> >> > DLL
>>> >> >>> >> >> > load.
>>> >> >>> >> >> > I'll verify that later. In other words I think it starts to
>>> >> >>> >> >> > load
>>> >> >>> >> >> > _jcsound.dll and then there is a problem when _jcsound.dll
>>> >> >>> >> >> > is
>>> >> >>> >> >> > loading
>>> >> >>> >> >> > other
>>> >> >>> >> >> > things or initializating its own things.
>>> >> >>> >> >> >
>>> >> >>> >> >> >
>>> >> >>> >> >> > ===========================
>>> >> >>> >> >> > Michael Gogins
>>> >> >>> >> >> > Irreducible Productions
>>> >> >>> >> >> > http://michaelgogins.tumblr.com
>>> >> >>> >> >> > Michael dot Gogins at gmail dot com
>>> >> >>> >> >> >
>>> >> >>> >> >> >
>>> >> >>> >> >> > On Thu, Aug 15, 2013 at 8:32 AM, Michael Gogins
>>> >> >>> >> >> > <michael.gogins@gmail.com>
>>> >> >>> >> >> > wrote:
>>> >> >>> >> >> >>
>>> >> >>> >> >> >> The problem I see is that the Csound JNI
>>> >> >>> >> >> >>
>>> >> >>> >> >> >>
>>> >> >>> >> >> >> ===========================
>>> >> >>> >> >> >> Michael Gogins
>>> >> >>> >> >> >> Irreducible Productions
>>> >> >>> >> >> >> http://michaelgogins.tumblr.com
>>> >> >>> >> >> >> Michael dot Gogins at gmail dot com
>>> >> >>> >> >> >>
>>> >> >>> >> >> >>
>>> >> >>> >> >> >> On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi
>>> >> >>> >> >> >> <stevenyi@gmail.com>
>>> >> >>> >> >> >> wrote:
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>> Hi Michael,
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>> I'm wondering if this is the same issue. I need to
>>> >> >>> >> >> >>> re-test,
>>> >> >>> >> >> >>> but
>>> >> >>> >> >> >>> when I
>>> >> >>> >> >> >>> was trying things out I thought I didn't quite get a
>>> >> >>> >> >> >>> crash,
>>> >> >>> >> >> >>> just
>>> >> >>> >> >> >>> an
>>> >> >>> >> >> >>> UnsatisfiedLinkError exception for the function I was
>>> >> >>> >> >> >>> trying
>>> >> >>> >> >> >>> to
>>> >> >>> >> >> >>> call,
>>> >> >>> >> >> >>> which I could catch and do something about.  The test
>>> >> >>> >> >> >>> java
>>> >> >>> >> >> >>> class
>>> >> >>> >> >> >>> I
>>> >> >>> >> >> >>> put
>>> >> >>> >> >> >>> into the bug may not be doing any catching, but then Java
>>> >> >>> >> >> >>> should
>>> >> >>> >> >> >>> have
>>> >> >>> >> >> >>> just exited rather than crash.
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>> steven
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>> On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
>>> >> >>> >> >> >>> <michael.gogins@gmail.com> wrote:
>>> >> >>> >> >> >>> > Gdb tells me Java crash is caused by linstd++-6.dll of
>>> >> >>> >> >> >>> > wrong
>>> >> >>> >> >> >>> > model
>>> >> >>> >> >> >>> > found in
>>> >> >>> >> >> >>> > SysWOW64, where it does not belong and was put by some
>>> >> >>> >> >> >>> > incompetent
>>> >> >>> >> >> >>> > installer. I'm afraid to remove it because I did once
>>> >> >>> >> >> >>> > before
>>> >> >>> >> >> >>> > and
>>> >> >>> >> >> >>> > lost
>>> >> >>> >> >> >>> > my
>>> >> >>> >> >> >>> > user profile.
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> > ------------------------------------------------------------------------------
>>> >> >>> >> >> >>> > Get 100% visibility into Java/.NET code with
>>> >> >>> >> >> >>> > AppDynamics
>>> >> >>> >> >> >>> > Lite!
>>> >> >>> >> >> >>> > It's a free troubleshooting tool designed for
>>> >> >>> >> >> >>> > production.
>>> >> >>> >> >> >>> > Get down to code-level detail for bottlenecks, with <2%
>>> >> >>> >> >> >>> > overhead.
>>> >> >>> >> >> >>> > Download for free and get started troubleshooting in
>>> >> >>> >> >> >>> > minutes.
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>>> >> >>> >> >> >>> > _______________________________________________
>>> >> >>> >> >> >>> > Csound-devel mailing list
>>> >> >>> >> >> >>> > Csound-devel@lists.sourceforge.net
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >>> >> >> >>> >
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>> ------------------------------------------------------------------------------
>>> >> >>> >> >> >>> Get 100% visibility into Java/.NET code with AppDynamics
>>> >> >>> >> >> >>> Lite!
>>> >> >>> >> >> >>> It's a free troubleshooting tool designed for production.
>>> >> >>> >> >> >>> Get down to code-level detail for bottlenecks, with <2%
>>> >> >>> >> >> >>> overhead.
>>> >> >>> >> >> >>> Download for free and get started troubleshooting in
>>> >> >>> >> >> >>> minutes.
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>>
>>> >> >>> >> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>>> >> >>> >> >> >>> _______________________________________________
>>> >> >>> >> >> >>> Csound-devel mailing list
>>> >> >>> >> >> >>> Csound-devel@lists.sourceforge.net
>>> >> >>> >> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >>> >> >> >>
>>> >> >>> >> >> >>
>>> >> >>> >> >> >
>>> >> >>> >> >> >
>>> >> >>> >> >> >
>>> >> >>> >> >> >
>>> >> >>> >> >> >
>>> >> >>> >> >> >
>>> >> >>> >> >> >
>>> >> >>> >> >> > ------------------------------------------------------------------------------
>>> >> >>> >> >> > Get 100% visibility into Java/.NET code with AppDynamics
>>> >> >>> >> >> > Lite!
>>> >> >>> >> >> > It's a free troubleshooting tool designed for production.
>>> >> >>> >> >> > Get down to code-level detail for bottlenecks, with <2%
>>> >> >>> >> >> > overhead.
>>> >> >>> >> >> > Download for free and get started troubleshooting in
>>> >> >>> >> >> > minutes.
>>> >> >>> >> >> >
>>> >> >>> >> >> >
>>> >> >>> >> >> >
>>> >> >>> >> >> >
>>> >> >>> >> >> >
>>> >> >>> >> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>>> >> >>> >> >> > _______________________________________________
>>> >> >>> >> >> > Csound-devel mailing list
>>> >> >>> >> >> > Csound-devel@lists.sourceforge.net
>>> >> >>> >> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >>> >> >> >
>>> >> >>> >> >>
>>> >> >>> >> >>
>>> >> >>> >> >>
>>> >> >>> >> >>
>>> >> >>> >> >>
>>> >> >>> >> >>
>>> >> >>> >> >> ------------------------------------------------------------------------------
>>> >> >>> >> >> Introducing Performance Central, a new site from SourceForge
>>> >> >>> >> >> and
>>> >> >>> >> >> AppDynamics. Performance Central is your source for news,
>>> >> >>> >> >> insights,
>>> >> >>> >> >> analysis and resources for efficient Application Performance
>>> >> >>> >> >> Management.
>>> >> >>> >> >> Visit us today!
>>> >> >>> >> >>
>>> >> >>> >> >>
>>> >> >>> >> >>
>>> >> >>> >> >>
>>> >> >>> >> >>
>>> >> >>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>>> >> >>> >> >>
>>> >> >>> >> >> _______________________________________________
>>> >> >>> >> >> Csound-devel mailing list
>>> >> >>> >> >> Csound-devel@lists.sourceforge.net
>>> >> >>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >>> >> >
>>> >> >>> >> >
>>> >> >>> >> >
>>> >> >>> >> >
>>> >> >>> >> >
>>> >> >>> >> >
>>> >> >>> >> >
>>> >> >>> >> > ------------------------------------------------------------------------------
>>> >> >>> >> > Introducing Performance Central, a new site from SourceForge
>>> >> >>> >> > and
>>> >> >>> >> > AppDynamics. Performance Central is your source for news,
>>> >> >>> >> > insights,
>>> >> >>> >> > analysis and resources for efficient Application Performance
>>> >> >>> >> > Management.
>>> >> >>> >> > Visit us today!
>>> >> >>> >> >
>>> >> >>> >> >
>>> >> >>> >> >
>>> >> >>> >> >
>>> >> >>> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>>> >> >>> >> > _______________________________________________
>>> >> >>> >> > Csound-devel mailing list
>>> >> >>> >> > Csound-devel@lists.sourceforge.net
>>> >> >>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >>> >> >
>>> >> >>> >>
>>> >> >>> >>
>>> >> >>> >>
>>> >> >>> >>
>>> >> >>> >>
>>> >> >>> >> ------------------------------------------------------------------------------
>>> >> >>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>>> >> >>> >> more!
>>> >> >>> >> Discover the easy way to master current and previous Microsoft
>>> >> >>> >> technologies
>>> >> >>> >> and advance your career. Get an incredible 1,500+ hours of
>>> >> >>> >> step-by-step
>>> >> >>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>>> >> >>> >>
>>> >> >>> >>
>>> >> >>> >>
>>> >> >>> >>
>>> >> >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> >> >>> >>
>>> >> >>> >> _______________________________________________
>>> >> >>> >> Csound-devel mailing list
>>> >> >>> >> Csound-devel@lists.sourceforge.net
>>> >> >>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >>> >
>>> >> >>> >
>>> >> >>> >
>>> >> >>> >
>>> >> >>> >
>>> >> >>> >
>>> >> >>> > ------------------------------------------------------------------------------
>>> >> >>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>>> >> >>> > more!
>>> >> >>> > Discover the easy way to master current and previous Microsoft
>>> >> >>> > technologies
>>> >> >>> > and advance your career. Get an incredible 1,500+ hours of
>>> >> >>> > step-by-step
>>> >> >>> > tutorial videos with LearnDevNow. Subscribe today and save!
>>> >> >>> >
>>> >> >>> >
>>> >> >>> >
>>> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> >> >>> > _______________________________________________
>>> >> >>> > Csound-devel mailing list
>>> >> >>> > Csound-devel@lists.sourceforge.net
>>> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >>> >
>>> >> >>>
>>> >> >>>
>>> >> >>>
>>> >> >>>
>>> >> >>> ------------------------------------------------------------------------------
>>> >> >>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>>> >> >>> more!
>>> >> >>> Discover the easy way to master current and previous Microsoft
>>> >> >>> technologies
>>> >> >>> and advance your career. Get an incredible 1,500+ hours of
>>> >> >>> step-by-step
>>> >> >>> tutorial videos with LearnDevNow. Subscribe today and save!
>>> >> >>>
>>> >> >>>
>>> >> >>>
>>> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> >> >>> _______________________________________________
>>> >> >>> Csound-devel mailing list
>>> >> >>> Csound-devel@lists.sourceforge.net
>>> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >> ------------------------------------------------------------------------------
>>> >> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>>> >> >> more!
>>> >> >> Discover the easy way to master current and previous Microsoft
>>> >> >> technologies
>>> >> >> and advance your career. Get an incredible 1,500+ hours of
>>> >> >> step-by-step
>>> >> >> tutorial videos with LearnDevNow. Subscribe today and save!
>>> >> >>
>>> >> >>
>>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> >> >> _______________________________________________
>>> >> >> Csound-devel mailing list
>>> >> >> Csound-devel@lists.sourceforge.net
>>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >>
>>> >>
>>> >>
>>> >>
>>> >> ------------------------------------------------------------------------------
>>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>>> >> Discover the easy way to master current and previous Microsoft
>>> >> technologies
>>> >> and advance your career. Get an incredible 1,500+ hours of step-by-step
>>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>>> >>
>>> >>
>>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> >> _______________________________________________
>>> >> Csound-devel mailing list
>>> >> Csound-devel@lists.sourceforge.net
>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >
>>> >
>>> >
>>> >
>>> > ------------------------------------------------------------------------------
>>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>>> > Discover the easy way to master current and previous Microsoft
>>> > technologies
>>> > and advance your career. Get an incredible 1,500+ hours of step-by-step
>>> > tutorial videos with LearnDevNow. Subscribe today and save!
>>> >
>>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> > _______________________________________________
>>> > Csound-devel mailing list
>>> > Csound-devel@lists.sourceforge.net
>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>>> Discover the easy way to master current and previous Microsoft
>>> technologies
>>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>>> tutorial videos with LearnDevNow. Subscribe today and save!
>>>
>>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> Discover the easy way to master current and previous Microsoft technologies
>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> tutorial videos with LearnDevNow. Subscribe today and save!
>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2013-08-28 20:09
FromSteven Yi
SubjectRe: [Cs-dev] Java crash on windows
I'm hopeful this will be it. :)  I tried adding it to my Custom.cmake
for now and am doing a compile.  I grepped through CS5's SConstruct
and surely enough there's numerous places where
-Wl,--add-stdcall-alias is used, and a few places where
-Wl,--enable-stdcall-fixup is used.

I should be able to test in about 10 minutes; assuming all is good,
I'm wondering should this just be enabled as a global flag if on
Windows, or only for certain libs?

As for finding a fix, glad that none of my other guesses were correct
as I think they'd be much more difficult to solve. :P

On Wed, Aug 28, 2013 at 2:40 PM, Michael Gogins
 wrote:
> If that's the case, then changing the linker flags should do the trick. @8
> marks the function as stdcall calling convention with 8 bytes to be popped
> off the stack after returning from the call.
>
> To CFLAGS and CXXFLAGS for the DLL, add -"Wl,--add-stdcall-alias
> -Wl,--enable-stdcall-fixup". I think only the first is required but I used
> to add both to everything just to cover my bases.
>
> --add-stdcall-alias                Export symbols with and without @nn
> --disable-stdcall-fixup            Don't link _sym to _sym@nn DON'T USE!
> --enable-stdcall-fixup             Link _sym to _sym@nn without warnings
>
> Best,
> Mike
>
>
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Wed, Aug 28, 2013 at 1:25 PM, Steven Yi  wrote:
>>
>> I found something that looks useful.  In _jcsound.dll from CS5,
>> DependencyWalker shows symbols like:
>>
>> Java_csnd_csndJNI_swig_1module_1init
>> Java_csnd_csndJNI_swig_1module_1init@8
>>
>> while CS6 only has:
>>
>> Java_csnd6_csnd6JNI_swig_1module_1init@8
>>
>> I get the impression that the PUBLIC attribute isn't working
>> correctly, or something along those lines.  I've got to take a break
>> but will continue on with this after lunch.
>>
>> On Wed, Aug 28, 2013 at 12:22 PM, Steven Yi  wrote:
>> > That didn't seem to affect anything unfortunately. Continuing on....
>> >
>> > On Wed, Aug 28, 2013 at 11:59 AM, Michael Gogins
>> >  wrote:
>> >> Well, that's certainly a mistake.
>> >>
>> >> On Aug 28, 2013 11:59 AM, "Steven Yi"  wrote:
>> >>>
>> >>> That sounds reasonable, but the Csound5 API still loads for me fine
>> >>> with Blue, using the same VM.  I think that'd rule that one out.  I
>> >>> saw that csound.h has "%module csnd" isntead of "%module csnd6".  I'm
>> >>> not sure that's it, as that seems like it'd affect other platforms,
>> >>> but I'm giving it a try now just in case.  (compile should be done in
>> >>> 15-20 mins... ugh...)
>> >>>
>> >>> On Wed, Aug 28, 2013 at 11:35 AM, Michael Gogins
>> >>>  wrote:
>> >>> > If I were you, I would try compiling the library with both the
>> >>> > wrapper
>> >>> > and
>> >>> > the wrapped lib, just to rule that out.
>> >>> >
>> >>> > There may well have been some change in the way the Java VM and
>> >>> > library
>> >>> > link. You could try Oracle issues on Java regarding that.
>> >>> >
>> >>> > Best,
>> >>> > Mike
>> >>> >
>> >>> >
>> >>> > ===========================
>> >>> > Michael Gogins
>> >>> > Irreducible Productions
>> >>> > http://michaelgogins.tumblr.com
>> >>> > Michael dot Gogins at gmail dot com
>> >>> >
>> >>> >
>> >>> > On Wed, Aug 28, 2013 at 11:18 AM, Steven Yi 
>> >>> > wrote:
>> >>> >>
>> >>> >> Just an update, I tried modifying to use libcsnd6 and linking to
>> >>> >> that,
>> >>> >> but it had no affect on the Java test.  I did see in the SWIG
>> >>> >> manual
>> >>> >> for Java that they have an error shown similar to ours, with the
>> >>> >> documentation:
>> >>> >>
>> >>> >> "This error usually indicates that you forgot to include some
>> >>> >> object
>> >>> >> files or libraries in the linking of the native library file. Make
>> >>> >> sure you compile both the SWIG wrapper file and the code you are
>> >>> >> wrapping into the native library file. If you forget to compile and
>> >>> >> link in the SWIG wrapper file into your native library file, you
>> >>> >> will
>> >>> >> get a message similar to the following:"
>> >>> >>
>> >>> >> However, I don't think this is quite the issue as the same Cmake
>> >>> >> script works on OSX and Linux. I did see an email about possibly
>> >>> >> needing to compile the library with both the wrapper and the
>> >>> >> wrapped
>> >>> >> lib, but that seemed odd as we had things working with CS5.
>> >>> >>
>> >>> >> I'll continue to explore here.
>> >>> >>
>> >>> >> On Tue, Aug 27, 2013 at 5:19 PM, Steven Yi 
>> >>> >> wrote:
>> >>> >> > Thanks for the info, at least we can eliminate that possibility
>> >>> >> > then.
>> >>> >> > I'll hopefully get further along tomorrow and will report
>> >>> >> > anything I
>> >>> >> > find.
>> >>> >> >
>> >>> >> > On Tue, Aug 27, 2013 at 5:13 PM, Michael Gogins
>> >>> >> >  wrote:
>> >>> >> >> The csnd name should be versioned but I don't have 5 on my
>> >>> >> >> machine
>> >>> >> >> at
>> >>> >> >> all.
>> >>> >> >>
>> >>> >> >> On Aug 27, 2013 5:03 PM, "Steven Yi"  wrote:
>> >>> >> >>>
>> >>> >> >>> The compile paths here are a mess so I'm going to need to sort
>> >>> >> >>> that
>> >>> >> >>> out here locally.  However, I'm wondering if at runtime if the
>> >>> >> >>> wrong
>> >>> >> >>> dll is getting loaded due to csnd.dll being the same name in
>> >>> >> >>> CS5
>> >>> >> >>> and
>> >>> >> >>> CS6.  Perhaps we should rename that to see if that's the source
>> >>> >> >>> of
>> >>> >> >>> issues for Java (possible CsoundPerformanceThread too?). I'm
>> >>> >> >>> imagining
>> >>> >> >>> if Csound runs multiple times alright, but
>> >>> >> >>> CsoundPerformanceThread
>> >>> >> >>> does not, then it could be possible that the csound6 library is
>> >>> >> >>> loading fine, but the cs5 version of csnd is loading and
>> >>> >> >>> causing
>> >>> >> >>> issues.
>> >>> >> >>>
>> >>> >> >>> On Tue, Aug 27, 2013 at 4:52 PM, Michael Gogins
>> >>> >> >>>  wrote:
>> >>> >> >>> > In my build I'm very careful about the actual library paths.
>> >>> >> >>> > I
>> >>> >> >>> > look
>> >>> >> >>> > at
>> >>> >> >>> > the
>> >>> >> >>> > CMakeCache.txt, I look at the compiler and linker commands,
>> >>> >> >>> > and I
>> >>> >> >>> > look
>> >>> >> >>> > at
>> >>> >> >>> > what libraries actually get loaded during a run (there are
>> >>> >> >>> > various
>> >>> >> >>> > tools
>> >>> >> >>> > for
>> >>> >> >>> > doing this on Windows). I am careful because yes, it has been
>> >>> >> >>> > a
>> >>> >> >>> > problem
>> >>> >> >>> > for
>> >>> >> >>> > me, as you saw from my earlier emails.
>> >>> >> >>> >
>> >>> >> >>> > But we should talk about how to make this better on Windows.
>> >>> >> >>> >
>> >>> >> >>> > Best,
>> >>> >> >>> > Mike
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> > ===========================
>> >>> >> >>> > Michael Gogins
>> >>> >> >>> > Irreducible Productions
>> >>> >> >>> > http://michaelgogins.tumblr.com
>> >>> >> >>> > Michael dot Gogins at gmail dot com
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> > On Tue, Aug 27, 2013 at 4:15 PM, Steven Yi
>> >>> >> >>> > 
>> >>> >> >>> > wrote:
>> >>> >> >>> >>
>> >>> >> >>> >> Hi Michael and All,
>> >>> >> >>> >>
>> >>> >> >>> >> I just spent a bit of time looking into this and found some
>> >>> >> >>> >> very
>> >>> >> >>> >> heinous stuff going on in windows.  It looks to me that
>> >>> >> >>> >> CMake
>> >>> >> >>> >> actually
>> >>> >> >>> >> found all types of libraries from the PATH to use.  That
>> >>> >> >>> >> meant
>> >>> >> >>> >> some
>> >>> >> >>> >> libraries from C:\Program Files (x86)\Csound\bin were found,
>> >>> >> >>> >> others
>> >>> >> >>> >> from C:\Program Files (x86)\Csound6\bin, and others from my
>> >>> >> >>> >> MSYS
>> >>> >> >>> >> /usr/local/lib and custom set paths.  I get the impression
>> >>> >> >>> >> this
>> >>> >> >>> >> could
>> >>> >> >>> >> be a source of some of the issues we're seeing both with the
>> >>> >> >>> >> Java
>> >>> >> >>> >> library and other windows oddities.
>> >>> >> >>> >>
>> >>> >> >>> >> I mostly noticed this in looking at my CmakeCache.txt.  I'm
>> >>> >> >>> >> wondering
>> >>> >> >>> >> if the Java lib is linking to Csound 5's csnd.dll instead of
>> >>> >> >>> >> Csound6's.  If that's the case, then perhaps we can change
>> >>> >> >>> >> csnd
>> >>> >> >>> >> to
>> >>> >> >>> >> be
>> >>> >> >>> >> csnd6 instead.
>> >>> >> >>> >>
>> >>> >> >>> >> I've got to move on for the day, but will come back to this
>> >>> >> >>> >> tomorrow.
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >> On Tue, Aug 20, 2013 at 11:14 PM, Michael Gogins
>> >>> >> >>> >>  wrote:
>> >>> >> >>> >> > People do seem to be switching to mingw-builds. I am using
>> >>> >> >>> >> > 4.8.1,
>> >>> >> >>> >> > dwarf-2,
>> >>> >> >>> >> > posix threads, 32 bits. If you use the same version we
>> >>> >> >>> >> > have a
>> >>> >> >>> >> > much
>> >>> >> >>> >> > better
>> >>> >> >>> >> > chance of understanding what is going on.
>> >>> >> >>> >> >
>> >>> >> >>> >> > I think there is something pretty subtle going on both
>> >>> >> >>> >> > with
>> >>> >> >>> >> > Java
>> >>> >> >>> >> > and
>> >>> >> >>> >> > with
>> >>> >> >>> >> > the CsoundPerformanceThread.
>> >>> >> >>> >> >
>> >>> >> >>> >> > I have proved that the existence of incompatible MinGW
>> >>> >> >>> >> > runtime
>> >>> >> >>> >> > libraries
>> >>> >> >>> >> > can
>> >>> >> >>> >> > be a problem. I have also proved that that is not the ONLY
>> >>> >> >>> >> > problem,
>> >>> >> >>> >> > at
>> >>> >> >>> >> > least, on my computer. I succeeded finally in removing
>> >>> >> >>> >> > incompatible
>> >>> >> >>> >> > MinGW
>> >>> >> >>> >> > runtime libraries from my SysWOW64 directory (!) so I now
>> >>> >> >>> >> > can
>> >>> >> >>> >> > run
>> >>> >> >>> >> > CsoundAC
>> >>> >> >>> >> > code, but I am still having problems with the performance
>> >>> >> >>> >> > thread
>> >>> >> >>> >> > and
>> >>> >> >>> >> > with
>> >>> >> >>> >> > Java. Different computers behave differently, e.g. I can
>> >>> >> >>> >> > run
>> >>> >> >>> >> > CsoundQt
>> >>> >> >>> >> > at
>> >>> >> >>> >> > work but not at home.
>> >>> >> >>> >> >
>> >>> >> >>> >> > In my programming life, these errors can arise from
>> >>> >> >>> >> > several
>> >>> >> >>> >> > errors
>> >>> >> >>> >> > but
>> >>> >> >>> >> > one
>> >>> >> >>> >> > common source is uninitialized members of structs and
>> >>> >> >>> >> > classes
>> >>> >> >>> >> > that
>> >>> >> >>> >> > contain
>> >>> >> >>> >> > zeroes on some machines and junk on other machines. Or
>> >>> >> >>> >> > writes
>> >>> >> >>> >> > past
>> >>> >> >>> >> > buffer
>> >>> >> >>> >> > ends that poke holes in junk on some machines and in vital
>> >>> >> >>> >> > organs
>> >>> >> >>> >> > on
>> >>> >> >>> >> > other
>> >>> >> >>> >> > machines. Having multiple threads makes this harder...
>> >>> >> >>> >> >
>> >>> >> >>> >> > Regards,
>> >>> >> >>> >> > Mike
>> >>> >> >>> >> >
>> >>> >> >>> >> > I wish I had something like valgrind on Windows but I
>> >>> >> >>> >> > can't
>> >>> >> >>> >> > afford
>> >>> >> >>> >> > the
>> >>> >> >>> >> > equivalent.
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> > ===========================
>> >>> >> >>> >> > Michael Gogins
>> >>> >> >>> >> > Irreducible Productions
>> >>> >> >>> >> > http://michaelgogins.tumblr.com
>> >>> >> >>> >> > Michael dot Gogins at gmail dot com
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> > On Tue, Aug 20, 2013 at 10:56 PM, Steven Yi
>> >>> >> >>> >> > 
>> >>> >> >>> >> > wrote:
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> Hi Michael,
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> I was trying to setup to get a build working on Windows
>> >>> >> >>> >> >> to
>> >>> >> >>> >> >> see
>> >>> >> >>> >> >> if I
>> >>> >> >>> >> >> can further diagnose what's going on.  I currently have
>> >>> >> >>> >> >> the
>> >>> >> >>> >> >> stock
>> >>> >> >>> >> >> mingw/msys installed from sf.net/projects/mingw. I
>> >>> >> >>> >> >> noticed in
>> >>> >> >>> >> >> your
>> >>> >> >>> >> >> How
>> >>> >> >>> >> >> to Build doc that you are using mingwbuilds version.
>> >>> >> >>> >> >> Could
>> >>> >> >>> >> >> you
>> >>> >> >>> >> >> advise: should I uninstalled mingw/msys and use just
>> >>> >> >>> >> >> mingwbuilds?
>> >>> >> >>> >> >> (I.e. better to start clean).
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> Thanks!
>> >>> >> >>> >> >> steven
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> On Thu, Aug 15, 2013 at 8:44 AM, Michael Gogins
>> >>> >> >>> >> >>  wrote:
>> >>> >> >>> >> >> > Sorry, fumble fingers.
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > The problem I see is that the csnd6 low level JNI Java
>> >>> >> >>> >> >> > class
>> >>> >> >>> >> >> > needs
>> >>> >> >>> >> >> > to
>> >>> >> >>> >> >> > call
>> >>> >> >>> >> >> > SWIG's initializer in _csound.dll. The initializer is
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > thing
>> >>> >> >>> >> >> > not
>> >>> >> >>> >> >> > found.
>> >>> >> >>> >> >> > Without it we don't have Java Csound.
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > Still no solution, though. The initializer is in
>> >>> >> >>> >> >> > _jcsound.dll.
>> >>> >> >>> >> >> > Java
>> >>> >> >>> >> >> > doesn't
>> >>> >> >>> >> >> > find it. Java finds the CsoundEditor.jar (a better test
>> >>> >> >>> >> >> > than
>> >>> >> >>> >> >> > CSDPlayer.jar
>> >>> >> >>> >> >> > because it loads csnd6 right away) and loads and begins
>> >>> >> >>> >> >> > to
>> >>> >> >>> >> >> > run
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > Java
>> >>> >> >>> >> >> > code. The first thing to run is the static block that
>> >>> >> >>> >> >> > loads
>> >>> >> >>> >> >> > _jcsound.dll
>> >>> >> >>> >> >> > and
>> >>> >> >>> >> >> > calls the initializer. There are 4 steps here: locate
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > DLL,
>> >>> >> >>> >> >> > load
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > DLL,
>> >>> >> >>> >> >> > find the initializer function, call the initializer. We
>> >>> >> >>> >> >> > know
>> >>> >> >>> >> >> > that
>> >>> >> >>> >> >> > we
>> >>> >> >>> >> >> > don't
>> >>> >> >>> >> >> > find the initializer. I think it fails at the load
>> >>> >> >>> >> >> > stage
>> >>> >> >>> >> >> > because I
>> >>> >> >>> >> >> > have
>> >>> >> >>> >> >> > DLL
>> >>> >> >>> >> >> > hell on my notebook right now and I seem to recall
>> >>> >> >>> >> >> > catching
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > DLL
>> >>> >> >>> >> >> > load.
>> >>> >> >>> >> >> > I'll verify that later. In other words I think it
>> >>> >> >>> >> >> > starts to
>> >>> >> >>> >> >> > load
>> >>> >> >>> >> >> > _jcsound.dll and then there is a problem when
>> >>> >> >>> >> >> > _jcsound.dll
>> >>> >> >>> >> >> > is
>> >>> >> >>> >> >> > loading
>> >>> >> >>> >> >> > other
>> >>> >> >>> >> >> > things or initializating its own things.
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > ===========================
>> >>> >> >>> >> >> > Michael Gogins
>> >>> >> >>> >> >> > Irreducible Productions
>> >>> >> >>> >> >> > http://michaelgogins.tumblr.com
>> >>> >> >>> >> >> > Michael dot Gogins at gmail dot com
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > On Thu, Aug 15, 2013 at 8:32 AM, Michael Gogins
>> >>> >> >>> >> >> > 
>> >>> >> >>> >> >> > wrote:
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >> The problem I see is that the Csound JNI
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >> ===========================
>> >>> >> >>> >> >> >> Michael Gogins
>> >>> >> >>> >> >> >> Irreducible Productions
>> >>> >> >>> >> >> >> http://michaelgogins.tumblr.com
>> >>> >> >>> >> >> >> Michael dot Gogins at gmail dot com
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >> On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi
>> >>> >> >>> >> >> >> 
>> >>> >> >>> >> >> >> wrote:
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> Hi Michael,
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> I'm wondering if this is the same issue. I need to
>> >>> >> >>> >> >> >>> re-test,
>> >>> >> >>> >> >> >>> but
>> >>> >> >>> >> >> >>> when I
>> >>> >> >>> >> >> >>> was trying things out I thought I didn't quite get a
>> >>> >> >>> >> >> >>> crash,
>> >>> >> >>> >> >> >>> just
>> >>> >> >>> >> >> >>> an
>> >>> >> >>> >> >> >>> UnsatisfiedLinkError exception for the function I was
>> >>> >> >>> >> >> >>> trying
>> >>> >> >>> >> >> >>> to
>> >>> >> >>> >> >> >>> call,
>> >>> >> >>> >> >> >>> which I could catch and do something about.  The test
>> >>> >> >>> >> >> >>> java
>> >>> >> >>> >> >> >>> class
>> >>> >> >>> >> >> >>> I
>> >>> >> >>> >> >> >>> put
>> >>> >> >>> >> >> >>> into the bug may not be doing any catching, but then
>> >>> >> >>> >> >> >>> Java
>> >>> >> >>> >> >> >>> should
>> >>> >> >>> >> >> >>> have
>> >>> >> >>> >> >> >>> just exited rather than crash.
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> steven
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
>> >>> >> >>> >> >> >>>  wrote:
>> >>> >> >>> >> >> >>> > Gdb tells me Java crash is caused by linstd++-6.dll
>> >>> >> >>> >> >> >>> > of
>> >>> >> >>> >> >> >>> > wrong
>> >>> >> >>> >> >> >>> > model
>> >>> >> >>> >> >> >>> > found in
>> >>> >> >>> >> >> >>> > SysWOW64, where it does not belong and was put by
>> >>> >> >>> >> >> >>> > some
>> >>> >> >>> >> >> >>> > incompetent
>> >>> >> >>> >> >> >>> > installer. I'm afraid to remove it because I did
>> >>> >> >>> >> >> >>> > once
>> >>> >> >>> >> >> >>> > before
>> >>> >> >>> >> >> >>> > and
>> >>> >> >>> >> >> >>> > lost
>> >>> >> >>> >> >> >>> > my
>> >>> >> >>> >> >> >>> > user profile.
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> > ------------------------------------------------------------------------------
>> >>> >> >>> >> >> >>> > Get 100% visibility into Java/.NET code with
>> >>> >> >>> >> >> >>> > AppDynamics
>> >>> >> >>> >> >> >>> > Lite!
>> >>> >> >>> >> >> >>> > It's a free troubleshooting tool designed for
>> >>> >> >>> >> >> >>> > production.
>> >>> >> >>> >> >> >>> > Get down to code-level detail for bottlenecks, with
>> >>> >> >>> >> >> >>> > <2%
>> >>> >> >>> >> >> >>> > overhead.
>> >>> >> >>> >> >> >>> > Download for free and get started troubleshooting
>> >>> >> >>> >> >> >>> > in
>> >>> >> >>> >> >> >>> > minutes.
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >>> >> >>> >> >> >>> > _______________________________________________
>> >>> >> >>> >> >> >>> > Csound-devel mailing list
>> >>> >> >>> >> >> >>> > Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> ------------------------------------------------------------------------------
>> >>> >> >>> >> >> >>> Get 100% visibility into Java/.NET code with
>> >>> >> >>> >> >> >>> AppDynamics
>> >>> >> >>> >> >> >>> Lite!
>> >>> >> >>> >> >> >>> It's a free troubleshooting tool designed for
>> >>> >> >>> >> >> >>> production.
>> >>> >> >>> >> >> >>> Get down to code-level detail for bottlenecks, with
>> >>> >> >>> >> >> >>> <2%
>> >>> >> >>> >> >> >>> overhead.
>> >>> >> >>> >> >> >>> Download for free and get started troubleshooting in
>> >>> >> >>> >> >> >>> minutes.
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >>> >> >>> >> >> >>> _______________________________________________
>> >>> >> >>> >> >> >>> Csound-devel mailing list
>> >>> >> >>> >> >> >>> Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > ------------------------------------------------------------------------------
>> >>> >> >>> >> >> > Get 100% visibility into Java/.NET code with
>> >>> >> >>> >> >> > AppDynamics
>> >>> >> >>> >> >> > Lite!
>> >>> >> >>> >> >> > It's a free troubleshooting tool designed for
>> >>> >> >>> >> >> > production.
>> >>> >> >>> >> >> > Get down to code-level detail for bottlenecks, with <2%
>> >>> >> >>> >> >> > overhead.
>> >>> >> >>> >> >> > Download for free and get started troubleshooting in
>> >>> >> >>> >> >> > minutes.
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >>> >> >>> >> >> > _______________________________________________
>> >>> >> >>> >> >> > Csound-devel mailing list
>> >>> >> >>> >> >> > Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> ------------------------------------------------------------------------------
>> >>> >> >>> >> >> Introducing Performance Central, a new site from
>> >>> >> >>> >> >> SourceForge
>> >>> >> >>> >> >> and
>> >>> >> >>> >> >> AppDynamics. Performance Central is your source for news,
>> >>> >> >>> >> >> insights,
>> >>> >> >>> >> >> analysis and resources for efficient Application
>> >>> >> >>> >> >> Performance
>> >>> >> >>> >> >> Management.
>> >>> >> >>> >> >> Visit us today!
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> _______________________________________________
>> >>> >> >>> >> >> Csound-devel mailing list
>> >>> >> >>> >> >> Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> > ------------------------------------------------------------------------------
>> >>> >> >>> >> > Introducing Performance Central, a new site from
>> >>> >> >>> >> > SourceForge
>> >>> >> >>> >> > and
>> >>> >> >>> >> > AppDynamics. Performance Central is your source for news,
>> >>> >> >>> >> > insights,
>> >>> >> >>> >> > analysis and resources for efficient Application
>> >>> >> >>> >> > Performance
>> >>> >> >>> >> > Management.
>> >>> >> >>> >> > Visit us today!
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> >>> >> >>> >> > _______________________________________________
>> >>> >> >>> >> > Csound-devel mailing list
>> >>> >> >>> >> > Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >> ------------------------------------------------------------------------------
>> >>> >> >>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>> >>> >> >>> >> 2012,
>> >>> >> >>> >> more!
>> >>> >> >>> >> Discover the easy way to master current and previous
>> >>> >> >>> >> Microsoft
>> >>> >> >>> >> technologies
>> >>> >> >>> >> and advance your career. Get an incredible 1,500+ hours of
>> >>> >> >>> >> step-by-step
>> >>> >> >>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> >>> >>
>> >>> >> >>> >> _______________________________________________
>> >>> >> >>> >> Csound-devel mailing list
>> >>> >> >>> >> Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> > ------------------------------------------------------------------------------
>> >>> >> >>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>> >>> >> >>> > 2012,
>> >>> >> >>> > more!
>> >>> >> >>> > Discover the easy way to master current and previous
>> >>> >> >>> > Microsoft
>> >>> >> >>> > technologies
>> >>> >> >>> > and advance your career. Get an incredible 1,500+ hours of
>> >>> >> >>> > step-by-step
>> >>> >> >>> > tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> >>> > _______________________________________________
>> >>> >> >>> > Csound-devel mailing list
>> >>> >> >>> > Csound-devel@lists.sourceforge.net
>> >>> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>> ------------------------------------------------------------------------------
>> >>> >> >>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>> >>> >> >>> 2012,
>> >>> >> >>> more!
>> >>> >> >>> Discover the easy way to master current and previous Microsoft
>> >>> >> >>> technologies
>> >>> >> >>> and advance your career. Get an incredible 1,500+ hours of
>> >>> >> >>> step-by-step
>> >>> >> >>> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> >>> _______________________________________________
>> >>> >> >>> Csound-devel mailing list
>> >>> >> >>> Csound-devel@lists.sourceforge.net
>> >>> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >> ------------------------------------------------------------------------------
>> >>> >> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >>> >> >> more!
>> >>> >> >> Discover the easy way to master current and previous Microsoft
>> >>> >> >> technologies
>> >>> >> >> and advance your career. Get an incredible 1,500+ hours of
>> >>> >> >> step-by-step
>> >>> >> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> >> _______________________________________________
>> >>> >> >> Csound-devel mailing list
>> >>> >> >> Csound-devel@lists.sourceforge.net
>> >>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> ------------------------------------------------------------------------------
>> >>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >>> >> more!
>> >>> >> Discover the easy way to master current and previous Microsoft
>> >>> >> technologies
>> >>> >> and advance your career. Get an incredible 1,500+ hours of
>> >>> >> step-by-step
>> >>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> _______________________________________________
>> >>> >> Csound-devel mailing list
>> >>> >> Csound-devel@lists.sourceforge.net
>> >>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> > ------------------------------------------------------------------------------
>> >>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >>> > more!
>> >>> > Discover the easy way to master current and previous Microsoft
>> >>> > technologies
>> >>> > and advance your career. Get an incredible 1,500+ hours of
>> >>> > step-by-step
>> >>> > tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >
>> >>> >
>> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> > _______________________________________________
>> >>> > Csound-devel mailing list
>> >>> > Csound-devel@lists.sourceforge.net
>> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >
>> >>>
>> >>>
>> >>>
>> >>> ------------------------------------------------------------------------------
>> >>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> >>> Discover the easy way to master current and previous Microsoft
>> >>> technologies
>> >>> and advance your career. Get an incredible 1,500+ hours of
>> >>> step-by-step
>> >>> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>>
>> >>>
>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> _______________________________________________
>> >>> Csound-devel mailing list
>> >>> Csound-devel@lists.sourceforge.net
>> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> >> Discover the easy way to master current and previous Microsoft
>> >> technologies
>> >> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>
>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>>
>>
>> ------------------------------------------------------------------------------
>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> Discover the easy way to master current and previous Microsoft
>> technologies
>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> tutorial videos with LearnDevNow. Subscribe today and save!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-08-28 20:23
FromMichael Gogins
SubjectRe: [Cs-dev] Java crash on windows
AttachmentsNone  None  
These are only for Windows.

The only harm from defining these options globally is that more symbols are exported by the shared libraries, so the dynamic loads might be a tad slower. Once loaded I don't think calls would be noticeably slower. So I would go ahead and make these global on Windows. Other things that I always define globally on Windows, and should probably be the defaults on Windows:

-g -O2 -std=gnu++11 -fopenmp -march=nocona -DNDEBUG -I/usr/local/include -L/usr/local/lib -mstackrealign -Wl,--add-stdcall-alias -Wl,--enable-stdcall-fixup

I don't know why I didn't think about the stdcall possibility this time -- when it was I who originally added these options for this sort of reason in the first place!

Best,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Wed, Aug 28, 2013 at 3:09 PM, Steven Yi <stevenyi@gmail.com> wrote:
I'm hopeful this will be it. :)  I tried adding it to my Custom.cmake
for now and am doing a compile.  I grepped through CS5's SConstruct
and surely enough there's numerous places where
-Wl,--add-stdcall-alias is used, and a few places where
-Wl,--enable-stdcall-fixup is used.

I should be able to test in about 10 minutes; assuming all is good,
I'm wondering should this just be enabled as a global flag if on
Windows, or only for certain libs?

As for finding a fix, glad that none of my other guesses were correct
as I think they'd be much more difficult to solve. :P

On Wed, Aug 28, 2013 at 2:40 PM, Michael Gogins
<michael.gogins@gmail.com> wrote:
> If that's the case, then changing the linker flags should do the trick. @8
> marks the function as stdcall calling convention with 8 bytes to be popped
> off the stack after returning from the call.
>
> To CFLAGS and CXXFLAGS for the DLL, add -"Wl,--add-stdcall-alias
> -Wl,--enable-stdcall-fixup". I think only the first is required but I used
> to add both to everything just to cover my bases.
>
> --add-stdcall-alias                Export symbols with and without @nn
> --disable-stdcall-fixup            Don't link _sym to _sym@nn DON'T USE!
> --enable-stdcall-fixup             Link _sym to _sym@nn without warnings
>
> Best,
> Mike
>
>
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Wed, Aug 28, 2013 at 1:25 PM, Steven Yi <stevenyi@gmail.com> wrote:
>>
>> I found something that looks useful.  In _jcsound.dll from CS5,
>> DependencyWalker shows symbols like:
>>
>> Java_csnd_csndJNI_swig_1module_1init
>> Java_csnd_csndJNI_swig_1module_1init@8
>>
>> while CS6 only has:
>>
>> Java_csnd6_csnd6JNI_swig_1module_1init@8
>>
>> I get the impression that the PUBLIC attribute isn't working
>> correctly, or something along those lines.  I've got to take a break
>> but will continue on with this after lunch.
>>
>> On Wed, Aug 28, 2013 at 12:22 PM, Steven Yi <stevenyi@gmail.com> wrote:
>> > That didn't seem to affect anything unfortunately. Continuing on....
>> >
>> > On Wed, Aug 28, 2013 at 11:59 AM, Michael Gogins
>> > <michael.gogins@gmail.com> wrote:
>> >> Well, that's certainly a mistake.
>> >>
>> >> On Aug 28, 2013 11:59 AM, "Steven Yi" <stevenyi@gmail.com> wrote:
>> >>>
>> >>> That sounds reasonable, but the Csound5 API still loads for me fine
>> >>> with Blue, using the same VM.  I think that'd rule that one out.  I
>> >>> saw that csound.h has "%module csnd" isntead of "%module csnd6".  I'm
>> >>> not sure that's it, as that seems like it'd affect other platforms,
>> >>> but I'm giving it a try now just in case.  (compile should be done in
>> >>> 15-20 mins... ugh...)
>> >>>
>> >>> On Wed, Aug 28, 2013 at 11:35 AM, Michael Gogins
>> >>> <michael.gogins@gmail.com> wrote:
>> >>> > If I were you, I would try compiling the library with both the
>> >>> > wrapper
>> >>> > and
>> >>> > the wrapped lib, just to rule that out.
>> >>> >
>> >>> > There may well have been some change in the way the Java VM and
>> >>> > library
>> >>> > link. You could try Oracle issues on Java regarding that.
>> >>> >
>> >>> > Best,
>> >>> > Mike
>> >>> >
>> >>> >
>> >>> > ===========================
>> >>> > Michael Gogins
>> >>> > Irreducible Productions
>> >>> > http://michaelgogins.tumblr.com
>> >>> > Michael dot Gogins at gmail dot com
>> >>> >
>> >>> >
>> >>> > On Wed, Aug 28, 2013 at 11:18 AM, Steven Yi <stevenyi@gmail.com>
>> >>> > wrote:
>> >>> >>
>> >>> >> Just an update, I tried modifying to use libcsnd6 and linking to
>> >>> >> that,
>> >>> >> but it had no affect on the Java test.  I did see in the SWIG
>> >>> >> manual
>> >>> >> for Java that they have an error shown similar to ours, with the
>> >>> >> documentation:
>> >>> >>
>> >>> >> "This error usually indicates that you forgot to include some
>> >>> >> object
>> >>> >> files or libraries in the linking of the native library file. Make
>> >>> >> sure you compile both the SWIG wrapper file and the code you are
>> >>> >> wrapping into the native library file. If you forget to compile and
>> >>> >> link in the SWIG wrapper file into your native library file, you
>> >>> >> will
>> >>> >> get a message similar to the following:"
>> >>> >>
>> >>> >> However, I don't think this is quite the issue as the same Cmake
>> >>> >> script works on OSX and Linux. I did see an email about possibly
>> >>> >> needing to compile the library with both the wrapper and the
>> >>> >> wrapped
>> >>> >> lib, but that seemed odd as we had things working with CS5.
>> >>> >>
>> >>> >> I'll continue to explore here.
>> >>> >>
>> >>> >> On Tue, Aug 27, 2013 at 5:19 PM, Steven Yi <stevenyi@gmail.com>
>> >>> >> wrote:
>> >>> >> > Thanks for the info, at least we can eliminate that possibility
>> >>> >> > then.
>> >>> >> > I'll hopefully get further along tomorrow and will report
>> >>> >> > anything I
>> >>> >> > find.
>> >>> >> >
>> >>> >> > On Tue, Aug 27, 2013 at 5:13 PM, Michael Gogins
>> >>> >> > <michael.gogins@gmail.com> wrote:
>> >>> >> >> The csnd name should be versioned but I don't have 5 on my
>> >>> >> >> machine
>> >>> >> >> at
>> >>> >> >> all.
>> >>> >> >>
>> >>> >> >> On Aug 27, 2013 5:03 PM, "Steven Yi" <stevenyi@gmail.com> wrote:
>> >>> >> >>>
>> >>> >> >>> The compile paths here are a mess so I'm going to need to sort
>> >>> >> >>> that
>> >>> >> >>> out here locally.  However, I'm wondering if at runtime if the
>> >>> >> >>> wrong
>> >>> >> >>> dll is getting loaded due to csnd.dll being the same name in
>> >>> >> >>> CS5
>> >>> >> >>> and
>> >>> >> >>> CS6.  Perhaps we should rename that to see if that's the source
>> >>> >> >>> of
>> >>> >> >>> issues for Java (possible CsoundPerformanceThread too?). I'm
>> >>> >> >>> imagining
>> >>> >> >>> if Csound runs multiple times alright, but
>> >>> >> >>> CsoundPerformanceThread
>> >>> >> >>> does not, then it could be possible that the csound6 library is
>> >>> >> >>> loading fine, but the cs5 version of csnd is loading and
>> >>> >> >>> causing
>> >>> >> >>> issues.
>> >>> >> >>>
>> >>> >> >>> On Tue, Aug 27, 2013 at 4:52 PM, Michael Gogins
>> >>> >> >>> <michael.gogins@gmail.com> wrote:
>> >>> >> >>> > In my build I'm very careful about the actual library paths.
>> >>> >> >>> > I
>> >>> >> >>> > look
>> >>> >> >>> > at
>> >>> >> >>> > the
>> >>> >> >>> > CMakeCache.txt, I look at the compiler and linker commands,
>> >>> >> >>> > and I
>> >>> >> >>> > look
>> >>> >> >>> > at
>> >>> >> >>> > what libraries actually get loaded during a run (there are
>> >>> >> >>> > various
>> >>> >> >>> > tools
>> >>> >> >>> > for
>> >>> >> >>> > doing this on Windows). I am careful because yes, it has been
>> >>> >> >>> > a
>> >>> >> >>> > problem
>> >>> >> >>> > for
>> >>> >> >>> > me, as you saw from my earlier emails.
>> >>> >> >>> >
>> >>> >> >>> > But we should talk about how to make this better on Windows.
>> >>> >> >>> >
>> >>> >> >>> > Best,
>> >>> >> >>> > Mike
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> > ===========================
>> >>> >> >>> > Michael Gogins
>> >>> >> >>> > Irreducible Productions
>> >>> >> >>> > http://michaelgogins.tumblr.com
>> >>> >> >>> > Michael dot Gogins at gmail dot com
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> > On Tue, Aug 27, 2013 at 4:15 PM, Steven Yi
>> >>> >> >>> > <stevenyi@gmail.com>
>> >>> >> >>> > wrote:
>> >>> >> >>> >>
>> >>> >> >>> >> Hi Michael and All,
>> >>> >> >>> >>
>> >>> >> >>> >> I just spent a bit of time looking into this and found some
>> >>> >> >>> >> very
>> >>> >> >>> >> heinous stuff going on in windows.  It looks to me that
>> >>> >> >>> >> CMake
>> >>> >> >>> >> actually
>> >>> >> >>> >> found all types of libraries from the PATH to use.  That
>> >>> >> >>> >> meant
>> >>> >> >>> >> some
>> >>> >> >>> >> libraries from C:\Program Files (x86)\Csound\bin were found,
>> >>> >> >>> >> others
>> >>> >> >>> >> from C:\Program Files (x86)\Csound6\bin, and others from my
>> >>> >> >>> >> MSYS
>> >>> >> >>> >> /usr/local/lib and custom set paths.  I get the impression
>> >>> >> >>> >> this
>> >>> >> >>> >> could
>> >>> >> >>> >> be a source of some of the issues we're seeing both with the
>> >>> >> >>> >> Java
>> >>> >> >>> >> library and other windows oddities.
>> >>> >> >>> >>
>> >>> >> >>> >> I mostly noticed this in looking at my CmakeCache.txt.  I'm
>> >>> >> >>> >> wondering
>> >>> >> >>> >> if the Java lib is linking to Csound 5's csnd.dll instead of
>> >>> >> >>> >> Csound6's.  If that's the case, then perhaps we can change
>> >>> >> >>> >> csnd
>> >>> >> >>> >> to
>> >>> >> >>> >> be
>> >>> >> >>> >> csnd6 instead.
>> >>> >> >>> >>
>> >>> >> >>> >> I've got to move on for the day, but will come back to this
>> >>> >> >>> >> tomorrow.
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >> On Tue, Aug 20, 2013 at 11:14 PM, Michael Gogins
>> >>> >> >>> >> <michael.gogins@gmail.com> wrote:
>> >>> >> >>> >> > People do seem to be switching to mingw-builds. I am using
>> >>> >> >>> >> > 4.8.1,
>> >>> >> >>> >> > dwarf-2,
>> >>> >> >>> >> > posix threads, 32 bits. If you use the same version we
>> >>> >> >>> >> > have a
>> >>> >> >>> >> > much
>> >>> >> >>> >> > better
>> >>> >> >>> >> > chance of understanding what is going on.
>> >>> >> >>> >> >
>> >>> >> >>> >> > I think there is something pretty subtle going on both
>> >>> >> >>> >> > with
>> >>> >> >>> >> > Java
>> >>> >> >>> >> > and
>> >>> >> >>> >> > with
>> >>> >> >>> >> > the CsoundPerformanceThread.
>> >>> >> >>> >> >
>> >>> >> >>> >> > I have proved that the existence of incompatible MinGW
>> >>> >> >>> >> > runtime
>> >>> >> >>> >> > libraries
>> >>> >> >>> >> > can
>> >>> >> >>> >> > be a problem. I have also proved that that is not the ONLY
>> >>> >> >>> >> > problem,
>> >>> >> >>> >> > at
>> >>> >> >>> >> > least, on my computer. I succeeded finally in removing
>> >>> >> >>> >> > incompatible
>> >>> >> >>> >> > MinGW
>> >>> >> >>> >> > runtime libraries from my SysWOW64 directory (!) so I now
>> >>> >> >>> >> > can
>> >>> >> >>> >> > run
>> >>> >> >>> >> > CsoundAC
>> >>> >> >>> >> > code, but I am still having problems with the performance
>> >>> >> >>> >> > thread
>> >>> >> >>> >> > and
>> >>> >> >>> >> > with
>> >>> >> >>> >> > Java. Different computers behave differently, e.g. I can
>> >>> >> >>> >> > run
>> >>> >> >>> >> > CsoundQt
>> >>> >> >>> >> > at
>> >>> >> >>> >> > work but not at home.
>> >>> >> >>> >> >
>> >>> >> >>> >> > In my programming life, these errors can arise from
>> >>> >> >>> >> > several
>> >>> >> >>> >> > errors
>> >>> >> >>> >> > but
>> >>> >> >>> >> > one
>> >>> >> >>> >> > common source is uninitialized members of structs and
>> >>> >> >>> >> > classes
>> >>> >> >>> >> > that
>> >>> >> >>> >> > contain
>> >>> >> >>> >> > zeroes on some machines and junk on other machines. Or
>> >>> >> >>> >> > writes
>> >>> >> >>> >> > past
>> >>> >> >>> >> > buffer
>> >>> >> >>> >> > ends that poke holes in junk on some machines and in vital
>> >>> >> >>> >> > organs
>> >>> >> >>> >> > on
>> >>> >> >>> >> > other
>> >>> >> >>> >> > machines. Having multiple threads makes this harder...
>> >>> >> >>> >> >
>> >>> >> >>> >> > Regards,
>> >>> >> >>> >> > Mike
>> >>> >> >>> >> >
>> >>> >> >>> >> > I wish I had something like valgrind on Windows but I
>> >>> >> >>> >> > can't
>> >>> >> >>> >> > afford
>> >>> >> >>> >> > the
>> >>> >> >>> >> > equivalent.
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> > ===========================
>> >>> >> >>> >> > Michael Gogins
>> >>> >> >>> >> > Irreducible Productions
>> >>> >> >>> >> > http://michaelgogins.tumblr.com
>> >>> >> >>> >> > Michael dot Gogins at gmail dot com
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> > On Tue, Aug 20, 2013 at 10:56 PM, Steven Yi
>> >>> >> >>> >> > <stevenyi@gmail.com>
>> >>> >> >>> >> > wrote:
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> Hi Michael,
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> I was trying to setup to get a build working on Windows
>> >>> >> >>> >> >> to
>> >>> >> >>> >> >> see
>> >>> >> >>> >> >> if I
>> >>> >> >>> >> >> can further diagnose what's going on.  I currently have
>> >>> >> >>> >> >> the
>> >>> >> >>> >> >> stock
>> >>> >> >>> >> >> mingw/msys installed from sf.net/projects/mingw. I
>> >>> >> >>> >> >> noticed in
>> >>> >> >>> >> >> your
>> >>> >> >>> >> >> How
>> >>> >> >>> >> >> to Build doc that you are using mingwbuilds version.
>> >>> >> >>> >> >> Could
>> >>> >> >>> >> >> you
>> >>> >> >>> >> >> advise: should I uninstalled mingw/msys and use just
>> >>> >> >>> >> >> mingwbuilds?
>> >>> >> >>> >> >> (I.e. better to start clean).
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> Thanks!
>> >>> >> >>> >> >> steven
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> On Thu, Aug 15, 2013 at 8:44 AM, Michael Gogins
>> >>> >> >>> >> >> <michael.gogins@gmail.com> wrote:
>> >>> >> >>> >> >> > Sorry, fumble fingers.
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > The problem I see is that the csnd6 low level JNI Java
>> >>> >> >>> >> >> > class
>> >>> >> >>> >> >> > needs
>> >>> >> >>> >> >> > to
>> >>> >> >>> >> >> > call
>> >>> >> >>> >> >> > SWIG's initializer in _csound.dll. The initializer is
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > thing
>> >>> >> >>> >> >> > not
>> >>> >> >>> >> >> > found.
>> >>> >> >>> >> >> > Without it we don't have Java Csound.
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > Still no solution, though. The initializer is in
>> >>> >> >>> >> >> > _jcsound.dll.
>> >>> >> >>> >> >> > Java
>> >>> >> >>> >> >> > doesn't
>> >>> >> >>> >> >> > find it. Java finds the CsoundEditor.jar (a better test
>> >>> >> >>> >> >> > than
>> >>> >> >>> >> >> > CSDPlayer.jar
>> >>> >> >>> >> >> > because it loads csnd6 right away) and loads and begins
>> >>> >> >>> >> >> > to
>> >>> >> >>> >> >> > run
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > Java
>> >>> >> >>> >> >> > code. The first thing to run is the static block that
>> >>> >> >>> >> >> > loads
>> >>> >> >>> >> >> > _jcsound.dll
>> >>> >> >>> >> >> > and
>> >>> >> >>> >> >> > calls the initializer. There are 4 steps here: locate
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > DLL,
>> >>> >> >>> >> >> > load
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > DLL,
>> >>> >> >>> >> >> > find the initializer function, call the initializer. We
>> >>> >> >>> >> >> > know
>> >>> >> >>> >> >> > that
>> >>> >> >>> >> >> > we
>> >>> >> >>> >> >> > don't
>> >>> >> >>> >> >> > find the initializer. I think it fails at the load
>> >>> >> >>> >> >> > stage
>> >>> >> >>> >> >> > because I
>> >>> >> >>> >> >> > have
>> >>> >> >>> >> >> > DLL
>> >>> >> >>> >> >> > hell on my notebook right now and I seem to recall
>> >>> >> >>> >> >> > catching
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > DLL
>> >>> >> >>> >> >> > load.
>> >>> >> >>> >> >> > I'll verify that later. In other words I think it
>> >>> >> >>> >> >> > starts to
>> >>> >> >>> >> >> > load
>> >>> >> >>> >> >> > _jcsound.dll and then there is a problem when
>> >>> >> >>> >> >> > _jcsound.dll
>> >>> >> >>> >> >> > is
>> >>> >> >>> >> >> > loading
>> >>> >> >>> >> >> > other
>> >>> >> >>> >> >> > things or initializating its own things.
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > ===========================
>> >>> >> >>> >> >> > Michael Gogins
>> >>> >> >>> >> >> > Irreducible Productions
>> >>> >> >>> >> >> > http://michaelgogins.tumblr.com
>> >>> >> >>> >> >> > Michael dot Gogins at gmail dot com
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > On Thu, Aug 15, 2013 at 8:32 AM, Michael Gogins
>> >>> >> >>> >> >> > <michael.gogins@gmail.com>
>> >>> >> >>> >> >> > wrote:
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >> The problem I see is that the Csound JNI
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >> ===========================
>> >>> >> >>> >> >> >> Michael Gogins
>> >>> >> >>> >> >> >> Irreducible Productions
>> >>> >> >>> >> >> >> http://michaelgogins.tumblr.com
>> >>> >> >>> >> >> >> Michael dot Gogins at gmail dot com
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >> On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi
>> >>> >> >>> >> >> >> <stevenyi@gmail.com>
>> >>> >> >>> >> >> >> wrote:
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> Hi Michael,
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> I'm wondering if this is the same issue. I need to
>> >>> >> >>> >> >> >>> re-test,
>> >>> >> >>> >> >> >>> but
>> >>> >> >>> >> >> >>> when I
>> >>> >> >>> >> >> >>> was trying things out I thought I didn't quite get a
>> >>> >> >>> >> >> >>> crash,
>> >>> >> >>> >> >> >>> just
>> >>> >> >>> >> >> >>> an
>> >>> >> >>> >> >> >>> UnsatisfiedLinkError exception for the function I was
>> >>> >> >>> >> >> >>> trying
>> >>> >> >>> >> >> >>> to
>> >>> >> >>> >> >> >>> call,
>> >>> >> >>> >> >> >>> which I could catch and do something about.  The test
>> >>> >> >>> >> >> >>> java
>> >>> >> >>> >> >> >>> class
>> >>> >> >>> >> >> >>> I
>> >>> >> >>> >> >> >>> put
>> >>> >> >>> >> >> >>> into the bug may not be doing any catching, but then
>> >>> >> >>> >> >> >>> Java
>> >>> >> >>> >> >> >>> should
>> >>> >> >>> >> >> >>> have
>> >>> >> >>> >> >> >>> just exited rather than crash.
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> steven
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
>> >>> >> >>> >> >> >>> <michael.gogins@gmail.com> wrote:
>> >>> >> >>> >> >> >>> > Gdb tells me Java crash is caused by linstd++-6.dll
>> >>> >> >>> >> >> >>> > of
>> >>> >> >>> >> >> >>> > wrong
>> >>> >> >>> >> >> >>> > model
>> >>> >> >>> >> >> >>> > found in
>> >>> >> >>> >> >> >>> > SysWOW64, where it does not belong and was put by
>> >>> >> >>> >> >> >>> > some
>> >>> >> >>> >> >> >>> > incompetent
>> >>> >> >>> >> >> >>> > installer. I'm afraid to remove it because I did
>> >>> >> >>> >> >> >>> > once
>> >>> >> >>> >> >> >>> > before
>> >>> >> >>> >> >> >>> > and
>> >>> >> >>> >> >> >>> > lost
>> >>> >> >>> >> >> >>> > my
>> >>> >> >>> >> >> >>> > user profile.
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> > ------------------------------------------------------------------------------
>> >>> >> >>> >> >> >>> > Get 100% visibility into Java/.NET code with
>> >>> >> >>> >> >> >>> > AppDynamics
>> >>> >> >>> >> >> >>> > Lite!
>> >>> >> >>> >> >> >>> > It's a free troubleshooting tool designed for
>> >>> >> >>> >> >> >>> > production.
>> >>> >> >>> >> >> >>> > Get down to code-level detail for bottlenecks, with
>> >>> >> >>> >> >> >>> > <2%
>> >>> >> >>> >> >> >>> > overhead.
>> >>> >> >>> >> >> >>> > Download for free and get started troubleshooting
>> >>> >> >>> >> >> >>> > in
>> >>> >> >>> >> >> >>> > minutes.
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >>> >> >>> >> >> >>> > _______________________________________________
>> >>> >> >>> >> >> >>> > Csound-devel mailing list
>> >>> >> >>> >> >> >>> > Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> ------------------------------------------------------------------------------
>> >>> >> >>> >> >> >>> Get 100% visibility into Java/.NET code with
>> >>> >> >>> >> >> >>> AppDynamics
>> >>> >> >>> >> >> >>> Lite!
>> >>> >> >>> >> >> >>> It's a free troubleshooting tool designed for
>> >>> >> >>> >> >> >>> production.
>> >>> >> >>> >> >> >>> Get down to code-level detail for bottlenecks, with
>> >>> >> >>> >> >> >>> <2%
>> >>> >> >>> >> >> >>> overhead.
>> >>> >> >>> >> >> >>> Download for free and get started troubleshooting in
>> >>> >> >>> >> >> >>> minutes.
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >>> >> >>> >> >> >>> _______________________________________________
>> >>> >> >>> >> >> >>> Csound-devel mailing list
>> >>> >> >>> >> >> >>> Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > ------------------------------------------------------------------------------
>> >>> >> >>> >> >> > Get 100% visibility into Java/.NET code with
>> >>> >> >>> >> >> > AppDynamics
>> >>> >> >>> >> >> > Lite!
>> >>> >> >>> >> >> > It's a free troubleshooting tool designed for
>> >>> >> >>> >> >> > production.
>> >>> >> >>> >> >> > Get down to code-level detail for bottlenecks, with <2%
>> >>> >> >>> >> >> > overhead.
>> >>> >> >>> >> >> > Download for free and get started troubleshooting in
>> >>> >> >>> >> >> > minutes.
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >>> >> >>> >> >> > _______________________________________________
>> >>> >> >>> >> >> > Csound-devel mailing list
>> >>> >> >>> >> >> > Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> ------------------------------------------------------------------------------
>> >>> >> >>> >> >> Introducing Performance Central, a new site from
>> >>> >> >>> >> >> SourceForge
>> >>> >> >>> >> >> and
>> >>> >> >>> >> >> AppDynamics. Performance Central is your source for news,
>> >>> >> >>> >> >> insights,
>> >>> >> >>> >> >> analysis and resources for efficient Application
>> >>> >> >>> >> >> Performance
>> >>> >> >>> >> >> Management.
>> >>> >> >>> >> >> Visit us today!
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> _______________________________________________
>> >>> >> >>> >> >> Csound-devel mailing list
>> >>> >> >>> >> >> Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> > ------------------------------------------------------------------------------
>> >>> >> >>> >> > Introducing Performance Central, a new site from
>> >>> >> >>> >> > SourceForge
>> >>> >> >>> >> > and
>> >>> >> >>> >> > AppDynamics. Performance Central is your source for news,
>> >>> >> >>> >> > insights,
>> >>> >> >>> >> > analysis and resources for efficient Application
>> >>> >> >>> >> > Performance
>> >>> >> >>> >> > Management.
>> >>> >> >>> >> > Visit us today!
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> >>> >> >>> >> > _______________________________________________
>> >>> >> >>> >> > Csound-devel mailing list
>> >>> >> >>> >> > Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >> ------------------------------------------------------------------------------
>> >>> >> >>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>> >>> >> >>> >> 2012,
>> >>> >> >>> >> more!
>> >>> >> >>> >> Discover the easy way to master current and previous
>> >>> >> >>> >> Microsoft
>> >>> >> >>> >> technologies
>> >>> >> >>> >> and advance your career. Get an incredible 1,500+ hours of
>> >>> >> >>> >> step-by-step
>> >>> >> >>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> >>> >>
>> >>> >> >>> >> _______________________________________________
>> >>> >> >>> >> Csound-devel mailing list
>> >>> >> >>> >> Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> > ------------------------------------------------------------------------------
>> >>> >> >>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>> >>> >> >>> > 2012,
>> >>> >> >>> > more!
>> >>> >> >>> > Discover the easy way to master current and previous
>> >>> >> >>> > Microsoft
>> >>> >> >>> > technologies
>> >>> >> >>> > and advance your career. Get an incredible 1,500+ hours of
>> >>> >> >>> > step-by-step
>> >>> >> >>> > tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> >>> > _______________________________________________
>> >>> >> >>> > Csound-devel mailing list
>> >>> >> >>> > Csound-devel@lists.sourceforge.net
>> >>> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>> ------------------------------------------------------------------------------
>> >>> >> >>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>> >>> >> >>> 2012,
>> >>> >> >>> more!
>> >>> >> >>> Discover the easy way to master current and previous Microsoft
>> >>> >> >>> technologies
>> >>> >> >>> and advance your career. Get an incredible 1,500+ hours of
>> >>> >> >>> step-by-step
>> >>> >> >>> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> >>> _______________________________________________
>> >>> >> >>> Csound-devel mailing list
>> >>> >> >>> Csound-devel@lists.sourceforge.net
>> >>> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >> ------------------------------------------------------------------------------
>> >>> >> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >>> >> >> more!
>> >>> >> >> Discover the easy way to master current and previous Microsoft
>> >>> >> >> technologies
>> >>> >> >> and advance your career. Get an incredible 1,500+ hours of
>> >>> >> >> step-by-step
>> >>> >> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> >> _______________________________________________
>> >>> >> >> Csound-devel mailing list
>> >>> >> >> Csound-devel@lists.sourceforge.net
>> >>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> ------------------------------------------------------------------------------
>> >>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >>> >> more!
>> >>> >> Discover the easy way to master current and previous Microsoft
>> >>> >> technologies
>> >>> >> and advance your career. Get an incredible 1,500+ hours of
>> >>> >> step-by-step
>> >>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> _______________________________________________
>> >>> >> Csound-devel mailing list
>> >>> >> Csound-devel@lists.sourceforge.net
>> >>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> > ------------------------------------------------------------------------------
>> >>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >>> > more!
>> >>> > Discover the easy way to master current and previous Microsoft
>> >>> > technologies
>> >>> > and advance your career. Get an incredible 1,500+ hours of
>> >>> > step-by-step
>> >>> > tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >
>> >>> >
>> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> > _______________________________________________
>> >>> > Csound-devel mailing list
>> >>> > Csound-devel@lists.sourceforge.net
>> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >
>> >>>
>> >>>
>> >>>
>> >>> ------------------------------------------------------------------------------
>> >>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> >>> Discover the easy way to master current and previous Microsoft
>> >>> technologies
>> >>> and advance your career. Get an incredible 1,500+ hours of
>> >>> step-by-step
>> >>> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>>
>> >>>
>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> _______________________________________________
>> >>> Csound-devel mailing list
>> >>> Csound-devel@lists.sourceforge.net
>> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> >> Discover the easy way to master current and previous Microsoft
>> >> technologies
>> >> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>
>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>>
>>
>> ------------------------------------------------------------------------------
>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> Discover the easy way to master current and previous Microsoft
>> technologies
>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> tutorial videos with LearnDevNow. Subscribe today and save!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2013-08-28 20:47
FromSteven Yi
SubjectRe: [Cs-dev] Java crash on windows
Hi Michael,

Success!  It took a few tries, as I tried initially to just set flags
in CMAKE_CXX_FLAGS and CMAKE_C_FLAGS but that did not work.  I then
tried setting CMAKE_SHARED_LINKER_FLAGS and that also did not work.
Ultimately, this did it:

    set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--add-stdcall-alias
-Wl,--enable-stdcall-fixup")

I don't know if the stdcall-fixup is necessary.  The swig
documentation for Java had some example and they only used
stdcall-alias.

I've modified the root CmakeLists.txt to have:

if(WIN32 AND NOT MSVC)
    if(EXISTS "C:/MinGW/include")
        include_directories(C:/MinGW/include)
    else()
        MESSAGE(STATUS "MinGW include dir not found")
    endif()

    set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS}
-Wl,--add-stdcall-alias")
endif()

I'm doing one test build now to see if that's all that's necessary to
fix the build, or if one of the other places I added it is required.
I think that because it's applied to modules and not shared libs,
it'll get applied to all of the swig stuff as they use module, but
might not get applied to other places.  We could add an additional one
for CMAKE_SHARED_LINKER_FLAGS if desired.

I'll make a commit once this build finishes and I've retested.  I've
only tested as far as that API6Test java class. Could you perhaps
rebuild/retest later when you have a chance?

Thanks!
steven




On Wed, Aug 28, 2013 at 3:23 PM, Michael Gogins
 wrote:
> These are only for Windows.
>
> The only harm from defining these options globally is that more symbols are
> exported by the shared libraries, so the dynamic loads might be a tad
> slower. Once loaded I don't think calls would be noticeably slower. So I
> would go ahead and make these global on Windows. Other things that I always
> define globally on Windows, and should probably be the defaults on Windows:
>
> -g -O2 -std=gnu++11 -fopenmp -march=nocona -DNDEBUG -I/usr/local/include
> -L/usr/local/lib -mstackrealign -Wl,--add-stdcall-alias
> -Wl,--enable-stdcall-fixup
>
> I don't know why I didn't think about the stdcall possibility this time --
> when it was I who originally added these options for this sort of reason in
> the first place!
>
> Best,
> Mike
>
>
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Wed, Aug 28, 2013 at 3:09 PM, Steven Yi  wrote:
>>
>> I'm hopeful this will be it. :)  I tried adding it to my Custom.cmake
>> for now and am doing a compile.  I grepped through CS5's SConstruct
>> and surely enough there's numerous places where
>> -Wl,--add-stdcall-alias is used, and a few places where
>> -Wl,--enable-stdcall-fixup is used.
>>
>> I should be able to test in about 10 minutes; assuming all is good,
>> I'm wondering should this just be enabled as a global flag if on
>> Windows, or only for certain libs?
>>
>> As for finding a fix, glad that none of my other guesses were correct
>> as I think they'd be much more difficult to solve. :P
>>
>> On Wed, Aug 28, 2013 at 2:40 PM, Michael Gogins
>>  wrote:
>> > If that's the case, then changing the linker flags should do the trick.
>> > @8
>> > marks the function as stdcall calling convention with 8 bytes to be
>> > popped
>> > off the stack after returning from the call.
>> >
>> > To CFLAGS and CXXFLAGS for the DLL, add -"Wl,--add-stdcall-alias
>> > -Wl,--enable-stdcall-fixup". I think only the first is required but I
>> > used
>> > to add both to everything just to cover my bases.
>> >
>> > --add-stdcall-alias                Export symbols with and without @nn
>> > --disable-stdcall-fixup            Don't link _sym to _sym@nn DON'T USE!
>> > --enable-stdcall-fixup             Link _sym to _sym@nn without warnings
>> >
>> > Best,
>> > Mike
>> >
>> >
>> > ===========================
>> > Michael Gogins
>> > Irreducible Productions
>> > http://michaelgogins.tumblr.com
>> > Michael dot Gogins at gmail dot com
>> >
>> >
>> > On Wed, Aug 28, 2013 at 1:25 PM, Steven Yi  wrote:
>> >>
>> >> I found something that looks useful.  In _jcsound.dll from CS5,
>> >> DependencyWalker shows symbols like:
>> >>
>> >> Java_csnd_csndJNI_swig_1module_1init
>> >> Java_csnd_csndJNI_swig_1module_1init@8
>> >>
>> >> while CS6 only has:
>> >>
>> >> Java_csnd6_csnd6JNI_swig_1module_1init@8
>> >>
>> >> I get the impression that the PUBLIC attribute isn't working
>> >> correctly, or something along those lines.  I've got to take a break
>> >> but will continue on with this after lunch.
>> >>
>> >> On Wed, Aug 28, 2013 at 12:22 PM, Steven Yi  wrote:
>> >> > That didn't seem to affect anything unfortunately. Continuing on....
>> >> >
>> >> > On Wed, Aug 28, 2013 at 11:59 AM, Michael Gogins
>> >> >  wrote:
>> >> >> Well, that's certainly a mistake.
>> >> >>
>> >> >> On Aug 28, 2013 11:59 AM, "Steven Yi"  wrote:
>> >> >>>
>> >> >>> That sounds reasonable, but the Csound5 API still loads for me fine
>> >> >>> with Blue, using the same VM.  I think that'd rule that one out.  I
>> >> >>> saw that csound.h has "%module csnd" isntead of "%module csnd6".
>> >> >>> I'm
>> >> >>> not sure that's it, as that seems like it'd affect other platforms,
>> >> >>> but I'm giving it a try now just in case.  (compile should be done
>> >> >>> in
>> >> >>> 15-20 mins... ugh...)
>> >> >>>
>> >> >>> On Wed, Aug 28, 2013 at 11:35 AM, Michael Gogins
>> >> >>>  wrote:
>> >> >>> > If I were you, I would try compiling the library with both the
>> >> >>> > wrapper
>> >> >>> > and
>> >> >>> > the wrapped lib, just to rule that out.
>> >> >>> >
>> >> >>> > There may well have been some change in the way the Java VM and
>> >> >>> > library
>> >> >>> > link. You could try Oracle issues on Java regarding that.
>> >> >>> >
>> >> >>> > Best,
>> >> >>> > Mike
>> >> >>> >
>> >> >>> >
>> >> >>> > ===========================
>> >> >>> > Michael Gogins
>> >> >>> > Irreducible Productions
>> >> >>> > http://michaelgogins.tumblr.com
>> >> >>> > Michael dot Gogins at gmail dot com
>> >> >>> >
>> >> >>> >
>> >> >>> > On Wed, Aug 28, 2013 at 11:18 AM, Steven Yi 
>> >> >>> > wrote:
>> >> >>> >>
>> >> >>> >> Just an update, I tried modifying to use libcsnd6 and linking to
>> >> >>> >> that,
>> >> >>> >> but it had no affect on the Java test.  I did see in the SWIG
>> >> >>> >> manual
>> >> >>> >> for Java that they have an error shown similar to ours, with the
>> >> >>> >> documentation:
>> >> >>> >>
>> >> >>> >> "This error usually indicates that you forgot to include some
>> >> >>> >> object
>> >> >>> >> files or libraries in the linking of the native library file.
>> >> >>> >> Make
>> >> >>> >> sure you compile both the SWIG wrapper file and the code you are
>> >> >>> >> wrapping into the native library file. If you forget to compile
>> >> >>> >> and
>> >> >>> >> link in the SWIG wrapper file into your native library file, you
>> >> >>> >> will
>> >> >>> >> get a message similar to the following:"
>> >> >>> >>
>> >> >>> >> However, I don't think this is quite the issue as the same Cmake
>> >> >>> >> script works on OSX and Linux. I did see an email about possibly
>> >> >>> >> needing to compile the library with both the wrapper and the
>> >> >>> >> wrapped
>> >> >>> >> lib, but that seemed odd as we had things working with CS5.
>> >> >>> >>
>> >> >>> >> I'll continue to explore here.
>> >> >>> >>
>> >> >>> >> On Tue, Aug 27, 2013 at 5:19 PM, Steven Yi 
>> >> >>> >> wrote:
>> >> >>> >> > Thanks for the info, at least we can eliminate that
>> >> >>> >> > possibility
>> >> >>> >> > then.
>> >> >>> >> > I'll hopefully get further along tomorrow and will report
>> >> >>> >> > anything I
>> >> >>> >> > find.
>> >> >>> >> >
>> >> >>> >> > On Tue, Aug 27, 2013 at 5:13 PM, Michael Gogins
>> >> >>> >> >  wrote:
>> >> >>> >> >> The csnd name should be versioned but I don't have 5 on my
>> >> >>> >> >> machine
>> >> >>> >> >> at
>> >> >>> >> >> all.
>> >> >>> >> >>
>> >> >>> >> >> On Aug 27, 2013 5:03 PM, "Steven Yi" 
>> >> >>> >> >> wrote:
>> >> >>> >> >>>
>> >> >>> >> >>> The compile paths here are a mess so I'm going to need to
>> >> >>> >> >>> sort
>> >> >>> >> >>> that
>> >> >>> >> >>> out here locally.  However, I'm wondering if at runtime if
>> >> >>> >> >>> the
>> >> >>> >> >>> wrong
>> >> >>> >> >>> dll is getting loaded due to csnd.dll being the same name in
>> >> >>> >> >>> CS5
>> >> >>> >> >>> and
>> >> >>> >> >>> CS6.  Perhaps we should rename that to see if that's the
>> >> >>> >> >>> source
>> >> >>> >> >>> of
>> >> >>> >> >>> issues for Java (possible CsoundPerformanceThread too?). I'm
>> >> >>> >> >>> imagining
>> >> >>> >> >>> if Csound runs multiple times alright, but
>> >> >>> >> >>> CsoundPerformanceThread
>> >> >>> >> >>> does not, then it could be possible that the csound6 library
>> >> >>> >> >>> is
>> >> >>> >> >>> loading fine, but the cs5 version of csnd is loading and
>> >> >>> >> >>> causing
>> >> >>> >> >>> issues.
>> >> >>> >> >>>
>> >> >>> >> >>> On Tue, Aug 27, 2013 at 4:52 PM, Michael Gogins
>> >> >>> >> >>>  wrote:
>> >> >>> >> >>> > In my build I'm very careful about the actual library
>> >> >>> >> >>> > paths.
>> >> >>> >> >>> > I
>> >> >>> >> >>> > look
>> >> >>> >> >>> > at
>> >> >>> >> >>> > the
>> >> >>> >> >>> > CMakeCache.txt, I look at the compiler and linker
>> >> >>> >> >>> > commands,
>> >> >>> >> >>> > and I
>> >> >>> >> >>> > look
>> >> >>> >> >>> > at
>> >> >>> >> >>> > what libraries actually get loaded during a run (there are
>> >> >>> >> >>> > various
>> >> >>> >> >>> > tools
>> >> >>> >> >>> > for
>> >> >>> >> >>> > doing this on Windows). I am careful because yes, it has
>> >> >>> >> >>> > been
>> >> >>> >> >>> > a
>> >> >>> >> >>> > problem
>> >> >>> >> >>> > for
>> >> >>> >> >>> > me, as you saw from my earlier emails.
>> >> >>> >> >>> >
>> >> >>> >> >>> > But we should talk about how to make this better on
>> >> >>> >> >>> > Windows.
>> >> >>> >> >>> >
>> >> >>> >> >>> > Best,
>> >> >>> >> >>> > Mike
>> >> >>> >> >>> >
>> >> >>> >> >>> >
>> >> >>> >> >>> > ===========================
>> >> >>> >> >>> > Michael Gogins
>> >> >>> >> >>> > Irreducible Productions
>> >> >>> >> >>> > http://michaelgogins.tumblr.com
>> >> >>> >> >>> > Michael dot Gogins at gmail dot com
>> >> >>> >> >>> >
>> >> >>> >> >>> >
>> >> >>> >> >>> > On Tue, Aug 27, 2013 at 4:15 PM, Steven Yi
>> >> >>> >> >>> > 
>> >> >>> >> >>> > wrote:
>> >> >>> >> >>> >>
>> >> >>> >> >>> >> Hi Michael and All,
>> >> >>> >> >>> >>
>> >> >>> >> >>> >> I just spent a bit of time looking into this and found
>> >> >>> >> >>> >> some
>> >> >>> >> >>> >> very
>> >> >>> >> >>> >> heinous stuff going on in windows.  It looks to me that
>> >> >>> >> >>> >> CMake
>> >> >>> >> >>> >> actually
>> >> >>> >> >>> >> found all types of libraries from the PATH to use.  That
>> >> >>> >> >>> >> meant
>> >> >>> >> >>> >> some
>> >> >>> >> >>> >> libraries from C:\Program Files (x86)\Csound\bin were
>> >> >>> >> >>> >> found,
>> >> >>> >> >>> >> others
>> >> >>> >> >>> >> from C:\Program Files (x86)\Csound6\bin, and others from
>> >> >>> >> >>> >> my
>> >> >>> >> >>> >> MSYS
>> >> >>> >> >>> >> /usr/local/lib and custom set paths.  I get the
>> >> >>> >> >>> >> impression
>> >> >>> >> >>> >> this
>> >> >>> >> >>> >> could
>> >> >>> >> >>> >> be a source of some of the issues we're seeing both with
>> >> >>> >> >>> >> the
>> >> >>> >> >>> >> Java
>> >> >>> >> >>> >> library and other windows oddities.
>> >> >>> >> >>> >>
>> >> >>> >> >>> >> I mostly noticed this in looking at my CmakeCache.txt.
>> >> >>> >> >>> >> I'm
>> >> >>> >> >>> >> wondering
>> >> >>> >> >>> >> if the Java lib is linking to Csound 5's csnd.dll instead
>> >> >>> >> >>> >> of
>> >> >>> >> >>> >> Csound6's.  If that's the case, then perhaps we can
>> >> >>> >> >>> >> change
>> >> >>> >> >>> >> csnd
>> >> >>> >> >>> >> to
>> >> >>> >> >>> >> be
>> >> >>> >> >>> >> csnd6 instead.
>> >> >>> >> >>> >>
>> >> >>> >> >>> >> I've got to move on for the day, but will come back to
>> >> >>> >> >>> >> this
>> >> >>> >> >>> >> tomorrow.
>> >> >>> >> >>> >>
>> >> >>> >> >>> >>
>> >> >>> >> >>> >>
>> >> >>> >> >>> >> On Tue, Aug 20, 2013 at 11:14 PM, Michael Gogins
>> >> >>> >> >>> >>  wrote:
>> >> >>> >> >>> >> > People do seem to be switching to mingw-builds. I am
>> >> >>> >> >>> >> > using
>> >> >>> >> >>> >> > 4.8.1,
>> >> >>> >> >>> >> > dwarf-2,
>> >> >>> >> >>> >> > posix threads, 32 bits. If you use the same version we
>> >> >>> >> >>> >> > have a
>> >> >>> >> >>> >> > much
>> >> >>> >> >>> >> > better
>> >> >>> >> >>> >> > chance of understanding what is going on.
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> > I think there is something pretty subtle going on both
>> >> >>> >> >>> >> > with
>> >> >>> >> >>> >> > Java
>> >> >>> >> >>> >> > and
>> >> >>> >> >>> >> > with
>> >> >>> >> >>> >> > the CsoundPerformanceThread.
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> > I have proved that the existence of incompatible MinGW
>> >> >>> >> >>> >> > runtime
>> >> >>> >> >>> >> > libraries
>> >> >>> >> >>> >> > can
>> >> >>> >> >>> >> > be a problem. I have also proved that that is not the
>> >> >>> >> >>> >> > ONLY
>> >> >>> >> >>> >> > problem,
>> >> >>> >> >>> >> > at
>> >> >>> >> >>> >> > least, on my computer. I succeeded finally in removing
>> >> >>> >> >>> >> > incompatible
>> >> >>> >> >>> >> > MinGW
>> >> >>> >> >>> >> > runtime libraries from my SysWOW64 directory (!) so I
>> >> >>> >> >>> >> > now
>> >> >>> >> >>> >> > can
>> >> >>> >> >>> >> > run
>> >> >>> >> >>> >> > CsoundAC
>> >> >>> >> >>> >> > code, but I am still having problems with the
>> >> >>> >> >>> >> > performance
>> >> >>> >> >>> >> > thread
>> >> >>> >> >>> >> > and
>> >> >>> >> >>> >> > with
>> >> >>> >> >>> >> > Java. Different computers behave differently, e.g. I
>> >> >>> >> >>> >> > can
>> >> >>> >> >>> >> > run
>> >> >>> >> >>> >> > CsoundQt
>> >> >>> >> >>> >> > at
>> >> >>> >> >>> >> > work but not at home.
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> > In my programming life, these errors can arise from
>> >> >>> >> >>> >> > several
>> >> >>> >> >>> >> > errors
>> >> >>> >> >>> >> > but
>> >> >>> >> >>> >> > one
>> >> >>> >> >>> >> > common source is uninitialized members of structs and
>> >> >>> >> >>> >> > classes
>> >> >>> >> >>> >> > that
>> >> >>> >> >>> >> > contain
>> >> >>> >> >>> >> > zeroes on some machines and junk on other machines. Or
>> >> >>> >> >>> >> > writes
>> >> >>> >> >>> >> > past
>> >> >>> >> >>> >> > buffer
>> >> >>> >> >>> >> > ends that poke holes in junk on some machines and in
>> >> >>> >> >>> >> > vital
>> >> >>> >> >>> >> > organs
>> >> >>> >> >>> >> > on
>> >> >>> >> >>> >> > other
>> >> >>> >> >>> >> > machines. Having multiple threads makes this harder...
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> > Regards,
>> >> >>> >> >>> >> > Mike
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> > I wish I had something like valgrind on Windows but I
>> >> >>> >> >>> >> > can't
>> >> >>> >> >>> >> > afford
>> >> >>> >> >>> >> > the
>> >> >>> >> >>> >> > equivalent.
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> > ===========================
>> >> >>> >> >>> >> > Michael Gogins
>> >> >>> >> >>> >> > Irreducible Productions
>> >> >>> >> >>> >> > http://michaelgogins.tumblr.com
>> >> >>> >> >>> >> > Michael dot Gogins at gmail dot com
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> > On Tue, Aug 20, 2013 at 10:56 PM, Steven Yi
>> >> >>> >> >>> >> > 
>> >> >>> >> >>> >> > wrote:
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >> Hi Michael,
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >> I was trying to setup to get a build working on
>> >> >>> >> >>> >> >> Windows
>> >> >>> >> >>> >> >> to
>> >> >>> >> >>> >> >> see
>> >> >>> >> >>> >> >> if I
>> >> >>> >> >>> >> >> can further diagnose what's going on.  I currently
>> >> >>> >> >>> >> >> have
>> >> >>> >> >>> >> >> the
>> >> >>> >> >>> >> >> stock
>> >> >>> >> >>> >> >> mingw/msys installed from sf.net/projects/mingw. I
>> >> >>> >> >>> >> >> noticed in
>> >> >>> >> >>> >> >> your
>> >> >>> >> >>> >> >> How
>> >> >>> >> >>> >> >> to Build doc that you are using mingwbuilds version.
>> >> >>> >> >>> >> >> Could
>> >> >>> >> >>> >> >> you
>> >> >>> >> >>> >> >> advise: should I uninstalled mingw/msys and use just
>> >> >>> >> >>> >> >> mingwbuilds?
>> >> >>> >> >>> >> >> (I.e. better to start clean).
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >> Thanks!
>> >> >>> >> >>> >> >> steven
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >> On Thu, Aug 15, 2013 at 8:44 AM, Michael Gogins
>> >> >>> >> >>> >> >>  wrote:
>> >> >>> >> >>> >> >> > Sorry, fumble fingers.
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> > The problem I see is that the csnd6 low level JNI
>> >> >>> >> >>> >> >> > Java
>> >> >>> >> >>> >> >> > class
>> >> >>> >> >>> >> >> > needs
>> >> >>> >> >>> >> >> > to
>> >> >>> >> >>> >> >> > call
>> >> >>> >> >>> >> >> > SWIG's initializer in _csound.dll. The initializer
>> >> >>> >> >>> >> >> > is
>> >> >>> >> >>> >> >> > the
>> >> >>> >> >>> >> >> > thing
>> >> >>> >> >>> >> >> > not
>> >> >>> >> >>> >> >> > found.
>> >> >>> >> >>> >> >> > Without it we don't have Java Csound.
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> > Still no solution, though. The initializer is in
>> >> >>> >> >>> >> >> > _jcsound.dll.
>> >> >>> >> >>> >> >> > Java
>> >> >>> >> >>> >> >> > doesn't
>> >> >>> >> >>> >> >> > find it. Java finds the CsoundEditor.jar (a better
>> >> >>> >> >>> >> >> > test
>> >> >>> >> >>> >> >> > than
>> >> >>> >> >>> >> >> > CSDPlayer.jar
>> >> >>> >> >>> >> >> > because it loads csnd6 right away) and loads and
>> >> >>> >> >>> >> >> > begins
>> >> >>> >> >>> >> >> > to
>> >> >>> >> >>> >> >> > run
>> >> >>> >> >>> >> >> > the
>> >> >>> >> >>> >> >> > Java
>> >> >>> >> >>> >> >> > code. The first thing to run is the static block
>> >> >>> >> >>> >> >> > that
>> >> >>> >> >>> >> >> > loads
>> >> >>> >> >>> >> >> > _jcsound.dll
>> >> >>> >> >>> >> >> > and
>> >> >>> >> >>> >> >> > calls the initializer. There are 4 steps here:
>> >> >>> >> >>> >> >> > locate
>> >> >>> >> >>> >> >> > the
>> >> >>> >> >>> >> >> > DLL,
>> >> >>> >> >>> >> >> > load
>> >> >>> >> >>> >> >> > the
>> >> >>> >> >>> >> >> > DLL,
>> >> >>> >> >>> >> >> > find the initializer function, call the initializer.
>> >> >>> >> >>> >> >> > We
>> >> >>> >> >>> >> >> > know
>> >> >>> >> >>> >> >> > that
>> >> >>> >> >>> >> >> > we
>> >> >>> >> >>> >> >> > don't
>> >> >>> >> >>> >> >> > find the initializer. I think it fails at the load
>> >> >>> >> >>> >> >> > stage
>> >> >>> >> >>> >> >> > because I
>> >> >>> >> >>> >> >> > have
>> >> >>> >> >>> >> >> > DLL
>> >> >>> >> >>> >> >> > hell on my notebook right now and I seem to recall
>> >> >>> >> >>> >> >> > catching
>> >> >>> >> >>> >> >> > the
>> >> >>> >> >>> >> >> > DLL
>> >> >>> >> >>> >> >> > load.
>> >> >>> >> >>> >> >> > I'll verify that later. In other words I think it
>> >> >>> >> >>> >> >> > starts to
>> >> >>> >> >>> >> >> > load
>> >> >>> >> >>> >> >> > _jcsound.dll and then there is a problem when
>> >> >>> >> >>> >> >> > _jcsound.dll
>> >> >>> >> >>> >> >> > is
>> >> >>> >> >>> >> >> > loading
>> >> >>> >> >>> >> >> > other
>> >> >>> >> >>> >> >> > things or initializating its own things.
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> > ===========================
>> >> >>> >> >>> >> >> > Michael Gogins
>> >> >>> >> >>> >> >> > Irreducible Productions
>> >> >>> >> >>> >> >> > http://michaelgogins.tumblr.com
>> >> >>> >> >>> >> >> > Michael dot Gogins at gmail dot com
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> > On Thu, Aug 15, 2013 at 8:32 AM, Michael Gogins
>> >> >>> >> >>> >> >> > 
>> >> >>> >> >>> >> >> > wrote:
>> >> >>> >> >>> >> >> >>
>> >> >>> >> >>> >> >> >> The problem I see is that the Csound JNI
>> >> >>> >> >>> >> >> >>
>> >> >>> >> >>> >> >> >>
>> >> >>> >> >>> >> >> >> ===========================
>> >> >>> >> >>> >> >> >> Michael Gogins
>> >> >>> >> >>> >> >> >> Irreducible Productions
>> >> >>> >> >>> >> >> >> http://michaelgogins.tumblr.com
>> >> >>> >> >>> >> >> >> Michael dot Gogins at gmail dot com
>> >> >>> >> >>> >> >> >>
>> >> >>> >> >>> >> >> >>
>> >> >>> >> >>> >> >> >> On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi
>> >> >>> >> >>> >> >> >> 
>> >> >>> >> >>> >> >> >> wrote:
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>> Hi Michael,
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>> I'm wondering if this is the same issue. I need to
>> >> >>> >> >>> >> >> >>> re-test,
>> >> >>> >> >>> >> >> >>> but
>> >> >>> >> >>> >> >> >>> when I
>> >> >>> >> >>> >> >> >>> was trying things out I thought I didn't quite get
>> >> >>> >> >>> >> >> >>> a
>> >> >>> >> >>> >> >> >>> crash,
>> >> >>> >> >>> >> >> >>> just
>> >> >>> >> >>> >> >> >>> an
>> >> >>> >> >>> >> >> >>> UnsatisfiedLinkError exception for the function I
>> >> >>> >> >>> >> >> >>> was
>> >> >>> >> >>> >> >> >>> trying
>> >> >>> >> >>> >> >> >>> to
>> >> >>> >> >>> >> >> >>> call,
>> >> >>> >> >>> >> >> >>> which I could catch and do something about.  The
>> >> >>> >> >>> >> >> >>> test
>> >> >>> >> >>> >> >> >>> java
>> >> >>> >> >>> >> >> >>> class
>> >> >>> >> >>> >> >> >>> I
>> >> >>> >> >>> >> >> >>> put
>> >> >>> >> >>> >> >> >>> into the bug may not be doing any catching, but
>> >> >>> >> >>> >> >> >>> then
>> >> >>> >> >>> >> >> >>> Java
>> >> >>> >> >>> >> >> >>> should
>> >> >>> >> >>> >> >> >>> have
>> >> >>> >> >>> >> >> >>> just exited rather than crash.
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>> steven
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>> On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
>> >> >>> >> >>> >> >> >>>  wrote:
>> >> >>> >> >>> >> >> >>> > Gdb tells me Java crash is caused by
>> >> >>> >> >>> >> >> >>> > linstd++-6.dll
>> >> >>> >> >>> >> >> >>> > of
>> >> >>> >> >>> >> >> >>> > wrong
>> >> >>> >> >>> >> >> >>> > model
>> >> >>> >> >>> >> >> >>> > found in
>> >> >>> >> >>> >> >> >>> > SysWOW64, where it does not belong and was put
>> >> >>> >> >>> >> >> >>> > by
>> >> >>> >> >>> >> >> >>> > some
>> >> >>> >> >>> >> >> >>> > incompetent
>> >> >>> >> >>> >> >> >>> > installer. I'm afraid to remove it because I did
>> >> >>> >> >>> >> >> >>> > once
>> >> >>> >> >>> >> >> >>> > before
>> >> >>> >> >>> >> >> >>> > and
>> >> >>> >> >>> >> >> >>> > lost
>> >> >>> >> >>> >> >> >>> > my
>> >> >>> >> >>> >> >> >>> > user profile.
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> > ------------------------------------------------------------------------------
>> >> >>> >> >>> >> >> >>> > Get 100% visibility into Java/.NET code with
>> >> >>> >> >>> >> >> >>> > AppDynamics
>> >> >>> >> >>> >> >> >>> > Lite!
>> >> >>> >> >>> >> >> >>> > It's a free troubleshooting tool designed for
>> >> >>> >> >>> >> >> >>> > production.
>> >> >>> >> >>> >> >> >>> > Get down to code-level detail for bottlenecks,
>> >> >>> >> >>> >> >> >>> > with
>> >> >>> >> >>> >> >> >>> > <2%
>> >> >>> >> >>> >> >> >>> > overhead.
>> >> >>> >> >>> >> >> >>> > Download for free and get started
>> >> >>> >> >>> >> >> >>> > troubleshooting
>> >> >>> >> >>> >> >> >>> > in
>> >> >>> >> >>> >> >> >>> > minutes.
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >> >>> >> >>> >> >> >>> > _______________________________________________
>> >> >>> >> >>> >> >> >>> > Csound-devel mailing list
>> >> >>> >> >>> >> >> >>> > Csound-devel@lists.sourceforge.net
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>> ------------------------------------------------------------------------------
>> >> >>> >> >>> >> >> >>> Get 100% visibility into Java/.NET code with
>> >> >>> >> >>> >> >> >>> AppDynamics
>> >> >>> >> >>> >> >> >>> Lite!
>> >> >>> >> >>> >> >> >>> It's a free troubleshooting tool designed for
>> >> >>> >> >>> >> >> >>> production.
>> >> >>> >> >>> >> >> >>> Get down to code-level detail for bottlenecks,
>> >> >>> >> >>> >> >> >>> with
>> >> >>> >> >>> >> >> >>> <2%
>> >> >>> >> >>> >> >> >>> overhead.
>> >> >>> >> >>> >> >> >>> Download for free and get started troubleshooting
>> >> >>> >> >>> >> >> >>> in
>> >> >>> >> >>> >> >> >>> minutes.
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >> >>> >> >>> >> >> >>> _______________________________________________
>> >> >>> >> >>> >> >> >>> Csound-devel mailing list
>> >> >>> >> >>> >> >> >>> Csound-devel@lists.sourceforge.net
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >> >>> >> >> >>
>> >> >>> >> >>> >> >> >>
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> > ------------------------------------------------------------------------------
>> >> >>> >> >>> >> >> > Get 100% visibility into Java/.NET code with
>> >> >>> >> >>> >> >> > AppDynamics
>> >> >>> >> >>> >> >> > Lite!
>> >> >>> >> >>> >> >> > It's a free troubleshooting tool designed for
>> >> >>> >> >>> >> >> > production.
>> >> >>> >> >>> >> >> > Get down to code-level detail for bottlenecks, with
>> >> >>> >> >>> >> >> > <2%
>> >> >>> >> >>> >> >> > overhead.
>> >> >>> >> >>> >> >> > Download for free and get started troubleshooting in
>> >> >>> >> >>> >> >> > minutes.
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >> >>> >> >>> >> >> > _______________________________________________
>> >> >>> >> >>> >> >> > Csound-devel mailing list
>> >> >>> >> >>> >> >> > Csound-devel@lists.sourceforge.net
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >> ------------------------------------------------------------------------------
>> >> >>> >> >>> >> >> Introducing Performance Central, a new site from
>> >> >>> >> >>> >> >> SourceForge
>> >> >>> >> >>> >> >> and
>> >> >>> >> >>> >> >> AppDynamics. Performance Central is your source for
>> >> >>> >> >>> >> >> news,
>> >> >>> >> >>> >> >> insights,
>> >> >>> >> >>> >> >> analysis and resources for efficient Application
>> >> >>> >> >>> >> >> Performance
>> >> >>> >> >>> >> >> Management.
>> >> >>> >> >>> >> >> Visit us today!
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >> _______________________________________________
>> >> >>> >> >>> >> >> Csound-devel mailing list
>> >> >>> >> >>> >> >> Csound-devel@lists.sourceforge.net
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> > ------------------------------------------------------------------------------
>> >> >>> >> >>> >> > Introducing Performance Central, a new site from
>> >> >>> >> >>> >> > SourceForge
>> >> >>> >> >>> >> > and
>> >> >>> >> >>> >> > AppDynamics. Performance Central is your source for
>> >> >>> >> >>> >> > news,
>> >> >>> >> >>> >> > insights,
>> >> >>> >> >>> >> > analysis and resources for efficient Application
>> >> >>> >> >>> >> > Performance
>> >> >>> >> >>> >> > Management.
>> >> >>> >> >>> >> > Visit us today!
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> >> >>> >> >>> >> > _______________________________________________
>> >> >>> >> >>> >> > Csound-devel mailing list
>> >> >>> >> >>> >> > Csound-devel@lists.sourceforge.net
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >>
>> >> >>> >> >>> >>
>> >> >>> >> >>> >>
>> >> >>> >> >>> >>
>> >> >>> >> >>> >>
>> >> >>> >> >>> >>
>> >> >>> >> >>> >>
>> >> >>> >> >>> >> ------------------------------------------------------------------------------
>> >> >>> >> >>> >> Learn the latest--Visual Studio 2012, SharePoint 2013,
>> >> >>> >> >>> >> SQL
>> >> >>> >> >>> >> 2012,
>> >> >>> >> >>> >> more!
>> >> >>> >> >>> >> Discover the easy way to master current and previous
>> >> >>> >> >>> >> Microsoft
>> >> >>> >> >>> >> technologies
>> >> >>> >> >>> >> and advance your career. Get an incredible 1,500+ hours
>> >> >>> >> >>> >> of
>> >> >>> >> >>> >> step-by-step
>> >> >>> >> >>> >> tutorial videos with LearnDevNow. Subscribe today and
>> >> >>> >> >>> >> save!
>> >> >>> >> >>> >>
>> >> >>> >> >>> >>
>> >> >>> >> >>> >>
>> >> >>> >> >>> >>
>> >> >>> >> >>> >>
>> >> >>> >> >>> >>
>> >> >>> >> >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >>> >> >>> >>
>> >> >>> >> >>> >> _______________________________________________
>> >> >>> >> >>> >> Csound-devel mailing list
>> >> >>> >> >>> >> Csound-devel@lists.sourceforge.net
>> >> >>> >> >>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >> >>> >
>> >> >>> >> >>> >
>> >> >>> >> >>> >
>> >> >>> >> >>> >
>> >> >>> >> >>> >
>> >> >>> >> >>> >
>> >> >>> >> >>> >
>> >> >>> >> >>> >
>> >> >>> >> >>> > ------------------------------------------------------------------------------
>> >> >>> >> >>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>> >> >>> >> >>> > 2012,
>> >> >>> >> >>> > more!
>> >> >>> >> >>> > Discover the easy way to master current and previous
>> >> >>> >> >>> > Microsoft
>> >> >>> >> >>> > technologies
>> >> >>> >> >>> > and advance your career. Get an incredible 1,500+ hours of
>> >> >>> >> >>> > step-by-step
>> >> >>> >> >>> > tutorial videos with LearnDevNow. Subscribe today and
>> >> >>> >> >>> > save!
>> >> >>> >> >>> >
>> >> >>> >> >>> >
>> >> >>> >> >>> >
>> >> >>> >> >>> >
>> >> >>> >> >>> >
>> >> >>> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >>> >> >>> > _______________________________________________
>> >> >>> >> >>> > Csound-devel mailing list
>> >> >>> >> >>> > Csound-devel@lists.sourceforge.net
>> >> >>> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >> >>> >
>> >> >>> >> >>>
>> >> >>> >> >>>
>> >> >>> >> >>>
>> >> >>> >> >>>
>> >> >>> >> >>>
>> >> >>> >> >>>
>> >> >>> >> >>> ------------------------------------------------------------------------------
>> >> >>> >> >>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>> >> >>> >> >>> 2012,
>> >> >>> >> >>> more!
>> >> >>> >> >>> Discover the easy way to master current and previous
>> >> >>> >> >>> Microsoft
>> >> >>> >> >>> technologies
>> >> >>> >> >>> and advance your career. Get an incredible 1,500+ hours of
>> >> >>> >> >>> step-by-step
>> >> >>> >> >>> tutorial videos with LearnDevNow. Subscribe today and save!
>> >> >>> >> >>>
>> >> >>> >> >>>
>> >> >>> >> >>>
>> >> >>> >> >>>
>> >> >>> >> >>>
>> >> >>> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >>> >> >>> _______________________________________________
>> >> >>> >> >>> Csound-devel mailing list
>> >> >>> >> >>> Csound-devel@lists.sourceforge.net
>> >> >>> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >> >>
>> >> >>> >> >>
>> >> >>> >> >>
>> >> >>> >> >>
>> >> >>> >> >>
>> >> >>> >> >>
>> >> >>> >> >> ------------------------------------------------------------------------------
>> >> >>> >> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>> >> >>> >> >> 2012,
>> >> >>> >> >> more!
>> >> >>> >> >> Discover the easy way to master current and previous
>> >> >>> >> >> Microsoft
>> >> >>> >> >> technologies
>> >> >>> >> >> and advance your career. Get an incredible 1,500+ hours of
>> >> >>> >> >> step-by-step
>> >> >>> >> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >> >>> >> >>
>> >> >>> >> >>
>> >> >>> >> >>
>> >> >>> >> >>
>> >> >>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >>> >> >> _______________________________________________
>> >> >>> >> >> Csound-devel mailing list
>> >> >>> >> >> Csound-devel@lists.sourceforge.net
>> >> >>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >> >>
>> >> >>> >>
>> >> >>> >>
>> >> >>> >>
>> >> >>> >>
>> >> >>> >>
>> >> >>> >> ------------------------------------------------------------------------------
>> >> >>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >> >>> >> more!
>> >> >>> >> Discover the easy way to master current and previous Microsoft
>> >> >>> >> technologies
>> >> >>> >> and advance your career. Get an incredible 1,500+ hours of
>> >> >>> >> step-by-step
>> >> >>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >> >>> >>
>> >> >>> >>
>> >> >>> >>
>> >> >>> >>
>> >> >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >>> >> _______________________________________________
>> >> >>> >> Csound-devel mailing list
>> >> >>> >> Csound-devel@lists.sourceforge.net
>> >> >>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> > ------------------------------------------------------------------------------
>> >> >>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >> >>> > more!
>> >> >>> > Discover the easy way to master current and previous Microsoft
>> >> >>> > technologies
>> >> >>> > and advance your career. Get an incredible 1,500+ hours of
>> >> >>> > step-by-step
>> >> >>> > tutorial videos with LearnDevNow. Subscribe today and save!
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >>> > _______________________________________________
>> >> >>> > Csound-devel mailing list
>> >> >>> > Csound-devel@lists.sourceforge.net
>> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>> ------------------------------------------------------------------------------
>> >> >>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >> >>> more!
>> >> >>> Discover the easy way to master current and previous Microsoft
>> >> >>> technologies
>> >> >>> and advance your career. Get an incredible 1,500+ hours of
>> >> >>> step-by-step
>> >> >>> tutorial videos with LearnDevNow. Subscribe today and save!
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >>> _______________________________________________
>> >> >>> Csound-devel mailing list
>> >> >>> Csound-devel@lists.sourceforge.net
>> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >> ------------------------------------------------------------------------------
>> >> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >> >> more!
>> >> >> Discover the easy way to master current and previous Microsoft
>> >> >> technologies
>> >> >> and advance your career. Get an incredible 1,500+ hours of
>> >> >> step-by-step
>> >> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >> >>
>> >> >>
>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >> _______________________________________________
>> >> >> Csound-devel mailing list
>> >> >> Csound-devel@lists.sourceforge.net
>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> >> Discover the easy way to master current and previous Microsoft
>> >> technologies
>> >> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>
>> >>
>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> > Discover the easy way to master current and previous Microsoft
>> > technologies
>> > and advance your career. Get an incredible 1,500+ hours of step-by-step
>> > tutorial videos with LearnDevNow. Subscribe today and save!
>> >
>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> Discover the easy way to master current and previous Microsoft
>> technologies
>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> tutorial videos with LearnDevNow. Subscribe today and save!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-08-28 20:51
FromMichael Gogins
SubjectRe: [Cs-dev] Java crash on windows
AttachmentsNone  None  
Yes, I will pull, rebuild, and test all tonight.

I'm not as familiar (yet) with CMake as I was with SWIG, so don't necessarily know how to set things up properly. I tend to hack till things work for me, and let it go at that. I'm much more disciplined when it comes to the actual code.



Thanks,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Wed, Aug 28, 2013 at 3:47 PM, Steven Yi <stevenyi@gmail.com> wrote:
Hi Michael,

Success!  It took a few tries, as I tried initially to just set flags
in CMAKE_CXX_FLAGS and CMAKE_C_FLAGS but that did not work.  I then
tried setting CMAKE_SHARED_LINKER_FLAGS and that also did not work.
Ultimately, this did it:

    set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--add-stdcall-alias
-Wl,--enable-stdcall-fixup")

I don't know if the stdcall-fixup is necessary.  The swig
documentation for Java had some example and they only used
stdcall-alias.

I've modified the root CmakeLists.txt to have:

if(WIN32 AND NOT MSVC)
    if(EXISTS "C:/MinGW/include")
        include_directories(C:/MinGW/include)
    else()
        MESSAGE(STATUS "MinGW include dir not found")
    endif()

    set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS}
-Wl,--add-stdcall-alias")
endif()

I'm doing one test build now to see if that's all that's necessary to
fix the build, or if one of the other places I added it is required.
I think that because it's applied to modules and not shared libs,
it'll get applied to all of the swig stuff as they use module, but
might not get applied to other places.  We could add an additional one
for CMAKE_SHARED_LINKER_FLAGS if desired.

I'll make a commit once this build finishes and I've retested.  I've
only tested as far as that API6Test java class. Could you perhaps
rebuild/retest later when you have a chance?

Thanks!
steven




On Wed, Aug 28, 2013 at 3:23 PM, Michael Gogins
<michael.gogins@gmail.com> wrote:
> These are only for Windows.
>
> The only harm from defining these options globally is that more symbols are
> exported by the shared libraries, so the dynamic loads might be a tad
> slower. Once loaded I don't think calls would be noticeably slower. So I
> would go ahead and make these global on Windows. Other things that I always
> define globally on Windows, and should probably be the defaults on Windows:
>
> -g -O2 -std=gnu++11 -fopenmp -march=nocona -DNDEBUG -I/usr/local/include
> -L/usr/local/lib -mstackrealign -Wl,--add-stdcall-alias
> -Wl,--enable-stdcall-fixup
>
> I don't know why I didn't think about the stdcall possibility this time --
> when it was I who originally added these options for this sort of reason in
> the first place!
>
> Best,
> Mike
>
>
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Wed, Aug 28, 2013 at 3:09 PM, Steven Yi <stevenyi@gmail.com> wrote:
>>
>> I'm hopeful this will be it. :)  I tried adding it to my Custom.cmake
>> for now and am doing a compile.  I grepped through CS5's SConstruct
>> and surely enough there's numerous places where
>> -Wl,--add-stdcall-alias is used, and a few places where
>> -Wl,--enable-stdcall-fixup is used.
>>
>> I should be able to test in about 10 minutes; assuming all is good,
>> I'm wondering should this just be enabled as a global flag if on
>> Windows, or only for certain libs?
>>
>> As for finding a fix, glad that none of my other guesses were correct
>> as I think they'd be much more difficult to solve. :P
>>
>> On Wed, Aug 28, 2013 at 2:40 PM, Michael Gogins
>> <michael.gogins@gmail.com> wrote:
>> > If that's the case, then changing the linker flags should do the trick.
>> > @8
>> > marks the function as stdcall calling convention with 8 bytes to be
>> > popped
>> > off the stack after returning from the call.
>> >
>> > To CFLAGS and CXXFLAGS for the DLL, add -"Wl,--add-stdcall-alias
>> > -Wl,--enable-stdcall-fixup". I think only the first is required but I
>> > used
>> > to add both to everything just to cover my bases.
>> >
>> > --add-stdcall-alias                Export symbols with and without @nn
>> > --disable-stdcall-fixup            Don't link _sym to _sym@nn DON'T USE!
>> > --enable-stdcall-fixup             Link _sym to _sym@nn without warnings
>> >
>> > Best,
>> > Mike
>> >
>> >
>> > ===========================
>> > Michael Gogins
>> > Irreducible Productions
>> > http://michaelgogins.tumblr.com
>> > Michael dot Gogins at gmail dot com
>> >
>> >
>> > On Wed, Aug 28, 2013 at 1:25 PM, Steven Yi <stevenyi@gmail.com> wrote:
>> >>
>> >> I found something that looks useful.  In _jcsound.dll from CS5,
>> >> DependencyWalker shows symbols like:
>> >>
>> >> Java_csnd_csndJNI_swig_1module_1init
>> >> Java_csnd_csndJNI_swig_1module_1init@8
>> >>
>> >> while CS6 only has:
>> >>
>> >> Java_csnd6_csnd6JNI_swig_1module_1init@8
>> >>
>> >> I get the impression that the PUBLIC attribute isn't working
>> >> correctly, or something along those lines.  I've got to take a break
>> >> but will continue on with this after lunch.
>> >>
>> >> On Wed, Aug 28, 2013 at 12:22 PM, Steven Yi <stevenyi@gmail.com> wrote:
>> >> > That didn't seem to affect anything unfortunately. Continuing on....
>> >> >
>> >> > On Wed, Aug 28, 2013 at 11:59 AM, Michael Gogins
>> >> > <michael.gogins@gmail.com> wrote:
>> >> >> Well, that's certainly a mistake.
>> >> >>
>> >> >> On Aug 28, 2013 11:59 AM, "Steven Yi" <stevenyi@gmail.com> wrote:
>> >> >>>
>> >> >>> That sounds reasonable, but the Csound5 API still loads for me fine
>> >> >>> with Blue, using the same VM.  I think that'd rule that one out.  I
>> >> >>> saw that csound.h has "%module csnd" isntead of "%module csnd6".
>> >> >>> I'm
>> >> >>> not sure that's it, as that seems like it'd affect other platforms,
>> >> >>> but I'm giving it a try now just in case.  (compile should be done
>> >> >>> in
>> >> >>> 15-20 mins... ugh...)
>> >> >>>
>> >> >>> On Wed, Aug 28, 2013 at 11:35 AM, Michael Gogins
>> >> >>> <michael.gogins@gmail.com> wrote:
>> >> >>> > If I were you, I would try compiling the library with both the
>> >> >>> > wrapper
>> >> >>> > and
>> >> >>> > the wrapped lib, just to rule that out.
>> >> >>> >
>> >> >>> > There may well have been some change in the way the Java VM and
>> >> >>> > library
>> >> >>> > link. You could try Oracle issues on Java regarding that.
>> >> >>> >
>> >> >>> > Best,
>> >> >>> > Mike
>> >> >>> >
>> >> >>> >
>> >> >>> > ===========================
>> >> >>> > Michael Gogins
>> >> >>> > Irreducible Productions
>> >> >>> > http://michaelgogins.tumblr.com
>> >> >>> > Michael dot Gogins at gmail dot com
>> >> >>> >
>> >> >>> >
>> >> >>> > On Wed, Aug 28, 2013 at 11:18 AM, Steven Yi <stevenyi@gmail.com>
>> >> >>> > wrote:
>> >> >>> >>
>> >> >>> >> Just an update, I tried modifying to use libcsnd6 and linking to
>> >> >>> >> that,
>> >> >>> >> but it had no affect on the Java test.  I did see in the SWIG
>> >> >>> >> manual
>> >> >>> >> for Java that they have an error shown similar to ours, with the
>> >> >>> >> documentation:
>> >> >>> >>
>> >> >>> >> "This error usually indicates that you forgot to include some
>> >> >>> >> object
>> >> >>> >> files or libraries in the linking of the native library file.
>> >> >>> >> Make
>> >> >>> >> sure you compile both the SWIG wrapper file and the code you are
>> >> >>> >> wrapping into the native library file. If you forget to compile
>> >> >>> >> and
>> >> >>> >> link in the SWIG wrapper file into your native library file, you
>> >> >>> >> will
>> >> >>> >> get a message similar to the following:"
>> >> >>> >>
>> >> >>> >> However, I don't think this is quite the issue as the same Cmake
>> >> >>> >> script works on OSX and Linux. I did see an email about possibly
>> >> >>> >> needing to compile the library with both the wrapper and the
>> >> >>> >> wrapped
>> >> >>> >> lib, but that seemed odd as we had things working with CS5.
>> >> >>> >>
>> >> >>> >> I'll continue to explore here.
>> >> >>> >>
>> >> >>> >> On Tue, Aug 27, 2013 at 5:19 PM, Steven Yi <stevenyi@gmail.com>
>> >> >>> >> wrote:
>> >> >>> >> > Thanks for the info, at least we can eliminate that
>> >> >>> >> > possibility
>> >> >>> >> > then.
>> >> >>> >> > I'll hopefully get further along tomorrow and will report
>> >> >>> >> > anything I
>> >> >>> >> > find.
>> >> >>> >> >
>> >> >>> >> > On Tue, Aug 27, 2013 at 5:13 PM, Michael Gogins
>> >> >>> >> > <michael.gogins@gmail.com> wrote:
>> >> >>> >> >> The csnd name should be versioned but I don't have 5 on my
>> >> >>> >> >> machine
>> >> >>> >> >> at
>> >> >>> >> >> all.
>> >> >>> >> >>
>> >> >>> >> >> On Aug 27, 2013 5:03 PM, "Steven Yi" <stevenyi@gmail.com>
>> >> >>> >> >> wrote:
>> >> >>> >> >>>
>> >> >>> >> >>> The compile paths here are a mess so I'm going to need to
>> >> >>> >> >>> sort
>> >> >>> >> >>> that
>> >> >>> >> >>> out here locally.  However, I'm wondering if at runtime if
>> >> >>> >> >>> the
>> >> >>> >> >>> wrong
>> >> >>> >> >>> dll is getting loaded due to csnd.dll being the same name in
>> >> >>> >> >>> CS5
>> >> >>> >> >>> and
>> >> >>> >> >>> CS6.  Perhaps we should rename that to see if that's the
>> >> >>> >> >>> source
>> >> >>> >> >>> of
>> >> >>> >> >>> issues for Java (possible CsoundPerformanceThread too?). I'm
>> >> >>> >> >>> imagining
>> >> >>> >> >>> if Csound runs multiple times alright, but
>> >> >>> >> >>> CsoundPerformanceThread
>> >> >>> >> >>> does not, then it could be possible that the csound6 library
>> >> >>> >> >>> is
>> >> >>> >> >>> loading fine, but the cs5 version of csnd is loading and
>> >> >>> >> >>> causing
>> >> >>> >> >>> issues.
>> >> >>> >> >>>
>> >> >>> >> >>> On Tue, Aug 27, 2013 at 4:52 PM, Michael Gogins
>> >> >>> >> >>> <michael.gogins@gmail.com> wrote:
>> >> >>> >> >>> > In my build I'm very careful about the actual library
>> >> >>> >> >>> > paths.
>> >> >>> >> >>> > I
>> >> >>> >> >>> > look
>> >> >>> >> >>> > at
>> >> >>> >> >>> > the
>> >> >>> >> >>> > CMakeCache.txt, I look at the compiler and linker
>> >> >>> >> >>> > commands,
>> >> >>> >> >>> > and I
>> >> >>> >> >>> > look
>> >> >>> >> >>> > at
>> >> >>> >> >>> > what libraries actually get loaded during a run (there are
>> >> >>> >> >>> > various
>> >> >>> >> >>> > tools
>> >> >>> >> >>> > for
>> >> >>> >> >>> > doing this on Windows). I am careful because yes, it has
>> >> >>> >> >>> > been
>> >> >>> >> >>> > a
>> >> >>> >> >>> > problem
>> >> >>> >> >>> > for
>> >> >>> >> >>> > me, as you saw from my earlier emails.
>> >> >>> >> >>> >
>> >> >>> >> >>> > But we should talk about how to make this better on
>> >> >>> >> >>> > Windows.
>> >> >>> >> >>> >
>> >> >>> >> >>> > Best,
>> >> >>> >> >>> > Mike
>> >> >>> >> >>> >
>> >> >>> >> >>> >
>> >> >>> >> >>> > ===========================
>> >> >>> >> >>> > Michael Gogins
>> >> >>> >> >>> > Irreducible Productions
>> >> >>> >> >>> > http://michaelgogins.tumblr.com
>> >> >>> >> >>> > Michael dot Gogins at gmail dot com
>> >> >>> >> >>> >
>> >> >>> >> >>> >
>> >> >>> >> >>> > On Tue, Aug 27, 2013 at 4:15 PM, Steven Yi
>> >> >>> >> >>> > <stevenyi@gmail.com>
>> >> >>> >> >>> > wrote:
>> >> >>> >> >>> >>
>> >> >>> >> >>> >> Hi Michael and All,
>> >> >>> >> >>> >>
>> >> >>> >> >>> >> I just spent a bit of time looking into this and found
>> >> >>> >> >>> >> some
>> >> >>> >> >>> >> very
>> >> >>> >> >>> >> heinous stuff going on in windows.  It looks to me that
>> >> >>> >> >>> >> CMake
>> >> >>> >> >>> >> actually
>> >> >>> >> >>> >> found all types of libraries from the PATH to use.  That
>> >> >>> >> >>> >> meant
>> >> >>> >> >>> >> some
>> >> >>> >> >>> >> libraries from C:\Program Files (x86)\Csound\bin were
>> >> >>> >> >>> >> found,
>> >> >>> >> >>> >> others
>> >> >>> >> >>> >> from C:\Program Files (x86)\Csound6\bin, and others from
>> >> >>> >> >>> >> my
>> >> >>> >> >>> >> MSYS
>> >> >>> >> >>> >> /usr/local/lib and custom set paths.  I get the
>> >> >>> >> >>> >> impression
>> >> >>> >> >>> >> this
>> >> >>> >> >>> >> could
>> >> >>> >> >>> >> be a source of some of the issues we're seeing both with
>> >> >>> >> >>> >> the
>> >> >>> >> >>> >> Java
>> >> >>> >> >>> >> library and other windows oddities.
>> >> >>> >> >>> >>
>> >> >>> >> >>> >> I mostly noticed this in looking at my CmakeCache.txt.
>> >> >>> >> >>> >> I'm
>> >> >>> >> >>> >> wondering
>> >> >>> >> >>> >> if the Java lib is linking to Csound 5's csnd.dll instead
>> >> >>> >> >>> >> of
>> >> >>> >> >>> >> Csound6's.  If that's the case, then perhaps we can
>> >> >>> >> >>> >> change
>> >> >>> >> >>> >> csnd
>> >> >>> >> >>> >> to
>> >> >>> >> >>> >> be
>> >> >>> >> >>> >> csnd6 instead.
>> >> >>> >> >>> >>
>> >> >>> >> >>> >> I've got to move on for the day, but will come back to
>> >> >>> >> >>> >> this
>> >> >>> >> >>> >> tomorrow.
>> >> >>> >> >>> >>
>> >> >>> >> >>> >>
>> >> >>> >> >>> >>
>> >> >>> >> >>> >> On Tue, Aug 20, 2013 at 11:14 PM, Michael Gogins
>> >> >>> >> >>> >> <michael.gogins@gmail.com> wrote:
>> >> >>> >> >>> >> > People do seem to be switching to mingw-builds. I am
>> >> >>> >> >>> >> > using
>> >> >>> >> >>> >> > 4.8.1,
>> >> >>> >> >>> >> > dwarf-2,
>> >> >>> >> >>> >> > posix threads, 32 bits. If you use the same version we
>> >> >>> >> >>> >> > have a
>> >> >>> >> >>> >> > much
>> >> >>> >> >>> >> > better
>> >> >>> >> >>> >> > chance of understanding what is going on.
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> > I think there is something pretty subtle going on both
>> >> >>> >> >>> >> > with
>> >> >>> >> >>> >> > Java
>> >> >>> >> >>> >> > and
>> >> >>> >> >>> >> > with
>> >> >>> >> >>> >> > the CsoundPerformanceThread.
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> > I have proved that the existence of incompatible MinGW
>> >> >>> >> >>> >> > runtime
>> >> >>> >> >>> >> > libraries
>> >> >>> >> >>> >> > can
>> >> >>> >> >>> >> > be a problem. I have also proved that that is not the
>> >> >>> >> >>> >> > ONLY
>> >> >>> >> >>> >> > problem,
>> >> >>> >> >>> >> > at
>> >> >>> >> >>> >> > least, on my computer. I succeeded finally in removing
>> >> >>> >> >>> >> > incompatible
>> >> >>> >> >>> >> > MinGW
>> >> >>> >> >>> >> > runtime libraries from my SysWOW64 directory (!) so I
>> >> >>> >> >>> >> > now
>> >> >>> >> >>> >> > can
>> >> >>> >> >>> >> > run
>> >> >>> >> >>> >> > CsoundAC
>> >> >>> >> >>> >> > code, but I am still having problems with the
>> >> >>> >> >>> >> > performance
>> >> >>> >> >>> >> > thread
>> >> >>> >> >>> >> > and
>> >> >>> >> >>> >> > with
>> >> >>> >> >>> >> > Java. Different computers behave differently, e.g. I
>> >> >>> >> >>> >> > can
>> >> >>> >> >>> >> > run
>> >> >>> >> >>> >> > CsoundQt
>> >> >>> >> >>> >> > at
>> >> >>> >> >>> >> > work but not at home.
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> > In my programming life, these errors can arise from
>> >> >>> >> >>> >> > several
>> >> >>> >> >>> >> > errors
>> >> >>> >> >>> >> > but
>> >> >>> >> >>> >> > one
>> >> >>> >> >>> >> > common source is uninitialized members of structs and
>> >> >>> >> >>> >> > classes
>> >> >>> >> >>> >> > that
>> >> >>> >> >>> >> > contain
>> >> >>> >> >>> >> > zeroes on some machines and junk on other machines. Or
>> >> >>> >> >>> >> > writes
>> >> >>> >> >>> >> > past
>> >> >>> >> >>> >> > buffer
>> >> >>> >> >>> >> > ends that poke holes in junk on some machines and in
>> >> >>> >> >>> >> > vital
>> >> >>> >> >>> >> > organs
>> >> >>> >> >>> >> > on
>> >> >>> >> >>> >> > other
>> >> >>> >> >>> >> > machines. Having multiple threads makes this harder...
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> > Regards,
>> >> >>> >> >>> >> > Mike
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> > I wish I had something like valgrind on Windows but I
>> >> >>> >> >>> >> > can't
>> >> >>> >> >>> >> > afford
>> >> >>> >> >>> >> > the
>> >> >>> >> >>> >> > equivalent.
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> > ===========================
>> >> >>> >> >>> >> > Michael Gogins
>> >> >>> >> >>> >> > Irreducible Productions
>> >> >>> >> >>> >> > http://michaelgogins.tumblr.com
>> >> >>> >> >>> >> > Michael dot Gogins at gmail dot com
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> > On Tue, Aug 20, 2013 at 10:56 PM, Steven Yi
>> >> >>> >> >>> >> > <stevenyi@gmail.com>
>> >> >>> >> >>> >> > wrote:
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >> Hi Michael,
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >> I was trying to setup to get a build working on
>> >> >>> >> >>> >> >> Windows
>> >> >>> >> >>> >> >> to
>> >> >>> >> >>> >> >> see
>> >> >>> >> >>> >> >> if I
>> >> >>> >> >>> >> >> can further diagnose what's going on.  I currently
>> >> >>> >> >>> >> >> have
>> >> >>> >> >>> >> >> the
>> >> >>> >> >>> >> >> stock
>> >> >>> >> >>> >> >> mingw/msys installed from sf.net/projects/mingw. I
>> >> >>> >> >>> >> >> noticed in
>> >> >>> >> >>> >> >> your
>> >> >>> >> >>> >> >> How
>> >> >>> >> >>> >> >> to Build doc that you are using mingwbuilds version.
>> >> >>> >> >>> >> >> Could
>> >> >>> >> >>> >> >> you
>> >> >>> >> >>> >> >> advise: should I uninstalled mingw/msys and use just
>> >> >>> >> >>> >> >> mingwbuilds?
>> >> >>> >> >>> >> >> (I.e. better to start clean).
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >> Thanks!
>> >> >>> >> >>> >> >> steven
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >> On Thu, Aug 15, 2013 at 8:44 AM, Michael Gogins
>> >> >>> >> >>> >> >> <michael.gogins@gmail.com> wrote:
>> >> >>> >> >>> >> >> > Sorry, fumble fingers.
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> > The problem I see is that the csnd6 low level JNI
>> >> >>> >> >>> >> >> > Java
>> >> >>> >> >>> >> >> > class
>> >> >>> >> >>> >> >> > needs
>> >> >>> >> >>> >> >> > to
>> >> >>> >> >>> >> >> > call
>> >> >>> >> >>> >> >> > SWIG's initializer in _csound.dll. The initializer
>> >> >>> >> >>> >> >> > is
>> >> >>> >> >>> >> >> > the
>> >> >>> >> >>> >> >> > thing
>> >> >>> >> >>> >> >> > not
>> >> >>> >> >>> >> >> > found.
>> >> >>> >> >>> >> >> > Without it we don't have Java Csound.
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> > Still no solution, though. The initializer is in
>> >> >>> >> >>> >> >> > _jcsound.dll.
>> >> >>> >> >>> >> >> > Java
>> >> >>> >> >>> >> >> > doesn't
>> >> >>> >> >>> >> >> > find it. Java finds the CsoundEditor.jar (a better
>> >> >>> >> >>> >> >> > test
>> >> >>> >> >>> >> >> > than
>> >> >>> >> >>> >> >> > CSDPlayer.jar
>> >> >>> >> >>> >> >> > because it loads csnd6 right away) and loads and
>> >> >>> >> >>> >> >> > begins
>> >> >>> >> >>> >> >> > to
>> >> >>> >> >>> >> >> > run
>> >> >>> >> >>> >> >> > the
>> >> >>> >> >>> >> >> > Java
>> >> >>> >> >>> >> >> > code. The first thing to run is the static block
>> >> >>> >> >>> >> >> > that
>> >> >>> >> >>> >> >> > loads
>> >> >>> >> >>> >> >> > _jcsound.dll
>> >> >>> >> >>> >> >> > and
>> >> >>> >> >>> >> >> > calls the initializer. There are 4 steps here:
>> >> >>> >> >>> >> >> > locate
>> >> >>> >> >>> >> >> > the
>> >> >>> >> >>> >> >> > DLL,
>> >> >>> >> >>> >> >> > load
>> >> >>> >> >>> >> >> > the
>> >> >>> >> >>> >> >> > DLL,
>> >> >>> >> >>> >> >> > find the initializer function, call the initializer.
>> >> >>> >> >>> >> >> > We
>> >> >>> >> >>> >> >> > know
>> >> >>> >> >>> >> >> > that
>> >> >>> >> >>> >> >> > we
>> >> >>> >> >>> >> >> > don't
>> >> >>> >> >>> >> >> > find the initializer. I think it fails at the load
>> >> >>> >> >>> >> >> > stage
>> >> >>> >> >>> >> >> > because I
>> >> >>> >> >>> >> >> > have
>> >> >>> >> >>> >> >> > DLL
>> >> >>> >> >>> >> >> > hell on my notebook right now and I seem to recall
>> >> >>> >> >>> >> >> > catching
>> >> >>> >> >>> >> >> > the
>> >> >>> >> >>> >> >> > DLL
>> >> >>> >> >>> >> >> > load.
>> >> >>> >> >>> >> >> > I'll verify that later. In other words I think it
>> >> >>> >> >>> >> >> > starts to
>> >> >>> >> >>> >> >> > load
>> >> >>> >> >>> >> >> > _jcsound.dll and then there is a problem when
>> >> >>> >> >>> >> >> > _jcsound.dll
>> >> >>> >> >>> >> >> > is
>> >> >>> >> >>> >> >> > loading
>> >> >>> >> >>> >> >> > other
>> >> >>> >> >>> >> >> > things or initializating its own things.
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> > ===========================
>> >> >>> >> >>> >> >> > Michael Gogins
>> >> >>> >> >>> >> >> > Irreducible Productions
>> >> >>> >> >>> >> >> > http://michaelgogins.tumblr.com
>> >> >>> >> >>> >> >> > Michael dot Gogins at gmail dot com
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> > On Thu, Aug 15, 2013 at 8:32 AM, Michael Gogins
>> >> >>> >> >>> >> >> > <michael.gogins@gmail.com>
>> >> >>> >> >>> >> >> > wrote:
>> >> >>> >> >>> >> >> >>
>> >> >>> >> >>> >> >> >> The problem I see is that the Csound JNI
>> >> >>> >> >>> >> >> >>
>> >> >>> >> >>> >> >> >>
>> >> >>> >> >>> >> >> >> ===========================
>> >> >>> >> >>> >> >> >> Michael Gogins
>> >> >>> >> >>> >> >> >> Irreducible Productions
>> >> >>> >> >>> >> >> >> http://michaelgogins.tumblr.com
>> >> >>> >> >>> >> >> >> Michael dot Gogins at gmail dot com
>> >> >>> >> >>> >> >> >>
>> >> >>> >> >>> >> >> >>
>> >> >>> >> >>> >> >> >> On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi
>> >> >>> >> >>> >> >> >> <stevenyi@gmail.com>
>> >> >>> >> >>> >> >> >> wrote:
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>> Hi Michael,
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>> I'm wondering if this is the same issue. I need to
>> >> >>> >> >>> >> >> >>> re-test,
>> >> >>> >> >>> >> >> >>> but
>> >> >>> >> >>> >> >> >>> when I
>> >> >>> >> >>> >> >> >>> was trying things out I thought I didn't quite get
>> >> >>> >> >>> >> >> >>> a
>> >> >>> >> >>> >> >> >>> crash,
>> >> >>> >> >>> >> >> >>> just
>> >> >>> >> >>> >> >> >>> an
>> >> >>> >> >>> >> >> >>> UnsatisfiedLinkError exception for the function I
>> >> >>> >> >>> >> >> >>> was
>> >> >>> >> >>> >> >> >>> trying
>> >> >>> >> >>> >> >> >>> to
>> >> >>> >> >>> >> >> >>> call,
>> >> >>> >> >>> >> >> >>> which I could catch and do something about.  The
>> >> >>> >> >>> >> >> >>> test
>> >> >>> >> >>> >> >> >>> java
>> >> >>> >> >>> >> >> >>> class
>> >> >>> >> >>> >> >> >>> I
>> >> >>> >> >>> >> >> >>> put
>> >> >>> >> >>> >> >> >>> into the bug may not be doing any catching, but
>> >> >>> >> >>> >> >> >>> then
>> >> >>> >> >>> >> >> >>> Java
>> >> >>> >> >>> >> >> >>> should
>> >> >>> >> >>> >> >> >>> have
>> >> >>> >> >>> >> >> >>> just exited rather than crash.
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>> steven
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>> On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
>> >> >>> >> >>> >> >> >>> <michael.gogins@gmail.com> wrote:
>> >> >>> >> >>> >> >> >>> > Gdb tells me Java crash is caused by
>> >> >>> >> >>> >> >> >>> > linstd++-6.dll
>> >> >>> >> >>> >> >> >>> > of
>> >> >>> >> >>> >> >> >>> > wrong
>> >> >>> >> >>> >> >> >>> > model
>> >> >>> >> >>> >> >> >>> > found in
>> >> >>> >> >>> >> >> >>> > SysWOW64, where it does not belong and was put
>> >> >>> >> >>> >> >> >>> > by
>> >> >>> >> >>> >> >> >>> > some
>> >> >>> >> >>> >> >> >>> > incompetent
>> >> >>> >> >>> >> >> >>> > installer. I'm afraid to remove it because I did
>> >> >>> >> >>> >> >> >>> > once
>> >> >>> >> >>> >> >> >>> > before
>> >> >>> >> >>> >> >> >>> > and
>> >> >>> >> >>> >> >> >>> > lost
>> >> >>> >> >>> >> >> >>> > my
>> >> >>> >> >>> >> >> >>> > user profile.
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> > ------------------------------------------------------------------------------
>> >> >>> >> >>> >> >> >>> > Get 100% visibility into Java/.NET code with
>> >> >>> >> >>> >> >> >>> > AppDynamics
>> >> >>> >> >>> >> >> >>> > Lite!
>> >> >>> >> >>> >> >> >>> > It's a free troubleshooting tool designed for
>> >> >>> >> >>> >> >> >>> > production.
>> >> >>> >> >>> >> >> >>> > Get down to code-level detail for bottlenecks,
>> >> >>> >> >>> >> >> >>> > with
>> >> >>> >> >>> >> >> >>> > <2%
>> >> >>> >> >>> >> >> >>> > overhead.
>> >> >>> >> >>> >> >> >>> > Download for free and get started
>> >> >>> >> >>> >> >> >>> > troubleshooting
>> >> >>> >> >>> >> >> >>> > in
>> >> >>> >> >>> >> >> >>> > minutes.
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >> >>> >> >>> >> >> >>> > _______________________________________________
>> >> >>> >> >>> >> >> >>> > Csound-devel mailing list
>> >> >>> >> >>> >> >> >>> > Csound-devel@lists.sourceforge.net
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >> >>> >> >> >>> >
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>> ------------------------------------------------------------------------------
>> >> >>> >> >>> >> >> >>> Get 100% visibility into Java/.NET code with
>> >> >>> >> >>> >> >> >>> AppDynamics
>> >> >>> >> >>> >> >> >>> Lite!
>> >> >>> >> >>> >> >> >>> It's a free troubleshooting tool designed for
>> >> >>> >> >>> >> >> >>> production.
>> >> >>> >> >>> >> >> >>> Get down to code-level detail for bottlenecks,
>> >> >>> >> >>> >> >> >>> with
>> >> >>> >> >>> >> >> >>> <2%
>> >> >>> >> >>> >> >> >>> overhead.
>> >> >>> >> >>> >> >> >>> Download for free and get started troubleshooting
>> >> >>> >> >>> >> >> >>> in
>> >> >>> >> >>> >> >> >>> minutes.
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >> >>> >> >>> >> >> >>> _______________________________________________
>> >> >>> >> >>> >> >> >>> Csound-devel mailing list
>> >> >>> >> >>> >> >> >>> Csound-devel@lists.sourceforge.net
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>>
>> >> >>> >> >>> >> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >> >>> >> >> >>
>> >> >>> >> >>> >> >> >>
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> > ------------------------------------------------------------------------------
>> >> >>> >> >>> >> >> > Get 100% visibility into Java/.NET code with
>> >> >>> >> >>> >> >> > AppDynamics
>> >> >>> >> >>> >> >> > Lite!
>> >> >>> >> >>> >> >> > It's a free troubleshooting tool designed for
>> >> >>> >> >>> >> >> > production.
>> >> >>> >> >>> >> >> > Get down to code-level detail for bottlenecks, with
>> >> >>> >> >>> >> >> > <2%
>> >> >>> >> >>> >> >> > overhead.
>> >> >>> >> >>> >> >> > Download for free and get started troubleshooting in
>> >> >>> >> >>> >> >> > minutes.
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >> >>> >> >>> >> >> > _______________________________________________
>> >> >>> >> >>> >> >> > Csound-devel mailing list
>> >> >>> >> >>> >> >> > Csound-devel@lists.sourceforge.net
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >> >>> >> >> >
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >> ------------------------------------------------------------------------------
>> >> >>> >> >>> >> >> Introducing Performance Central, a new site from
>> >> >>> >> >>> >> >> SourceForge
>> >> >>> >> >>> >> >> and
>> >> >>> >> >>> >> >> AppDynamics. Performance Central is your source for
>> >> >>> >> >>> >> >> news,
>> >> >>> >> >>> >> >> insights,
>> >> >>> >> >>> >> >> analysis and resources for efficient Application
>> >> >>> >> >>> >> >> Performance
>> >> >>> >> >>> >> >> Management.
>> >> >>> >> >>> >> >> Visit us today!
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >> _______________________________________________
>> >> >>> >> >>> >> >> Csound-devel mailing list
>> >> >>> >> >>> >> >> Csound-devel@lists.sourceforge.net
>> >> >>> >> >>> >> >>
>> >> >>> >> >>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> > ------------------------------------------------------------------------------
>> >> >>> >> >>> >> > Introducing Performance Central, a new site from
>> >> >>> >> >>> >> > SourceForge
>> >> >>> >> >>> >> > and
>> >> >>> >> >>> >> > AppDynamics. Performance Central is your source for
>> >> >>> >> >>> >> > news,
>> >> >>> >> >>> >> > insights,
>> >> >>> >> >>> >> > analysis and resources for efficient Application
>> >> >>> >> >>> >> > Performance
>> >> >>> >> >>> >> > Management.
>> >> >>> >> >>> >> > Visit us today!
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> >> >>> >> >>> >> > _______________________________________________
>> >> >>> >> >>> >> > Csound-devel mailing list
>> >> >>> >> >>> >> > Csound-devel@lists.sourceforge.net
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >> >>> >> >
>> >> >>> >> >>> >>
>> >> >>> >> >>> >>
>> >> >>> >> >>> >>
>> >> >>> >> >>> >>
>> >> >>> >> >>> >>
>> >> >>> >> >>> >>
>> >> >>> >> >>> >>
>> >> >>> >> >>> >> ------------------------------------------------------------------------------
>> >> >>> >> >>> >> Learn the latest--Visual Studio 2012, SharePoint 2013,
>> >> >>> >> >>> >> SQL
>> >> >>> >> >>> >> 2012,
>> >> >>> >> >>> >> more!
>> >> >>> >> >>> >> Discover the easy way to master current and previous
>> >> >>> >> >>> >> Microsoft
>> >> >>> >> >>> >> technologies
>> >> >>> >> >>> >> and advance your career. Get an incredible 1,500+ hours
>> >> >>> >> >>> >> of
>> >> >>> >> >>> >> step-by-step
>> >> >>> >> >>> >> tutorial videos with LearnDevNow. Subscribe today and
>> >> >>> >> >>> >> save!
>> >> >>> >> >>> >>
>> >> >>> >> >>> >>
>> >> >>> >> >>> >>
>> >> >>> >> >>> >>
>> >> >>> >> >>> >>
>> >> >>> >> >>> >>
>> >> >>> >> >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >>> >> >>> >>
>> >> >>> >> >>> >> _______________________________________________
>> >> >>> >> >>> >> Csound-devel mailing list
>> >> >>> >> >>> >> Csound-devel@lists.sourceforge.net
>> >> >>> >> >>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >> >>> >
>> >> >>> >> >>> >
>> >> >>> >> >>> >
>> >> >>> >> >>> >
>> >> >>> >> >>> >
>> >> >>> >> >>> >
>> >> >>> >> >>> >
>> >> >>> >> >>> >
>> >> >>> >> >>> > ------------------------------------------------------------------------------
>> >> >>> >> >>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>> >> >>> >> >>> > 2012,
>> >> >>> >> >>> > more!
>> >> >>> >> >>> > Discover the easy way to master current and previous
>> >> >>> >> >>> > Microsoft
>> >> >>> >> >>> > technologies
>> >> >>> >> >>> > and advance your career. Get an incredible 1,500+ hours of
>> >> >>> >> >>> > step-by-step
>> >> >>> >> >>> > tutorial videos with LearnDevNow. Subscribe today and
>> >> >>> >> >>> > save!
>> >> >>> >> >>> >
>> >> >>> >> >>> >
>> >> >>> >> >>> >
>> >> >>> >> >>> >
>> >> >>> >> >>> >
>> >> >>> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >>> >> >>> > _______________________________________________
>> >> >>> >> >>> > Csound-devel mailing list
>> >> >>> >> >>> > Csound-devel@lists.sourceforge.net
>> >> >>> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >> >>> >
>> >> >>> >> >>>
>> >> >>> >> >>>
>> >> >>> >> >>>
>> >> >>> >> >>>
>> >> >>> >> >>>
>> >> >>> >> >>>
>> >> >>> >> >>> ------------------------------------------------------------------------------
>> >> >>> >> >>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>> >> >>> >> >>> 2012,
>> >> >>> >> >>> more!
>> >> >>> >> >>> Discover the easy way to master current and previous
>> >> >>> >> >>> Microsoft
>> >> >>> >> >>> technologies
>> >> >>> >> >>> and advance your career. Get an incredible 1,500+ hours of
>> >> >>> >> >>> step-by-step
>> >> >>> >> >>> tutorial videos with LearnDevNow. Subscribe today and save!
>> >> >>> >> >>>
>> >> >>> >> >>>
>> >> >>> >> >>>
>> >> >>> >> >>>
>> >> >>> >> >>>
>> >> >>> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >>> >> >>> _______________________________________________
>> >> >>> >> >>> Csound-devel mailing list
>> >> >>> >> >>> Csound-devel@lists.sourceforge.net
>> >> >>> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >> >>
>> >> >>> >> >>
>> >> >>> >> >>
>> >> >>> >> >>
>> >> >>> >> >>
>> >> >>> >> >>
>> >> >>> >> >> ------------------------------------------------------------------------------
>> >> >>> >> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>> >> >>> >> >> 2012,
>> >> >>> >> >> more!
>> >> >>> >> >> Discover the easy way to master current and previous
>> >> >>> >> >> Microsoft
>> >> >>> >> >> technologies
>> >> >>> >> >> and advance your career. Get an incredible 1,500+ hours of
>> >> >>> >> >> step-by-step
>> >> >>> >> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >> >>> >> >>
>> >> >>> >> >>
>> >> >>> >> >>
>> >> >>> >> >>
>> >> >>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >>> >> >> _______________________________________________
>> >> >>> >> >> Csound-devel mailing list
>> >> >>> >> >> Csound-devel@lists.sourceforge.net
>> >> >>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >> >>
>> >> >>> >>
>> >> >>> >>
>> >> >>> >>
>> >> >>> >>
>> >> >>> >>
>> >> >>> >> ------------------------------------------------------------------------------
>> >> >>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >> >>> >> more!
>> >> >>> >> Discover the easy way to master current and previous Microsoft
>> >> >>> >> technologies
>> >> >>> >> and advance your career. Get an incredible 1,500+ hours of
>> >> >>> >> step-by-step
>> >> >>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >> >>> >>
>> >> >>> >>
>> >> >>> >>
>> >> >>> >>
>> >> >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >>> >> _______________________________________________
>> >> >>> >> Csound-devel mailing list
>> >> >>> >> Csound-devel@lists.sourceforge.net
>> >> >>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> > ------------------------------------------------------------------------------
>> >> >>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >> >>> > more!
>> >> >>> > Discover the easy way to master current and previous Microsoft
>> >> >>> > technologies
>> >> >>> > and advance your career. Get an incredible 1,500+ hours of
>> >> >>> > step-by-step
>> >> >>> > tutorial videos with LearnDevNow. Subscribe today and save!
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >>> > _______________________________________________
>> >> >>> > Csound-devel mailing list
>> >> >>> > Csound-devel@lists.sourceforge.net
>> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>> >
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>> ------------------------------------------------------------------------------
>> >> >>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >> >>> more!
>> >> >>> Discover the easy way to master current and previous Microsoft
>> >> >>> technologies
>> >> >>> and advance your career. Get an incredible 1,500+ hours of
>> >> >>> step-by-step
>> >> >>> tutorial videos with LearnDevNow. Subscribe today and save!
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >>> _______________________________________________
>> >> >>> Csound-devel mailing list
>> >> >>> Csound-devel@lists.sourceforge.net
>> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >> ------------------------------------------------------------------------------
>> >> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >> >> more!
>> >> >> Discover the easy way to master current and previous Microsoft
>> >> >> technologies
>> >> >> and advance your career. Get an incredible 1,500+ hours of
>> >> >> step-by-step
>> >> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >> >>
>> >> >>
>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >> _______________________________________________
>> >> >> Csound-devel mailing list
>> >> >> Csound-devel@lists.sourceforge.net
>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> >> Discover the easy way to master current and previous Microsoft
>> >> technologies
>> >> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>
>> >>
>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> > Discover the easy way to master current and previous Microsoft
>> > technologies
>> > and advance your career. Get an incredible 1,500+ hours of step-by-step
>> > tutorial videos with LearnDevNow. Subscribe today and save!
>> >
>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> Discover the easy way to master current and previous Microsoft
>> technologies
>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> tutorial videos with LearnDevNow. Subscribe today and save!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2013-08-28 21:25
FromFelipe Sateler
SubjectRe: [Cs-dev] Java crash on windows
AttachmentsNone  None  
c++11 apparently breaks ABI compatibility with non-c++11 code:


On Wed, Aug 28, 2013 at 3:23 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
These are only for Windows.

The only harm from defining these options globally is that more symbols are exported by the shared libraries, so the dynamic loads might be a tad slower. Once loaded I don't think calls would be noticeably slower. So I would go ahead and make these global on Windows. Other things that I always define globally on Windows, and should probably be the defaults on Windows:

-g -O2 -std=gnu++11 -fopenmp -march=nocona -DNDEBUG -I/usr/local/include -L/usr/local/lib -mstackrealign -Wl,--add-stdcall-alias -Wl,--enable-stdcall-fixup

I don't know why I didn't think about the stdcall possibility this time -- when it was I who originally added these options for this sort of reason in the first place!

Best,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Wed, Aug 28, 2013 at 3:09 PM, Steven Yi <stevenyi@gmail.com> wrote:
I'm hopeful this will be it. :)  I tried adding it to my Custom.cmake
for now and am doing a compile.  I grepped through CS5's SConstruct
and surely enough there's numerous places where
-Wl,--add-stdcall-alias is used, and a few places where
-Wl,--enable-stdcall-fixup is used.

I should be able to test in about 10 minutes; assuming all is good,
I'm wondering should this just be enabled as a global flag if on
Windows, or only for certain libs?

As for finding a fix, glad that none of my other guesses were correct
as I think they'd be much more difficult to solve. :P

On Wed, Aug 28, 2013 at 2:40 PM, Michael Gogins
<michael.gogins@gmail.com> wrote:
> If that's the case, then changing the linker flags should do the trick. @8
> marks the function as stdcall calling convention with 8 bytes to be popped
> off the stack after returning from the call.
>
> To CFLAGS and CXXFLAGS for the DLL, add -"Wl,--add-stdcall-alias
> -Wl,--enable-stdcall-fixup". I think only the first is required but I used
> to add both to everything just to cover my bases.
>
> --add-stdcall-alias                Export symbols with and without @nn
> --disable-stdcall-fixup            Don't link _sym to _sym@nn DON'T USE!
> --enable-stdcall-fixup             Link _sym to _sym@nn without warnings
>
> Best,
> Mike
>
>
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Wed, Aug 28, 2013 at 1:25 PM, Steven Yi <stevenyi@gmail.com> wrote:
>>
>> I found something that looks useful.  In _jcsound.dll from CS5,
>> DependencyWalker shows symbols like:
>>
>> Java_csnd_csndJNI_swig_1module_1init
>> Java_csnd_csndJNI_swig_1module_1init@8
>>
>> while CS6 only has:
>>
>> Java_csnd6_csnd6JNI_swig_1module_1init@8
>>
>> I get the impression that the PUBLIC attribute isn't working
>> correctly, or something along those lines.  I've got to take a break
>> but will continue on with this after lunch.
>>
>> On Wed, Aug 28, 2013 at 12:22 PM, Steven Yi <stevenyi@gmail.com> wrote:
>> > That didn't seem to affect anything unfortunately. Continuing on....
>> >
>> > On Wed, Aug 28, 2013 at 11:59 AM, Michael Gogins
>> > <michael.gogins@gmail.com> wrote:
>> >> Well, that's certainly a mistake.
>> >>
>> >> On Aug 28, 2013 11:59 AM, "Steven Yi" <stevenyi@gmail.com> wrote:
>> >>>
>> >>> That sounds reasonable, but the Csound5 API still loads for me fine
>> >>> with Blue, using the same VM.  I think that'd rule that one out.  I
>> >>> saw that csound.h has "%module csnd" isntead of "%module csnd6".  I'm
>> >>> not sure that's it, as that seems like it'd affect other platforms,
>> >>> but I'm giving it a try now just in case.  (compile should be done in
>> >>> 15-20 mins... ugh...)
>> >>>
>> >>> On Wed, Aug 28, 2013 at 11:35 AM, Michael Gogins
>> >>> <michael.gogins@gmail.com> wrote:
>> >>> > If I were you, I would try compiling the library with both the
>> >>> > wrapper
>> >>> > and
>> >>> > the wrapped lib, just to rule that out.
>> >>> >
>> >>> > There may well have been some change in the way the Java VM and
>> >>> > library
>> >>> > link. You could try Oracle issues on Java regarding that.
>> >>> >
>> >>> > Best,
>> >>> > Mike
>> >>> >
>> >>> >
>> >>> > ===========================
>> >>> > Michael Gogins
>> >>> > Irreducible Productions
>> >>> > http://michaelgogins.tumblr.com
>> >>> > Michael dot Gogins at gmail dot com
>> >>> >
>> >>> >
>> >>> > On Wed, Aug 28, 2013 at 11:18 AM, Steven Yi <stevenyi@gmail.com>
>> >>> > wrote:
>> >>> >>
>> >>> >> Just an update, I tried modifying to use libcsnd6 and linking to
>> >>> >> that,
>> >>> >> but it had no affect on the Java test.  I did see in the SWIG
>> >>> >> manual
>> >>> >> for Java that they have an error shown similar to ours, with the
>> >>> >> documentation:
>> >>> >>
>> >>> >> "This error usually indicates that you forgot to include some
>> >>> >> object
>> >>> >> files or libraries in the linking of the native library file. Make
>> >>> >> sure you compile both the SWIG wrapper file and the code you are
>> >>> >> wrapping into the native library file. If you forget to compile and
>> >>> >> link in the SWIG wrapper file into your native library file, you
>> >>> >> will
>> >>> >> get a message similar to the following:"
>> >>> >>
>> >>> >> However, I don't think this is quite the issue as the same Cmake
>> >>> >> script works on OSX and Linux. I did see an email about possibly
>> >>> >> needing to compile the library with both the wrapper and the
>> >>> >> wrapped
>> >>> >> lib, but that seemed odd as we had things working with CS5.
>> >>> >>
>> >>> >> I'll continue to explore here.
>> >>> >>
>> >>> >> On Tue, Aug 27, 2013 at 5:19 PM, Steven Yi <stevenyi@gmail.com>
>> >>> >> wrote:
>> >>> >> > Thanks for the info, at least we can eliminate that possibility
>> >>> >> > then.
>> >>> >> > I'll hopefully get further along tomorrow and will report
>> >>> >> > anything I
>> >>> >> > find.
>> >>> >> >
>> >>> >> > On Tue, Aug 27, 2013 at 5:13 PM, Michael Gogins
>> >>> >> > <michael.gogins@gmail.com> wrote:
>> >>> >> >> The csnd name should be versioned but I don't have 5 on my
>> >>> >> >> machine
>> >>> >> >> at
>> >>> >> >> all.
>> >>> >> >>
>> >>> >> >> On Aug 27, 2013 5:03 PM, "Steven Yi" <stevenyi@gmail.com> wrote:
>> >>> >> >>>
>> >>> >> >>> The compile paths here are a mess so I'm going to need to sort
>> >>> >> >>> that
>> >>> >> >>> out here locally.  However, I'm wondering if at runtime if the
>> >>> >> >>> wrong
>> >>> >> >>> dll is getting loaded due to csnd.dll being the same name in
>> >>> >> >>> CS5
>> >>> >> >>> and
>> >>> >> >>> CS6.  Perhaps we should rename that to see if that's the source
>> >>> >> >>> of
>> >>> >> >>> issues for Java (possible CsoundPerformanceThread too?). I'm
>> >>> >> >>> imagining
>> >>> >> >>> if Csound runs multiple times alright, but
>> >>> >> >>> CsoundPerformanceThread
>> >>> >> >>> does not, then it could be possible that the csound6 library is
>> >>> >> >>> loading fine, but the cs5 version of csnd is loading and
>> >>> >> >>> causing
>> >>> >> >>> issues.
>> >>> >> >>>
>> >>> >> >>> On Tue, Aug 27, 2013 at 4:52 PM, Michael Gogins
>> >>> >> >>> <michael.gogins@gmail.com> wrote:
>> >>> >> >>> > In my build I'm very careful about the actual library paths.
>> >>> >> >>> > I
>> >>> >> >>> > look
>> >>> >> >>> > at
>> >>> >> >>> > the
>> >>> >> >>> > CMakeCache.txt, I look at the compiler and linker commands,
>> >>> >> >>> > and I
>> >>> >> >>> > look
>> >>> >> >>> > at
>> >>> >> >>> > what libraries actually get loaded during a run (there are
>> >>> >> >>> > various
>> >>> >> >>> > tools
>> >>> >> >>> > for
>> >>> >> >>> > doing this on Windows). I am careful because yes, it has been
>> >>> >> >>> > a
>> >>> >> >>> > problem
>> >>> >> >>> > for
>> >>> >> >>> > me, as you saw from my earlier emails.
>> >>> >> >>> >
>> >>> >> >>> > But we should talk about how to make this better on Windows.
>> >>> >> >>> >
>> >>> >> >>> > Best,
>> >>> >> >>> > Mike
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> > ===========================
>> >>> >> >>> > Michael Gogins
>> >>> >> >>> > Irreducible Productions
>> >>> >> >>> > http://michaelgogins.tumblr.com
>> >>> >> >>> > Michael dot Gogins at gmail dot com
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> > On Tue, Aug 27, 2013 at 4:15 PM, Steven Yi
>> >>> >> >>> > <stevenyi@gmail.com>
>> >>> >> >>> > wrote:
>> >>> >> >>> >>
>> >>> >> >>> >> Hi Michael and All,
>> >>> >> >>> >>
>> >>> >> >>> >> I just spent a bit of time looking into this and found some
>> >>> >> >>> >> very
>> >>> >> >>> >> heinous stuff going on in windows.  It looks to me that
>> >>> >> >>> >> CMake
>> >>> >> >>> >> actually
>> >>> >> >>> >> found all types of libraries from the PATH to use.  That
>> >>> >> >>> >> meant
>> >>> >> >>> >> some
>> >>> >> >>> >> libraries from C:\Program Files (x86)\Csound\bin were found,
>> >>> >> >>> >> others
>> >>> >> >>> >> from C:\Program Files (x86)\Csound6\bin, and others from my
>> >>> >> >>> >> MSYS
>> >>> >> >>> >> /usr/local/lib and custom set paths.  I get the impression
>> >>> >> >>> >> this
>> >>> >> >>> >> could
>> >>> >> >>> >> be a source of some of the issues we're seeing both with the
>> >>> >> >>> >> Java
>> >>> >> >>> >> library and other windows oddities.
>> >>> >> >>> >>
>> >>> >> >>> >> I mostly noticed this in looking at my CmakeCache.txt.  I'm
>> >>> >> >>> >> wondering
>> >>> >> >>> >> if the Java lib is linking to Csound 5's csnd.dll instead of
>> >>> >> >>> >> Csound6's.  If that's the case, then perhaps we can change
>> >>> >> >>> >> csnd
>> >>> >> >>> >> to
>> >>> >> >>> >> be
>> >>> >> >>> >> csnd6 instead.
>> >>> >> >>> >>
>> >>> >> >>> >> I've got to move on for the day, but will come back to this
>> >>> >> >>> >> tomorrow.
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >> On Tue, Aug 20, 2013 at 11:14 PM, Michael Gogins
>> >>> >> >>> >> <michael.gogins@gmail.com> wrote:
>> >>> >> >>> >> > People do seem to be switching to mingw-builds. I am using
>> >>> >> >>> >> > 4.8.1,
>> >>> >> >>> >> > dwarf-2,
>> >>> >> >>> >> > posix threads, 32 bits. If you use the same version we
>> >>> >> >>> >> > have a
>> >>> >> >>> >> > much
>> >>> >> >>> >> > better
>> >>> >> >>> >> > chance of understanding what is going on.
>> >>> >> >>> >> >
>> >>> >> >>> >> > I think there is something pretty subtle going on both
>> >>> >> >>> >> > with
>> >>> >> >>> >> > Java
>> >>> >> >>> >> > and
>> >>> >> >>> >> > with
>> >>> >> >>> >> > the CsoundPerformanceThread.
>> >>> >> >>> >> >
>> >>> >> >>> >> > I have proved that the existence of incompatible MinGW
>> >>> >> >>> >> > runtime
>> >>> >> >>> >> > libraries
>> >>> >> >>> >> > can
>> >>> >> >>> >> > be a problem. I have also proved that that is not the ONLY
>> >>> >> >>> >> > problem,
>> >>> >> >>> >> > at
>> >>> >> >>> >> > least, on my computer. I succeeded finally in removing
>> >>> >> >>> >> > incompatible
>> >>> >> >>> >> > MinGW
>> >>> >> >>> >> > runtime libraries from my SysWOW64 directory (!) so I now
>> >>> >> >>> >> > can
>> >>> >> >>> >> > run
>> >>> >> >>> >> > CsoundAC
>> >>> >> >>> >> > code, but I am still having problems with the performance
>> >>> >> >>> >> > thread
>> >>> >> >>> >> > and
>> >>> >> >>> >> > with
>> >>> >> >>> >> > Java. Different computers behave differently, e.g. I can
>> >>> >> >>> >> > run
>> >>> >> >>> >> > CsoundQt
>> >>> >> >>> >> > at
>> >>> >> >>> >> > work but not at home.
>> >>> >> >>> >> >
>> >>> >> >>> >> > In my programming life, these errors can arise from
>> >>> >> >>> >> > several
>> >>> >> >>> >> > errors
>> >>> >> >>> >> > but
>> >>> >> >>> >> > one
>> >>> >> >>> >> > common source is uninitialized members of structs and
>> >>> >> >>> >> > classes
>> >>> >> >>> >> > that
>> >>> >> >>> >> > contain
>> >>> >> >>> >> > zeroes on some machines and junk on other machines. Or
>> >>> >> >>> >> > writes
>> >>> >> >>> >> > past
>> >>> >> >>> >> > buffer
>> >>> >> >>> >> > ends that poke holes in junk on some machines and in vital
>> >>> >> >>> >> > organs
>> >>> >> >>> >> > on
>> >>> >> >>> >> > other
>> >>> >> >>> >> > machines. Having multiple threads makes this harder...
>> >>> >> >>> >> >
>> >>> >> >>> >> > Regards,
>> >>> >> >>> >> > Mike
>> >>> >> >>> >> >
>> >>> >> >>> >> > I wish I had something like valgrind on Windows but I
>> >>> >> >>> >> > can't
>> >>> >> >>> >> > afford
>> >>> >> >>> >> > the
>> >>> >> >>> >> > equivalent.
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> > ===========================
>> >>> >> >>> >> > Michael Gogins
>> >>> >> >>> >> > Irreducible Productions
>> >>> >> >>> >> > http://michaelgogins.tumblr.com
>> >>> >> >>> >> > Michael dot Gogins at gmail dot com
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> > On Tue, Aug 20, 2013 at 10:56 PM, Steven Yi
>> >>> >> >>> >> > <stevenyi@gmail.com>
>> >>> >> >>> >> > wrote:
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> Hi Michael,
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> I was trying to setup to get a build working on Windows
>> >>> >> >>> >> >> to
>> >>> >> >>> >> >> see
>> >>> >> >>> >> >> if I
>> >>> >> >>> >> >> can further diagnose what's going on.  I currently have
>> >>> >> >>> >> >> the
>> >>> >> >>> >> >> stock
>> >>> >> >>> >> >> mingw/msys installed from sf.net/projects/mingw. I
>> >>> >> >>> >> >> noticed in
>> >>> >> >>> >> >> your
>> >>> >> >>> >> >> How
>> >>> >> >>> >> >> to Build doc that you are using mingwbuilds version.
>> >>> >> >>> >> >> Could
>> >>> >> >>> >> >> you
>> >>> >> >>> >> >> advise: should I uninstalled mingw/msys and use just
>> >>> >> >>> >> >> mingwbuilds?
>> >>> >> >>> >> >> (I.e. better to start clean).
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> Thanks!
>> >>> >> >>> >> >> steven
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> On Thu, Aug 15, 2013 at 8:44 AM, Michael Gogins
>> >>> >> >>> >> >> <michael.gogins@gmail.com> wrote:
>> >>> >> >>> >> >> > Sorry, fumble fingers.
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > The problem I see is that the csnd6 low level JNI Java
>> >>> >> >>> >> >> > class
>> >>> >> >>> >> >> > needs
>> >>> >> >>> >> >> > to
>> >>> >> >>> >> >> > call
>> >>> >> >>> >> >> > SWIG's initializer in _csound.dll. The initializer is
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > thing
>> >>> >> >>> >> >> > not
>> >>> >> >>> >> >> > found.
>> >>> >> >>> >> >> > Without it we don't have Java Csound.
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > Still no solution, though. The initializer is in
>> >>> >> >>> >> >> > _jcsound.dll.
>> >>> >> >>> >> >> > Java
>> >>> >> >>> >> >> > doesn't
>> >>> >> >>> >> >> > find it. Java finds the CsoundEditor.jar (a better test
>> >>> >> >>> >> >> > than
>> >>> >> >>> >> >> > CSDPlayer.jar
>> >>> >> >>> >> >> > because it loads csnd6 right away) and loads and begins
>> >>> >> >>> >> >> > to
>> >>> >> >>> >> >> > run
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > Java
>> >>> >> >>> >> >> > code. The first thing to run is the static block that
>> >>> >> >>> >> >> > loads
>> >>> >> >>> >> >> > _jcsound.dll
>> >>> >> >>> >> >> > and
>> >>> >> >>> >> >> > calls the initializer. There are 4 steps here: locate
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > DLL,
>> >>> >> >>> >> >> > load
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > DLL,
>> >>> >> >>> >> >> > find the initializer function, call the initializer. We
>> >>> >> >>> >> >> > know
>> >>> >> >>> >> >> > that
>> >>> >> >>> >> >> > we
>> >>> >> >>> >> >> > don't
>> >>> >> >>> >> >> > find the initializer. I think it fails at the load
>> >>> >> >>> >> >> > stage
>> >>> >> >>> >> >> > because I
>> >>> >> >>> >> >> > have
>> >>> >> >>> >> >> > DLL
>> >>> >> >>> >> >> > hell on my notebook right now and I seem to recall
>> >>> >> >>> >> >> > catching
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > DLL
>> >>> >> >>> >> >> > load.
>> >>> >> >>> >> >> > I'll verify that later. In other words I think it
>> >>> >> >>> >> >> > starts to
>> >>> >> >>> >> >> > load
>> >>> >> >>> >> >> > _jcsound.dll and then there is a problem when
>> >>> >> >>> >> >> > _jcsound.dll
>> >>> >> >>> >> >> > is
>> >>> >> >>> >> >> > loading
>> >>> >> >>> >> >> > other
>> >>> >> >>> >> >> > things or initializating its own things.
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > ===========================
>> >>> >> >>> >> >> > Michael Gogins
>> >>> >> >>> >> >> > Irreducible Productions
>> >>> >> >>> >> >> > http://michaelgogins.tumblr.com
>> >>> >> >>> >> >> > Michael dot Gogins at gmail dot com
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > On Thu, Aug 15, 2013 at 8:32 AM, Michael Gogins
>> >>> >> >>> >> >> > <michael.gogins@gmail.com>
>> >>> >> >>> >> >> > wrote:
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >> The problem I see is that the Csound JNI
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >> ===========================
>> >>> >> >>> >> >> >> Michael Gogins
>> >>> >> >>> >> >> >> Irreducible Productions
>> >>> >> >>> >> >> >> http://michaelgogins.tumblr.com
>> >>> >> >>> >> >> >> Michael dot Gogins at gmail dot com
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >> On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi
>> >>> >> >>> >> >> >> <stevenyi@gmail.com>
>> >>> >> >>> >> >> >> wrote:
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> Hi Michael,
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> I'm wondering if this is the same issue. I need to
>> >>> >> >>> >> >> >>> re-test,
>> >>> >> >>> >> >> >>> but
>> >>> >> >>> >> >> >>> when I
>> >>> >> >>> >> >> >>> was trying things out I thought I didn't quite get a
>> >>> >> >>> >> >> >>> crash,
>> >>> >> >>> >> >> >>> just
>> >>> >> >>> >> >> >>> an
>> >>> >> >>> >> >> >>> UnsatisfiedLinkError exception for the function I was
>> >>> >> >>> >> >> >>> trying
>> >>> >> >>> >> >> >>> to
>> >>> >> >>> >> >> >>> call,
>> >>> >> >>> >> >> >>> which I could catch and do something about.  The test
>> >>> >> >>> >> >> >>> java
>> >>> >> >>> >> >> >>> class
>> >>> >> >>> >> >> >>> I
>> >>> >> >>> >> >> >>> put
>> >>> >> >>> >> >> >>> into the bug may not be doing any catching, but then
>> >>> >> >>> >> >> >>> Java
>> >>> >> >>> >> >> >>> should
>> >>> >> >>> >> >> >>> have
>> >>> >> >>> >> >> >>> just exited rather than crash.
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> steven
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
>> >>> >> >>> >> >> >>> <michael.gogins@gmail.com> wrote:
>> >>> >> >>> >> >> >>> > Gdb tells me Java crash is caused by linstd++-6.dll
>> >>> >> >>> >> >> >>> > of
>> >>> >> >>> >> >> >>> > wrong
>> >>> >> >>> >> >> >>> > model
>> >>> >> >>> >> >> >>> > found in
>> >>> >> >>> >> >> >>> > SysWOW64, where it does not belong and was put by
>> >>> >> >>> >> >> >>> > some
>> >>> >> >>> >> >> >>> > incompetent
>> >>> >> >>> >> >> >>> > installer. I'm afraid to remove it because I did
>> >>> >> >>> >> >> >>> > once
>> >>> >> >>> >> >> >>> > before
>> >>> >> >>> >> >> >>> > and
>> >>> >> >>> >> >> >>> > lost
>> >>> >> >>> >> >> >>> > my
>> >>> >> >>> >> >> >>> > user profile.
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> > ------------------------------------------------------------------------------
>> >>> >> >>> >> >> >>> > Get 100% visibility into Java/.NET code with
>> >>> >> >>> >> >> >>> > AppDynamics
>> >>> >> >>> >> >> >>> > Lite!
>> >>> >> >>> >> >> >>> > It's a free troubleshooting tool designed for
>> >>> >> >>> >> >> >>> > production.
>> >>> >> >>> >> >> >>> > Get down to code-level detail for bottlenecks, with
>> >>> >> >>> >> >> >>> > <2%
>> >>> >> >>> >> >> >>> > overhead.
>> >>> >> >>> >> >> >>> > Download for free and get started troubleshooting
>> >>> >> >>> >> >> >>> > in
>> >>> >> >>> >> >> >>> > minutes.
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >>> >> >>> >> >> >>> > _______________________________________________
>> >>> >> >>> >> >> >>> > Csound-devel mailing list
>> >>> >> >>> >> >> >>> > Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> ------------------------------------------------------------------------------
>> >>> >> >>> >> >> >>> Get 100% visibility into Java/.NET code with
>> >>> >> >>> >> >> >>> AppDynamics
>> >>> >> >>> >> >> >>> Lite!
>> >>> >> >>> >> >> >>> It's a free troubleshooting tool designed for
>> >>> >> >>> >> >> >>> production.
>> >>> >> >>> >> >> >>> Get down to code-level detail for bottlenecks, with
>> >>> >> >>> >> >> >>> <2%
>> >>> >> >>> >> >> >>> overhead.
>> >>> >> >>> >> >> >>> Download for free and get started troubleshooting in
>> >>> >> >>> >> >> >>> minutes.
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >>> >> >>> >> >> >>> _______________________________________________
>> >>> >> >>> >> >> >>> Csound-devel mailing list
>> >>> >> >>> >> >> >>> Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > ------------------------------------------------------------------------------
>> >>> >> >>> >> >> > Get 100% visibility into Java/.NET code with
>> >>> >> >>> >> >> > AppDynamics
>> >>> >> >>> >> >> > Lite!
>> >>> >> >>> >> >> > It's a free troubleshooting tool designed for
>> >>> >> >>> >> >> > production.
>> >>> >> >>> >> >> > Get down to code-level detail for bottlenecks, with <2%
>> >>> >> >>> >> >> > overhead.
>> >>> >> >>> >> >> > Download for free and get started troubleshooting in
>> >>> >> >>> >> >> > minutes.
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >>> >> >>> >> >> > _______________________________________________
>> >>> >> >>> >> >> > Csound-devel mailing list
>> >>> >> >>> >> >> > Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> ------------------------------------------------------------------------------
>> >>> >> >>> >> >> Introducing Performance Central, a new site from
>> >>> >> >>> >> >> SourceForge
>> >>> >> >>> >> >> and
>> >>> >> >>> >> >> AppDynamics. Performance Central is your source for news,
>> >>> >> >>> >> >> insights,
>> >>> >> >>> >> >> analysis and resources for efficient Application
>> >>> >> >>> >> >> Performance
>> >>> >> >>> >> >> Management.
>> >>> >> >>> >> >> Visit us today!
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> _______________________________________________
>> >>> >> >>> >> >> Csound-devel mailing list
>> >>> >> >>> >> >> Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> > ------------------------------------------------------------------------------
>> >>> >> >>> >> > Introducing Performance Central, a new site from
>> >>> >> >>> >> > SourceForge
>> >>> >> >>> >> > and
>> >>> >> >>> >> > AppDynamics. Performance Central is your source for news,
>> >>> >> >>> >> > insights,
>> >>> >> >>> >> > analysis and resources for efficient Application
>> >>> >> >>> >> > Performance
>> >>> >> >>> >> > Management.
>> >>> >> >>> >> > Visit us today!
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> >>> >> >>> >> > _______________________________________________
>> >>> >> >>> >> > Csound-devel mailing list
>> >>> >> >>> >> > Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >> ------------------------------------------------------------------------------
>> >>> >> >>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>> >>> >> >>> >> 2012,
>> >>> >> >>> >> more!
>> >>> >> >>> >> Discover the easy way to master current and previous
>> >>> >> >>> >> Microsoft
>> >>> >> >>> >> technologies
>> >>> >> >>> >> and advance your career. Get an incredible 1,500+ hours of
>> >>> >> >>> >> step-by-step
>> >>> >> >>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> >>> >>
>> >>> >> >>> >> _______________________________________________
>> >>> >> >>> >> Csound-devel mailing list
>> >>> >> >>> >> Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> > ------------------------------------------------------------------------------
>> >>> >> >>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>> >>> >> >>> > 2012,
>> >>> >> >>> > more!
>> >>> >> >>> > Discover the easy way to master current and previous
>> >>> >> >>> > Microsoft
>> >>> >> >>> > technologies
>> >>> >> >>> > and advance your career. Get an incredible 1,500+ hours of
>> >>> >> >>> > step-by-step
>> >>> >> >>> > tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> >>> > _______________________________________________
>> >>> >> >>> > Csound-devel mailing list
>> >>> >> >>> > Csound-devel@lists.sourceforge.net
>> >>> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>> ------------------------------------------------------------------------------
>> >>> >> >>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>> >>> >> >>> 2012,
>> >>> >> >>> more!
>> >>> >> >>> Discover the easy way to master current and previous Microsoft
>> >>> >> >>> technologies
>> >>> >> >>> and advance your career. Get an incredible 1,500+ hours of
>> >>> >> >>> step-by-step
>> >>> >> >>> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> >>> _______________________________________________
>> >>> >> >>> Csound-devel mailing list
>> >>> >> >>> Csound-devel@lists.sourceforge.net
>> >>> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >> ------------------------------------------------------------------------------
>> >>> >> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >>> >> >> more!
>> >>> >> >> Discover the easy way to master current and previous Microsoft
>> >>> >> >> technologies
>> >>> >> >> and advance your career. Get an incredible 1,500+ hours of
>> >>> >> >> step-by-step
>> >>> >> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> >> _______________________________________________
>> >>> >> >> Csound-devel mailing list
>> >>> >> >> Csound-devel@lists.sourceforge.net
>> >>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> ------------------------------------------------------------------------------
>> >>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >>> >> more!
>> >>> >> Discover the easy way to master current and previous Microsoft
>> >>> >> technologies
>> >>> >> and advance your career. Get an incredible 1,500+ hours of
>> >>> >> step-by-step
>> >>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> _______________________________________________
>> >>> >> Csound-devel mailing list
>> >>> >> Csound-devel@lists.sourceforge.net
>> >>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> > ------------------------------------------------------------------------------
>> >>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >>> > more!
>> >>> > Discover the easy way to master current and previous Microsoft
>> >>> > technologies
>> >>> > and advance your career. Get an incredible 1,500+ hours of
>> >>> > step-by-step
>> >>> > tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >
>> >>> >
>> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> > _______________________________________________
>> >>> > Csound-devel mailing list
>> >>> > Csound-devel@lists.sourceforge.net
>> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >
>> >>>
>> >>>
>> >>>
>> >>> ------------------------------------------------------------------------------
>> >>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> >>> Discover the easy way to master current and previous Microsoft
>> >>> technologies
>> >>> and advance your career. Get an incredible 1,500+ hours of
>> >>> step-by-step
>> >>> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>>
>> >>>
>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> _______________________________________________
>> >>> Csound-devel mailing list
>> >>> Csound-devel@lists.sourceforge.net
>> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> >> Discover the easy way to master current and previous Microsoft
>> >> technologies
>> >> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>
>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>>
>>
>> ------------------------------------------------------------------------------
>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> Discover the easy way to master current and previous Microsoft
>> technologies
>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> tutorial videos with LearnDevNow. Subscribe today and save!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel




--

Saludos,
Felipe Sateler

Date2013-08-28 21:25
FromSteven Yi
SubjectRe: [Cs-dev] Java crash on windows
Sounds good.  I've pushed the changes just now and with the latest it
seems to be alright.  Note: I did do an update of all csnd -> csnd6
for module declarations for SWIG, as well as for csnd6.dll instead of
csnd.dll.  This change for csnd6 instead of csnd will mean all
platforms may have to modify installers for packaging csnd6.dll or
libcsnd6.so/.dylib instead of csnd.dll and libcsnd.so/.dylib.

As for CMake, yeah, sometimes it's a bit of a bear. :)  On the whole I
find it alright enough and fairly clean.  Seems like some things are
harder to figure out, but at the same time, less ways to shoot
yourself in the foot than other systems and tends to "just work" more.

On Wed, Aug 28, 2013 at 3:51 PM, Michael Gogins
 wrote:
> Yes, I will pull, rebuild, and test all tonight.
>
> I'm not as familiar (yet) with CMake as I was with SWIG, so don't
> necessarily know how to set things up properly. I tend to hack till things
> work for me, and let it go at that. I'm much more disciplined when it comes
> to the actual code.
>
>
>
> Thanks,
> Mike
>
>
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Wed, Aug 28, 2013 at 3:47 PM, Steven Yi  wrote:
>>
>> Hi Michael,
>>
>> Success!  It took a few tries, as I tried initially to just set flags
>> in CMAKE_CXX_FLAGS and CMAKE_C_FLAGS but that did not work.  I then
>> tried setting CMAKE_SHARED_LINKER_FLAGS and that also did not work.
>> Ultimately, this did it:
>>
>>     set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--add-stdcall-alias
>> -Wl,--enable-stdcall-fixup")
>>
>> I don't know if the stdcall-fixup is necessary.  The swig
>> documentation for Java had some example and they only used
>> stdcall-alias.
>>
>> I've modified the root CmakeLists.txt to have:
>>
>> if(WIN32 AND NOT MSVC)
>>     if(EXISTS "C:/MinGW/include")
>>         include_directories(C:/MinGW/include)
>>     else()
>>         MESSAGE(STATUS "MinGW include dir not found")
>>     endif()
>>
>>     set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS}
>> -Wl,--add-stdcall-alias")
>> endif()
>>
>> I'm doing one test build now to see if that's all that's necessary to
>> fix the build, or if one of the other places I added it is required.
>> I think that because it's applied to modules and not shared libs,
>> it'll get applied to all of the swig stuff as they use module, but
>> might not get applied to other places.  We could add an additional one
>> for CMAKE_SHARED_LINKER_FLAGS if desired.
>>
>> I'll make a commit once this build finishes and I've retested.  I've
>> only tested as far as that API6Test java class. Could you perhaps
>> rebuild/retest later when you have a chance?
>>
>> Thanks!
>> steven
>>
>>
>>
>>
>> On Wed, Aug 28, 2013 at 3:23 PM, Michael Gogins
>>  wrote:
>> > These are only for Windows.
>> >
>> > The only harm from defining these options globally is that more symbols
>> > are
>> > exported by the shared libraries, so the dynamic loads might be a tad
>> > slower. Once loaded I don't think calls would be noticeably slower. So I
>> > would go ahead and make these global on Windows. Other things that I
>> > always
>> > define globally on Windows, and should probably be the defaults on
>> > Windows:
>> >
>> > -g -O2 -std=gnu++11 -fopenmp -march=nocona -DNDEBUG -I/usr/local/include
>> > -L/usr/local/lib -mstackrealign -Wl,--add-stdcall-alias
>> > -Wl,--enable-stdcall-fixup
>> >
>> > I don't know why I didn't think about the stdcall possibility this time
>> > --
>> > when it was I who originally added these options for this sort of reason
>> > in
>> > the first place!
>> >
>> > Best,
>> > Mike
>> >
>> >
>> > ===========================
>> > Michael Gogins
>> > Irreducible Productions
>> > http://michaelgogins.tumblr.com
>> > Michael dot Gogins at gmail dot com
>> >
>> >
>> > On Wed, Aug 28, 2013 at 3:09 PM, Steven Yi  wrote:
>> >>
>> >> I'm hopeful this will be it. :)  I tried adding it to my Custom.cmake
>> >> for now and am doing a compile.  I grepped through CS5's SConstruct
>> >> and surely enough there's numerous places where
>> >> -Wl,--add-stdcall-alias is used, and a few places where
>> >> -Wl,--enable-stdcall-fixup is used.
>> >>
>> >> I should be able to test in about 10 minutes; assuming all is good,
>> >> I'm wondering should this just be enabled as a global flag if on
>> >> Windows, or only for certain libs?
>> >>
>> >> As for finding a fix, glad that none of my other guesses were correct
>> >> as I think they'd be much more difficult to solve. :P
>> >>
>> >> On Wed, Aug 28, 2013 at 2:40 PM, Michael Gogins
>> >>  wrote:
>> >> > If that's the case, then changing the linker flags should do the
>> >> > trick.
>> >> > @8
>> >> > marks the function as stdcall calling convention with 8 bytes to be
>> >> > popped
>> >> > off the stack after returning from the call.
>> >> >
>> >> > To CFLAGS and CXXFLAGS for the DLL, add -"Wl,--add-stdcall-alias
>> >> > -Wl,--enable-stdcall-fixup". I think only the first is required but I
>> >> > used
>> >> > to add both to everything just to cover my bases.
>> >> >
>> >> > --add-stdcall-alias                Export symbols with and without
>> >> > @nn
>> >> > --disable-stdcall-fixup            Don't link _sym to _sym@nn DON'T
>> >> > USE!
>> >> > --enable-stdcall-fixup             Link _sym to _sym@nn without
>> >> > warnings
>> >> >
>> >> > Best,
>> >> > Mike
>> >> >
>> >> >
>> >> > ===========================
>> >> > Michael Gogins
>> >> > Irreducible Productions
>> >> > http://michaelgogins.tumblr.com
>> >> > Michael dot Gogins at gmail dot com
>> >> >
>> >> >
>> >> > On Wed, Aug 28, 2013 at 1:25 PM, Steven Yi 
>> >> > wrote:
>> >> >>
>> >> >> I found something that looks useful.  In _jcsound.dll from CS5,
>> >> >> DependencyWalker shows symbols like:
>> >> >>
>> >> >> Java_csnd_csndJNI_swig_1module_1init
>> >> >> Java_csnd_csndJNI_swig_1module_1init@8
>> >> >>
>> >> >> while CS6 only has:
>> >> >>
>> >> >> Java_csnd6_csnd6JNI_swig_1module_1init@8
>> >> >>
>> >> >> I get the impression that the PUBLIC attribute isn't working
>> >> >> correctly, or something along those lines.  I've got to take a break
>> >> >> but will continue on with this after lunch.
>> >> >>
>> >> >> On Wed, Aug 28, 2013 at 12:22 PM, Steven Yi 
>> >> >> wrote:
>> >> >> > That didn't seem to affect anything unfortunately. Continuing
>> >> >> > on....
>> >> >> >
>> >> >> > On Wed, Aug 28, 2013 at 11:59 AM, Michael Gogins
>> >> >> >  wrote:
>> >> >> >> Well, that's certainly a mistake.
>> >> >> >>
>> >> >> >> On Aug 28, 2013 11:59 AM, "Steven Yi"  wrote:
>> >> >> >>>
>> >> >> >>> That sounds reasonable, but the Csound5 API still loads for me
>> >> >> >>> fine
>> >> >> >>> with Blue, using the same VM.  I think that'd rule that one out.
>> >> >> >>> I
>> >> >> >>> saw that csound.h has "%module csnd" isntead of "%module csnd6".
>> >> >> >>> I'm
>> >> >> >>> not sure that's it, as that seems like it'd affect other
>> >> >> >>> platforms,
>> >> >> >>> but I'm giving it a try now just in case.  (compile should be
>> >> >> >>> done
>> >> >> >>> in
>> >> >> >>> 15-20 mins... ugh...)
>> >> >> >>>
>> >> >> >>> On Wed, Aug 28, 2013 at 11:35 AM, Michael Gogins
>> >> >> >>>  wrote:
>> >> >> >>> > If I were you, I would try compiling the library with both the
>> >> >> >>> > wrapper
>> >> >> >>> > and
>> >> >> >>> > the wrapped lib, just to rule that out.
>> >> >> >>> >
>> >> >> >>> > There may well have been some change in the way the Java VM
>> >> >> >>> > and
>> >> >> >>> > library
>> >> >> >>> > link. You could try Oracle issues on Java regarding that.
>> >> >> >>> >
>> >> >> >>> > Best,
>> >> >> >>> > Mike
>> >> >> >>> >
>> >> >> >>> >
>> >> >> >>> > ===========================
>> >> >> >>> > Michael Gogins
>> >> >> >>> > Irreducible Productions
>> >> >> >>> > http://michaelgogins.tumblr.com
>> >> >> >>> > Michael dot Gogins at gmail dot com
>> >> >> >>> >
>> >> >> >>> >
>> >> >> >>> > On Wed, Aug 28, 2013 at 11:18 AM, Steven Yi
>> >> >> >>> > 
>> >> >> >>> > wrote:
>> >> >> >>> >>
>> >> >> >>> >> Just an update, I tried modifying to use libcsnd6 and linking
>> >> >> >>> >> to
>> >> >> >>> >> that,
>> >> >> >>> >> but it had no affect on the Java test.  I did see in the SWIG
>> >> >> >>> >> manual
>> >> >> >>> >> for Java that they have an error shown similar to ours, with
>> >> >> >>> >> the
>> >> >> >>> >> documentation:
>> >> >> >>> >>
>> >> >> >>> >> "This error usually indicates that you forgot to include some
>> >> >> >>> >> object
>> >> >> >>> >> files or libraries in the linking of the native library file.
>> >> >> >>> >> Make
>> >> >> >>> >> sure you compile both the SWIG wrapper file and the code you
>> >> >> >>> >> are
>> >> >> >>> >> wrapping into the native library file. If you forget to
>> >> >> >>> >> compile
>> >> >> >>> >> and
>> >> >> >>> >> link in the SWIG wrapper file into your native library file,
>> >> >> >>> >> you
>> >> >> >>> >> will
>> >> >> >>> >> get a message similar to the following:"
>> >> >> >>> >>
>> >> >> >>> >> However, I don't think this is quite the issue as the same
>> >> >> >>> >> Cmake
>> >> >> >>> >> script works on OSX and Linux. I did see an email about
>> >> >> >>> >> possibly
>> >> >> >>> >> needing to compile the library with both the wrapper and the
>> >> >> >>> >> wrapped
>> >> >> >>> >> lib, but that seemed odd as we had things working with CS5.
>> >> >> >>> >>
>> >> >> >>> >> I'll continue to explore here.
>> >> >> >>> >>
>> >> >> >>> >> On Tue, Aug 27, 2013 at 5:19 PM, Steven Yi
>> >> >> >>> >> 
>> >> >> >>> >> wrote:
>> >> >> >>> >> > Thanks for the info, at least we can eliminate that
>> >> >> >>> >> > possibility
>> >> >> >>> >> > then.
>> >> >> >>> >> > I'll hopefully get further along tomorrow and will report
>> >> >> >>> >> > anything I
>> >> >> >>> >> > find.
>> >> >> >>> >> >
>> >> >> >>> >> > On Tue, Aug 27, 2013 at 5:13 PM, Michael Gogins
>> >> >> >>> >> >  wrote:
>> >> >> >>> >> >> The csnd name should be versioned but I don't have 5 on my
>> >> >> >>> >> >> machine
>> >> >> >>> >> >> at
>> >> >> >>> >> >> all.
>> >> >> >>> >> >>
>> >> >> >>> >> >> On Aug 27, 2013 5:03 PM, "Steven Yi" 
>> >> >> >>> >> >> wrote:
>> >> >> >>> >> >>>
>> >> >> >>> >> >>> The compile paths here are a mess so I'm going to need to
>> >> >> >>> >> >>> sort
>> >> >> >>> >> >>> that
>> >> >> >>> >> >>> out here locally.  However, I'm wondering if at runtime
>> >> >> >>> >> >>> if
>> >> >> >>> >> >>> the
>> >> >> >>> >> >>> wrong
>> >> >> >>> >> >>> dll is getting loaded due to csnd.dll being the same name
>> >> >> >>> >> >>> in
>> >> >> >>> >> >>> CS5
>> >> >> >>> >> >>> and
>> >> >> >>> >> >>> CS6.  Perhaps we should rename that to see if that's the
>> >> >> >>> >> >>> source
>> >> >> >>> >> >>> of
>> >> >> >>> >> >>> issues for Java (possible CsoundPerformanceThread too?).
>> >> >> >>> >> >>> I'm
>> >> >> >>> >> >>> imagining
>> >> >> >>> >> >>> if Csound runs multiple times alright, but
>> >> >> >>> >> >>> CsoundPerformanceThread
>> >> >> >>> >> >>> does not, then it could be possible that the csound6
>> >> >> >>> >> >>> library
>> >> >> >>> >> >>> is
>> >> >> >>> >> >>> loading fine, but the cs5 version of csnd is loading and
>> >> >> >>> >> >>> causing
>> >> >> >>> >> >>> issues.
>> >> >> >>> >> >>>
>> >> >> >>> >> >>> On Tue, Aug 27, 2013 at 4:52 PM, Michael Gogins
>> >> >> >>> >> >>>  wrote:
>> >> >> >>> >> >>> > In my build I'm very careful about the actual library
>> >> >> >>> >> >>> > paths.
>> >> >> >>> >> >>> > I
>> >> >> >>> >> >>> > look
>> >> >> >>> >> >>> > at
>> >> >> >>> >> >>> > the
>> >> >> >>> >> >>> > CMakeCache.txt, I look at the compiler and linker
>> >> >> >>> >> >>> > commands,
>> >> >> >>> >> >>> > and I
>> >> >> >>> >> >>> > look
>> >> >> >>> >> >>> > at
>> >> >> >>> >> >>> > what libraries actually get loaded during a run (there
>> >> >> >>> >> >>> > are
>> >> >> >>> >> >>> > various
>> >> >> >>> >> >>> > tools
>> >> >> >>> >> >>> > for
>> >> >> >>> >> >>> > doing this on Windows). I am careful because yes, it
>> >> >> >>> >> >>> > has
>> >> >> >>> >> >>> > been
>> >> >> >>> >> >>> > a
>> >> >> >>> >> >>> > problem
>> >> >> >>> >> >>> > for
>> >> >> >>> >> >>> > me, as you saw from my earlier emails.
>> >> >> >>> >> >>> >
>> >> >> >>> >> >>> > But we should talk about how to make this better on
>> >> >> >>> >> >>> > Windows.
>> >> >> >>> >> >>> >
>> >> >> >>> >> >>> > Best,
>> >> >> >>> >> >>> > Mike
>> >> >> >>> >> >>> >
>> >> >> >>> >> >>> >
>> >> >> >>> >> >>> > ===========================
>> >> >> >>> >> >>> > Michael Gogins
>> >> >> >>> >> >>> > Irreducible Productions
>> >> >> >>> >> >>> > http://michaelgogins.tumblr.com
>> >> >> >>> >> >>> > Michael dot Gogins at gmail dot com
>> >> >> >>> >> >>> >
>> >> >> >>> >> >>> >
>> >> >> >>> >> >>> > On Tue, Aug 27, 2013 at 4:15 PM, Steven Yi
>> >> >> >>> >> >>> > 
>> >> >> >>> >> >>> > wrote:
>> >> >> >>> >> >>> >>
>> >> >> >>> >> >>> >> Hi Michael and All,
>> >> >> >>> >> >>> >>
>> >> >> >>> >> >>> >> I just spent a bit of time looking into this and found
>> >> >> >>> >> >>> >> some
>> >> >> >>> >> >>> >> very
>> >> >> >>> >> >>> >> heinous stuff going on in windows.  It looks to me
>> >> >> >>> >> >>> >> that
>> >> >> >>> >> >>> >> CMake
>> >> >> >>> >> >>> >> actually
>> >> >> >>> >> >>> >> found all types of libraries from the PATH to use.
>> >> >> >>> >> >>> >> That
>> >> >> >>> >> >>> >> meant
>> >> >> >>> >> >>> >> some
>> >> >> >>> >> >>> >> libraries from C:\Program Files (x86)\Csound\bin were
>> >> >> >>> >> >>> >> found,
>> >> >> >>> >> >>> >> others
>> >> >> >>> >> >>> >> from C:\Program Files (x86)\Csound6\bin, and others
>> >> >> >>> >> >>> >> from
>> >> >> >>> >> >>> >> my
>> >> >> >>> >> >>> >> MSYS
>> >> >> >>> >> >>> >> /usr/local/lib and custom set paths.  I get the
>> >> >> >>> >> >>> >> impression
>> >> >> >>> >> >>> >> this
>> >> >> >>> >> >>> >> could
>> >> >> >>> >> >>> >> be a source of some of the issues we're seeing both
>> >> >> >>> >> >>> >> with
>> >> >> >>> >> >>> >> the
>> >> >> >>> >> >>> >> Java
>> >> >> >>> >> >>> >> library and other windows oddities.
>> >> >> >>> >> >>> >>
>> >> >> >>> >> >>> >> I mostly noticed this in looking at my CmakeCache.txt.
>> >> >> >>> >> >>> >> I'm
>> >> >> >>> >> >>> >> wondering
>> >> >> >>> >> >>> >> if the Java lib is linking to Csound 5's csnd.dll
>> >> >> >>> >> >>> >> instead
>> >> >> >>> >> >>> >> of
>> >> >> >>> >> >>> >> Csound6's.  If that's the case, then perhaps we can
>> >> >> >>> >> >>> >> change
>> >> >> >>> >> >>> >> csnd
>> >> >> >>> >> >>> >> to
>> >> >> >>> >> >>> >> be
>> >> >> >>> >> >>> >> csnd6 instead.
>> >> >> >>> >> >>> >>
>> >> >> >>> >> >>> >> I've got to move on for the day, but will come back to
>> >> >> >>> >> >>> >> this
>> >> >> >>> >> >>> >> tomorrow.
>> >> >> >>> >> >>> >>
>> >> >> >>> >> >>> >>
>> >> >> >>> >> >>> >>
>> >> >> >>> >> >>> >> On Tue, Aug 20, 2013 at 11:14 PM, Michael Gogins
>> >> >> >>> >> >>> >>  wrote:
>> >> >> >>> >> >>> >> > People do seem to be switching to mingw-builds. I am
>> >> >> >>> >> >>> >> > using
>> >> >> >>> >> >>> >> > 4.8.1,
>> >> >> >>> >> >>> >> > dwarf-2,
>> >> >> >>> >> >>> >> > posix threads, 32 bits. If you use the same version
>> >> >> >>> >> >>> >> > we
>> >> >> >>> >> >>> >> > have a
>> >> >> >>> >> >>> >> > much
>> >> >> >>> >> >>> >> > better
>> >> >> >>> >> >>> >> > chance of understanding what is going on.
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >> > I think there is something pretty subtle going on
>> >> >> >>> >> >>> >> > both
>> >> >> >>> >> >>> >> > with
>> >> >> >>> >> >>> >> > Java
>> >> >> >>> >> >>> >> > and
>> >> >> >>> >> >>> >> > with
>> >> >> >>> >> >>> >> > the CsoundPerformanceThread.
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >> > I have proved that the existence of incompatible
>> >> >> >>> >> >>> >> > MinGW
>> >> >> >>> >> >>> >> > runtime
>> >> >> >>> >> >>> >> > libraries
>> >> >> >>> >> >>> >> > can
>> >> >> >>> >> >>> >> > be a problem. I have also proved that that is not
>> >> >> >>> >> >>> >> > the
>> >> >> >>> >> >>> >> > ONLY
>> >> >> >>> >> >>> >> > problem,
>> >> >> >>> >> >>> >> > at
>> >> >> >>> >> >>> >> > least, on my computer. I succeeded finally in
>> >> >> >>> >> >>> >> > removing
>> >> >> >>> >> >>> >> > incompatible
>> >> >> >>> >> >>> >> > MinGW
>> >> >> >>> >> >>> >> > runtime libraries from my SysWOW64 directory (!) so
>> >> >> >>> >> >>> >> > I
>> >> >> >>> >> >>> >> > now
>> >> >> >>> >> >>> >> > can
>> >> >> >>> >> >>> >> > run
>> >> >> >>> >> >>> >> > CsoundAC
>> >> >> >>> >> >>> >> > code, but I am still having problems with the
>> >> >> >>> >> >>> >> > performance
>> >> >> >>> >> >>> >> > thread
>> >> >> >>> >> >>> >> > and
>> >> >> >>> >> >>> >> > with
>> >> >> >>> >> >>> >> > Java. Different computers behave differently, e.g. I
>> >> >> >>> >> >>> >> > can
>> >> >> >>> >> >>> >> > run
>> >> >> >>> >> >>> >> > CsoundQt
>> >> >> >>> >> >>> >> > at
>> >> >> >>> >> >>> >> > work but not at home.
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >> > In my programming life, these errors can arise from
>> >> >> >>> >> >>> >> > several
>> >> >> >>> >> >>> >> > errors
>> >> >> >>> >> >>> >> > but
>> >> >> >>> >> >>> >> > one
>> >> >> >>> >> >>> >> > common source is uninitialized members of structs
>> >> >> >>> >> >>> >> > and
>> >> >> >>> >> >>> >> > classes
>> >> >> >>> >> >>> >> > that
>> >> >> >>> >> >>> >> > contain
>> >> >> >>> >> >>> >> > zeroes on some machines and junk on other machines.
>> >> >> >>> >> >>> >> > Or
>> >> >> >>> >> >>> >> > writes
>> >> >> >>> >> >>> >> > past
>> >> >> >>> >> >>> >> > buffer
>> >> >> >>> >> >>> >> > ends that poke holes in junk on some machines and in
>> >> >> >>> >> >>> >> > vital
>> >> >> >>> >> >>> >> > organs
>> >> >> >>> >> >>> >> > on
>> >> >> >>> >> >>> >> > other
>> >> >> >>> >> >>> >> > machines. Having multiple threads makes this
>> >> >> >>> >> >>> >> > harder...
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >> > Regards,
>> >> >> >>> >> >>> >> > Mike
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >> > I wish I had something like valgrind on Windows but
>> >> >> >>> >> >>> >> > I
>> >> >> >>> >> >>> >> > can't
>> >> >> >>> >> >>> >> > afford
>> >> >> >>> >> >>> >> > the
>> >> >> >>> >> >>> >> > equivalent.
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >> > ===========================
>> >> >> >>> >> >>> >> > Michael Gogins
>> >> >> >>> >> >>> >> > Irreducible Productions
>> >> >> >>> >> >>> >> > http://michaelgogins.tumblr.com
>> >> >> >>> >> >>> >> > Michael dot Gogins at gmail dot com
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >> > On Tue, Aug 20, 2013 at 10:56 PM, Steven Yi
>> >> >> >>> >> >>> >> > 
>> >> >> >>> >> >>> >> > wrote:
>> >> >> >>> >> >>> >> >>
>> >> >> >>> >> >>> >> >> Hi Michael,
>> >> >> >>> >> >>> >> >>
>> >> >> >>> >> >>> >> >> I was trying to setup to get a build working on
>> >> >> >>> >> >>> >> >> Windows
>> >> >> >>> >> >>> >> >> to
>> >> >> >>> >> >>> >> >> see
>> >> >> >>> >> >>> >> >> if I
>> >> >> >>> >> >>> >> >> can further diagnose what's going on.  I currently
>> >> >> >>> >> >>> >> >> have
>> >> >> >>> >> >>> >> >> the
>> >> >> >>> >> >>> >> >> stock
>> >> >> >>> >> >>> >> >> mingw/msys installed from sf.net/projects/mingw. I
>> >> >> >>> >> >>> >> >> noticed in
>> >> >> >>> >> >>> >> >> your
>> >> >> >>> >> >>> >> >> How
>> >> >> >>> >> >>> >> >> to Build doc that you are using mingwbuilds
>> >> >> >>> >> >>> >> >> version.
>> >> >> >>> >> >>> >> >> Could
>> >> >> >>> >> >>> >> >> you
>> >> >> >>> >> >>> >> >> advise: should I uninstalled mingw/msys and use
>> >> >> >>> >> >>> >> >> just
>> >> >> >>> >> >>> >> >> mingwbuilds?
>> >> >> >>> >> >>> >> >> (I.e. better to start clean).
>> >> >> >>> >> >>> >> >>
>> >> >> >>> >> >>> >> >> Thanks!
>> >> >> >>> >> >>> >> >> steven
>> >> >> >>> >> >>> >> >>
>> >> >> >>> >> >>> >> >> On Thu, Aug 15, 2013 at 8:44 AM, Michael Gogins
>> >> >> >>> >> >>> >> >>  wrote:
>> >> >> >>> >> >>> >> >> > Sorry, fumble fingers.
>> >> >> >>> >> >>> >> >> >
>> >> >> >>> >> >>> >> >> > The problem I see is that the csnd6 low level JNI
>> >> >> >>> >> >>> >> >> > Java
>> >> >> >>> >> >>> >> >> > class
>> >> >> >>> >> >>> >> >> > needs
>> >> >> >>> >> >>> >> >> > to
>> >> >> >>> >> >>> >> >> > call
>> >> >> >>> >> >>> >> >> > SWIG's initializer in _csound.dll. The
>> >> >> >>> >> >>> >> >> > initializer
>> >> >> >>> >> >>> >> >> > is
>> >> >> >>> >> >>> >> >> > the
>> >> >> >>> >> >>> >> >> > thing
>> >> >> >>> >> >>> >> >> > not
>> >> >> >>> >> >>> >> >> > found.
>> >> >> >>> >> >>> >> >> > Without it we don't have Java Csound.
>> >> >> >>> >> >>> >> >> >
>> >> >> >>> >> >>> >> >> > Still no solution, though. The initializer is in
>> >> >> >>> >> >>> >> >> > _jcsound.dll.
>> >> >> >>> >> >>> >> >> > Java
>> >> >> >>> >> >>> >> >> > doesn't
>> >> >> >>> >> >>> >> >> > find it. Java finds the CsoundEditor.jar (a
>> >> >> >>> >> >>> >> >> > better
>> >> >> >>> >> >>> >> >> > test
>> >> >> >>> >> >>> >> >> > than
>> >> >> >>> >> >>> >> >> > CSDPlayer.jar
>> >> >> >>> >> >>> >> >> > because it loads csnd6 right away) and loads and
>> >> >> >>> >> >>> >> >> > begins
>> >> >> >>> >> >>> >> >> > to
>> >> >> >>> >> >>> >> >> > run
>> >> >> >>> >> >>> >> >> > the
>> >> >> >>> >> >>> >> >> > Java
>> >> >> >>> >> >>> >> >> > code. The first thing to run is the static block
>> >> >> >>> >> >>> >> >> > that
>> >> >> >>> >> >>> >> >> > loads
>> >> >> >>> >> >>> >> >> > _jcsound.dll
>> >> >> >>> >> >>> >> >> > and
>> >> >> >>> >> >>> >> >> > calls the initializer. There are 4 steps here:
>> >> >> >>> >> >>> >> >> > locate
>> >> >> >>> >> >>> >> >> > the
>> >> >> >>> >> >>> >> >> > DLL,
>> >> >> >>> >> >>> >> >> > load
>> >> >> >>> >> >>> >> >> > the
>> >> >> >>> >> >>> >> >> > DLL,
>> >> >> >>> >> >>> >> >> > find the initializer function, call the
>> >> >> >>> >> >>> >> >> > initializer.
>> >> >> >>> >> >>> >> >> > We
>> >> >> >>> >> >>> >> >> > know
>> >> >> >>> >> >>> >> >> > that
>> >> >> >>> >> >>> >> >> > we
>> >> >> >>> >> >>> >> >> > don't
>> >> >> >>> >> >>> >> >> > find the initializer. I think it fails at the
>> >> >> >>> >> >>> >> >> > load
>> >> >> >>> >> >>> >> >> > stage
>> >> >> >>> >> >>> >> >> > because I
>> >> >> >>> >> >>> >> >> > have
>> >> >> >>> >> >>> >> >> > DLL
>> >> >> >>> >> >>> >> >> > hell on my notebook right now and I seem to
>> >> >> >>> >> >>> >> >> > recall
>> >> >> >>> >> >>> >> >> > catching
>> >> >> >>> >> >>> >> >> > the
>> >> >> >>> >> >>> >> >> > DLL
>> >> >> >>> >> >>> >> >> > load.
>> >> >> >>> >> >>> >> >> > I'll verify that later. In other words I think it
>> >> >> >>> >> >>> >> >> > starts to
>> >> >> >>> >> >>> >> >> > load
>> >> >> >>> >> >>> >> >> > _jcsound.dll and then there is a problem when
>> >> >> >>> >> >>> >> >> > _jcsound.dll
>> >> >> >>> >> >>> >> >> > is
>> >> >> >>> >> >>> >> >> > loading
>> >> >> >>> >> >>> >> >> > other
>> >> >> >>> >> >>> >> >> > things or initializating its own things.
>> >> >> >>> >> >>> >> >> >
>> >> >> >>> >> >>> >> >> >
>> >> >> >>> >> >>> >> >> > ===========================
>> >> >> >>> >> >>> >> >> > Michael Gogins
>> >> >> >>> >> >>> >> >> > Irreducible Productions
>> >> >> >>> >> >>> >> >> > http://michaelgogins.tumblr.com
>> >> >> >>> >> >>> >> >> > Michael dot Gogins at gmail dot com
>> >> >> >>> >> >>> >> >> >
>> >> >> >>> >> >>> >> >> >
>> >> >> >>> >> >>> >> >> > On Thu, Aug 15, 2013 at 8:32 AM, Michael Gogins
>> >> >> >>> >> >>> >> >> > 
>> >> >> >>> >> >>> >> >> > wrote:
>> >> >> >>> >> >>> >> >> >>
>> >> >> >>> >> >>> >> >> >> The problem I see is that the Csound JNI
>> >> >> >>> >> >>> >> >> >>
>> >> >> >>> >> >>> >> >> >>
>> >> >> >>> >> >>> >> >> >> ===========================
>> >> >> >>> >> >>> >> >> >> Michael Gogins
>> >> >> >>> >> >>> >> >> >> Irreducible Productions
>> >> >> >>> >> >>> >> >> >> http://michaelgogins.tumblr.com
>> >> >> >>> >> >>> >> >> >> Michael dot Gogins at gmail dot com
>> >> >> >>> >> >>> >> >> >>
>> >> >> >>> >> >>> >> >> >>
>> >> >> >>> >> >>> >> >> >> On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi
>> >> >> >>> >> >>> >> >> >> 
>> >> >> >>> >> >>> >> >> >> wrote:
>> >> >> >>> >> >>> >> >> >>>
>> >> >> >>> >> >>> >> >> >>> Hi Michael,
>> >> >> >>> >> >>> >> >> >>>
>> >> >> >>> >> >>> >> >> >>> I'm wondering if this is the same issue. I need
>> >> >> >>> >> >>> >> >> >>> to
>> >> >> >>> >> >>> >> >> >>> re-test,
>> >> >> >>> >> >>> >> >> >>> but
>> >> >> >>> >> >>> >> >> >>> when I
>> >> >> >>> >> >>> >> >> >>> was trying things out I thought I didn't quite
>> >> >> >>> >> >>> >> >> >>> get
>> >> >> >>> >> >>> >> >> >>> a
>> >> >> >>> >> >>> >> >> >>> crash,
>> >> >> >>> >> >>> >> >> >>> just
>> >> >> >>> >> >>> >> >> >>> an
>> >> >> >>> >> >>> >> >> >>> UnsatisfiedLinkError exception for the function
>> >> >> >>> >> >>> >> >> >>> I
>> >> >> >>> >> >>> >> >> >>> was
>> >> >> >>> >> >>> >> >> >>> trying
>> >> >> >>> >> >>> >> >> >>> to
>> >> >> >>> >> >>> >> >> >>> call,
>> >> >> >>> >> >>> >> >> >>> which I could catch and do something about.
>> >> >> >>> >> >>> >> >> >>> The
>> >> >> >>> >> >>> >> >> >>> test
>> >> >> >>> >> >>> >> >> >>> java
>> >> >> >>> >> >>> >> >> >>> class
>> >> >> >>> >> >>> >> >> >>> I
>> >> >> >>> >> >>> >> >> >>> put
>> >> >> >>> >> >>> >> >> >>> into the bug may not be doing any catching, but
>> >> >> >>> >> >>> >> >> >>> then
>> >> >> >>> >> >>> >> >> >>> Java
>> >> >> >>> >> >>> >> >> >>> should
>> >> >> >>> >> >>> >> >> >>> have
>> >> >> >>> >> >>> >> >> >>> just exited rather than crash.
>> >> >> >>> >> >>> >> >> >>>
>> >> >> >>> >> >>> >> >> >>> steven
>> >> >> >>> >> >>> >> >> >>>
>> >> >> >>> >> >>> >> >> >>> On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
>> >> >> >>> >> >>> >> >> >>>  wrote:
>> >> >> >>> >> >>> >> >> >>> > Gdb tells me Java crash is caused by
>> >> >> >>> >> >>> >> >> >>> > linstd++-6.dll
>> >> >> >>> >> >>> >> >> >>> > of
>> >> >> >>> >> >>> >> >> >>> > wrong
>> >> >> >>> >> >>> >> >> >>> > model
>> >> >> >>> >> >>> >> >> >>> > found in
>> >> >> >>> >> >>> >> >> >>> > SysWOW64, where it does not belong and was
>> >> >> >>> >> >>> >> >> >>> > put
>> >> >> >>> >> >>> >> >> >>> > by
>> >> >> >>> >> >>> >> >> >>> > some
>> >> >> >>> >> >>> >> >> >>> > incompetent
>> >> >> >>> >> >>> >> >> >>> > installer. I'm afraid to remove it because I
>> >> >> >>> >> >>> >> >> >>> > did
>> >> >> >>> >> >>> >> >> >>> > once
>> >> >> >>> >> >>> >> >> >>> > before
>> >> >> >>> >> >>> >> >> >>> > and
>> >> >> >>> >> >>> >> >> >>> > lost
>> >> >> >>> >> >>> >> >> >>> > my
>> >> >> >>> >> >>> >> >> >>> > user profile.
>> >> >> >>> >> >>> >> >> >>> >
>> >> >> >>> >> >>> >> >> >>> >
>> >> >> >>> >> >>> >> >> >>> >
>> >> >> >>> >> >>> >> >> >>> >
>> >> >> >>> >> >>> >> >> >>> >
>> >> >> >>> >> >>> >> >> >>> >
>> >> >> >>> >> >>> >> >> >>> >
>> >> >> >>> >> >>> >> >> >>> >
>> >> >> >>> >> >>> >> >> >>> >
>> >> >> >>> >> >>> >> >> >>> >
>> >> >> >>> >> >>> >> >> >>> >
>> >> >> >>> >> >>> >> >> >>> > ------------------------------------------------------------------------------
>> >> >> >>> >> >>> >> >> >>> > Get 100% visibility into Java/.NET code with
>> >> >> >>> >> >>> >> >> >>> > AppDynamics
>> >> >> >>> >> >>> >> >> >>> > Lite!
>> >> >> >>> >> >>> >> >> >>> > It's a free troubleshooting tool designed for
>> >> >> >>> >> >>> >> >> >>> > production.
>> >> >> >>> >> >>> >> >> >>> > Get down to code-level detail for
>> >> >> >>> >> >>> >> >> >>> > bottlenecks,
>> >> >> >>> >> >>> >> >> >>> > with
>> >> >> >>> >> >>> >> >> >>> > <2%
>> >> >> >>> >> >>> >> >> >>> > overhead.
>> >> >> >>> >> >>> >> >> >>> > Download for free and get started
>> >> >> >>> >> >>> >> >> >>> > troubleshooting
>> >> >> >>> >> >>> >> >> >>> > in
>> >> >> >>> >> >>> >> >> >>> > minutes.
>> >> >> >>> >> >>> >> >> >>> >
>> >> >> >>> >> >>> >> >> >>> >
>> >> >> >>> >> >>> >> >> >>> >
>> >> >> >>> >> >>> >> >> >>> >
>> >> >> >>> >> >>> >> >> >>> >
>> >> >> >>> >> >>> >> >> >>> >
>> >> >> >>> >> >>> >> >> >>> >
>> >> >> >>> >> >>> >> >> >>> >
>> >> >> >>> >> >>> >> >> >>> >
>> >> >> >>> >> >>> >> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >> >> >>> >> >>> >> >> >>> >
>> >> >> >>> >> >>> >> >> >>> > _______________________________________________
>> >> >> >>> >> >>> >> >> >>> > Csound-devel mailing list
>> >> >> >>> >> >>> >> >> >>> > Csound-devel@lists.sourceforge.net
>> >> >> >>> >> >>> >> >> >>> >
>> >> >> >>> >> >>> >> >> >>> >
>> >> >> >>> >> >>> >> >> >>> >
>> >> >> >>> >> >>> >> >> >>> >
>> >> >> >>> >> >>> >> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >> >>> >> >>> >> >> >>> >
>> >> >> >>> >> >>> >> >> >>>
>> >> >> >>> >> >>> >> >> >>>
>> >> >> >>> >> >>> >> >> >>>
>> >> >> >>> >> >>> >> >> >>>
>> >> >> >>> >> >>> >> >> >>>
>> >> >> >>> >> >>> >> >> >>>
>> >> >> >>> >> >>> >> >> >>>
>> >> >> >>> >> >>> >> >> >>>
>> >> >> >>> >> >>> >> >> >>>
>> >> >> >>> >> >>> >> >> >>>
>> >> >> >>> >> >>> >> >> >>> ------------------------------------------------------------------------------
>> >> >> >>> >> >>> >> >> >>> Get 100% visibility into Java/.NET code with
>> >> >> >>> >> >>> >> >> >>> AppDynamics
>> >> >> >>> >> >>> >> >> >>> Lite!
>> >> >> >>> >> >>> >> >> >>> It's a free troubleshooting tool designed for
>> >> >> >>> >> >>> >> >> >>> production.
>> >> >> >>> >> >>> >> >> >>> Get down to code-level detail for bottlenecks,
>> >> >> >>> >> >>> >> >> >>> with
>> >> >> >>> >> >>> >> >> >>> <2%
>> >> >> >>> >> >>> >> >> >>> overhead.
>> >> >> >>> >> >>> >> >> >>> Download for free and get started
>> >> >> >>> >> >>> >> >> >>> troubleshooting
>> >> >> >>> >> >>> >> >> >>> in
>> >> >> >>> >> >>> >> >> >>> minutes.
>> >> >> >>> >> >>> >> >> >>>
>> >> >> >>> >> >>> >> >> >>>
>> >> >> >>> >> >>> >> >> >>>
>> >> >> >>> >> >>> >> >> >>>
>> >> >> >>> >> >>> >> >> >>>
>> >> >> >>> >> >>> >> >> >>>
>> >> >> >>> >> >>> >> >> >>>
>> >> >> >>> >> >>> >> >> >>>
>> >> >> >>> >> >>> >> >> >>>
>> >> >> >>> >> >>> >> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >> >> >>> >> >>> >> >> >>> _______________________________________________
>> >> >> >>> >> >>> >> >> >>> Csound-devel mailing list
>> >> >> >>> >> >>> >> >> >>> Csound-devel@lists.sourceforge.net
>> >> >> >>> >> >>> >> >> >>>
>> >> >> >>> >> >>> >> >> >>>
>> >> >> >>> >> >>> >> >> >>>
>> >> >> >>> >> >>> >> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >> >>> >> >>> >> >> >>
>> >> >> >>> >> >>> >> >> >>
>> >> >> >>> >> >>> >> >> >
>> >> >> >>> >> >>> >> >> >
>> >> >> >>> >> >>> >> >> >
>> >> >> >>> >> >>> >> >> >
>> >> >> >>> >> >>> >> >> >
>> >> >> >>> >> >>> >> >> >
>> >> >> >>> >> >>> >> >> >
>> >> >> >>> >> >>> >> >> >
>> >> >> >>> >> >>> >> >> >
>> >> >> >>> >> >>> >> >> >
>> >> >> >>> >> >>> >> >> > ------------------------------------------------------------------------------
>> >> >> >>> >> >>> >> >> > Get 100% visibility into Java/.NET code with
>> >> >> >>> >> >>> >> >> > AppDynamics
>> >> >> >>> >> >>> >> >> > Lite!
>> >> >> >>> >> >>> >> >> > It's a free troubleshooting tool designed for
>> >> >> >>> >> >>> >> >> > production.
>> >> >> >>> >> >>> >> >> > Get down to code-level detail for bottlenecks,
>> >> >> >>> >> >>> >> >> > with
>> >> >> >>> >> >>> >> >> > <2%
>> >> >> >>> >> >>> >> >> > overhead.
>> >> >> >>> >> >>> >> >> > Download for free and get started troubleshooting
>> >> >> >>> >> >>> >> >> > in
>> >> >> >>> >> >>> >> >> > minutes.
>> >> >> >>> >> >>> >> >> >
>> >> >> >>> >> >>> >> >> >
>> >> >> >>> >> >>> >> >> >
>> >> >> >>> >> >>> >> >> >
>> >> >> >>> >> >>> >> >> >
>> >> >> >>> >> >>> >> >> >
>> >> >> >>> >> >>> >> >> >
>> >> >> >>> >> >>> >> >> >
>> >> >> >>> >> >>> >> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >> >> >>> >> >>> >> >> > _______________________________________________
>> >> >> >>> >> >>> >> >> > Csound-devel mailing list
>> >> >> >>> >> >>> >> >> > Csound-devel@lists.sourceforge.net
>> >> >> >>> >> >>> >> >> >
>> >> >> >>> >> >>> >> >> >
>> >> >> >>> >> >>> >> >> >
>> >> >> >>> >> >>> >> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >> >>> >> >>> >> >> >
>> >> >> >>> >> >>> >> >>
>> >> >> >>> >> >>> >> >>
>> >> >> >>> >> >>> >> >>
>> >> >> >>> >> >>> >> >>
>> >> >> >>> >> >>> >> >>
>> >> >> >>> >> >>> >> >>
>> >> >> >>> >> >>> >> >>
>> >> >> >>> >> >>> >> >>
>> >> >> >>> >> >>> >> >>
>> >> >> >>> >> >>> >> >> ------------------------------------------------------------------------------
>> >> >> >>> >> >>> >> >> Introducing Performance Central, a new site from
>> >> >> >>> >> >>> >> >> SourceForge
>> >> >> >>> >> >>> >> >> and
>> >> >> >>> >> >>> >> >> AppDynamics. Performance Central is your source for
>> >> >> >>> >> >>> >> >> news,
>> >> >> >>> >> >>> >> >> insights,
>> >> >> >>> >> >>> >> >> analysis and resources for efficient Application
>> >> >> >>> >> >>> >> >> Performance
>> >> >> >>> >> >>> >> >> Management.
>> >> >> >>> >> >>> >> >> Visit us today!
>> >> >> >>> >> >>> >> >>
>> >> >> >>> >> >>> >> >>
>> >> >> >>> >> >>> >> >>
>> >> >> >>> >> >>> >> >>
>> >> >> >>> >> >>> >> >>
>> >> >> >>> >> >>> >> >>
>> >> >> >>> >> >>> >> >>
>> >> >> >>> >> >>> >> >>
>> >> >> >>> >> >>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> >> >> >>> >> >>> >> >>
>> >> >> >>> >> >>> >> >> _______________________________________________
>> >> >> >>> >> >>> >> >> Csound-devel mailing list
>> >> >> >>> >> >>> >> >> Csound-devel@lists.sourceforge.net
>> >> >> >>> >> >>> >> >>
>> >> >> >>> >> >>> >> >>
>> >> >> >>> >> >>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >> > ------------------------------------------------------------------------------
>> >> >> >>> >> >>> >> > Introducing Performance Central, a new site from
>> >> >> >>> >> >>> >> > SourceForge
>> >> >> >>> >> >>> >> > and
>> >> >> >>> >> >>> >> > AppDynamics. Performance Central is your source for
>> >> >> >>> >> >>> >> > news,
>> >> >> >>> >> >>> >> > insights,
>> >> >> >>> >> >>> >> > analysis and resources for efficient Application
>> >> >> >>> >> >>> >> > Performance
>> >> >> >>> >> >>> >> > Management.
>> >> >> >>> >> >>> >> > Visit us today!
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> >> >> >>> >> >>> >> > _______________________________________________
>> >> >> >>> >> >>> >> > Csound-devel mailing list
>> >> >> >>> >> >>> >> > Csound-devel@lists.sourceforge.net
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >> >>> >> >>> >> >
>> >> >> >>> >> >>> >>
>> >> >> >>> >> >>> >>
>> >> >> >>> >> >>> >>
>> >> >> >>> >> >>> >>
>> >> >> >>> >> >>> >>
>> >> >> >>> >> >>> >>
>> >> >> >>> >> >>> >>
>> >> >> >>> >> >>> >>
>> >> >> >>> >> >>> >> ------------------------------------------------------------------------------
>> >> >> >>> >> >>> >> Learn the latest--Visual Studio 2012, SharePoint 2013,
>> >> >> >>> >> >>> >> SQL
>> >> >> >>> >> >>> >> 2012,
>> >> >> >>> >> >>> >> more!
>> >> >> >>> >> >>> >> Discover the easy way to master current and previous
>> >> >> >>> >> >>> >> Microsoft
>> >> >> >>> >> >>> >> technologies
>> >> >> >>> >> >>> >> and advance your career. Get an incredible 1,500+
>> >> >> >>> >> >>> >> hours
>> >> >> >>> >> >>> >> of
>> >> >> >>> >> >>> >> step-by-step
>> >> >> >>> >> >>> >> tutorial videos with LearnDevNow. Subscribe today and
>> >> >> >>> >> >>> >> save!
>> >> >> >>> >> >>> >>
>> >> >> >>> >> >>> >>
>> >> >> >>> >> >>> >>
>> >> >> >>> >> >>> >>
>> >> >> >>> >> >>> >>
>> >> >> >>> >> >>> >>
>> >> >> >>> >> >>> >>
>> >> >> >>> >> >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >> >>> >> >>> >>
>> >> >> >>> >> >>> >> _______________________________________________
>> >> >> >>> >> >>> >> Csound-devel mailing list
>> >> >> >>> >> >>> >> Csound-devel@lists.sourceforge.net
>> >> >> >>> >> >>> >>
>> >> >> >>> >> >>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >> >>> >> >>> >
>> >> >> >>> >> >>> >
>> >> >> >>> >> >>> >
>> >> >> >>> >> >>> >
>> >> >> >>> >> >>> >
>> >> >> >>> >> >>> >
>> >> >> >>> >> >>> >
>> >> >> >>> >> >>> >
>> >> >> >>> >> >>> >
>> >> >> >>> >> >>> > ------------------------------------------------------------------------------
>> >> >> >>> >> >>> > Learn the latest--Visual Studio 2012, SharePoint 2013,
>> >> >> >>> >> >>> > SQL
>> >> >> >>> >> >>> > 2012,
>> >> >> >>> >> >>> > more!
>> >> >> >>> >> >>> > Discover the easy way to master current and previous
>> >> >> >>> >> >>> > Microsoft
>> >> >> >>> >> >>> > technologies
>> >> >> >>> >> >>> > and advance your career. Get an incredible 1,500+ hours
>> >> >> >>> >> >>> > of
>> >> >> >>> >> >>> > step-by-step
>> >> >> >>> >> >>> > tutorial videos with LearnDevNow. Subscribe today and
>> >> >> >>> >> >>> > save!
>> >> >> >>> >> >>> >
>> >> >> >>> >> >>> >
>> >> >> >>> >> >>> >
>> >> >> >>> >> >>> >
>> >> >> >>> >> >>> >
>> >> >> >>> >> >>> >
>> >> >> >>> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >> >>> >> >>> > _______________________________________________
>> >> >> >>> >> >>> > Csound-devel mailing list
>> >> >> >>> >> >>> > Csound-devel@lists.sourceforge.net
>> >> >> >>> >> >>> >
>> >> >> >>> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >> >>> >> >>> >
>> >> >> >>> >> >>>
>> >> >> >>> >> >>>
>> >> >> >>> >> >>>
>> >> >> >>> >> >>>
>> >> >> >>> >> >>>
>> >> >> >>> >> >>>
>> >> >> >>> >> >>>
>> >> >> >>> >> >>> ------------------------------------------------------------------------------
>> >> >> >>> >> >>> Learn the latest--Visual Studio 2012, SharePoint 2013,
>> >> >> >>> >> >>> SQL
>> >> >> >>> >> >>> 2012,
>> >> >> >>> >> >>> more!
>> >> >> >>> >> >>> Discover the easy way to master current and previous
>> >> >> >>> >> >>> Microsoft
>> >> >> >>> >> >>> technologies
>> >> >> >>> >> >>> and advance your career. Get an incredible 1,500+ hours
>> >> >> >>> >> >>> of
>> >> >> >>> >> >>> step-by-step
>> >> >> >>> >> >>> tutorial videos with LearnDevNow. Subscribe today and
>> >> >> >>> >> >>> save!
>> >> >> >>> >> >>>
>> >> >> >>> >> >>>
>> >> >> >>> >> >>>
>> >> >> >>> >> >>>
>> >> >> >>> >> >>>
>> >> >> >>> >> >>>
>> >> >> >>> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >> >>> >> >>> _______________________________________________
>> >> >> >>> >> >>> Csound-devel mailing list
>> >> >> >>> >> >>> Csound-devel@lists.sourceforge.net
>> >> >> >>> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >> >>> >> >>
>> >> >> >>> >> >>
>> >> >> >>> >> >>
>> >> >> >>> >> >>
>> >> >> >>> >> >>
>> >> >> >>> >> >>
>> >> >> >>> >> >>
>> >> >> >>> >> >> ------------------------------------------------------------------------------
>> >> >> >>> >> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>> >> >> >>> >> >> 2012,
>> >> >> >>> >> >> more!
>> >> >> >>> >> >> Discover the easy way to master current and previous
>> >> >> >>> >> >> Microsoft
>> >> >> >>> >> >> technologies
>> >> >> >>> >> >> and advance your career. Get an incredible 1,500+ hours of
>> >> >> >>> >> >> step-by-step
>> >> >> >>> >> >> tutorial videos with LearnDevNow. Subscribe today and
>> >> >> >>> >> >> save!
>> >> >> >>> >> >>
>> >> >> >>> >> >>
>> >> >> >>> >> >>
>> >> >> >>> >> >>
>> >> >> >>> >> >>
>> >> >> >>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >> >>> >> >> _______________________________________________
>> >> >> >>> >> >> Csound-devel mailing list
>> >> >> >>> >> >> Csound-devel@lists.sourceforge.net
>> >> >> >>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >> >>> >> >>
>> >> >> >>> >>
>> >> >> >>> >>
>> >> >> >>> >>
>> >> >> >>> >>
>> >> >> >>> >>
>> >> >> >>> >>
>> >> >> >>> >> ------------------------------------------------------------------------------
>> >> >> >>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>> >> >> >>> >> 2012,
>> >> >> >>> >> more!
>> >> >> >>> >> Discover the easy way to master current and previous
>> >> >> >>> >> Microsoft
>> >> >> >>> >> technologies
>> >> >> >>> >> and advance your career. Get an incredible 1,500+ hours of
>> >> >> >>> >> step-by-step
>> >> >> >>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >> >> >>> >>
>> >> >> >>> >>
>> >> >> >>> >>
>> >> >> >>> >>
>> >> >> >>> >>
>> >> >> >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >> >>> >> _______________________________________________
>> >> >> >>> >> Csound-devel mailing list
>> >> >> >>> >> Csound-devel@lists.sourceforge.net
>> >> >> >>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >> >>> >
>> >> >> >>> >
>> >> >> >>> >
>> >> >> >>> >
>> >> >> >>> >
>> >> >> >>> >
>> >> >> >>> >
>> >> >> >>> > ------------------------------------------------------------------------------
>> >> >> >>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>> >> >> >>> > 2012,
>> >> >> >>> > more!
>> >> >> >>> > Discover the easy way to master current and previous Microsoft
>> >> >> >>> > technologies
>> >> >> >>> > and advance your career. Get an incredible 1,500+ hours of
>> >> >> >>> > step-by-step
>> >> >> >>> > tutorial videos with LearnDevNow. Subscribe today and save!
>> >> >> >>> >
>> >> >> >>> >
>> >> >> >>> >
>> >> >> >>> >
>> >> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >> >>> > _______________________________________________
>> >> >> >>> > Csound-devel mailing list
>> >> >> >>> > Csound-devel@lists.sourceforge.net
>> >> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >> >>> >
>> >> >> >>>
>> >> >> >>>
>> >> >> >>>
>> >> >> >>>
>> >> >> >>>
>> >> >> >>> ------------------------------------------------------------------------------
>> >> >> >>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >> >> >>> more!
>> >> >> >>> Discover the easy way to master current and previous Microsoft
>> >> >> >>> technologies
>> >> >> >>> and advance your career. Get an incredible 1,500+ hours of
>> >> >> >>> step-by-step
>> >> >> >>> tutorial videos with LearnDevNow. Subscribe today and save!
>> >> >> >>>
>> >> >> >>>
>> >> >> >>>
>> >> >> >>>
>> >> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >> >>> _______________________________________________
>> >> >> >>> Csound-devel mailing list
>> >> >> >>> Csound-devel@lists.sourceforge.net
>> >> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> ------------------------------------------------------------------------------
>> >> >> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >> >> >> more!
>> >> >> >> Discover the easy way to master current and previous Microsoft
>> >> >> >> technologies
>> >> >> >> and advance your career. Get an incredible 1,500+ hours of
>> >> >> >> step-by-step
>> >> >> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >> >> _______________________________________________
>> >> >> >> Csound-devel mailing list
>> >> >> >> Csound-devel@lists.sourceforge.net
>> >> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >> ------------------------------------------------------------------------------
>> >> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >> >> more!
>> >> >> Discover the easy way to master current and previous Microsoft
>> >> >> technologies
>> >> >> and advance your career. Get an incredible 1,500+ hours of
>> >> >> step-by-step
>> >> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >> >>
>> >> >>
>> >> >>
>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> >> _______________________________________________
>> >> >> Csound-devel mailing list
>> >> >> Csound-devel@lists.sourceforge.net
>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > ------------------------------------------------------------------------------
>> >> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >> > more!
>> >> > Discover the easy way to master current and previous Microsoft
>> >> > technologies
>> >> > and advance your career. Get an incredible 1,500+ hours of
>> >> > step-by-step
>> >> > tutorial videos with LearnDevNow. Subscribe today and save!
>> >> >
>> >> >
>> >> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> > _______________________________________________
>> >> > Csound-devel mailing list
>> >> > Csound-devel@lists.sourceforge.net
>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> >> Discover the easy way to master current and previous Microsoft
>> >> technologies
>> >> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>
>> >>
>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> > Discover the easy way to master current and previous Microsoft
>> > technologies
>> > and advance your career. Get an incredible 1,500+ hours of step-by-step
>> > tutorial videos with LearnDevNow. Subscribe today and save!
>> >
>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> Discover the easy way to master current and previous Microsoft
>> technologies
>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> tutorial videos with LearnDevNow. Subscribe today and save!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-08-28 21:43
FromSteven Yi
SubjectRe: [Cs-dev] Java crash on windows
Hi Michael,

I've got a request: I see there are actually two bugs filed related to
this Java Csound issue for windows:

http://sourceforge.net/p/csound/tickets/39/
http://sourceforge.net/p/csound/tickets/27/

When you have a chance to confirm the fix, could you close out both of
these tickets?

Thanks!
steven


On Wed, Aug 28, 2013 at 4:25 PM, Steven Yi  wrote:
> Sounds good.  I've pushed the changes just now and with the latest it
> seems to be alright.  Note: I did do an update of all csnd -> csnd6
> for module declarations for SWIG, as well as for csnd6.dll instead of
> csnd.dll.  This change for csnd6 instead of csnd will mean all
> platforms may have to modify installers for packaging csnd6.dll or
> libcsnd6.so/.dylib instead of csnd.dll and libcsnd.so/.dylib.
>
> As for CMake, yeah, sometimes it's a bit of a bear. :)  On the whole I
> find it alright enough and fairly clean.  Seems like some things are
> harder to figure out, but at the same time, less ways to shoot
> yourself in the foot than other systems and tends to "just work" more.
>
> On Wed, Aug 28, 2013 at 3:51 PM, Michael Gogins
>  wrote:
>> Yes, I will pull, rebuild, and test all tonight.
>>
>> I'm not as familiar (yet) with CMake as I was with SWIG, so don't
>> necessarily know how to set things up properly. I tend to hack till things
>> work for me, and let it go at that. I'm much more disciplined when it comes
>> to the actual code.
>>
>>
>>
>> Thanks,
>> Mike
>>
>>
>> ===========================
>> Michael Gogins
>> Irreducible Productions
>> http://michaelgogins.tumblr.com
>> Michael dot Gogins at gmail dot com
>>
>>
>> On Wed, Aug 28, 2013 at 3:47 PM, Steven Yi  wrote:
>>>
>>> Hi Michael,
>>>
>>> Success!  It took a few tries, as I tried initially to just set flags
>>> in CMAKE_CXX_FLAGS and CMAKE_C_FLAGS but that did not work.  I then
>>> tried setting CMAKE_SHARED_LINKER_FLAGS and that also did not work.
>>> Ultimately, this did it:
>>>
>>>     set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--add-stdcall-alias
>>> -Wl,--enable-stdcall-fixup")
>>>
>>> I don't know if the stdcall-fixup is necessary.  The swig
>>> documentation for Java had some example and they only used
>>> stdcall-alias.
>>>
>>> I've modified the root CmakeLists.txt to have:
>>>
>>> if(WIN32 AND NOT MSVC)
>>>     if(EXISTS "C:/MinGW/include")
>>>         include_directories(C:/MinGW/include)
>>>     else()
>>>         MESSAGE(STATUS "MinGW include dir not found")
>>>     endif()
>>>
>>>     set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS}
>>> -Wl,--add-stdcall-alias")
>>> endif()
>>>
>>> I'm doing one test build now to see if that's all that's necessary to
>>> fix the build, or if one of the other places I added it is required.
>>> I think that because it's applied to modules and not shared libs,
>>> it'll get applied to all of the swig stuff as they use module, but
>>> might not get applied to other places.  We could add an additional one
>>> for CMAKE_SHARED_LINKER_FLAGS if desired.
>>>
>>> I'll make a commit once this build finishes and I've retested.  I've
>>> only tested as far as that API6Test java class. Could you perhaps
>>> rebuild/retest later when you have a chance?
>>>
>>> Thanks!
>>> steven
>>>
>>>
>>>
>>>
>>> On Wed, Aug 28, 2013 at 3:23 PM, Michael Gogins
>>>  wrote:
>>> > These are only for Windows.
>>> >
>>> > The only harm from defining these options globally is that more symbols
>>> > are
>>> > exported by the shared libraries, so the dynamic loads might be a tad
>>> > slower. Once loaded I don't think calls would be noticeably slower. So I
>>> > would go ahead and make these global on Windows. Other things that I
>>> > always
>>> > define globally on Windows, and should probably be the defaults on
>>> > Windows:
>>> >
>>> > -g -O2 -std=gnu++11 -fopenmp -march=nocona -DNDEBUG -I/usr/local/include
>>> > -L/usr/local/lib -mstackrealign -Wl,--add-stdcall-alias
>>> > -Wl,--enable-stdcall-fixup
>>> >
>>> > I don't know why I didn't think about the stdcall possibility this time
>>> > --
>>> > when it was I who originally added these options for this sort of reason
>>> > in
>>> > the first place!
>>> >
>>> > Best,
>>> > Mike
>>> >
>>> >
>>> > ===========================
>>> > Michael Gogins
>>> > Irreducible Productions
>>> > http://michaelgogins.tumblr.com
>>> > Michael dot Gogins at gmail dot com
>>> >
>>> >
>>> > On Wed, Aug 28, 2013 at 3:09 PM, Steven Yi  wrote:
>>> >>
>>> >> I'm hopeful this will be it. :)  I tried adding it to my Custom.cmake
>>> >> for now and am doing a compile.  I grepped through CS5's SConstruct
>>> >> and surely enough there's numerous places where
>>> >> -Wl,--add-stdcall-alias is used, and a few places where
>>> >> -Wl,--enable-stdcall-fixup is used.
>>> >>
>>> >> I should be able to test in about 10 minutes; assuming all is good,
>>> >> I'm wondering should this just be enabled as a global flag if on
>>> >> Windows, or only for certain libs?
>>> >>
>>> >> As for finding a fix, glad that none of my other guesses were correct
>>> >> as I think they'd be much more difficult to solve. :P
>>> >>
>>> >> On Wed, Aug 28, 2013 at 2:40 PM, Michael Gogins
>>> >>  wrote:
>>> >> > If that's the case, then changing the linker flags should do the
>>> >> > trick.
>>> >> > @8
>>> >> > marks the function as stdcall calling convention with 8 bytes to be
>>> >> > popped
>>> >> > off the stack after returning from the call.
>>> >> >
>>> >> > To CFLAGS and CXXFLAGS for the DLL, add -"Wl,--add-stdcall-alias
>>> >> > -Wl,--enable-stdcall-fixup". I think only the first is required but I
>>> >> > used
>>> >> > to add both to everything just to cover my bases.
>>> >> >
>>> >> > --add-stdcall-alias                Export symbols with and without
>>> >> > @nn
>>> >> > --disable-stdcall-fixup            Don't link _sym to _sym@nn DON'T
>>> >> > USE!
>>> >> > --enable-stdcall-fixup             Link _sym to _sym@nn without
>>> >> > warnings
>>> >> >
>>> >> > Best,
>>> >> > Mike
>>> >> >
>>> >> >
>>> >> > ===========================
>>> >> > Michael Gogins
>>> >> > Irreducible Productions
>>> >> > http://michaelgogins.tumblr.com
>>> >> > Michael dot Gogins at gmail dot com
>>> >> >
>>> >> >
>>> >> > On Wed, Aug 28, 2013 at 1:25 PM, Steven Yi 
>>> >> > wrote:
>>> >> >>
>>> >> >> I found something that looks useful.  In _jcsound.dll from CS5,
>>> >> >> DependencyWalker shows symbols like:
>>> >> >>
>>> >> >> Java_csnd_csndJNI_swig_1module_1init
>>> >> >> Java_csnd_csndJNI_swig_1module_1init@8
>>> >> >>
>>> >> >> while CS6 only has:
>>> >> >>
>>> >> >> Java_csnd6_csnd6JNI_swig_1module_1init@8
>>> >> >>
>>> >> >> I get the impression that the PUBLIC attribute isn't working
>>> >> >> correctly, or something along those lines.  I've got to take a break
>>> >> >> but will continue on with this after lunch.
>>> >> >>
>>> >> >> On Wed, Aug 28, 2013 at 12:22 PM, Steven Yi 
>>> >> >> wrote:
>>> >> >> > That didn't seem to affect anything unfortunately. Continuing
>>> >> >> > on....
>>> >> >> >
>>> >> >> > On Wed, Aug 28, 2013 at 11:59 AM, Michael Gogins
>>> >> >> >  wrote:
>>> >> >> >> Well, that's certainly a mistake.
>>> >> >> >>
>>> >> >> >> On Aug 28, 2013 11:59 AM, "Steven Yi"  wrote:
>>> >> >> >>>
>>> >> >> >>> That sounds reasonable, but the Csound5 API still loads for me
>>> >> >> >>> fine
>>> >> >> >>> with Blue, using the same VM.  I think that'd rule that one out.
>>> >> >> >>> I
>>> >> >> >>> saw that csound.h has "%module csnd" isntead of "%module csnd6".
>>> >> >> >>> I'm
>>> >> >> >>> not sure that's it, as that seems like it'd affect other
>>> >> >> >>> platforms,
>>> >> >> >>> but I'm giving it a try now just in case.  (compile should be
>>> >> >> >>> done
>>> >> >> >>> in
>>> >> >> >>> 15-20 mins... ugh...)
>>> >> >> >>>
>>> >> >> >>> On Wed, Aug 28, 2013 at 11:35 AM, Michael Gogins
>>> >> >> >>>  wrote:
>>> >> >> >>> > If I were you, I would try compiling the library with both the
>>> >> >> >>> > wrapper
>>> >> >> >>> > and
>>> >> >> >>> > the wrapped lib, just to rule that out.
>>> >> >> >>> >
>>> >> >> >>> > There may well have been some change in the way the Java VM
>>> >> >> >>> > and
>>> >> >> >>> > library
>>> >> >> >>> > link. You could try Oracle issues on Java regarding that.
>>> >> >> >>> >
>>> >> >> >>> > Best,
>>> >> >> >>> > Mike
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> > ===========================
>>> >> >> >>> > Michael Gogins
>>> >> >> >>> > Irreducible Productions
>>> >> >> >>> > http://michaelgogins.tumblr.com
>>> >> >> >>> > Michael dot Gogins at gmail dot com
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> > On Wed, Aug 28, 2013 at 11:18 AM, Steven Yi
>>> >> >> >>> > 
>>> >> >> >>> > wrote:
>>> >> >> >>> >>
>>> >> >> >>> >> Just an update, I tried modifying to use libcsnd6 and linking
>>> >> >> >>> >> to
>>> >> >> >>> >> that,
>>> >> >> >>> >> but it had no affect on the Java test.  I did see in the SWIG
>>> >> >> >>> >> manual
>>> >> >> >>> >> for Java that they have an error shown similar to ours, with
>>> >> >> >>> >> the
>>> >> >> >>> >> documentation:
>>> >> >> >>> >>
>>> >> >> >>> >> "This error usually indicates that you forgot to include some
>>> >> >> >>> >> object
>>> >> >> >>> >> files or libraries in the linking of the native library file.
>>> >> >> >>> >> Make
>>> >> >> >>> >> sure you compile both the SWIG wrapper file and the code you
>>> >> >> >>> >> are
>>> >> >> >>> >> wrapping into the native library file. If you forget to
>>> >> >> >>> >> compile
>>> >> >> >>> >> and
>>> >> >> >>> >> link in the SWIG wrapper file into your native library file,
>>> >> >> >>> >> you
>>> >> >> >>> >> will
>>> >> >> >>> >> get a message similar to the following:"
>>> >> >> >>> >>
>>> >> >> >>> >> However, I don't think this is quite the issue as the same
>>> >> >> >>> >> Cmake
>>> >> >> >>> >> script works on OSX and Linux. I did see an email about
>>> >> >> >>> >> possibly
>>> >> >> >>> >> needing to compile the library with both the wrapper and the
>>> >> >> >>> >> wrapped
>>> >> >> >>> >> lib, but that seemed odd as we had things working with CS5.
>>> >> >> >>> >>
>>> >> >> >>> >> I'll continue to explore here.
>>> >> >> >>> >>
>>> >> >> >>> >> On Tue, Aug 27, 2013 at 5:19 PM, Steven Yi
>>> >> >> >>> >> 
>>> >> >> >>> >> wrote:
>>> >> >> >>> >> > Thanks for the info, at least we can eliminate that
>>> >> >> >>> >> > possibility
>>> >> >> >>> >> > then.
>>> >> >> >>> >> > I'll hopefully get further along tomorrow and will report
>>> >> >> >>> >> > anything I
>>> >> >> >>> >> > find.
>>> >> >> >>> >> >
>>> >> >> >>> >> > On Tue, Aug 27, 2013 at 5:13 PM, Michael Gogins
>>> >> >> >>> >> >  wrote:
>>> >> >> >>> >> >> The csnd name should be versioned but I don't have 5 on my
>>> >> >> >>> >> >> machine
>>> >> >> >>> >> >> at
>>> >> >> >>> >> >> all.
>>> >> >> >>> >> >>
>>> >> >> >>> >> >> On Aug 27, 2013 5:03 PM, "Steven Yi" 
>>> >> >> >>> >> >> wrote:
>>> >> >> >>> >> >>>
>>> >> >> >>> >> >>> The compile paths here are a mess so I'm going to need to
>>> >> >> >>> >> >>> sort
>>> >> >> >>> >> >>> that
>>> >> >> >>> >> >>> out here locally.  However, I'm wondering if at runtime
>>> >> >> >>> >> >>> if
>>> >> >> >>> >> >>> the
>>> >> >> >>> >> >>> wrong
>>> >> >> >>> >> >>> dll is getting loaded due to csnd.dll being the same name
>>> >> >> >>> >> >>> in
>>> >> >> >>> >> >>> CS5
>>> >> >> >>> >> >>> and
>>> >> >> >>> >> >>> CS6.  Perhaps we should rename that to see if that's the
>>> >> >> >>> >> >>> source
>>> >> >> >>> >> >>> of
>>> >> >> >>> >> >>> issues for Java (possible CsoundPerformanceThread too?).
>>> >> >> >>> >> >>> I'm
>>> >> >> >>> >> >>> imagining
>>> >> >> >>> >> >>> if Csound runs multiple times alright, but
>>> >> >> >>> >> >>> CsoundPerformanceThread
>>> >> >> >>> >> >>> does not, then it could be possible that the csound6
>>> >> >> >>> >> >>> library
>>> >> >> >>> >> >>> is
>>> >> >> >>> >> >>> loading fine, but the cs5 version of csnd is loading and
>>> >> >> >>> >> >>> causing
>>> >> >> >>> >> >>> issues.
>>> >> >> >>> >> >>>
>>> >> >> >>> >> >>> On Tue, Aug 27, 2013 at 4:52 PM, Michael Gogins
>>> >> >> >>> >> >>>  wrote:
>>> >> >> >>> >> >>> > In my build I'm very careful about the actual library
>>> >> >> >>> >> >>> > paths.
>>> >> >> >>> >> >>> > I
>>> >> >> >>> >> >>> > look
>>> >> >> >>> >> >>> > at
>>> >> >> >>> >> >>> > the
>>> >> >> >>> >> >>> > CMakeCache.txt, I look at the compiler and linker
>>> >> >> >>> >> >>> > commands,
>>> >> >> >>> >> >>> > and I
>>> >> >> >>> >> >>> > look
>>> >> >> >>> >> >>> > at
>>> >> >> >>> >> >>> > what libraries actually get loaded during a run (there
>>> >> >> >>> >> >>> > are
>>> >> >> >>> >> >>> > various
>>> >> >> >>> >> >>> > tools
>>> >> >> >>> >> >>> > for
>>> >> >> >>> >> >>> > doing this on Windows). I am careful because yes, it
>>> >> >> >>> >> >>> > has
>>> >> >> >>> >> >>> > been
>>> >> >> >>> >> >>> > a
>>> >> >> >>> >> >>> > problem
>>> >> >> >>> >> >>> > for
>>> >> >> >>> >> >>> > me, as you saw from my earlier emails.
>>> >> >> >>> >> >>> >
>>> >> >> >>> >> >>> > But we should talk about how to make this better on
>>> >> >> >>> >> >>> > Windows.
>>> >> >> >>> >> >>> >
>>> >> >> >>> >> >>> > Best,
>>> >> >> >>> >> >>> > Mike
>>> >> >> >>> >> >>> >
>>> >> >> >>> >> >>> >
>>> >> >> >>> >> >>> > ===========================
>>> >> >> >>> >> >>> > Michael Gogins
>>> >> >> >>> >> >>> > Irreducible Productions
>>> >> >> >>> >> >>> > http://michaelgogins.tumblr.com
>>> >> >> >>> >> >>> > Michael dot Gogins at gmail dot com
>>> >> >> >>> >> >>> >
>>> >> >> >>> >> >>> >
>>> >> >> >>> >> >>> > On Tue, Aug 27, 2013 at 4:15 PM, Steven Yi
>>> >> >> >>> >> >>> > 
>>> >> >> >>> >> >>> > wrote:
>>> >> >> >>> >> >>> >>
>>> >> >> >>> >> >>> >> Hi Michael and All,
>>> >> >> >>> >> >>> >>
>>> >> >> >>> >> >>> >> I just spent a bit of time looking into this and found
>>> >> >> >>> >> >>> >> some
>>> >> >> >>> >> >>> >> very
>>> >> >> >>> >> >>> >> heinous stuff going on in windows.  It looks to me
>>> >> >> >>> >> >>> >> that
>>> >> >> >>> >> >>> >> CMake
>>> >> >> >>> >> >>> >> actually
>>> >> >> >>> >> >>> >> found all types of libraries from the PATH to use.
>>> >> >> >>> >> >>> >> That
>>> >> >> >>> >> >>> >> meant
>>> >> >> >>> >> >>> >> some
>>> >> >> >>> >> >>> >> libraries from C:\Program Files (x86)\Csound\bin were
>>> >> >> >>> >> >>> >> found,
>>> >> >> >>> >> >>> >> others
>>> >> >> >>> >> >>> >> from C:\Program Files (x86)\Csound6\bin, and others
>>> >> >> >>> >> >>> >> from
>>> >> >> >>> >> >>> >> my
>>> >> >> >>> >> >>> >> MSYS
>>> >> >> >>> >> >>> >> /usr/local/lib and custom set paths.  I get the
>>> >> >> >>> >> >>> >> impression
>>> >> >> >>> >> >>> >> this
>>> >> >> >>> >> >>> >> could
>>> >> >> >>> >> >>> >> be a source of some of the issues we're seeing both
>>> >> >> >>> >> >>> >> with
>>> >> >> >>> >> >>> >> the
>>> >> >> >>> >> >>> >> Java
>>> >> >> >>> >> >>> >> library and other windows oddities.
>>> >> >> >>> >> >>> >>
>>> >> >> >>> >> >>> >> I mostly noticed this in looking at my CmakeCache.txt.
>>> >> >> >>> >> >>> >> I'm
>>> >> >> >>> >> >>> >> wondering
>>> >> >> >>> >> >>> >> if the Java lib is linking to Csound 5's csnd.dll
>>> >> >> >>> >> >>> >> instead
>>> >> >> >>> >> >>> >> of
>>> >> >> >>> >> >>> >> Csound6's.  If that's the case, then perhaps we can
>>> >> >> >>> >> >>> >> change
>>> >> >> >>> >> >>> >> csnd
>>> >> >> >>> >> >>> >> to
>>> >> >> >>> >> >>> >> be
>>> >> >> >>> >> >>> >> csnd6 instead.
>>> >> >> >>> >> >>> >>
>>> >> >> >>> >> >>> >> I've got to move on for the day, but will come back to
>>> >> >> >>> >> >>> >> this
>>> >> >> >>> >> >>> >> tomorrow.
>>> >> >> >>> >> >>> >>
>>> >> >> >>> >> >>> >>
>>> >> >> >>> >> >>> >>
>>> >> >> >>> >> >>> >> On Tue, Aug 20, 2013 at 11:14 PM, Michael Gogins
>>> >> >> >>> >> >>> >>  wrote:
>>> >> >> >>> >> >>> >> > People do seem to be switching to mingw-builds. I am
>>> >> >> >>> >> >>> >> > using
>>> >> >> >>> >> >>> >> > 4.8.1,
>>> >> >> >>> >> >>> >> > dwarf-2,
>>> >> >> >>> >> >>> >> > posix threads, 32 bits. If you use the same version
>>> >> >> >>> >> >>> >> > we
>>> >> >> >>> >> >>> >> > have a
>>> >> >> >>> >> >>> >> > much
>>> >> >> >>> >> >>> >> > better
>>> >> >> >>> >> >>> >> > chance of understanding what is going on.
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >> > I think there is something pretty subtle going on
>>> >> >> >>> >> >>> >> > both
>>> >> >> >>> >> >>> >> > with
>>> >> >> >>> >> >>> >> > Java
>>> >> >> >>> >> >>> >> > and
>>> >> >> >>> >> >>> >> > with
>>> >> >> >>> >> >>> >> > the CsoundPerformanceThread.
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >> > I have proved that the existence of incompatible
>>> >> >> >>> >> >>> >> > MinGW
>>> >> >> >>> >> >>> >> > runtime
>>> >> >> >>> >> >>> >> > libraries
>>> >> >> >>> >> >>> >> > can
>>> >> >> >>> >> >>> >> > be a problem. I have also proved that that is not
>>> >> >> >>> >> >>> >> > the
>>> >> >> >>> >> >>> >> > ONLY
>>> >> >> >>> >> >>> >> > problem,
>>> >> >> >>> >> >>> >> > at
>>> >> >> >>> >> >>> >> > least, on my computer. I succeeded finally in
>>> >> >> >>> >> >>> >> > removing
>>> >> >> >>> >> >>> >> > incompatible
>>> >> >> >>> >> >>> >> > MinGW
>>> >> >> >>> >> >>> >> > runtime libraries from my SysWOW64 directory (!) so
>>> >> >> >>> >> >>> >> > I
>>> >> >> >>> >> >>> >> > now
>>> >> >> >>> >> >>> >> > can
>>> >> >> >>> >> >>> >> > run
>>> >> >> >>> >> >>> >> > CsoundAC
>>> >> >> >>> >> >>> >> > code, but I am still having problems with the
>>> >> >> >>> >> >>> >> > performance
>>> >> >> >>> >> >>> >> > thread
>>> >> >> >>> >> >>> >> > and
>>> >> >> >>> >> >>> >> > with
>>> >> >> >>> >> >>> >> > Java. Different computers behave differently, e.g. I
>>> >> >> >>> >> >>> >> > can
>>> >> >> >>> >> >>> >> > run
>>> >> >> >>> >> >>> >> > CsoundQt
>>> >> >> >>> >> >>> >> > at
>>> >> >> >>> >> >>> >> > work but not at home.
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >> > In my programming life, these errors can arise from
>>> >> >> >>> >> >>> >> > several
>>> >> >> >>> >> >>> >> > errors
>>> >> >> >>> >> >>> >> > but
>>> >> >> >>> >> >>> >> > one
>>> >> >> >>> >> >>> >> > common source is uninitialized members of structs
>>> >> >> >>> >> >>> >> > and
>>> >> >> >>> >> >>> >> > classes
>>> >> >> >>> >> >>> >> > that
>>> >> >> >>> >> >>> >> > contain
>>> >> >> >>> >> >>> >> > zeroes on some machines and junk on other machines.
>>> >> >> >>> >> >>> >> > Or
>>> >> >> >>> >> >>> >> > writes
>>> >> >> >>> >> >>> >> > past
>>> >> >> >>> >> >>> >> > buffer
>>> >> >> >>> >> >>> >> > ends that poke holes in junk on some machines and in
>>> >> >> >>> >> >>> >> > vital
>>> >> >> >>> >> >>> >> > organs
>>> >> >> >>> >> >>> >> > on
>>> >> >> >>> >> >>> >> > other
>>> >> >> >>> >> >>> >> > machines. Having multiple threads makes this
>>> >> >> >>> >> >>> >> > harder...
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >> > Regards,
>>> >> >> >>> >> >>> >> > Mike
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >> > I wish I had something like valgrind on Windows but
>>> >> >> >>> >> >>> >> > I
>>> >> >> >>> >> >>> >> > can't
>>> >> >> >>> >> >>> >> > afford
>>> >> >> >>> >> >>> >> > the
>>> >> >> >>> >> >>> >> > equivalent.
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >> > ===========================
>>> >> >> >>> >> >>> >> > Michael Gogins
>>> >> >> >>> >> >>> >> > Irreducible Productions
>>> >> >> >>> >> >>> >> > http://michaelgogins.tumblr.com
>>> >> >> >>> >> >>> >> > Michael dot Gogins at gmail dot com
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >> > On Tue, Aug 20, 2013 at 10:56 PM, Steven Yi
>>> >> >> >>> >> >>> >> > 
>>> >> >> >>> >> >>> >> > wrote:
>>> >> >> >>> >> >>> >> >>
>>> >> >> >>> >> >>> >> >> Hi Michael,
>>> >> >> >>> >> >>> >> >>
>>> >> >> >>> >> >>> >> >> I was trying to setup to get a build working on
>>> >> >> >>> >> >>> >> >> Windows
>>> >> >> >>> >> >>> >> >> to
>>> >> >> >>> >> >>> >> >> see
>>> >> >> >>> >> >>> >> >> if I
>>> >> >> >>> >> >>> >> >> can further diagnose what's going on.  I currently
>>> >> >> >>> >> >>> >> >> have
>>> >> >> >>> >> >>> >> >> the
>>> >> >> >>> >> >>> >> >> stock
>>> >> >> >>> >> >>> >> >> mingw/msys installed from sf.net/projects/mingw. I
>>> >> >> >>> >> >>> >> >> noticed in
>>> >> >> >>> >> >>> >> >> your
>>> >> >> >>> >> >>> >> >> How
>>> >> >> >>> >> >>> >> >> to Build doc that you are using mingwbuilds
>>> >> >> >>> >> >>> >> >> version.
>>> >> >> >>> >> >>> >> >> Could
>>> >> >> >>> >> >>> >> >> you
>>> >> >> >>> >> >>> >> >> advise: should I uninstalled mingw/msys and use
>>> >> >> >>> >> >>> >> >> just
>>> >> >> >>> >> >>> >> >> mingwbuilds?
>>> >> >> >>> >> >>> >> >> (I.e. better to start clean).
>>> >> >> >>> >> >>> >> >>
>>> >> >> >>> >> >>> >> >> Thanks!
>>> >> >> >>> >> >>> >> >> steven
>>> >> >> >>> >> >>> >> >>
>>> >> >> >>> >> >>> >> >> On Thu, Aug 15, 2013 at 8:44 AM, Michael Gogins
>>> >> >> >>> >> >>> >> >>  wrote:
>>> >> >> >>> >> >>> >> >> > Sorry, fumble fingers.
>>> >> >> >>> >> >>> >> >> >
>>> >> >> >>> >> >>> >> >> > The problem I see is that the csnd6 low level JNI
>>> >> >> >>> >> >>> >> >> > Java
>>> >> >> >>> >> >>> >> >> > class
>>> >> >> >>> >> >>> >> >> > needs
>>> >> >> >>> >> >>> >> >> > to
>>> >> >> >>> >> >>> >> >> > call
>>> >> >> >>> >> >>> >> >> > SWIG's initializer in _csound.dll. The
>>> >> >> >>> >> >>> >> >> > initializer
>>> >> >> >>> >> >>> >> >> > is
>>> >> >> >>> >> >>> >> >> > the
>>> >> >> >>> >> >>> >> >> > thing
>>> >> >> >>> >> >>> >> >> > not
>>> >> >> >>> >> >>> >> >> > found.
>>> >> >> >>> >> >>> >> >> > Without it we don't have Java Csound.
>>> >> >> >>> >> >>> >> >> >
>>> >> >> >>> >> >>> >> >> > Still no solution, though. The initializer is in
>>> >> >> >>> >> >>> >> >> > _jcsound.dll.
>>> >> >> >>> >> >>> >> >> > Java
>>> >> >> >>> >> >>> >> >> > doesn't
>>> >> >> >>> >> >>> >> >> > find it. Java finds the CsoundEditor.jar (a
>>> >> >> >>> >> >>> >> >> > better
>>> >> >> >>> >> >>> >> >> > test
>>> >> >> >>> >> >>> >> >> > than
>>> >> >> >>> >> >>> >> >> > CSDPlayer.jar
>>> >> >> >>> >> >>> >> >> > because it loads csnd6 right away) and loads and
>>> >> >> >>> >> >>> >> >> > begins
>>> >> >> >>> >> >>> >> >> > to
>>> >> >> >>> >> >>> >> >> > run
>>> >> >> >>> >> >>> >> >> > the
>>> >> >> >>> >> >>> >> >> > Java
>>> >> >> >>> >> >>> >> >> > code. The first thing to run is the static block
>>> >> >> >>> >> >>> >> >> > that
>>> >> >> >>> >> >>> >> >> > loads
>>> >> >> >>> >> >>> >> >> > _jcsound.dll
>>> >> >> >>> >> >>> >> >> > and
>>> >> >> >>> >> >>> >> >> > calls the initializer. There are 4 steps here:
>>> >> >> >>> >> >>> >> >> > locate
>>> >> >> >>> >> >>> >> >> > the
>>> >> >> >>> >> >>> >> >> > DLL,
>>> >> >> >>> >> >>> >> >> > load
>>> >> >> >>> >> >>> >> >> > the
>>> >> >> >>> >> >>> >> >> > DLL,
>>> >> >> >>> >> >>> >> >> > find the initializer function, call the
>>> >> >> >>> >> >>> >> >> > initializer.
>>> >> >> >>> >> >>> >> >> > We
>>> >> >> >>> >> >>> >> >> > know
>>> >> >> >>> >> >>> >> >> > that
>>> >> >> >>> >> >>> >> >> > we
>>> >> >> >>> >> >>> >> >> > don't
>>> >> >> >>> >> >>> >> >> > find the initializer. I think it fails at the
>>> >> >> >>> >> >>> >> >> > load
>>> >> >> >>> >> >>> >> >> > stage
>>> >> >> >>> >> >>> >> >> > because I
>>> >> >> >>> >> >>> >> >> > have
>>> >> >> >>> >> >>> >> >> > DLL
>>> >> >> >>> >> >>> >> >> > hell on my notebook right now and I seem to
>>> >> >> >>> >> >>> >> >> > recall
>>> >> >> >>> >> >>> >> >> > catching
>>> >> >> >>> >> >>> >> >> > the
>>> >> >> >>> >> >>> >> >> > DLL
>>> >> >> >>> >> >>> >> >> > load.
>>> >> >> >>> >> >>> >> >> > I'll verify that later. In other words I think it
>>> >> >> >>> >> >>> >> >> > starts to
>>> >> >> >>> >> >>> >> >> > load
>>> >> >> >>> >> >>> >> >> > _jcsound.dll and then there is a problem when
>>> >> >> >>> >> >>> >> >> > _jcsound.dll
>>> >> >> >>> >> >>> >> >> > is
>>> >> >> >>> >> >>> >> >> > loading
>>> >> >> >>> >> >>> >> >> > other
>>> >> >> >>> >> >>> >> >> > things or initializating its own things.
>>> >> >> >>> >> >>> >> >> >
>>> >> >> >>> >> >>> >> >> >
>>> >> >> >>> >> >>> >> >> > ===========================
>>> >> >> >>> >> >>> >> >> > Michael Gogins
>>> >> >> >>> >> >>> >> >> > Irreducible Productions
>>> >> >> >>> >> >>> >> >> > http://michaelgogins.tumblr.com
>>> >> >> >>> >> >>> >> >> > Michael dot Gogins at gmail dot com
>>> >> >> >>> >> >>> >> >> >
>>> >> >> >>> >> >>> >> >> >
>>> >> >> >>> >> >>> >> >> > On Thu, Aug 15, 2013 at 8:32 AM, Michael Gogins
>>> >> >> >>> >> >>> >> >> > 
>>> >> >> >>> >> >>> >> >> > wrote:
>>> >> >> >>> >> >>> >> >> >>
>>> >> >> >>> >> >>> >> >> >> The problem I see is that the Csound JNI
>>> >> >> >>> >> >>> >> >> >>
>>> >> >> >>> >> >>> >> >> >>
>>> >> >> >>> >> >>> >> >> >> ===========================
>>> >> >> >>> >> >>> >> >> >> Michael Gogins
>>> >> >> >>> >> >>> >> >> >> Irreducible Productions
>>> >> >> >>> >> >>> >> >> >> http://michaelgogins.tumblr.com
>>> >> >> >>> >> >>> >> >> >> Michael dot Gogins at gmail dot com
>>> >> >> >>> >> >>> >> >> >>
>>> >> >> >>> >> >>> >> >> >>
>>> >> >> >>> >> >>> >> >> >> On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi
>>> >> >> >>> >> >>> >> >> >> 
>>> >> >> >>> >> >>> >> >> >> wrote:
>>> >> >> >>> >> >>> >> >> >>>
>>> >> >> >>> >> >>> >> >> >>> Hi Michael,
>>> >> >> >>> >> >>> >> >> >>>
>>> >> >> >>> >> >>> >> >> >>> I'm wondering if this is the same issue. I need
>>> >> >> >>> >> >>> >> >> >>> to
>>> >> >> >>> >> >>> >> >> >>> re-test,
>>> >> >> >>> >> >>> >> >> >>> but
>>> >> >> >>> >> >>> >> >> >>> when I
>>> >> >> >>> >> >>> >> >> >>> was trying things out I thought I didn't quite
>>> >> >> >>> >> >>> >> >> >>> get
>>> >> >> >>> >> >>> >> >> >>> a
>>> >> >> >>> >> >>> >> >> >>> crash,
>>> >> >> >>> >> >>> >> >> >>> just
>>> >> >> >>> >> >>> >> >> >>> an
>>> >> >> >>> >> >>> >> >> >>> UnsatisfiedLinkError exception for the function
>>> >> >> >>> >> >>> >> >> >>> I
>>> >> >> >>> >> >>> >> >> >>> was
>>> >> >> >>> >> >>> >> >> >>> trying
>>> >> >> >>> >> >>> >> >> >>> to
>>> >> >> >>> >> >>> >> >> >>> call,
>>> >> >> >>> >> >>> >> >> >>> which I could catch and do something about.
>>> >> >> >>> >> >>> >> >> >>> The
>>> >> >> >>> >> >>> >> >> >>> test
>>> >> >> >>> >> >>> >> >> >>> java
>>> >> >> >>> >> >>> >> >> >>> class
>>> >> >> >>> >> >>> >> >> >>> I
>>> >> >> >>> >> >>> >> >> >>> put
>>> >> >> >>> >> >>> >> >> >>> into the bug may not be doing any catching, but
>>> >> >> >>> >> >>> >> >> >>> then
>>> >> >> >>> >> >>> >> >> >>> Java
>>> >> >> >>> >> >>> >> >> >>> should
>>> >> >> >>> >> >>> >> >> >>> have
>>> >> >> >>> >> >>> >> >> >>> just exited rather than crash.
>>> >> >> >>> >> >>> >> >> >>>
>>> >> >> >>> >> >>> >> >> >>> steven
>>> >> >> >>> >> >>> >> >> >>>
>>> >> >> >>> >> >>> >> >> >>> On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
>>> >> >> >>> >> >>> >> >> >>>  wrote:
>>> >> >> >>> >> >>> >> >> >>> > Gdb tells me Java crash is caused by
>>> >> >> >>> >> >>> >> >> >>> > linstd++-6.dll
>>> >> >> >>> >> >>> >> >> >>> > of
>>> >> >> >>> >> >>> >> >> >>> > wrong
>>> >> >> >>> >> >>> >> >> >>> > model
>>> >> >> >>> >> >>> >> >> >>> > found in
>>> >> >> >>> >> >>> >> >> >>> > SysWOW64, where it does not belong and was
>>> >> >> >>> >> >>> >> >> >>> > put
>>> >> >> >>> >> >>> >> >> >>> > by
>>> >> >> >>> >> >>> >> >> >>> > some
>>> >> >> >>> >> >>> >> >> >>> > incompetent
>>> >> >> >>> >> >>> >> >> >>> > installer. I'm afraid to remove it because I
>>> >> >> >>> >> >>> >> >> >>> > did
>>> >> >> >>> >> >>> >> >> >>> > once
>>> >> >> >>> >> >>> >> >> >>> > before
>>> >> >> >>> >> >>> >> >> >>> > and
>>> >> >> >>> >> >>> >> >> >>> > lost
>>> >> >> >>> >> >>> >> >> >>> > my
>>> >> >> >>> >> >>> >> >> >>> > user profile.
>>> >> >> >>> >> >>> >> >> >>> >
>>> >> >> >>> >> >>> >> >> >>> >
>>> >> >> >>> >> >>> >> >> >>> >
>>> >> >> >>> >> >>> >> >> >>> >
>>> >> >> >>> >> >>> >> >> >>> >
>>> >> >> >>> >> >>> >> >> >>> >
>>> >> >> >>> >> >>> >> >> >>> >
>>> >> >> >>> >> >>> >> >> >>> >
>>> >> >> >>> >> >>> >> >> >>> >
>>> >> >> >>> >> >>> >> >> >>> >
>>> >> >> >>> >> >>> >> >> >>> >
>>> >> >> >>> >> >>> >> >> >>> > ------------------------------------------------------------------------------
>>> >> >> >>> >> >>> >> >> >>> > Get 100% visibility into Java/.NET code with
>>> >> >> >>> >> >>> >> >> >>> > AppDynamics
>>> >> >> >>> >> >>> >> >> >>> > Lite!
>>> >> >> >>> >> >>> >> >> >>> > It's a free troubleshooting tool designed for
>>> >> >> >>> >> >>> >> >> >>> > production.
>>> >> >> >>> >> >>> >> >> >>> > Get down to code-level detail for
>>> >> >> >>> >> >>> >> >> >>> > bottlenecks,
>>> >> >> >>> >> >>> >> >> >>> > with
>>> >> >> >>> >> >>> >> >> >>> > <2%
>>> >> >> >>> >> >>> >> >> >>> > overhead.
>>> >> >> >>> >> >>> >> >> >>> > Download for free and get started
>>> >> >> >>> >> >>> >> >> >>> > troubleshooting
>>> >> >> >>> >> >>> >> >> >>> > in
>>> >> >> >>> >> >>> >> >> >>> > minutes.
>>> >> >> >>> >> >>> >> >> >>> >
>>> >> >> >>> >> >>> >> >> >>> >
>>> >> >> >>> >> >>> >> >> >>> >
>>> >> >> >>> >> >>> >> >> >>> >
>>> >> >> >>> >> >>> >> >> >>> >
>>> >> >> >>> >> >>> >> >> >>> >
>>> >> >> >>> >> >>> >> >> >>> >
>>> >> >> >>> >> >>> >> >> >>> >
>>> >> >> >>> >> >>> >> >> >>> >
>>> >> >> >>> >> >>> >> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>>> >> >> >>> >> >>> >> >> >>> >
>>> >> >> >>> >> >>> >> >> >>> > _______________________________________________
>>> >> >> >>> >> >>> >> >> >>> > Csound-devel mailing list
>>> >> >> >>> >> >>> >> >> >>> > Csound-devel@lists.sourceforge.net
>>> >> >> >>> >> >>> >> >> >>> >
>>> >> >> >>> >> >>> >> >> >>> >
>>> >> >> >>> >> >>> >> >> >>> >
>>> >> >> >>> >> >>> >> >> >>> >
>>> >> >> >>> >> >>> >> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >> >>> >> >>> >> >> >>> >
>>> >> >> >>> >> >>> >> >> >>>
>>> >> >> >>> >> >>> >> >> >>>
>>> >> >> >>> >> >>> >> >> >>>
>>> >> >> >>> >> >>> >> >> >>>
>>> >> >> >>> >> >>> >> >> >>>
>>> >> >> >>> >> >>> >> >> >>>
>>> >> >> >>> >> >>> >> >> >>>
>>> >> >> >>> >> >>> >> >> >>>
>>> >> >> >>> >> >>> >> >> >>>
>>> >> >> >>> >> >>> >> >> >>>
>>> >> >> >>> >> >>> >> >> >>> ------------------------------------------------------------------------------
>>> >> >> >>> >> >>> >> >> >>> Get 100% visibility into Java/.NET code with
>>> >> >> >>> >> >>> >> >> >>> AppDynamics
>>> >> >> >>> >> >>> >> >> >>> Lite!
>>> >> >> >>> >> >>> >> >> >>> It's a free troubleshooting tool designed for
>>> >> >> >>> >> >>> >> >> >>> production.
>>> >> >> >>> >> >>> >> >> >>> Get down to code-level detail for bottlenecks,
>>> >> >> >>> >> >>> >> >> >>> with
>>> >> >> >>> >> >>> >> >> >>> <2%
>>> >> >> >>> >> >>> >> >> >>> overhead.
>>> >> >> >>> >> >>> >> >> >>> Download for free and get started
>>> >> >> >>> >> >>> >> >> >>> troubleshooting
>>> >> >> >>> >> >>> >> >> >>> in
>>> >> >> >>> >> >>> >> >> >>> minutes.
>>> >> >> >>> >> >>> >> >> >>>
>>> >> >> >>> >> >>> >> >> >>>
>>> >> >> >>> >> >>> >> >> >>>
>>> >> >> >>> >> >>> >> >> >>>
>>> >> >> >>> >> >>> >> >> >>>
>>> >> >> >>> >> >>> >> >> >>>
>>> >> >> >>> >> >>> >> >> >>>
>>> >> >> >>> >> >>> >> >> >>>
>>> >> >> >>> >> >>> >> >> >>>
>>> >> >> >>> >> >>> >> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>>> >> >> >>> >> >>> >> >> >>> _______________________________________________
>>> >> >> >>> >> >>> >> >> >>> Csound-devel mailing list
>>> >> >> >>> >> >>> >> >> >>> Csound-devel@lists.sourceforge.net
>>> >> >> >>> >> >>> >> >> >>>
>>> >> >> >>> >> >>> >> >> >>>
>>> >> >> >>> >> >>> >> >> >>>
>>> >> >> >>> >> >>> >> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >> >>> >> >>> >> >> >>
>>> >> >> >>> >> >>> >> >> >>
>>> >> >> >>> >> >>> >> >> >
>>> >> >> >>> >> >>> >> >> >
>>> >> >> >>> >> >>> >> >> >
>>> >> >> >>> >> >>> >> >> >
>>> >> >> >>> >> >>> >> >> >
>>> >> >> >>> >> >>> >> >> >
>>> >> >> >>> >> >>> >> >> >
>>> >> >> >>> >> >>> >> >> >
>>> >> >> >>> >> >>> >> >> >
>>> >> >> >>> >> >>> >> >> >
>>> >> >> >>> >> >>> >> >> > ------------------------------------------------------------------------------
>>> >> >> >>> >> >>> >> >> > Get 100% visibility into Java/.NET code with
>>> >> >> >>> >> >>> >> >> > AppDynamics
>>> >> >> >>> >> >>> >> >> > Lite!
>>> >> >> >>> >> >>> >> >> > It's a free troubleshooting tool designed for
>>> >> >> >>> >> >>> >> >> > production.
>>> >> >> >>> >> >>> >> >> > Get down to code-level detail for bottlenecks,
>>> >> >> >>> >> >>> >> >> > with
>>> >> >> >>> >> >>> >> >> > <2%
>>> >> >> >>> >> >>> >> >> > overhead.
>>> >> >> >>> >> >>> >> >> > Download for free and get started troubleshooting
>>> >> >> >>> >> >>> >> >> > in
>>> >> >> >>> >> >>> >> >> > minutes.
>>> >> >> >>> >> >>> >> >> >
>>> >> >> >>> >> >>> >> >> >
>>> >> >> >>> >> >>> >> >> >
>>> >> >> >>> >> >>> >> >> >
>>> >> >> >>> >> >>> >> >> >
>>> >> >> >>> >> >>> >> >> >
>>> >> >> >>> >> >>> >> >> >
>>> >> >> >>> >> >>> >> >> >
>>> >> >> >>> >> >>> >> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>>> >> >> >>> >> >>> >> >> > _______________________________________________
>>> >> >> >>> >> >>> >> >> > Csound-devel mailing list
>>> >> >> >>> >> >>> >> >> > Csound-devel@lists.sourceforge.net
>>> >> >> >>> >> >>> >> >> >
>>> >> >> >>> >> >>> >> >> >
>>> >> >> >>> >> >>> >> >> >
>>> >> >> >>> >> >>> >> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >> >>> >> >>> >> >> >
>>> >> >> >>> >> >>> >> >>
>>> >> >> >>> >> >>> >> >>
>>> >> >> >>> >> >>> >> >>
>>> >> >> >>> >> >>> >> >>
>>> >> >> >>> >> >>> >> >>
>>> >> >> >>> >> >>> >> >>
>>> >> >> >>> >> >>> >> >>
>>> >> >> >>> >> >>> >> >>
>>> >> >> >>> >> >>> >> >>
>>> >> >> >>> >> >>> >> >> ------------------------------------------------------------------------------
>>> >> >> >>> >> >>> >> >> Introducing Performance Central, a new site from
>>> >> >> >>> >> >>> >> >> SourceForge
>>> >> >> >>> >> >>> >> >> and
>>> >> >> >>> >> >>> >> >> AppDynamics. Performance Central is your source for
>>> >> >> >>> >> >>> >> >> news,
>>> >> >> >>> >> >>> >> >> insights,
>>> >> >> >>> >> >>> >> >> analysis and resources for efficient Application
>>> >> >> >>> >> >>> >> >> Performance
>>> >> >> >>> >> >>> >> >> Management.
>>> >> >> >>> >> >>> >> >> Visit us today!
>>> >> >> >>> >> >>> >> >>
>>> >> >> >>> >> >>> >> >>
>>> >> >> >>> >> >>> >> >>
>>> >> >> >>> >> >>> >> >>
>>> >> >> >>> >> >>> >> >>
>>> >> >> >>> >> >>> >> >>
>>> >> >> >>> >> >>> >> >>
>>> >> >> >>> >> >>> >> >>
>>> >> >> >>> >> >>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>>> >> >> >>> >> >>> >> >>
>>> >> >> >>> >> >>> >> >> _______________________________________________
>>> >> >> >>> >> >>> >> >> Csound-devel mailing list
>>> >> >> >>> >> >>> >> >> Csound-devel@lists.sourceforge.net
>>> >> >> >>> >> >>> >> >>
>>> >> >> >>> >> >>> >> >>
>>> >> >> >>> >> >>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >> > ------------------------------------------------------------------------------
>>> >> >> >>> >> >>> >> > Introducing Performance Central, a new site from
>>> >> >> >>> >> >>> >> > SourceForge
>>> >> >> >>> >> >>> >> > and
>>> >> >> >>> >> >>> >> > AppDynamics. Performance Central is your source for
>>> >> >> >>> >> >>> >> > news,
>>> >> >> >>> >> >>> >> > insights,
>>> >> >> >>> >> >>> >> > analysis and resources for efficient Application
>>> >> >> >>> >> >>> >> > Performance
>>> >> >> >>> >> >>> >> > Management.
>>> >> >> >>> >> >>> >> > Visit us today!
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>>> >> >> >>> >> >>> >> > _______________________________________________
>>> >> >> >>> >> >>> >> > Csound-devel mailing list
>>> >> >> >>> >> >>> >> > Csound-devel@lists.sourceforge.net
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >> >>> >> >>> >> >
>>> >> >> >>> >> >>> >>
>>> >> >> >>> >> >>> >>
>>> >> >> >>> >> >>> >>
>>> >> >> >>> >> >>> >>
>>> >> >> >>> >> >>> >>
>>> >> >> >>> >> >>> >>
>>> >> >> >>> >> >>> >>
>>> >> >> >>> >> >>> >>
>>> >> >> >>> >> >>> >> ------------------------------------------------------------------------------
>>> >> >> >>> >> >>> >> Learn the latest--Visual Studio 2012, SharePoint 2013,
>>> >> >> >>> >> >>> >> SQL
>>> >> >> >>> >> >>> >> 2012,
>>> >> >> >>> >> >>> >> more!
>>> >> >> >>> >> >>> >> Discover the easy way to master current and previous
>>> >> >> >>> >> >>> >> Microsoft
>>> >> >> >>> >> >>> >> technologies
>>> >> >> >>> >> >>> >> and advance your career. Get an incredible 1,500+
>>> >> >> >>> >> >>> >> hours
>>> >> >> >>> >> >>> >> of
>>> >> >> >>> >> >>> >> step-by-step
>>> >> >> >>> >> >>> >> tutorial videos with LearnDevNow. Subscribe today and
>>> >> >> >>> >> >>> >> save!
>>> >> >> >>> >> >>> >>
>>> >> >> >>> >> >>> >>
>>> >> >> >>> >> >>> >>
>>> >> >> >>> >> >>> >>
>>> >> >> >>> >> >>> >>
>>> >> >> >>> >> >>> >>
>>> >> >> >>> >> >>> >>
>>> >> >> >>> >> >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> >> >> >>> >> >>> >>
>>> >> >> >>> >> >>> >> _______________________________________________
>>> >> >> >>> >> >>> >> Csound-devel mailing list
>>> >> >> >>> >> >>> >> Csound-devel@lists.sourceforge.net
>>> >> >> >>> >> >>> >>
>>> >> >> >>> >> >>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >> >>> >> >>> >
>>> >> >> >>> >> >>> >
>>> >> >> >>> >> >>> >
>>> >> >> >>> >> >>> >
>>> >> >> >>> >> >>> >
>>> >> >> >>> >> >>> >
>>> >> >> >>> >> >>> >
>>> >> >> >>> >> >>> >
>>> >> >> >>> >> >>> >
>>> >> >> >>> >> >>> > ------------------------------------------------------------------------------
>>> >> >> >>> >> >>> > Learn the latest--Visual Studio 2012, SharePoint 2013,
>>> >> >> >>> >> >>> > SQL
>>> >> >> >>> >> >>> > 2012,
>>> >> >> >>> >> >>> > more!
>>> >> >> >>> >> >>> > Discover the easy way to master current and previous
>>> >> >> >>> >> >>> > Microsoft
>>> >> >> >>> >> >>> > technologies
>>> >> >> >>> >> >>> > and advance your career. Get an incredible 1,500+ hours
>>> >> >> >>> >> >>> > of
>>> >> >> >>> >> >>> > step-by-step
>>> >> >> >>> >> >>> > tutorial videos with LearnDevNow. Subscribe today and
>>> >> >> >>> >> >>> > save!
>>> >> >> >>> >> >>> >
>>> >> >> >>> >> >>> >
>>> >> >> >>> >> >>> >
>>> >> >> >>> >> >>> >
>>> >> >> >>> >> >>> >
>>> >> >> >>> >> >>> >
>>> >> >> >>> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> >> >> >>> >> >>> > _______________________________________________
>>> >> >> >>> >> >>> > Csound-devel mailing list
>>> >> >> >>> >> >>> > Csound-devel@lists.sourceforge.net
>>> >> >> >>> >> >>> >
>>> >> >> >>> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >> >>> >> >>> >
>>> >> >> >>> >> >>>
>>> >> >> >>> >> >>>
>>> >> >> >>> >> >>>
>>> >> >> >>> >> >>>
>>> >> >> >>> >> >>>
>>> >> >> >>> >> >>>
>>> >> >> >>> >> >>>
>>> >> >> >>> >> >>> ------------------------------------------------------------------------------
>>> >> >> >>> >> >>> Learn the latest--Visual Studio 2012, SharePoint 2013,
>>> >> >> >>> >> >>> SQL
>>> >> >> >>> >> >>> 2012,
>>> >> >> >>> >> >>> more!
>>> >> >> >>> >> >>> Discover the easy way to master current and previous
>>> >> >> >>> >> >>> Microsoft
>>> >> >> >>> >> >>> technologies
>>> >> >> >>> >> >>> and advance your career. Get an incredible 1,500+ hours
>>> >> >> >>> >> >>> of
>>> >> >> >>> >> >>> step-by-step
>>> >> >> >>> >> >>> tutorial videos with LearnDevNow. Subscribe today and
>>> >> >> >>> >> >>> save!
>>> >> >> >>> >> >>>
>>> >> >> >>> >> >>>
>>> >> >> >>> >> >>>
>>> >> >> >>> >> >>>
>>> >> >> >>> >> >>>
>>> >> >> >>> >> >>>
>>> >> >> >>> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> >> >> >>> >> >>> _______________________________________________
>>> >> >> >>> >> >>> Csound-devel mailing list
>>> >> >> >>> >> >>> Csound-devel@lists.sourceforge.net
>>> >> >> >>> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >> >>> >> >>
>>> >> >> >>> >> >>
>>> >> >> >>> >> >>
>>> >> >> >>> >> >>
>>> >> >> >>> >> >>
>>> >> >> >>> >> >>
>>> >> >> >>> >> >>
>>> >> >> >>> >> >> ------------------------------------------------------------------------------
>>> >> >> >>> >> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>>> >> >> >>> >> >> 2012,
>>> >> >> >>> >> >> more!
>>> >> >> >>> >> >> Discover the easy way to master current and previous
>>> >> >> >>> >> >> Microsoft
>>> >> >> >>> >> >> technologies
>>> >> >> >>> >> >> and advance your career. Get an incredible 1,500+ hours of
>>> >> >> >>> >> >> step-by-step
>>> >> >> >>> >> >> tutorial videos with LearnDevNow. Subscribe today and
>>> >> >> >>> >> >> save!
>>> >> >> >>> >> >>
>>> >> >> >>> >> >>
>>> >> >> >>> >> >>
>>> >> >> >>> >> >>
>>> >> >> >>> >> >>
>>> >> >> >>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> >> >> >>> >> >> _______________________________________________
>>> >> >> >>> >> >> Csound-devel mailing list
>>> >> >> >>> >> >> Csound-devel@lists.sourceforge.net
>>> >> >> >>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >> >>> >> >>
>>> >> >> >>> >>
>>> >> >> >>> >>
>>> >> >> >>> >>
>>> >> >> >>> >>
>>> >> >> >>> >>
>>> >> >> >>> >>
>>> >> >> >>> >> ------------------------------------------------------------------------------
>>> >> >> >>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>>> >> >> >>> >> 2012,
>>> >> >> >>> >> more!
>>> >> >> >>> >> Discover the easy way to master current and previous
>>> >> >> >>> >> Microsoft
>>> >> >> >>> >> technologies
>>> >> >> >>> >> and advance your career. Get an incredible 1,500+ hours of
>>> >> >> >>> >> step-by-step
>>> >> >> >>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>>> >> >> >>> >>
>>> >> >> >>> >>
>>> >> >> >>> >>
>>> >> >> >>> >>
>>> >> >> >>> >>
>>> >> >> >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> >> >> >>> >> _______________________________________________
>>> >> >> >>> >> Csound-devel mailing list
>>> >> >> >>> >> Csound-devel@lists.sourceforge.net
>>> >> >> >>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> > ------------------------------------------------------------------------------
>>> >> >> >>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>>> >> >> >>> > 2012,
>>> >> >> >>> > more!
>>> >> >> >>> > Discover the easy way to master current and previous Microsoft
>>> >> >> >>> > technologies
>>> >> >> >>> > and advance your career. Get an incredible 1,500+ hours of
>>> >> >> >>> > step-by-step
>>> >> >> >>> > tutorial videos with LearnDevNow. Subscribe today and save!
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> >> >> >>> > _______________________________________________
>>> >> >> >>> > Csound-devel mailing list
>>> >> >> >>> > Csound-devel@lists.sourceforge.net
>>> >> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >> >>> >
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>> ------------------------------------------------------------------------------
>>> >> >> >>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>>> >> >> >>> more!
>>> >> >> >>> Discover the easy way to master current and previous Microsoft
>>> >> >> >>> technologies
>>> >> >> >>> and advance your career. Get an incredible 1,500+ hours of
>>> >> >> >>> step-by-step
>>> >> >> >>> tutorial videos with LearnDevNow. Subscribe today and save!
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> >> >> >>> _______________________________________________
>>> >> >> >>> Csound-devel mailing list
>>> >> >> >>> Csound-devel@lists.sourceforge.net
>>> >> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >> >>
>>> >> >> >>
>>> >> >> >>
>>> >> >> >>
>>> >> >> >>
>>> >> >> >> ------------------------------------------------------------------------------
>>> >> >> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>>> >> >> >> more!
>>> >> >> >> Discover the easy way to master current and previous Microsoft
>>> >> >> >> technologies
>>> >> >> >> and advance your career. Get an incredible 1,500+ hours of
>>> >> >> >> step-by-step
>>> >> >> >> tutorial videos with LearnDevNow. Subscribe today and save!
>>> >> >> >>
>>> >> >> >>
>>> >> >> >>
>>> >> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> >> >> >> _______________________________________________
>>> >> >> >> Csound-devel mailing list
>>> >> >> >> Csound-devel@lists.sourceforge.net
>>> >> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >> >>
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >> ------------------------------------------------------------------------------
>>> >> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>>> >> >> more!
>>> >> >> Discover the easy way to master current and previous Microsoft
>>> >> >> technologies
>>> >> >> and advance your career. Get an incredible 1,500+ hours of
>>> >> >> step-by-step
>>> >> >> tutorial videos with LearnDevNow. Subscribe today and save!
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> >> >> _______________________________________________
>>> >> >> Csound-devel mailing list
>>> >> >> Csound-devel@lists.sourceforge.net
>>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> >> > ------------------------------------------------------------------------------
>>> >> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>>> >> > more!
>>> >> > Discover the easy way to master current and previous Microsoft
>>> >> > technologies
>>> >> > and advance your career. Get an incredible 1,500+ hours of
>>> >> > step-by-step
>>> >> > tutorial videos with LearnDevNow. Subscribe today and save!
>>> >> >
>>> >> >
>>> >> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> >> > _______________________________________________
>>> >> > Csound-devel mailing list
>>> >> > Csound-devel@lists.sourceforge.net
>>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >> >
>>> >>
>>> >>
>>> >>
>>> >> ------------------------------------------------------------------------------
>>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>>> >> Discover the easy way to master current and previous Microsoft
>>> >> technologies
>>> >> and advance your career. Get an incredible 1,500+ hours of step-by-step
>>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>>> >>
>>> >>
>>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> >> _______________________________________________
>>> >> Csound-devel mailing list
>>> >> Csound-devel@lists.sourceforge.net
>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >
>>> >
>>> >
>>> >
>>> > ------------------------------------------------------------------------------
>>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>>> > Discover the easy way to master current and previous Microsoft
>>> > technologies
>>> > and advance your career. Get an incredible 1,500+ hours of step-by-step
>>> > tutorial videos with LearnDevNow. Subscribe today and save!
>>> >
>>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> > _______________________________________________
>>> > Csound-devel mailing list
>>> > Csound-devel@lists.sourceforge.net
>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>>> Discover the easy way to master current and previous Microsoft
>>> technologies
>>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>>> tutorial videos with LearnDevNow. Subscribe today and save!
>>>
>>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> Discover the easy way to master current and previous Microsoft technologies
>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> tutorial videos with LearnDevNow. Subscribe today and save!
>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-08-28 21:55
FromMichael Gogins
SubjectRe: [Cs-dev] Java crash on windows
AttachmentsNone  None  

Is that a problem for us?

On Aug 28, 2013 4:27 PM, "Felipe Sateler" <fsateler@gmail.com> wrote:
c++11 apparently breaks ABI compatibility with non-c++11 code:


On Wed, Aug 28, 2013 at 3:23 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
These are only for Windows.

The only harm from defining these options globally is that more symbols are exported by the shared libraries, so the dynamic loads might be a tad slower. Once loaded I don't think calls would be noticeably slower. So I would go ahead and make these global on Windows. Other things that I always define globally on Windows, and should probably be the defaults on Windows:

-g -O2 -std=gnu++11 -fopenmp -march=nocona -DNDEBUG -I/usr/local/include -L/usr/local/lib -mstackrealign -Wl,--add-stdcall-alias -Wl,--enable-stdcall-fixup

I don't know why I didn't think about the stdcall possibility this time -- when it was I who originally added these options for this sort of reason in the first place!

Best,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Wed, Aug 28, 2013 at 3:09 PM, Steven Yi <stevenyi@gmail.com> wrote:
I'm hopeful this will be it. :)  I tried adding it to my Custom.cmake
for now and am doing a compile.  I grepped through CS5's SConstruct
and surely enough there's numerous places where
-Wl,--add-stdcall-alias is used, and a few places where
-Wl,--enable-stdcall-fixup is used.

I should be able to test in about 10 minutes; assuming all is good,
I'm wondering should this just be enabled as a global flag if on
Windows, or only for certain libs?

As for finding a fix, glad that none of my other guesses were correct
as I think they'd be much more difficult to solve. :P

On Wed, Aug 28, 2013 at 2:40 PM, Michael Gogins
<michael.gogins@gmail.com> wrote:
> If that's the case, then changing the linker flags should do the trick. @8
> marks the function as stdcall calling convention with 8 bytes to be popped
> off the stack after returning from the call.
>
> To CFLAGS and CXXFLAGS for the DLL, add -"Wl,--add-stdcall-alias
> -Wl,--enable-stdcall-fixup". I think only the first is required but I used
> to add both to everything just to cover my bases.
>
> --add-stdcall-alias                Export symbols with and without @nn
> --disable-stdcall-fixup            Don't link _sym to _sym@nn DON'T USE!
> --enable-stdcall-fixup             Link _sym to _sym@nn without warnings
>
> Best,
> Mike
>
>
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Wed, Aug 28, 2013 at 1:25 PM, Steven Yi <stevenyi@gmail.com> wrote:
>>
>> I found something that looks useful.  In _jcsound.dll from CS5,
>> DependencyWalker shows symbols like:
>>
>> Java_csnd_csndJNI_swig_1module_1init
>> Java_csnd_csndJNI_swig_1module_1init@8
>>
>> while CS6 only has:
>>
>> Java_csnd6_csnd6JNI_swig_1module_1init@8
>>
>> I get the impression that the PUBLIC attribute isn't working
>> correctly, or something along those lines.  I've got to take a break
>> but will continue on with this after lunch.
>>
>> On Wed, Aug 28, 2013 at 12:22 PM, Steven Yi <stevenyi@gmail.com> wrote:
>> > That didn't seem to affect anything unfortunately. Continuing on....
>> >
>> > On Wed, Aug 28, 2013 at 11:59 AM, Michael Gogins
>> > <michael.gogins@gmail.com> wrote:
>> >> Well, that's certainly a mistake.
>> >>
>> >> On Aug 28, 2013 11:59 AM, "Steven Yi" <stevenyi@gmail.com> wrote:
>> >>>
>> >>> That sounds reasonable, but the Csound5 API still loads for me fine
>> >>> with Blue, using the same VM.  I think that'd rule that one out.  I
>> >>> saw that csound.h has "%module csnd" isntead of "%module csnd6".  I'm
>> >>> not sure that's it, as that seems like it'd affect other platforms,
>> >>> but I'm giving it a try now just in case.  (compile should be done in
>> >>> 15-20 mins... ugh...)
>> >>>
>> >>> On Wed, Aug 28, 2013 at 11:35 AM, Michael Gogins
>> >>> <michael.gogins@gmail.com> wrote:
>> >>> > If I were you, I would try compiling the library with both the
>> >>> > wrapper
>> >>> > and
>> >>> > the wrapped lib, just to rule that out.
>> >>> >
>> >>> > There may well have been some change in the way the Java VM and
>> >>> > library
>> >>> > link. You could try Oracle issues on Java regarding that.
>> >>> >
>> >>> > Best,
>> >>> > Mike
>> >>> >
>> >>> >
>> >>> > ===========================
>> >>> > Michael Gogins
>> >>> > Irreducible Productions
>> >>> > http://michaelgogins.tumblr.com
>> >>> > Michael dot Gogins at gmail dot com
>> >>> >
>> >>> >
>> >>> > On Wed, Aug 28, 2013 at 11:18 AM, Steven Yi <stevenyi@gmail.com>
>> >>> > wrote:
>> >>> >>
>> >>> >> Just an update, I tried modifying to use libcsnd6 and linking to
>> >>> >> that,
>> >>> >> but it had no affect on the Java test.  I did see in the SWIG
>> >>> >> manual
>> >>> >> for Java that they have an error shown similar to ours, with the
>> >>> >> documentation:
>> >>> >>
>> >>> >> "This error usually indicates that you forgot to include some
>> >>> >> object
>> >>> >> files or libraries in the linking of the native library file. Make
>> >>> >> sure you compile both the SWIG wrapper file and the code you are
>> >>> >> wrapping into the native library file. If you forget to compile and
>> >>> >> link in the SWIG wrapper file into your native library file, you
>> >>> >> will
>> >>> >> get a message similar to the following:"
>> >>> >>
>> >>> >> However, I don't think this is quite the issue as the same Cmake
>> >>> >> script works on OSX and Linux. I did see an email about possibly
>> >>> >> needing to compile the library with both the wrapper and the
>> >>> >> wrapped
>> >>> >> lib, but that seemed odd as we had things working with CS5.
>> >>> >>
>> >>> >> I'll continue to explore here.
>> >>> >>
>> >>> >> On Tue, Aug 27, 2013 at 5:19 PM, Steven Yi <stevenyi@gmail.com>
>> >>> >> wrote:
>> >>> >> > Thanks for the info, at least we can eliminate that possibility
>> >>> >> > then.
>> >>> >> > I'll hopefully get further along tomorrow and will report
>> >>> >> > anything I
>> >>> >> > find.
>> >>> >> >
>> >>> >> > On Tue, Aug 27, 2013 at 5:13 PM, Michael Gogins
>> >>> >> > <michael.gogins@gmail.com> wrote:
>> >>> >> >> The csnd name should be versioned but I don't have 5 on my
>> >>> >> >> machine
>> >>> >> >> at
>> >>> >> >> all.
>> >>> >> >>
>> >>> >> >> On Aug 27, 2013 5:03 PM, "Steven Yi" <stevenyi@gmail.com> wrote:
>> >>> >> >>>
>> >>> >> >>> The compile paths here are a mess so I'm going to need to sort
>> >>> >> >>> that
>> >>> >> >>> out here locally.  However, I'm wondering if at runtime if the
>> >>> >> >>> wrong
>> >>> >> >>> dll is getting loaded due to csnd.dll being the same name in
>> >>> >> >>> CS5
>> >>> >> >>> and
>> >>> >> >>> CS6.  Perhaps we should rename that to see if that's the source
>> >>> >> >>> of
>> >>> >> >>> issues for Java (possible CsoundPerformanceThread too?). I'm
>> >>> >> >>> imagining
>> >>> >> >>> if Csound runs multiple times alright, but
>> >>> >> >>> CsoundPerformanceThread
>> >>> >> >>> does not, then it could be possible that the csound6 library is
>> >>> >> >>> loading fine, but the cs5 version of csnd is loading and
>> >>> >> >>> causing
>> >>> >> >>> issues.
>> >>> >> >>>
>> >>> >> >>> On Tue, Aug 27, 2013 at 4:52 PM, Michael Gogins
>> >>> >> >>> <michael.gogins@gmail.com> wrote:
>> >>> >> >>> > In my build I'm very careful about the actual library paths.
>> >>> >> >>> > I
>> >>> >> >>> > look
>> >>> >> >>> > at
>> >>> >> >>> > the
>> >>> >> >>> > CMakeCache.txt, I look at the compiler and linker commands,
>> >>> >> >>> > and I
>> >>> >> >>> > look
>> >>> >> >>> > at
>> >>> >> >>> > what libraries actually get loaded during a run (there are
>> >>> >> >>> > various
>> >>> >> >>> > tools
>> >>> >> >>> > for
>> >>> >> >>> > doing this on Windows). I am careful because yes, it has been
>> >>> >> >>> > a
>> >>> >> >>> > problem
>> >>> >> >>> > for
>> >>> >> >>> > me, as you saw from my earlier emails.
>> >>> >> >>> >
>> >>> >> >>> > But we should talk about how to make this better on Windows.
>> >>> >> >>> >
>> >>> >> >>> > Best,
>> >>> >> >>> > Mike
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> > ===========================
>> >>> >> >>> > Michael Gogins
>> >>> >> >>> > Irreducible Productions
>> >>> >> >>> > http://michaelgogins.tumblr.com
>> >>> >> >>> > Michael dot Gogins at gmail dot com
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> > On Tue, Aug 27, 2013 at 4:15 PM, Steven Yi
>> >>> >> >>> > <stevenyi@gmail.com>
>> >>> >> >>> > wrote:
>> >>> >> >>> >>
>> >>> >> >>> >> Hi Michael and All,
>> >>> >> >>> >>
>> >>> >> >>> >> I just spent a bit of time looking into this and found some
>> >>> >> >>> >> very
>> >>> >> >>> >> heinous stuff going on in windows.  It looks to me that
>> >>> >> >>> >> CMake
>> >>> >> >>> >> actually
>> >>> >> >>> >> found all types of libraries from the PATH to use.  That
>> >>> >> >>> >> meant
>> >>> >> >>> >> some
>> >>> >> >>> >> libraries from C:\Program Files (x86)\Csound\bin were found,
>> >>> >> >>> >> others
>> >>> >> >>> >> from C:\Program Files (x86)\Csound6\bin, and others from my
>> >>> >> >>> >> MSYS
>> >>> >> >>> >> /usr/local/lib and custom set paths.  I get the impression
>> >>> >> >>> >> this
>> >>> >> >>> >> could
>> >>> >> >>> >> be a source of some of the issues we're seeing both with the
>> >>> >> >>> >> Java
>> >>> >> >>> >> library and other windows oddities.
>> >>> >> >>> >>
>> >>> >> >>> >> I mostly noticed this in looking at my CmakeCache.txt.  I'm
>> >>> >> >>> >> wondering
>> >>> >> >>> >> if the Java lib is linking to Csound 5's csnd.dll instead of
>> >>> >> >>> >> Csound6's.  If that's the case, then perhaps we can change
>> >>> >> >>> >> csnd
>> >>> >> >>> >> to
>> >>> >> >>> >> be
>> >>> >> >>> >> csnd6 instead.
>> >>> >> >>> >>
>> >>> >> >>> >> I've got to move on for the day, but will come back to this
>> >>> >> >>> >> tomorrow.
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >> On Tue, Aug 20, 2013 at 11:14 PM, Michael Gogins
>> >>> >> >>> >> <michael.gogins@gmail.com> wrote:
>> >>> >> >>> >> > People do seem to be switching to mingw-builds. I am using
>> >>> >> >>> >> > 4.8.1,
>> >>> >> >>> >> > dwarf-2,
>> >>> >> >>> >> > posix threads, 32 bits. If you use the same version we
>> >>> >> >>> >> > have a
>> >>> >> >>> >> > much
>> >>> >> >>> >> > better
>> >>> >> >>> >> > chance of understanding what is going on.
>> >>> >> >>> >> >
>> >>> >> >>> >> > I think there is something pretty subtle going on both
>> >>> >> >>> >> > with
>> >>> >> >>> >> > Java
>> >>> >> >>> >> > and
>> >>> >> >>> >> > with
>> >>> >> >>> >> > the CsoundPerformanceThread.
>> >>> >> >>> >> >
>> >>> >> >>> >> > I have proved that the existence of incompatible MinGW
>> >>> >> >>> >> > runtime
>> >>> >> >>> >> > libraries
>> >>> >> >>> >> > can
>> >>> >> >>> >> > be a problem. I have also proved that that is not the ONLY
>> >>> >> >>> >> > problem,
>> >>> >> >>> >> > at
>> >>> >> >>> >> > least, on my computer. I succeeded finally in removing
>> >>> >> >>> >> > incompatible
>> >>> >> >>> >> > MinGW
>> >>> >> >>> >> > runtime libraries from my SysWOW64 directory (!) so I now
>> >>> >> >>> >> > can
>> >>> >> >>> >> > run
>> >>> >> >>> >> > CsoundAC
>> >>> >> >>> >> > code, but I am still having problems with the performance
>> >>> >> >>> >> > thread
>> >>> >> >>> >> > and
>> >>> >> >>> >> > with
>> >>> >> >>> >> > Java. Different computers behave differently, e.g. I can
>> >>> >> >>> >> > run
>> >>> >> >>> >> > CsoundQt
>> >>> >> >>> >> > at
>> >>> >> >>> >> > work but not at home.
>> >>> >> >>> >> >
>> >>> >> >>> >> > In my programming life, these errors can arise from
>> >>> >> >>> >> > several
>> >>> >> >>> >> > errors
>> >>> >> >>> >> > but
>> >>> >> >>> >> > one
>> >>> >> >>> >> > common source is uninitialized members of structs and
>> >>> >> >>> >> > classes
>> >>> >> >>> >> > that
>> >>> >> >>> >> > contain
>> >>> >> >>> >> > zeroes on some machines and junk on other machines. Or
>> >>> >> >>> >> > writes
>> >>> >> >>> >> > past
>> >>> >> >>> >> > buffer
>> >>> >> >>> >> > ends that poke holes in junk on some machines and in vital
>> >>> >> >>> >> > organs
>> >>> >> >>> >> > on
>> >>> >> >>> >> > other
>> >>> >> >>> >> > machines. Having multiple threads makes this harder...
>> >>> >> >>> >> >
>> >>> >> >>> >> > Regards,
>> >>> >> >>> >> > Mike
>> >>> >> >>> >> >
>> >>> >> >>> >> > I wish I had something like valgrind on Windows but I
>> >>> >> >>> >> > can't
>> >>> >> >>> >> > afford
>> >>> >> >>> >> > the
>> >>> >> >>> >> > equivalent.
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> > ===========================
>> >>> >> >>> >> > Michael Gogins
>> >>> >> >>> >> > Irreducible Productions
>> >>> >> >>> >> > http://michaelgogins.tumblr.com
>> >>> >> >>> >> > Michael dot Gogins at gmail dot com
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> > On Tue, Aug 20, 2013 at 10:56 PM, Steven Yi
>> >>> >> >>> >> > <stevenyi@gmail.com>
>> >>> >> >>> >> > wrote:
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> Hi Michael,
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> I was trying to setup to get a build working on Windows
>> >>> >> >>> >> >> to
>> >>> >> >>> >> >> see
>> >>> >> >>> >> >> if I
>> >>> >> >>> >> >> can further diagnose what's going on.  I currently have
>> >>> >> >>> >> >> the
>> >>> >> >>> >> >> stock
>> >>> >> >>> >> >> mingw/msys installed from sf.net/projects/mingw. I
>> >>> >> >>> >> >> noticed in
>> >>> >> >>> >> >> your
>> >>> >> >>> >> >> How
>> >>> >> >>> >> >> to Build doc that you are using mingwbuilds version.
>> >>> >> >>> >> >> Could
>> >>> >> >>> >> >> you
>> >>> >> >>> >> >> advise: should I uninstalled mingw/msys and use just
>> >>> >> >>> >> >> mingwbuilds?
>> >>> >> >>> >> >> (I.e. better to start clean).
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> Thanks!
>> >>> >> >>> >> >> steven
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> On Thu, Aug 15, 2013 at 8:44 AM, Michael Gogins
>> >>> >> >>> >> >> <michael.gogins@gmail.com> wrote:
>> >>> >> >>> >> >> > Sorry, fumble fingers.
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > The problem I see is that the csnd6 low level JNI Java
>> >>> >> >>> >> >> > class
>> >>> >> >>> >> >> > needs
>> >>> >> >>> >> >> > to
>> >>> >> >>> >> >> > call
>> >>> >> >>> >> >> > SWIG's initializer in _csound.dll. The initializer is
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > thing
>> >>> >> >>> >> >> > not
>> >>> >> >>> >> >> > found.
>> >>> >> >>> >> >> > Without it we don't have Java Csound.
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > Still no solution, though. The initializer is in
>> >>> >> >>> >> >> > _jcsound.dll.
>> >>> >> >>> >> >> > Java
>> >>> >> >>> >> >> > doesn't
>> >>> >> >>> >> >> > find it. Java finds the CsoundEditor.jar (a better test
>> >>> >> >>> >> >> > than
>> >>> >> >>> >> >> > CSDPlayer.jar
>> >>> >> >>> >> >> > because it loads csnd6 right away) and loads and begins
>> >>> >> >>> >> >> > to
>> >>> >> >>> >> >> > run
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > Java
>> >>> >> >>> >> >> > code. The first thing to run is the static block that
>> >>> >> >>> >> >> > loads
>> >>> >> >>> >> >> > _jcsound.dll
>> >>> >> >>> >> >> > and
>> >>> >> >>> >> >> > calls the initializer. There are 4 steps here: locate
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > DLL,
>> >>> >> >>> >> >> > load
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > DLL,
>> >>> >> >>> >> >> > find the initializer function, call the initializer. We
>> >>> >> >>> >> >> > know
>> >>> >> >>> >> >> > that
>> >>> >> >>> >> >> > we
>> >>> >> >>> >> >> > don't
>> >>> >> >>> >> >> > find the initializer. I think it fails at the load
>> >>> >> >>> >> >> > stage
>> >>> >> >>> >> >> > because I
>> >>> >> >>> >> >> > have
>> >>> >> >>> >> >> > DLL
>> >>> >> >>> >> >> > hell on my notebook right now and I seem to recall
>> >>> >> >>> >> >> > catching
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > DLL
>> >>> >> >>> >> >> > load.
>> >>> >> >>> >> >> > I'll verify that later. In other words I think it
>> >>> >> >>> >> >> > starts to
>> >>> >> >>> >> >> > load
>> >>> >> >>> >> >> > _jcsound.dll and then there is a problem when
>> >>> >> >>> >> >> > _jcsound.dll
>> >>> >> >>> >> >> > is
>> >>> >> >>> >> >> > loading
>> >>> >> >>> >> >> > other
>> >>> >> >>> >> >> > things or initializating its own things.
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > ===========================
>> >>> >> >>> >> >> > Michael Gogins
>> >>> >> >>> >> >> > Irreducible Productions
>> >>> >> >>> >> >> > http://michaelgogins.tumblr.com
>> >>> >> >>> >> >> > Michael dot Gogins at gmail dot com
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > On Thu, Aug 15, 2013 at 8:32 AM, Michael Gogins
>> >>> >> >>> >> >> > <michael.gogins@gmail.com>
>> >>> >> >>> >> >> > wrote:
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >> The problem I see is that the Csound JNI
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >> ===========================
>> >>> >> >>> >> >> >> Michael Gogins
>> >>> >> >>> >> >> >> Irreducible Productions
>> >>> >> >>> >> >> >> http://michaelgogins.tumblr.com
>> >>> >> >>> >> >> >> Michael dot Gogins at gmail dot com
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >> On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi
>> >>> >> >>> >> >> >> <stevenyi@gmail.com>
>> >>> >> >>> >> >> >> wrote:
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> Hi Michael,
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> I'm wondering if this is the same issue. I need to
>> >>> >> >>> >> >> >>> re-test,
>> >>> >> >>> >> >> >>> but
>> >>> >> >>> >> >> >>> when I
>> >>> >> >>> >> >> >>> was trying things out I thought I didn't quite get a
>> >>> >> >>> >> >> >>> crash,
>> >>> >> >>> >> >> >>> just
>> >>> >> >>> >> >> >>> an
>> >>> >> >>> >> >> >>> UnsatisfiedLinkError exception for the function I was
>> >>> >> >>> >> >> >>> trying
>> >>> >> >>> >> >> >>> to
>> >>> >> >>> >> >> >>> call,
>> >>> >> >>> >> >> >>> which I could catch and do something about.  The test
>> >>> >> >>> >> >> >>> java
>> >>> >> >>> >> >> >>> class
>> >>> >> >>> >> >> >>> I
>> >>> >> >>> >> >> >>> put
>> >>> >> >>> >> >> >>> into the bug may not be doing any catching, but then
>> >>> >> >>> >> >> >>> Java
>> >>> >> >>> >> >> >>> should
>> >>> >> >>> >> >> >>> have
>> >>> >> >>> >> >> >>> just exited rather than crash.
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> steven
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
>> >>> >> >>> >> >> >>> <michael.gogins@gmail.com> wrote:
>> >>> >> >>> >> >> >>> > Gdb tells me Java crash is caused by linstd++-6.dll
>> >>> >> >>> >> >> >>> > of
>> >>> >> >>> >> >> >>> > wrong
>> >>> >> >>> >> >> >>> > model
>> >>> >> >>> >> >> >>> > found in
>> >>> >> >>> >> >> >>> > SysWOW64, where it does not belong and was put by
>> >>> >> >>> >> >> >>> > some
>> >>> >> >>> >> >> >>> > incompetent
>> >>> >> >>> >> >> >>> > installer. I'm afraid to remove it because I did
>> >>> >> >>> >> >> >>> > once
>> >>> >> >>> >> >> >>> > before
>> >>> >> >>> >> >> >>> > and
>> >>> >> >>> >> >> >>> > lost
>> >>> >> >>> >> >> >>> > my
>> >>> >> >>> >> >> >>> > user profile.
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> > ------------------------------------------------------------------------------
>> >>> >> >>> >> >> >>> > Get 100% visibility into Java/.NET code with
>> >>> >> >>> >> >> >>> > AppDynamics
>> >>> >> >>> >> >> >>> > Lite!
>> >>> >> >>> >> >> >>> > It's a free troubleshooting tool designed for
>> >>> >> >>> >> >> >>> > production.
>> >>> >> >>> >> >> >>> > Get down to code-level detail for bottlenecks, with
>> >>> >> >>> >> >> >>> > <2%
>> >>> >> >>> >> >> >>> > overhead.
>> >>> >> >>> >> >> >>> > Download for free and get started troubleshooting
>> >>> >> >>> >> >> >>> > in
>> >>> >> >>> >> >> >>> > minutes.
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >>> >> >>> >> >> >>> > _______________________________________________
>> >>> >> >>> >> >> >>> > Csound-devel mailing list
>> >>> >> >>> >> >> >>> > Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> ------------------------------------------------------------------------------
>> >>> >> >>> >> >> >>> Get 100% visibility into Java/.NET code with
>> >>> >> >>> >> >> >>> AppDynamics
>> >>> >> >>> >> >> >>> Lite!
>> >>> >> >>> >> >> >>> It's a free troubleshooting tool designed for
>> >>> >> >>> >> >> >>> production.
>> >>> >> >>> >> >> >>> Get down to code-level detail for bottlenecks, with
>> >>> >> >>> >> >> >>> <2%
>> >>> >> >>> >> >> >>> overhead.
>> >>> >> >>> >> >> >>> Download for free and get started troubleshooting in
>> >>> >> >>> >> >> >>> minutes.
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >>> >> >>> >> >> >>> _______________________________________________
>> >>> >> >>> >> >> >>> Csound-devel mailing list
>> >>> >> >>> >> >> >>> Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > ------------------------------------------------------------------------------
>> >>> >> >>> >> >> > Get 100% visibility into Java/.NET code with
>> >>> >> >>> >> >> > AppDynamics
>> >>> >> >>> >> >> > Lite!
>> >>> >> >>> >> >> > It's a free troubleshooting tool designed for
>> >>> >> >>> >> >> > production.
>> >>> >> >>> >> >> > Get down to code-level detail for bottlenecks, with <2%
>> >>> >> >>> >> >> > overhead.
>> >>> >> >>> >> >> > Download for free and get started troubleshooting in
>> >>> >> >>> >> >> > minutes.
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >>> >> >>> >> >> > _______________________________________________
>> >>> >> >>> >> >> > Csound-devel mailing list
>> >>> >> >>> >> >> > Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> ------------------------------------------------------------------------------
>> >>> >> >>> >> >> Introducing Performance Central, a new site from
>> >>> >> >>> >> >> SourceForge
>> >>> >> >>> >> >> and
>> >>> >> >>> >> >> AppDynamics. Performance Central is your source for news,
>> >>> >> >>> >> >> insights,
>> >>> >> >>> >> >> analysis and resources for efficient Application
>> >>> >> >>> >> >> Performance
>> >>> >> >>> >> >> Management.
>> >>> >> >>> >> >> Visit us today!
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> _______________________________________________
>> >>> >> >>> >> >> Csound-devel mailing list
>> >>> >> >>> >> >> Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> > ------------------------------------------------------------------------------
>> >>> >> >>> >> > Introducing Performance Central, a new site from
>> >>> >> >>> >> > SourceForge
>> >>> >> >>> >> > and
>> >>> >> >>> >> > AppDynamics. Performance Central is your source for news,
>> >>> >> >>> >> > insights,
>> >>> >> >>> >> > analysis and resources for efficient Application
>> >>> >> >>> >> > Performance
>> >>> >> >>> >> > Management.
>> >>> >> >>> >> > Visit us today!
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> >>> >> >>> >> > _______________________________________________
>> >>> >> >>> >> > Csound-devel mailing list
>> >>> >> >>> >> > Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >> ------------------------------------------------------------------------------
>> >>> >> >>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>> >>> >> >>> >> 2012,
>> >>> >> >>> >> more!
>> >>> >> >>> >> Discover the easy way to master current and previous
>> >>> >> >>> >> Microsoft
>> >>> >> >>> >> technologies
>> >>> >> >>> >> and advance your career. Get an incredible 1,500+ hours of
>> >>> >> >>> >> step-by-step
>> >>> >> >>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> >>> >>
>> >>> >> >>> >> _______________________________________________
>> >>> >> >>> >> Csound-devel mailing list
>> >>> >> >>> >> Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> > ------------------------------------------------------------------------------
>> >>> >> >>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>> >>> >> >>> > 2012,
>> >>> >> >>> > more!
>> >>> >> >>> > Discover the easy way to master current and previous
>> >>> >> >>> > Microsoft
>> >>> >> >>> > technologies
>> >>> >> >>> > and advance your career. Get an incredible 1,500+ hours of
>> >>> >> >>> > step-by-step
>> >>> >> >>> > tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> >>> > _______________________________________________
>> >>> >> >>> > Csound-devel mailing list
>> >>> >> >>> > Csound-devel@lists.sourceforge.net
>> >>> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>> ------------------------------------------------------------------------------
>> >>> >> >>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>> >>> >> >>> 2012,
>> >>> >> >>> more!
>> >>> >> >>> Discover the easy way to master current and previous Microsoft
>> >>> >> >>> technologies
>> >>> >> >>> and advance your career. Get an incredible 1,500+ hours of
>> >>> >> >>> step-by-step
>> >>> >> >>> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> >>> _______________________________________________
>> >>> >> >>> Csound-devel mailing list
>> >>> >> >>> Csound-devel@lists.sourceforge.net
>> >>> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >> ------------------------------------------------------------------------------
>> >>> >> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >>> >> >> more!
>> >>> >> >> Discover the easy way to master current and previous Microsoft
>> >>> >> >> technologies
>> >>> >> >> and advance your career. Get an incredible 1,500+ hours of
>> >>> >> >> step-by-step
>> >>> >> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> >> _______________________________________________
>> >>> >> >> Csound-devel mailing list
>> >>> >> >> Csound-devel@lists.sourceforge.net
>> >>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> ------------------------------------------------------------------------------
>> >>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >>> >> more!
>> >>> >> Discover the easy way to master current and previous Microsoft
>> >>> >> technologies
>> >>> >> and advance your career. Get an incredible 1,500+ hours of
>> >>> >> step-by-step
>> >>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> _______________________________________________
>> >>> >> Csound-devel mailing list
>> >>> >> Csound-devel@lists.sourceforge.net
>> >>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> > ------------------------------------------------------------------------------
>> >>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >>> > more!
>> >>> > Discover the easy way to master current and previous Microsoft
>> >>> > technologies
>> >>> > and advance your career. Get an incredible 1,500+ hours of
>> >>> > step-by-step
>> >>> > tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >
>> >>> >
>> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> > _______________________________________________
>> >>> > Csound-devel mailing list
>> >>> > Csound-devel@lists.sourceforge.net
>> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >
>> >>>
>> >>>
>> >>>
>> >>> ------------------------------------------------------------------------------
>> >>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> >>> Discover the easy way to master current and previous Microsoft
>> >>> technologies
>> >>> and advance your career. Get an incredible 1,500+ hours of
>> >>> step-by-step
>> >>> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>>
>> >>>
>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> _______________________________________________
>> >>> Csound-devel mailing list
>> >>> Csound-devel@lists.sourceforge.net
>> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> >> Discover the easy way to master current and previous Microsoft
>> >> technologies
>> >> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>
>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>>
>>
>> ------------------------------------------------------------------------------
>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> Discover the easy way to master current and previous Microsoft
>> technologies
>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> tutorial videos with LearnDevNow. Subscribe today and save!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel




--

Saludos,
Felipe Sateler

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2013-08-28 22:24
FromFelipe Sateler
SubjectRe: [Cs-dev] Java crash on windows
AttachmentsNone  None  
I'm not an expert on the subject, but I believe it could be. The C library is fine, and I /think/ the c++ wrapper is too. CsoundAC is less likely to be, since it exports some standard library symbols. I don't know what happens on the swig wrappers, though (which is why I brought this up). 


On Wed, Aug 28, 2013 at 4:55 PM, Michael Gogins <michael.gogins@gmail.com> wrote:

Is that a problem for us?

On Aug 28, 2013 4:27 PM, "Felipe Sateler" <fsateler@gmail.com> wrote:
c++11 apparently breaks ABI compatibility with non-c++11 code:


On Wed, Aug 28, 2013 at 3:23 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
These are only for Windows.

The only harm from defining these options globally is that more symbols are exported by the shared libraries, so the dynamic loads might be a tad slower. Once loaded I don't think calls would be noticeably slower. So I would go ahead and make these global on Windows. Other things that I always define globally on Windows, and should probably be the defaults on Windows:

-g -O2 -std=gnu++11 -fopenmp -march=nocona -DNDEBUG -I/usr/local/include -L/usr/local/lib -mstackrealign -Wl,--add-stdcall-alias -Wl,--enable-stdcall-fixup

I don't know why I didn't think about the stdcall possibility this time -- when it was I who originally added these options for this sort of reason in the first place!

Best,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Wed, Aug 28, 2013 at 3:09 PM, Steven Yi <stevenyi@gmail.com> wrote:
I'm hopeful this will be it. :)  I tried adding it to my Custom.cmake
for now and am doing a compile.  I grepped through CS5's SConstruct
and surely enough there's numerous places where
-Wl,--add-stdcall-alias is used, and a few places where
-Wl,--enable-stdcall-fixup is used.

I should be able to test in about 10 minutes; assuming all is good,
I'm wondering should this just be enabled as a global flag if on
Windows, or only for certain libs?

As for finding a fix, glad that none of my other guesses were correct
as I think they'd be much more difficult to solve. :P

On Wed, Aug 28, 2013 at 2:40 PM, Michael Gogins
<michael.gogins@gmail.com> wrote:
> If that's the case, then changing the linker flags should do the trick. @8
> marks the function as stdcall calling convention with 8 bytes to be popped
> off the stack after returning from the call.
>
> To CFLAGS and CXXFLAGS for the DLL, add -"Wl,--add-stdcall-alias
> -Wl,--enable-stdcall-fixup". I think only the first is required but I used
> to add both to everything just to cover my bases.
>
> --add-stdcall-alias                Export symbols with and without @nn
> --disable-stdcall-fixup            Don't link _sym to _sym@nn DON'T USE!
> --enable-stdcall-fixup             Link _sym to _sym@nn without warnings
>
> Best,
> Mike
>
>
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Wed, Aug 28, 2013 at 1:25 PM, Steven Yi <stevenyi@gmail.com> wrote:
>>
>> I found something that looks useful.  In _jcsound.dll from CS5,
>> DependencyWalker shows symbols like:
>>
>> Java_csnd_csndJNI_swig_1module_1init
>> Java_csnd_csndJNI_swig_1module_1init@8
>>
>> while CS6 only has:
>>
>> Java_csnd6_csnd6JNI_swig_1module_1init@8
>>
>> I get the impression that the PUBLIC attribute isn't working
>> correctly, or something along those lines.  I've got to take a break
>> but will continue on with this after lunch.
>>
>> On Wed, Aug 28, 2013 at 12:22 PM, Steven Yi <stevenyi@gmail.com> wrote:
>> > That didn't seem to affect anything unfortunately. Continuing on....
>> >
>> > On Wed, Aug 28, 2013 at 11:59 AM, Michael Gogins
>> > <michael.gogins@gmail.com> wrote:
>> >> Well, that's certainly a mistake.
>> >>
>> >> On Aug 28, 2013 11:59 AM, "Steven Yi" <stevenyi@gmail.com> wrote:
>> >>>
>> >>> That sounds reasonable, but the Csound5 API still loads for me fine
>> >>> with Blue, using the same VM.  I think that'd rule that one out.  I
>> >>> saw that csound.h has "%module csnd" isntead of "%module csnd6".  I'm
>> >>> not sure that's it, as that seems like it'd affect other platforms,
>> >>> but I'm giving it a try now just in case.  (compile should be done in
>> >>> 15-20 mins... ugh...)
>> >>>
>> >>> On Wed, Aug 28, 2013 at 11:35 AM, Michael Gogins
>> >>> <michael.gogins@gmail.com> wrote:
>> >>> > If I were you, I would try compiling the library with both the
>> >>> > wrapper
>> >>> > and
>> >>> > the wrapped lib, just to rule that out.
>> >>> >
>> >>> > There may well have been some change in the way the Java VM and
>> >>> > library
>> >>> > link. You could try Oracle issues on Java regarding that.
>> >>> >
>> >>> > Best,
>> >>> > Mike
>> >>> >
>> >>> >
>> >>> > ===========================
>> >>> > Michael Gogins
>> >>> > Irreducible Productions
>> >>> > http://michaelgogins.tumblr.com
>> >>> > Michael dot Gogins at gmail dot com
>> >>> >
>> >>> >
>> >>> > On Wed, Aug 28, 2013 at 11:18 AM, Steven Yi <stevenyi@gmail.com>
>> >>> > wrote:
>> >>> >>
>> >>> >> Just an update, I tried modifying to use libcsnd6 and linking to
>> >>> >> that,
>> >>> >> but it had no affect on the Java test.  I did see in the SWIG
>> >>> >> manual
>> >>> >> for Java that they have an error shown similar to ours, with the
>> >>> >> documentation:
>> >>> >>
>> >>> >> "This error usually indicates that you forgot to include some
>> >>> >> object
>> >>> >> files or libraries in the linking of the native library file. Make
>> >>> >> sure you compile both the SWIG wrapper file and the code you are
>> >>> >> wrapping into the native library file. If you forget to compile and
>> >>> >> link in the SWIG wrapper file into your native library file, you
>> >>> >> will
>> >>> >> get a message similar to the following:"
>> >>> >>
>> >>> >> However, I don't think this is quite the issue as the same Cmake
>> >>> >> script works on OSX and Linux. I did see an email about possibly
>> >>> >> needing to compile the library with both the wrapper and the
>> >>> >> wrapped
>> >>> >> lib, but that seemed odd as we had things working with CS5.
>> >>> >>
>> >>> >> I'll continue to explore here.
>> >>> >>
>> >>> >> On Tue, Aug 27, 2013 at 5:19 PM, Steven Yi <stevenyi@gmail.com>
>> >>> >> wrote:
>> >>> >> > Thanks for the info, at least we can eliminate that possibility
>> >>> >> > then.
>> >>> >> > I'll hopefully get further along tomorrow and will report
>> >>> >> > anything I
>> >>> >> > find.
>> >>> >> >
>> >>> >> > On Tue, Aug 27, 2013 at 5:13 PM, Michael Gogins
>> >>> >> > <michael.gogins@gmail.com> wrote:
>> >>> >> >> The csnd name should be versioned but I don't have 5 on my
>> >>> >> >> machine
>> >>> >> >> at
>> >>> >> >> all.
>> >>> >> >>
>> >>> >> >> On Aug 27, 2013 5:03 PM, "Steven Yi" <stevenyi@gmail.com> wrote:
>> >>> >> >>>
>> >>> >> >>> The compile paths here are a mess so I'm going to need to sort
>> >>> >> >>> that
>> >>> >> >>> out here locally.  However, I'm wondering if at runtime if the
>> >>> >> >>> wrong
>> >>> >> >>> dll is getting loaded due to csnd.dll being the same name in
>> >>> >> >>> CS5
>> >>> >> >>> and
>> >>> >> >>> CS6.  Perhaps we should rename that to see if that's the source
>> >>> >> >>> of
>> >>> >> >>> issues for Java (possible CsoundPerformanceThread too?). I'm
>> >>> >> >>> imagining
>> >>> >> >>> if Csound runs multiple times alright, but
>> >>> >> >>> CsoundPerformanceThread
>> >>> >> >>> does not, then it could be possible that the csound6 library is
>> >>> >> >>> loading fine, but the cs5 version of csnd is loading and
>> >>> >> >>> causing
>> >>> >> >>> issues.
>> >>> >> >>>
>> >>> >> >>> On Tue, Aug 27, 2013 at 4:52 PM, Michael Gogins
>> >>> >> >>> <michael.gogins@gmail.com> wrote:
>> >>> >> >>> > In my build I'm very careful about the actual library paths.
>> >>> >> >>> > I
>> >>> >> >>> > look
>> >>> >> >>> > at
>> >>> >> >>> > the
>> >>> >> >>> > CMakeCache.txt, I look at the compiler and linker commands,
>> >>> >> >>> > and I
>> >>> >> >>> > look
>> >>> >> >>> > at
>> >>> >> >>> > what libraries actually get loaded during a run (there are
>> >>> >> >>> > various
>> >>> >> >>> > tools
>> >>> >> >>> > for
>> >>> >> >>> > doing this on Windows). I am careful because yes, it has been
>> >>> >> >>> > a
>> >>> >> >>> > problem
>> >>> >> >>> > for
>> >>> >> >>> > me, as you saw from my earlier emails.
>> >>> >> >>> >
>> >>> >> >>> > But we should talk about how to make this better on Windows.
>> >>> >> >>> >
>> >>> >> >>> > Best,
>> >>> >> >>> > Mike
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> > ===========================
>> >>> >> >>> > Michael Gogins
>> >>> >> >>> > Irreducible Productions
>> >>> >> >>> > http://michaelgogins.tumblr.com
>> >>> >> >>> > Michael dot Gogins at gmail dot com
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> > On Tue, Aug 27, 2013 at 4:15 PM, Steven Yi
>> >>> >> >>> > <stevenyi@gmail.com>
>> >>> >> >>> > wrote:
>> >>> >> >>> >>
>> >>> >> >>> >> Hi Michael and All,
>> >>> >> >>> >>
>> >>> >> >>> >> I just spent a bit of time looking into this and found some
>> >>> >> >>> >> very
>> >>> >> >>> >> heinous stuff going on in windows.  It looks to me that
>> >>> >> >>> >> CMake
>> >>> >> >>> >> actually
>> >>> >> >>> >> found all types of libraries from the PATH to use.  That
>> >>> >> >>> >> meant
>> >>> >> >>> >> some
>> >>> >> >>> >> libraries from C:\Program Files (x86)\Csound\bin were found,
>> >>> >> >>> >> others
>> >>> >> >>> >> from C:\Program Files (x86)\Csound6\bin, and others from my
>> >>> >> >>> >> MSYS
>> >>> >> >>> >> /usr/local/lib and custom set paths.  I get the impression
>> >>> >> >>> >> this
>> >>> >> >>> >> could
>> >>> >> >>> >> be a source of some of the issues we're seeing both with the
>> >>> >> >>> >> Java
>> >>> >> >>> >> library and other windows oddities.
>> >>> >> >>> >>
>> >>> >> >>> >> I mostly noticed this in looking at my CmakeCache.txt.  I'm
>> >>> >> >>> >> wondering
>> >>> >> >>> >> if the Java lib is linking to Csound 5's csnd.dll instead of
>> >>> >> >>> >> Csound6's.  If that's the case, then perhaps we can change
>> >>> >> >>> >> csnd
>> >>> >> >>> >> to
>> >>> >> >>> >> be
>> >>> >> >>> >> csnd6 instead.
>> >>> >> >>> >>
>> >>> >> >>> >> I've got to move on for the day, but will come back to this
>> >>> >> >>> >> tomorrow.
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >> On Tue, Aug 20, 2013 at 11:14 PM, Michael Gogins
>> >>> >> >>> >> <michael.gogins@gmail.com> wrote:
>> >>> >> >>> >> > People do seem to be switching to mingw-builds. I am using
>> >>> >> >>> >> > 4.8.1,
>> >>> >> >>> >> > dwarf-2,
>> >>> >> >>> >> > posix threads, 32 bits. If you use the same version we
>> >>> >> >>> >> > have a
>> >>> >> >>> >> > much
>> >>> >> >>> >> > better
>> >>> >> >>> >> > chance of understanding what is going on.
>> >>> >> >>> >> >
>> >>> >> >>> >> > I think there is something pretty subtle going on both
>> >>> >> >>> >> > with
>> >>> >> >>> >> > Java
>> >>> >> >>> >> > and
>> >>> >> >>> >> > with
>> >>> >> >>> >> > the CsoundPerformanceThread.
>> >>> >> >>> >> >
>> >>> >> >>> >> > I have proved that the existence of incompatible MinGW
>> >>> >> >>> >> > runtime
>> >>> >> >>> >> > libraries
>> >>> >> >>> >> > can
>> >>> >> >>> >> > be a problem. I have also proved that that is not the ONLY
>> >>> >> >>> >> > problem,
>> >>> >> >>> >> > at
>> >>> >> >>> >> > least, on my computer. I succeeded finally in removing
>> >>> >> >>> >> > incompatible
>> >>> >> >>> >> > MinGW
>> >>> >> >>> >> > runtime libraries from my SysWOW64 directory (!) so I now
>> >>> >> >>> >> > can
>> >>> >> >>> >> > run
>> >>> >> >>> >> > CsoundAC
>> >>> >> >>> >> > code, but I am still having problems with the performance
>> >>> >> >>> >> > thread
>> >>> >> >>> >> > and
>> >>> >> >>> >> > with
>> >>> >> >>> >> > Java. Different computers behave differently, e.g. I can
>> >>> >> >>> >> > run
>> >>> >> >>> >> > CsoundQt
>> >>> >> >>> >> > at
>> >>> >> >>> >> > work but not at home.
>> >>> >> >>> >> >
>> >>> >> >>> >> > In my programming life, these errors can arise from
>> >>> >> >>> >> > several
>> >>> >> >>> >> > errors
>> >>> >> >>> >> > but
>> >>> >> >>> >> > one
>> >>> >> >>> >> > common source is uninitialized members of structs and
>> >>> >> >>> >> > classes
>> >>> >> >>> >> > that
>> >>> >> >>> >> > contain
>> >>> >> >>> >> > zeroes on some machines and junk on other machines. Or
>> >>> >> >>> >> > writes
>> >>> >> >>> >> > past
>> >>> >> >>> >> > buffer
>> >>> >> >>> >> > ends that poke holes in junk on some machines and in vital
>> >>> >> >>> >> > organs
>> >>> >> >>> >> > on
>> >>> >> >>> >> > other
>> >>> >> >>> >> > machines. Having multiple threads makes this harder...
>> >>> >> >>> >> >
>> >>> >> >>> >> > Regards,
>> >>> >> >>> >> > Mike
>> >>> >> >>> >> >
>> >>> >> >>> >> > I wish I had something like valgrind on Windows but I
>> >>> >> >>> >> > can't
>> >>> >> >>> >> > afford
>> >>> >> >>> >> > the
>> >>> >> >>> >> > equivalent.
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> > ===========================
>> >>> >> >>> >> > Michael Gogins
>> >>> >> >>> >> > Irreducible Productions
>> >>> >> >>> >> > http://michaelgogins.tumblr.com
>> >>> >> >>> >> > Michael dot Gogins at gmail dot com
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> > On Tue, Aug 20, 2013 at 10:56 PM, Steven Yi
>> >>> >> >>> >> > <stevenyi@gmail.com>
>> >>> >> >>> >> > wrote:
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> Hi Michael,
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> I was trying to setup to get a build working on Windows
>> >>> >> >>> >> >> to
>> >>> >> >>> >> >> see
>> >>> >> >>> >> >> if I
>> >>> >> >>> >> >> can further diagnose what's going on.  I currently have
>> >>> >> >>> >> >> the
>> >>> >> >>> >> >> stock
>> >>> >> >>> >> >> mingw/msys installed from sf.net/projects/mingw. I
>> >>> >> >>> >> >> noticed in
>> >>> >> >>> >> >> your
>> >>> >> >>> >> >> How
>> >>> >> >>> >> >> to Build doc that you are using mingwbuilds version.
>> >>> >> >>> >> >> Could
>> >>> >> >>> >> >> you
>> >>> >> >>> >> >> advise: should I uninstalled mingw/msys and use just
>> >>> >> >>> >> >> mingwbuilds?
>> >>> >> >>> >> >> (I.e. better to start clean).
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> Thanks!
>> >>> >> >>> >> >> steven
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> On Thu, Aug 15, 2013 at 8:44 AM, Michael Gogins
>> >>> >> >>> >> >> <michael.gogins@gmail.com> wrote:
>> >>> >> >>> >> >> > Sorry, fumble fingers.
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > The problem I see is that the csnd6 low level JNI Java
>> >>> >> >>> >> >> > class
>> >>> >> >>> >> >> > needs
>> >>> >> >>> >> >> > to
>> >>> >> >>> >> >> > call
>> >>> >> >>> >> >> > SWIG's initializer in _csound.dll. The initializer is
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > thing
>> >>> >> >>> >> >> > not
>> >>> >> >>> >> >> > found.
>> >>> >> >>> >> >> > Without it we don't have Java Csound.
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > Still no solution, though. The initializer is in
>> >>> >> >>> >> >> > _jcsound.dll.
>> >>> >> >>> >> >> > Java
>> >>> >> >>> >> >> > doesn't
>> >>> >> >>> >> >> > find it. Java finds the CsoundEditor.jar (a better test
>> >>> >> >>> >> >> > than
>> >>> >> >>> >> >> > CSDPlayer.jar
>> >>> >> >>> >> >> > because it loads csnd6 right away) and loads and begins
>> >>> >> >>> >> >> > to
>> >>> >> >>> >> >> > run
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > Java
>> >>> >> >>> >> >> > code. The first thing to run is the static block that
>> >>> >> >>> >> >> > loads
>> >>> >> >>> >> >> > _jcsound.dll
>> >>> >> >>> >> >> > and
>> >>> >> >>> >> >> > calls the initializer. There are 4 steps here: locate
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > DLL,
>> >>> >> >>> >> >> > load
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > DLL,
>> >>> >> >>> >> >> > find the initializer function, call the initializer. We
>> >>> >> >>> >> >> > know
>> >>> >> >>> >> >> > that
>> >>> >> >>> >> >> > we
>> >>> >> >>> >> >> > don't
>> >>> >> >>> >> >> > find the initializer. I think it fails at the load
>> >>> >> >>> >> >> > stage
>> >>> >> >>> >> >> > because I
>> >>> >> >>> >> >> > have
>> >>> >> >>> >> >> > DLL
>> >>> >> >>> >> >> > hell on my notebook right now and I seem to recall
>> >>> >> >>> >> >> > catching
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > DLL
>> >>> >> >>> >> >> > load.
>> >>> >> >>> >> >> > I'll verify that later. In other words I think it
>> >>> >> >>> >> >> > starts to
>> >>> >> >>> >> >> > load
>> >>> >> >>> >> >> > _jcsound.dll and then there is a problem when
>> >>> >> >>> >> >> > _jcsound.dll
>> >>> >> >>> >> >> > is
>> >>> >> >>> >> >> > loading
>> >>> >> >>> >> >> > other
>> >>> >> >>> >> >> > things or initializating its own things.
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > ===========================
>> >>> >> >>> >> >> > Michael Gogins
>> >>> >> >>> >> >> > Irreducible Productions
>> >>> >> >>> >> >> > http://michaelgogins.tumblr.com
>> >>> >> >>> >> >> > Michael dot Gogins at gmail dot com
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > On Thu, Aug 15, 2013 at 8:32 AM, Michael Gogins
>> >>> >> >>> >> >> > <michael.gogins@gmail.com>
>> >>> >> >>> >> >> > wrote:
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >> The problem I see is that the Csound JNI
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >> ===========================
>> >>> >> >>> >> >> >> Michael Gogins
>> >>> >> >>> >> >> >> Irreducible Productions
>> >>> >> >>> >> >> >> http://michaelgogins.tumblr.com
>> >>> >> >>> >> >> >> Michael dot Gogins at gmail dot com
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >> On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi
>> >>> >> >>> >> >> >> <stevenyi@gmail.com>
>> >>> >> >>> >> >> >> wrote:
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> Hi Michael,
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> I'm wondering if this is the same issue. I need to
>> >>> >> >>> >> >> >>> re-test,
>> >>> >> >>> >> >> >>> but
>> >>> >> >>> >> >> >>> when I
>> >>> >> >>> >> >> >>> was trying things out I thought I didn't quite get a
>> >>> >> >>> >> >> >>> crash,
>> >>> >> >>> >> >> >>> just
>> >>> >> >>> >> >> >>> an
>> >>> >> >>> >> >> >>> UnsatisfiedLinkError exception for the function I was
>> >>> >> >>> >> >> >>> trying
>> >>> >> >>> >> >> >>> to
>> >>> >> >>> >> >> >>> call,
>> >>> >> >>> >> >> >>> which I could catch and do something about.  The test
>> >>> >> >>> >> >> >>> java
>> >>> >> >>> >> >> >>> class
>> >>> >> >>> >> >> >>> I
>> >>> >> >>> >> >> >>> put
>> >>> >> >>> >> >> >>> into the bug may not be doing any catching, but then
>> >>> >> >>> >> >> >>> Java
>> >>> >> >>> >> >> >>> should
>> >>> >> >>> >> >> >>> have
>> >>> >> >>> >> >> >>> just exited rather than crash.
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> steven
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
>> >>> >> >>> >> >> >>> <michael.gogins@gmail.com> wrote:
>> >>> >> >>> >> >> >>> > Gdb tells me Java crash is caused by linstd++-6.dll
>> >>> >> >>> >> >> >>> > of
>> >>> >> >>> >> >> >>> > wrong
>> >>> >> >>> >> >> >>> > model
>> >>> >> >>> >> >> >>> > found in
>> >>> >> >>> >> >> >>> > SysWOW64, where it does not belong and was put by
>> >>> >> >>> >> >> >>> > some
>> >>> >> >>> >> >> >>> > incompetent
>> >>> >> >>> >> >> >>> > installer. I'm afraid to remove it because I did
>> >>> >> >>> >> >> >>> > once
>> >>> >> >>> >> >> >>> > before
>> >>> >> >>> >> >> >>> > and
>> >>> >> >>> >> >> >>> > lost
>> >>> >> >>> >> >> >>> > my
>> >>> >> >>> >> >> >>> > user profile.
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> > ------------------------------------------------------------------------------
>> >>> >> >>> >> >> >>> > Get 100% visibility into Java/.NET code with
>> >>> >> >>> >> >> >>> > AppDynamics
>> >>> >> >>> >> >> >>> > Lite!
>> >>> >> >>> >> >> >>> > It's a free troubleshooting tool designed for
>> >>> >> >>> >> >> >>> > production.
>> >>> >> >>> >> >> >>> > Get down to code-level detail for bottlenecks, with
>> >>> >> >>> >> >> >>> > <2%
>> >>> >> >>> >> >> >>> > overhead.
>> >>> >> >>> >> >> >>> > Download for free and get started troubleshooting
>> >>> >> >>> >> >> >>> > in
>> >>> >> >>> >> >> >>> > minutes.
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >>> >> >>> >> >> >>> > _______________________________________________
>> >>> >> >>> >> >> >>> > Csound-devel mailing list
>> >>> >> >>> >> >> >>> > Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> ------------------------------------------------------------------------------
>> >>> >> >>> >> >> >>> Get 100% visibility into Java/.NET code with
>> >>> >> >>> >> >> >>> AppDynamics
>> >>> >> >>> >> >> >>> Lite!
>> >>> >> >>> >> >> >>> It's a free troubleshooting tool designed for
>> >>> >> >>> >> >> >>> production.
>> >>> >> >>> >> >> >>> Get down to code-level detail for bottlenecks, with
>> >>> >> >>> >> >> >>> <2%
>> >>> >> >>> >> >> >>> overhead.
>> >>> >> >>> >> >> >>> Download for free and get started troubleshooting in
>> >>> >> >>> >> >> >>> minutes.
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >>> >> >>> >> >> >>> _______________________________________________
>> >>> >> >>> >> >> >>> Csound-devel mailing list
>> >>> >> >>> >> >> >>> Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > ------------------------------------------------------------------------------
>> >>> >> >>> >> >> > Get 100% visibility into Java/.NET code with
>> >>> >> >>> >> >> > AppDynamics
>> >>> >> >>> >> >> > Lite!
>> >>> >> >>> >> >> > It's a free troubleshooting tool designed for
>> >>> >> >>> >> >> > production.
>> >>> >> >>> >> >> > Get down to code-level detail for bottlenecks, with <2%
>> >>> >> >>> >> >> > overhead.
>> >>> >> >>> >> >> > Download for free and get started troubleshooting in
>> >>> >> >>> >> >> > minutes.
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >>> >> >>> >> >> > _______________________________________________
>> >>> >> >>> >> >> > Csound-devel mailing list
>> >>> >> >>> >> >> > Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> ------------------------------------------------------------------------------
>> >>> >> >>> >> >> Introducing Performance Central, a new site from
>> >>> >> >>> >> >> SourceForge
>> >>> >> >>> >> >> and
>> >>> >> >>> >> >> AppDynamics. Performance Central is your source for news,
>> >>> >> >>> >> >> insights,
>> >>> >> >>> >> >> analysis and resources for efficient Application
>> >>> >> >>> >> >> Performance
>> >>> >> >>> >> >> Management.
>> >>> >> >>> >> >> Visit us today!
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> _______________________________________________
>> >>> >> >>> >> >> Csound-devel mailing list
>> >>> >> >>> >> >> Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> > ------------------------------------------------------------------------------
>> >>> >> >>> >> > Introducing Performance Central, a new site from
>> >>> >> >>> >> > SourceForge
>> >>> >> >>> >> > and
>> >>> >> >>> >> > AppDynamics. Performance Central is your source for news,
>> >>> >> >>> >> > insights,
>> >>> >> >>> >> > analysis and resources for efficient Application
>> >>> >> >>> >> > Performance
>> >>> >> >>> >> > Management.
>> >>> >> >>> >> > Visit us today!
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> >>> >> >>> >> > _______________________________________________
>> >>> >> >>> >> > Csound-devel mailing list
>> >>> >> >>> >> > Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >> ------------------------------------------------------------------------------
>> >>> >> >>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>> >>> >> >>> >> 2012,
>> >>> >> >>> >> more!
>> >>> >> >>> >> Discover the easy way to master current and previous
>> >>> >> >>> >> Microsoft
>> >>> >> >>> >> technologies
>> >>> >> >>> >> and advance your career. Get an incredible 1,500+ hours of
>> >>> >> >>> >> step-by-step
>> >>> >> >>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> >>> >>
>> >>> >> >>> >> _______________________________________________
>> >>> >> >>> >> Csound-devel mailing list
>> >>> >> >>> >> Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> > ------------------------------------------------------------------------------
>> >>> >> >>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>> >>> >> >>> > 2012,
>> >>> >> >>> > more!
>> >>> >> >>> > Discover the easy way to master current and previous
>> >>> >> >>> > Microsoft
>> >>> >> >>> > technologies
>> >>> >> >>> > and advance your career. Get an incredible 1,500+ hours of
>> >>> >> >>> > step-by-step
>> >>> >> >>> > tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> >>> > _______________________________________________
>> >>> >> >>> > Csound-devel mailing list
>> >>> >> >>> > Csound-devel@lists.sourceforge.net
>> >>> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>> ------------------------------------------------------------------------------
>> >>> >> >>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>> >>> >> >>> 2012,
>> >>> >> >>> more!
>> >>> >> >>> Discover the easy way to master current and previous Microsoft
>> >>> >> >>> technologies
>> >>> >> >>> and advance your career. Get an incredible 1,500+ hours of
>> >>> >> >>> step-by-step
>> >>> >> >>> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> >>> _______________________________________________
>> >>> >> >>> Csound-devel mailing list
>> >>> >> >>> Csound-devel@lists.sourceforge.net
>> >>> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >> ------------------------------------------------------------------------------
>> >>> >> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >>> >> >> more!
>> >>> >> >> Discover the easy way to master current and previous Microsoft
>> >>> >> >> technologies
>> >>> >> >> and advance your career. Get an incredible 1,500+ hours of
>> >>> >> >> step-by-step
>> >>> >> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> >> _______________________________________________
>> >>> >> >> Csound-devel mailing list
>> >>> >> >> Csound-devel@lists.sourceforge.net
>> >>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> ------------------------------------------------------------------------------
>> >>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >>> >> more!
>> >>> >> Discover the easy way to master current and previous Microsoft
>> >>> >> technologies
>> >>> >> and advance your career. Get an incredible 1,500+ hours of
>> >>> >> step-by-step
>> >>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> _______________________________________________
>> >>> >> Csound-devel mailing list
>> >>> >> Csound-devel@lists.sourceforge.net
>> >>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> > ------------------------------------------------------------------------------
>> >>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >>> > more!
>> >>> > Discover the easy way to master current and previous Microsoft
>> >>> > technologies
>> >>> > and advance your career. Get an incredible 1,500+ hours of
>> >>> > step-by-step
>> >>> > tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >
>> >>> >
>> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> > _______________________________________________
>> >>> > Csound-devel mailing list
>> >>> > Csound-devel@lists.sourceforge.net
>> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >
>> >>>
>> >>>
>> >>>
>> >>> ------------------------------------------------------------------------------
>> >>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> >>> Discover the easy way to master current and previous Microsoft
>> >>> technologies
>> >>> and advance your career. Get an incredible 1,500+ hours of
>> >>> step-by-step
>> >>> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>>
>> >>>
>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> _______________________________________________
>> >>> Csound-devel mailing list
>> >>> Csound-devel@lists.sourceforge.net
>> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> >> Discover the easy way to master current and previous Microsoft
>> >> technologies
>> >> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>
>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>>
>>
>> ------------------------------------------------------------------------------
>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> Discover the easy way to master current and previous Microsoft
>> technologies
>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> tutorial videos with LearnDevNow. Subscribe today and save!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel




--

Saludos,
Felipe Sateler

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel




--

Saludos,
Felipe Sateler

Date2013-08-29 00:41
FromMichael Gogins
SubjectRe: [Cs-dev] Java crash on windows
AttachmentsNone  None  
CsoundEditor needs to be re-written to work with the new sequence of calls for performance with Csound 6. But it loads _jcsound.dll and starts to run. So the stdcall linkage was the cause of our woes. I have closed the Java issues.

Regards,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Wed, Aug 28, 2013 at 5:24 PM, Felipe Sateler <fsateler@gmail.com> wrote:
I'm not an expert on the subject, but I believe it could be. The C library is fine, and I /think/ the c++ wrapper is too. CsoundAC is less likely to be, since it exports some standard library symbols. I don't know what happens on the swig wrappers, though (which is why I brought this up). 


On Wed, Aug 28, 2013 at 4:55 PM, Michael Gogins <michael.gogins@gmail.com> wrote:

Is that a problem for us?

On Aug 28, 2013 4:27 PM, "Felipe Sateler" <fsateler@gmail.com> wrote:
c++11 apparently breaks ABI compatibility with non-c++11 code:


On Wed, Aug 28, 2013 at 3:23 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
These are only for Windows.

The only harm from defining these options globally is that more symbols are exported by the shared libraries, so the dynamic loads might be a tad slower. Once loaded I don't think calls would be noticeably slower. So I would go ahead and make these global on Windows. Other things that I always define globally on Windows, and should probably be the defaults on Windows:

-g -O2 -std=gnu++11 -fopenmp -march=nocona -DNDEBUG -I/usr/local/include -L/usr/local/lib -mstackrealign -Wl,--add-stdcall-alias -Wl,--enable-stdcall-fixup

I don't know why I didn't think about the stdcall possibility this time -- when it was I who originally added these options for this sort of reason in the first place!

Best,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Wed, Aug 28, 2013 at 3:09 PM, Steven Yi <stevenyi@gmail.com> wrote:
I'm hopeful this will be it. :)  I tried adding it to my Custom.cmake
for now and am doing a compile.  I grepped through CS5's SConstruct
and surely enough there's numerous places where
-Wl,--add-stdcall-alias is used, and a few places where
-Wl,--enable-stdcall-fixup is used.

I should be able to test in about 10 minutes; assuming all is good,
I'm wondering should this just be enabled as a global flag if on
Windows, or only for certain libs?

As for finding a fix, glad that none of my other guesses were correct
as I think they'd be much more difficult to solve. :P

On Wed, Aug 28, 2013 at 2:40 PM, Michael Gogins
<michael.gogins@gmail.com> wrote:
> If that's the case, then changing the linker flags should do the trick. @8
> marks the function as stdcall calling convention with 8 bytes to be popped
> off the stack after returning from the call.
>
> To CFLAGS and CXXFLAGS for the DLL, add -"Wl,--add-stdcall-alias
> -Wl,--enable-stdcall-fixup". I think only the first is required but I used
> to add both to everything just to cover my bases.
>
> --add-stdcall-alias                Export symbols with and without @nn
> --disable-stdcall-fixup            Don't link _sym to _sym@nn DON'T USE!
> --enable-stdcall-fixup             Link _sym to _sym@nn without warnings
>
> Best,
> Mike
>
>
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Wed, Aug 28, 2013 at 1:25 PM, Steven Yi <stevenyi@gmail.com> wrote:
>>
>> I found something that looks useful.  In _jcsound.dll from CS5,
>> DependencyWalker shows symbols like:
>>
>> Java_csnd_csndJNI_swig_1module_1init
>> Java_csnd_csndJNI_swig_1module_1init@8
>>
>> while CS6 only has:
>>
>> Java_csnd6_csnd6JNI_swig_1module_1init@8
>>
>> I get the impression that the PUBLIC attribute isn't working
>> correctly, or something along those lines.  I've got to take a break
>> but will continue on with this after lunch.
>>
>> On Wed, Aug 28, 2013 at 12:22 PM, Steven Yi <stevenyi@gmail.com> wrote:
>> > That didn't seem to affect anything unfortunately. Continuing on....
>> >
>> > On Wed, Aug 28, 2013 at 11:59 AM, Michael Gogins
>> > <michael.gogins@gmail.com> wrote:
>> >> Well, that's certainly a mistake.
>> >>
>> >> On Aug 28, 2013 11:59 AM, "Steven Yi" <stevenyi@gmail.com> wrote:
>> >>>
>> >>> That sounds reasonable, but the Csound5 API still loads for me fine
>> >>> with Blue, using the same VM.  I think that'd rule that one out.  I
>> >>> saw that csound.h has "%module csnd" isntead of "%module csnd6".  I'm
>> >>> not sure that's it, as that seems like it'd affect other platforms,
>> >>> but I'm giving it a try now just in case.  (compile should be done in
>> >>> 15-20 mins... ugh...)
>> >>>
>> >>> On Wed, Aug 28, 2013 at 11:35 AM, Michael Gogins
>> >>> <michael.gogins@gmail.com> wrote:
>> >>> > If I were you, I would try compiling the library with both the
>> >>> > wrapper
>> >>> > and
>> >>> > the wrapped lib, just to rule that out.
>> >>> >
>> >>> > There may well have been some change in the way the Java VM and
>> >>> > library
>> >>> > link. You could try Oracle issues on Java regarding that.
>> >>> >
>> >>> > Best,
>> >>> > Mike
>> >>> >
>> >>> >
>> >>> > ===========================
>> >>> > Michael Gogins
>> >>> > Irreducible Productions
>> >>> > http://michaelgogins.tumblr.com
>> >>> > Michael dot Gogins at gmail dot com
>> >>> >
>> >>> >
>> >>> > On Wed, Aug 28, 2013 at 11:18 AM, Steven Yi <stevenyi@gmail.com>
>> >>> > wrote:
>> >>> >>
>> >>> >> Just an update, I tried modifying to use libcsnd6 and linking to
>> >>> >> that,
>> >>> >> but it had no affect on the Java test.  I did see in the SWIG
>> >>> >> manual
>> >>> >> for Java that they have an error shown similar to ours, with the
>> >>> >> documentation:
>> >>> >>
>> >>> >> "This error usually indicates that you forgot to include some
>> >>> >> object
>> >>> >> files or libraries in the linking of the native library file. Make
>> >>> >> sure you compile both the SWIG wrapper file and the code you are
>> >>> >> wrapping into the native library file. If you forget to compile and
>> >>> >> link in the SWIG wrapper file into your native library file, you
>> >>> >> will
>> >>> >> get a message similar to the following:"
>> >>> >>
>> >>> >> However, I don't think this is quite the issue as the same Cmake
>> >>> >> script works on OSX and Linux. I did see an email about possibly
>> >>> >> needing to compile the library with both the wrapper and the
>> >>> >> wrapped
>> >>> >> lib, but that seemed odd as we had things working with CS5.
>> >>> >>
>> >>> >> I'll continue to explore here.
>> >>> >>
>> >>> >> On Tue, Aug 27, 2013 at 5:19 PM, Steven Yi <stevenyi@gmail.com>
>> >>> >> wrote:
>> >>> >> > Thanks for the info, at least we can eliminate that possibility
>> >>> >> > then.
>> >>> >> > I'll hopefully get further along tomorrow and will report
>> >>> >> > anything I
>> >>> >> > find.
>> >>> >> >
>> >>> >> > On Tue, Aug 27, 2013 at 5:13 PM, Michael Gogins
>> >>> >> > <michael.gogins@gmail.com> wrote:
>> >>> >> >> The csnd name should be versioned but I don't have 5 on my
>> >>> >> >> machine
>> >>> >> >> at
>> >>> >> >> all.
>> >>> >> >>
>> >>> >> >> On Aug 27, 2013 5:03 PM, "Steven Yi" <stevenyi@gmail.com> wrote:
>> >>> >> >>>
>> >>> >> >>> The compile paths here are a mess so I'm going to need to sort
>> >>> >> >>> that
>> >>> >> >>> out here locally.  However, I'm wondering if at runtime if the
>> >>> >> >>> wrong
>> >>> >> >>> dll is getting loaded due to csnd.dll being the same name in
>> >>> >> >>> CS5
>> >>> >> >>> and
>> >>> >> >>> CS6.  Perhaps we should rename that to see if that's the source
>> >>> >> >>> of
>> >>> >> >>> issues for Java (possible CsoundPerformanceThread too?). I'm
>> >>> >> >>> imagining
>> >>> >> >>> if Csound runs multiple times alright, but
>> >>> >> >>> CsoundPerformanceThread
>> >>> >> >>> does not, then it could be possible that the csound6 library is
>> >>> >> >>> loading fine, but the cs5 version of csnd is loading and
>> >>> >> >>> causing
>> >>> >> >>> issues.
>> >>> >> >>>
>> >>> >> >>> On Tue, Aug 27, 2013 at 4:52 PM, Michael Gogins
>> >>> >> >>> <michael.gogins@gmail.com> wrote:
>> >>> >> >>> > In my build I'm very careful about the actual library paths.
>> >>> >> >>> > I
>> >>> >> >>> > look
>> >>> >> >>> > at
>> >>> >> >>> > the
>> >>> >> >>> > CMakeCache.txt, I look at the compiler and linker commands,
>> >>> >> >>> > and I
>> >>> >> >>> > look
>> >>> >> >>> > at
>> >>> >> >>> > what libraries actually get loaded during a run (there are
>> >>> >> >>> > various
>> >>> >> >>> > tools
>> >>> >> >>> > for
>> >>> >> >>> > doing this on Windows). I am careful because yes, it has been
>> >>> >> >>> > a
>> >>> >> >>> > problem
>> >>> >> >>> > for
>> >>> >> >>> > me, as you saw from my earlier emails.
>> >>> >> >>> >
>> >>> >> >>> > But we should talk about how to make this better on Windows.
>> >>> >> >>> >
>> >>> >> >>> > Best,
>> >>> >> >>> > Mike
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> > ===========================
>> >>> >> >>> > Michael Gogins
>> >>> >> >>> > Irreducible Productions
>> >>> >> >>> > http://michaelgogins.tumblr.com
>> >>> >> >>> > Michael dot Gogins at gmail dot com
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> > On Tue, Aug 27, 2013 at 4:15 PM, Steven Yi
>> >>> >> >>> > <stevenyi@gmail.com>
>> >>> >> >>> > wrote:
>> >>> >> >>> >>
>> >>> >> >>> >> Hi Michael and All,
>> >>> >> >>> >>
>> >>> >> >>> >> I just spent a bit of time looking into this and found some
>> >>> >> >>> >> very
>> >>> >> >>> >> heinous stuff going on in windows.  It looks to me that
>> >>> >> >>> >> CMake
>> >>> >> >>> >> actually
>> >>> >> >>> >> found all types of libraries from the PATH to use.  That
>> >>> >> >>> >> meant
>> >>> >> >>> >> some
>> >>> >> >>> >> libraries from C:\Program Files (x86)\Csound\bin were found,
>> >>> >> >>> >> others
>> >>> >> >>> >> from C:\Program Files (x86)\Csound6\bin, and others from my
>> >>> >> >>> >> MSYS
>> >>> >> >>> >> /usr/local/lib and custom set paths.  I get the impression
>> >>> >> >>> >> this
>> >>> >> >>> >> could
>> >>> >> >>> >> be a source of some of the issues we're seeing both with the
>> >>> >> >>> >> Java
>> >>> >> >>> >> library and other windows oddities.
>> >>> >> >>> >>
>> >>> >> >>> >> I mostly noticed this in looking at my CmakeCache.txt.  I'm
>> >>> >> >>> >> wondering
>> >>> >> >>> >> if the Java lib is linking to Csound 5's csnd.dll instead of
>> >>> >> >>> >> Csound6's.  If that's the case, then perhaps we can change
>> >>> >> >>> >> csnd
>> >>> >> >>> >> to
>> >>> >> >>> >> be
>> >>> >> >>> >> csnd6 instead.
>> >>> >> >>> >>
>> >>> >> >>> >> I've got to move on for the day, but will come back to this
>> >>> >> >>> >> tomorrow.
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >> On Tue, Aug 20, 2013 at 11:14 PM, Michael Gogins
>> >>> >> >>> >> <michael.gogins@gmail.com> wrote:
>> >>> >> >>> >> > People do seem to be switching to mingw-builds. I am using
>> >>> >> >>> >> > 4.8.1,
>> >>> >> >>> >> > dwarf-2,
>> >>> >> >>> >> > posix threads, 32 bits. If you use the same version we
>> >>> >> >>> >> > have a
>> >>> >> >>> >> > much
>> >>> >> >>> >> > better
>> >>> >> >>> >> > chance of understanding what is going on.
>> >>> >> >>> >> >
>> >>> >> >>> >> > I think there is something pretty subtle going on both
>> >>> >> >>> >> > with
>> >>> >> >>> >> > Java
>> >>> >> >>> >> > and
>> >>> >> >>> >> > with
>> >>> >> >>> >> > the CsoundPerformanceThread.
>> >>> >> >>> >> >
>> >>> >> >>> >> > I have proved that the existence of incompatible MinGW
>> >>> >> >>> >> > runtime
>> >>> >> >>> >> > libraries
>> >>> >> >>> >> > can
>> >>> >> >>> >> > be a problem. I have also proved that that is not the ONLY
>> >>> >> >>> >> > problem,
>> >>> >> >>> >> > at
>> >>> >> >>> >> > least, on my computer. I succeeded finally in removing
>> >>> >> >>> >> > incompatible
>> >>> >> >>> >> > MinGW
>> >>> >> >>> >> > runtime libraries from my SysWOW64 directory (!) so I now
>> >>> >> >>> >> > can
>> >>> >> >>> >> > run
>> >>> >> >>> >> > CsoundAC
>> >>> >> >>> >> > code, but I am still having problems with the performance
>> >>> >> >>> >> > thread
>> >>> >> >>> >> > and
>> >>> >> >>> >> > with
>> >>> >> >>> >> > Java. Different computers behave differently, e.g. I can
>> >>> >> >>> >> > run
>> >>> >> >>> >> > CsoundQt
>> >>> >> >>> >> > at
>> >>> >> >>> >> > work but not at home.
>> >>> >> >>> >> >
>> >>> >> >>> >> > In my programming life, these errors can arise from
>> >>> >> >>> >> > several
>> >>> >> >>> >> > errors
>> >>> >> >>> >> > but
>> >>> >> >>> >> > one
>> >>> >> >>> >> > common source is uninitialized members of structs and
>> >>> >> >>> >> > classes
>> >>> >> >>> >> > that
>> >>> >> >>> >> > contain
>> >>> >> >>> >> > zeroes on some machines and junk on other machines. Or
>> >>> >> >>> >> > writes
>> >>> >> >>> >> > past
>> >>> >> >>> >> > buffer
>> >>> >> >>> >> > ends that poke holes in junk on some machines and in vital
>> >>> >> >>> >> > organs
>> >>> >> >>> >> > on
>> >>> >> >>> >> > other
>> >>> >> >>> >> > machines. Having multiple threads makes this harder...
>> >>> >> >>> >> >
>> >>> >> >>> >> > Regards,
>> >>> >> >>> >> > Mike
>> >>> >> >>> >> >
>> >>> >> >>> >> > I wish I had something like valgrind on Windows but I
>> >>> >> >>> >> > can't
>> >>> >> >>> >> > afford
>> >>> >> >>> >> > the
>> >>> >> >>> >> > equivalent.
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> > ===========================
>> >>> >> >>> >> > Michael Gogins
>> >>> >> >>> >> > Irreducible Productions
>> >>> >> >>> >> > http://michaelgogins.tumblr.com
>> >>> >> >>> >> > Michael dot Gogins at gmail dot com
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> > On Tue, Aug 20, 2013 at 10:56 PM, Steven Yi
>> >>> >> >>> >> > <stevenyi@gmail.com>
>> >>> >> >>> >> > wrote:
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> Hi Michael,
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> I was trying to setup to get a build working on Windows
>> >>> >> >>> >> >> to
>> >>> >> >>> >> >> see
>> >>> >> >>> >> >> if I
>> >>> >> >>> >> >> can further diagnose what's going on.  I currently have
>> >>> >> >>> >> >> the
>> >>> >> >>> >> >> stock
>> >>> >> >>> >> >> mingw/msys installed from sf.net/projects/mingw. I
>> >>> >> >>> >> >> noticed in
>> >>> >> >>> >> >> your
>> >>> >> >>> >> >> How
>> >>> >> >>> >> >> to Build doc that you are using mingwbuilds version.
>> >>> >> >>> >> >> Could
>> >>> >> >>> >> >> you
>> >>> >> >>> >> >> advise: should I uninstalled mingw/msys and use just
>> >>> >> >>> >> >> mingwbuilds?
>> >>> >> >>> >> >> (I.e. better to start clean).
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> Thanks!
>> >>> >> >>> >> >> steven
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> On Thu, Aug 15, 2013 at 8:44 AM, Michael Gogins
>> >>> >> >>> >> >> <michael.gogins@gmail.com> wrote:
>> >>> >> >>> >> >> > Sorry, fumble fingers.
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > The problem I see is that the csnd6 low level JNI Java
>> >>> >> >>> >> >> > class
>> >>> >> >>> >> >> > needs
>> >>> >> >>> >> >> > to
>> >>> >> >>> >> >> > call
>> >>> >> >>> >> >> > SWIG's initializer in _csound.dll. The initializer is
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > thing
>> >>> >> >>> >> >> > not
>> >>> >> >>> >> >> > found.
>> >>> >> >>> >> >> > Without it we don't have Java Csound.
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > Still no solution, though. The initializer is in
>> >>> >> >>> >> >> > _jcsound.dll.
>> >>> >> >>> >> >> > Java
>> >>> >> >>> >> >> > doesn't
>> >>> >> >>> >> >> > find it. Java finds the CsoundEditor.jar (a better test
>> >>> >> >>> >> >> > than
>> >>> >> >>> >> >> > CSDPlayer.jar
>> >>> >> >>> >> >> > because it loads csnd6 right away) and loads and begins
>> >>> >> >>> >> >> > to
>> >>> >> >>> >> >> > run
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > Java
>> >>> >> >>> >> >> > code. The first thing to run is the static block that
>> >>> >> >>> >> >> > loads
>> >>> >> >>> >> >> > _jcsound.dll
>> >>> >> >>> >> >> > and
>> >>> >> >>> >> >> > calls the initializer. There are 4 steps here: locate
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > DLL,
>> >>> >> >>> >> >> > load
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > DLL,
>> >>> >> >>> >> >> > find the initializer function, call the initializer. We
>> >>> >> >>> >> >> > know
>> >>> >> >>> >> >> > that
>> >>> >> >>> >> >> > we
>> >>> >> >>> >> >> > don't
>> >>> >> >>> >> >> > find the initializer. I think it fails at the load
>> >>> >> >>> >> >> > stage
>> >>> >> >>> >> >> > because I
>> >>> >> >>> >> >> > have
>> >>> >> >>> >> >> > DLL
>> >>> >> >>> >> >> > hell on my notebook right now and I seem to recall
>> >>> >> >>> >> >> > catching
>> >>> >> >>> >> >> > the
>> >>> >> >>> >> >> > DLL
>> >>> >> >>> >> >> > load.
>> >>> >> >>> >> >> > I'll verify that later. In other words I think it
>> >>> >> >>> >> >> > starts to
>> >>> >> >>> >> >> > load
>> >>> >> >>> >> >> > _jcsound.dll and then there is a problem when
>> >>> >> >>> >> >> > _jcsound.dll
>> >>> >> >>> >> >> > is
>> >>> >> >>> >> >> > loading
>> >>> >> >>> >> >> > other
>> >>> >> >>> >> >> > things or initializating its own things.
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > ===========================
>> >>> >> >>> >> >> > Michael Gogins
>> >>> >> >>> >> >> > Irreducible Productions
>> >>> >> >>> >> >> > http://michaelgogins.tumblr.com
>> >>> >> >>> >> >> > Michael dot Gogins at gmail dot com
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > On Thu, Aug 15, 2013 at 8:32 AM, Michael Gogins
>> >>> >> >>> >> >> > <michael.gogins@gmail.com>
>> >>> >> >>> >> >> > wrote:
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >> The problem I see is that the Csound JNI
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >> ===========================
>> >>> >> >>> >> >> >> Michael Gogins
>> >>> >> >>> >> >> >> Irreducible Productions
>> >>> >> >>> >> >> >> http://michaelgogins.tumblr.com
>> >>> >> >>> >> >> >> Michael dot Gogins at gmail dot com
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >> On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi
>> >>> >> >>> >> >> >> <stevenyi@gmail.com>
>> >>> >> >>> >> >> >> wrote:
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> Hi Michael,
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> I'm wondering if this is the same issue. I need to
>> >>> >> >>> >> >> >>> re-test,
>> >>> >> >>> >> >> >>> but
>> >>> >> >>> >> >> >>> when I
>> >>> >> >>> >> >> >>> was trying things out I thought I didn't quite get a
>> >>> >> >>> >> >> >>> crash,
>> >>> >> >>> >> >> >>> just
>> >>> >> >>> >> >> >>> an
>> >>> >> >>> >> >> >>> UnsatisfiedLinkError exception for the function I was
>> >>> >> >>> >> >> >>> trying
>> >>> >> >>> >> >> >>> to
>> >>> >> >>> >> >> >>> call,
>> >>> >> >>> >> >> >>> which I could catch and do something about.  The test
>> >>> >> >>> >> >> >>> java
>> >>> >> >>> >> >> >>> class
>> >>> >> >>> >> >> >>> I
>> >>> >> >>> >> >> >>> put
>> >>> >> >>> >> >> >>> into the bug may not be doing any catching, but then
>> >>> >> >>> >> >> >>> Java
>> >>> >> >>> >> >> >>> should
>> >>> >> >>> >> >> >>> have
>> >>> >> >>> >> >> >>> just exited rather than crash.
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> steven
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> On Wed, Aug 14, 2013 at 1:29 PM, Michael Gogins
>> >>> >> >>> >> >> >>> <michael.gogins@gmail.com> wrote:
>> >>> >> >>> >> >> >>> > Gdb tells me Java crash is caused by linstd++-6.dll
>> >>> >> >>> >> >> >>> > of
>> >>> >> >>> >> >> >>> > wrong
>> >>> >> >>> >> >> >>> > model
>> >>> >> >>> >> >> >>> > found in
>> >>> >> >>> >> >> >>> > SysWOW64, where it does not belong and was put by
>> >>> >> >>> >> >> >>> > some
>> >>> >> >>> >> >> >>> > incompetent
>> >>> >> >>> >> >> >>> > installer. I'm afraid to remove it because I did
>> >>> >> >>> >> >> >>> > once
>> >>> >> >>> >> >> >>> > before
>> >>> >> >>> >> >> >>> > and
>> >>> >> >>> >> >> >>> > lost
>> >>> >> >>> >> >> >>> > my
>> >>> >> >>> >> >> >>> > user profile.
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> > ------------------------------------------------------------------------------
>> >>> >> >>> >> >> >>> > Get 100% visibility into Java/.NET code with
>> >>> >> >>> >> >> >>> > AppDynamics
>> >>> >> >>> >> >> >>> > Lite!
>> >>> >> >>> >> >> >>> > It's a free troubleshooting tool designed for
>> >>> >> >>> >> >> >>> > production.
>> >>> >> >>> >> >> >>> > Get down to code-level detail for bottlenecks, with
>> >>> >> >>> >> >> >>> > <2%
>> >>> >> >>> >> >> >>> > overhead.
>> >>> >> >>> >> >> >>> > Download for free and get started troubleshooting
>> >>> >> >>> >> >> >>> > in
>> >>> >> >>> >> >> >>> > minutes.
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >>> >> >>> >> >> >>> > _______________________________________________
>> >>> >> >>> >> >> >>> > Csound-devel mailing list
>> >>> >> >>> >> >> >>> > Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >> >>> >
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> ------------------------------------------------------------------------------
>> >>> >> >>> >> >> >>> Get 100% visibility into Java/.NET code with
>> >>> >> >>> >> >> >>> AppDynamics
>> >>> >> >>> >> >> >>> Lite!
>> >>> >> >>> >> >> >>> It's a free troubleshooting tool designed for
>> >>> >> >>> >> >> >>> production.
>> >>> >> >>> >> >> >>> Get down to code-level detail for bottlenecks, with
>> >>> >> >>> >> >> >>> <2%
>> >>> >> >>> >> >> >>> overhead.
>> >>> >> >>> >> >> >>> Download for free and get started troubleshooting in
>> >>> >> >>> >> >> >>> minutes.
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >>> >> >>> >> >> >>> _______________________________________________
>> >>> >> >>> >> >> >>> Csound-devel mailing list
>> >>> >> >>> >> >> >>> Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> >> >>>
>> >>> >> >>> >> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >>
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > ------------------------------------------------------------------------------
>> >>> >> >>> >> >> > Get 100% visibility into Java/.NET code with
>> >>> >> >>> >> >> > AppDynamics
>> >>> >> >>> >> >> > Lite!
>> >>> >> >>> >> >> > It's a free troubleshooting tool designed for
>> >>> >> >>> >> >> > production.
>> >>> >> >>> >> >> > Get down to code-level detail for bottlenecks, with <2%
>> >>> >> >>> >> >> > overhead.
>> >>> >> >>> >> >> > Download for free and get started troubleshooting in
>> >>> >> >>> >> >> > minutes.
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> >>> >> >>> >> >> > _______________________________________________
>> >>> >> >>> >> >> > Csound-devel mailing list
>> >>> >> >>> >> >> > Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >> >
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> ------------------------------------------------------------------------------
>> >>> >> >>> >> >> Introducing Performance Central, a new site from
>> >>> >> >>> >> >> SourceForge
>> >>> >> >>> >> >> and
>> >>> >> >>> >> >> AppDynamics. Performance Central is your source for news,
>> >>> >> >>> >> >> insights,
>> >>> >> >>> >> >> analysis and resources for efficient Application
>> >>> >> >>> >> >> Performance
>> >>> >> >>> >> >> Management.
>> >>> >> >>> >> >> Visit us today!
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> >>> >> >>> >> >>
>> >>> >> >>> >> >> _______________________________________________
>> >>> >> >>> >> >> Csound-devel mailing list
>> >>> >> >>> >> >> Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> > ------------------------------------------------------------------------------
>> >>> >> >>> >> > Introducing Performance Central, a new site from
>> >>> >> >>> >> > SourceForge
>> >>> >> >>> >> > and
>> >>> >> >>> >> > AppDynamics. Performance Central is your source for news,
>> >>> >> >>> >> > insights,
>> >>> >> >>> >> > analysis and resources for efficient Application
>> >>> >> >>> >> > Performance
>> >>> >> >>> >> > Management.
>> >>> >> >>> >> > Visit us today!
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> >
>> >>> >> >>> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> >>> >> >>> >> > _______________________________________________
>> >>> >> >>> >> > Csound-devel mailing list
>> >>> >> >>> >> > Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >> >
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >> ------------------------------------------------------------------------------
>> >>> >> >>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>> >>> >> >>> >> 2012,
>> >>> >> >>> >> more!
>> >>> >> >>> >> Discover the easy way to master current and previous
>> >>> >> >>> >> Microsoft
>> >>> >> >>> >> technologies
>> >>> >> >>> >> and advance your career. Get an incredible 1,500+ hours of
>> >>> >> >>> >> step-by-step
>> >>> >> >>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >>
>> >>> >> >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> >>> >>
>> >>> >> >>> >> _______________________________________________
>> >>> >> >>> >> Csound-devel mailing list
>> >>> >> >>> >> Csound-devel@lists.sourceforge.net
>> >>> >> >>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> > ------------------------------------------------------------------------------
>> >>> >> >>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>> >>> >> >>> > 2012,
>> >>> >> >>> > more!
>> >>> >> >>> > Discover the easy way to master current and previous
>> >>> >> >>> > Microsoft
>> >>> >> >>> > technologies
>> >>> >> >>> > and advance your career. Get an incredible 1,500+ hours of
>> >>> >> >>> > step-by-step
>> >>> >> >>> > tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> >
>> >>> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> >>> > _______________________________________________
>> >>> >> >>> > Csound-devel mailing list
>> >>> >> >>> > Csound-devel@lists.sourceforge.net
>> >>> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>> >
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>> ------------------------------------------------------------------------------
>> >>> >> >>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>> >>> >> >>> 2012,
>> >>> >> >>> more!
>> >>> >> >>> Discover the easy way to master current and previous Microsoft
>> >>> >> >>> technologies
>> >>> >> >>> and advance your career. Get an incredible 1,500+ hours of
>> >>> >> >>> step-by-step
>> >>> >> >>> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> >>> _______________________________________________
>> >>> >> >>> Csound-devel mailing list
>> >>> >> >>> Csound-devel@lists.sourceforge.net
>> >>> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >> ------------------------------------------------------------------------------
>> >>> >> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >>> >> >> more!
>> >>> >> >> Discover the easy way to master current and previous Microsoft
>> >>> >> >> technologies
>> >>> >> >> and advance your career. Get an incredible 1,500+ hours of
>> >>> >> >> step-by-step
>> >>> >> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >> >>
>> >>> >> >>
>> >>> >> >>
>> >>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> >> _______________________________________________
>> >>> >> >> Csound-devel mailing list
>> >>> >> >> Csound-devel@lists.sourceforge.net
>> >>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >> >>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> ------------------------------------------------------------------------------
>> >>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >>> >> more!
>> >>> >> Discover the easy way to master current and previous Microsoft
>> >>> >> technologies
>> >>> >> and advance your career. Get an incredible 1,500+ hours of
>> >>> >> step-by-step
>> >>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> >> _______________________________________________
>> >>> >> Csound-devel mailing list
>> >>> >> Csound-devel@lists.sourceforge.net
>> >>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> > ------------------------------------------------------------------------------
>> >>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>> >>> > more!
>> >>> > Discover the easy way to master current and previous Microsoft
>> >>> > technologies
>> >>> > and advance your career. Get an incredible 1,500+ hours of
>> >>> > step-by-step
>> >>> > tutorial videos with LearnDevNow. Subscribe today and save!
>> >>> >
>> >>> >
>> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> > _______________________________________________
>> >>> > Csound-devel mailing list
>> >>> > Csound-devel@lists.sourceforge.net
>> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>> >
>> >>>
>> >>>
>> >>>
>> >>> ------------------------------------------------------------------------------
>> >>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> >>> Discover the easy way to master current and previous Microsoft
>> >>> technologies
>> >>> and advance your career. Get an incredible 1,500+ hours of
>> >>> step-by-step
>> >>> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>>
>> >>>
>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >>> _______________________________________________
>> >>> Csound-devel mailing list
>> >>> Csound-devel@lists.sourceforge.net
>> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> >> Discover the easy way to master current and previous Microsoft
>> >> technologies
>> >> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>> >>
>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>>
>>
>> ------------------------------------------------------------------------------
>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> Discover the easy way to master current and previous Microsoft
>> technologies
>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> tutorial videos with LearnDevNow. Subscribe today and save!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel




--

Saludos,
Felipe Sateler

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel




--

Saludos,
Felipe Sateler

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



Date2013-08-29 02:05
FromSteven Yi
SubjectRe: [Cs-dev] Java crash on windows
Fantastic, thanks Michael for checking and verifying!

On Wed, Aug 28, 2013 at 7:41 PM, Michael Gogins
 wrote:
> CsoundEditor needs to be re-written to work with the new sequence of calls
> for performance with Csound 6. But it loads _jcsound.dll and starts to run.
> So the stdcall linkage was the cause of our woes. I have closed the Java
> issues.
>
> Regards,
> Mike
>
>
> ===========================
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Wed, Aug 28, 2013 at 5:24 PM, Felipe Sateler  wrote:
>>
>> I'm not an expert on the subject, but I believe it could be. The C library
>> is fine, and I /think/ the c++ wrapper is too. CsoundAC is less likely to
>> be, since it exports some standard library symbols. I don't know what
>> happens on the swig wrappers, though (which is why I brought this up).
>>
>>
>> On Wed, Aug 28, 2013 at 4:55 PM, Michael Gogins 
>> wrote:
>>>
>>> Is that a problem for us?
>>>
>>> On Aug 28, 2013 4:27 PM, "Felipe Sateler"  wrote:
>>>>
>>>> c++11 apparently breaks ABI compatibility with non-c++11 code:
>>>> http://gcc.gnu.org/wiki/Cxx11AbiCompatibility
>>>>
>>>>
>>>> On Wed, Aug 28, 2013 at 3:23 PM, Michael Gogins
>>>>  wrote:
>>>>>
>>>>> These are only for Windows.
>>>>>
>>>>> The only harm from defining these options globally is that more symbols
>>>>> are exported by the shared libraries, so the dynamic loads might be a tad
>>>>> slower. Once loaded I don't think calls would be noticeably slower. So I
>>>>> would go ahead and make these global on Windows. Other things that I always
>>>>> define globally on Windows, and should probably be the defaults on Windows:
>>>>>
>>>>> -g -O2 -std=gnu++11 -fopenmp -march=nocona -DNDEBUG
>>>>> -I/usr/local/include -L/usr/local/lib -mstackrealign -Wl,--add-stdcall-alias
>>>>> -Wl,--enable-stdcall-fixup
>>>>>
>>>>> I don't know why I didn't think about the stdcall possibility this time
>>>>> -- when it was I who originally added these options for this sort of reason
>>>>> in the first place!
>>>>>
>>>>> Best,
>>>>> Mike
>>>>>
>>>>>
>>>>> ===========================
>>>>> Michael Gogins
>>>>> Irreducible Productions
>>>>> http://michaelgogins.tumblr.com
>>>>> Michael dot Gogins at gmail dot com
>>>>>
>>>>>
>>>>> On Wed, Aug 28, 2013 at 3:09 PM, Steven Yi  wrote:
>>>>>>
>>>>>> I'm hopeful this will be it. :)  I tried adding it to my Custom.cmake
>>>>>> for now and am doing a compile.  I grepped through CS5's SConstruct
>>>>>> and surely enough there's numerous places where
>>>>>> -Wl,--add-stdcall-alias is used, and a few places where
>>>>>> -Wl,--enable-stdcall-fixup is used.
>>>>>>
>>>>>> I should be able to test in about 10 minutes; assuming all is good,
>>>>>> I'm wondering should this just be enabled as a global flag if on
>>>>>> Windows, or only for certain libs?
>>>>>>
>>>>>> As for finding a fix, glad that none of my other guesses were correct
>>>>>> as I think they'd be much more difficult to solve. :P
>>>>>>
>>>>>> On Wed, Aug 28, 2013 at 2:40 PM, Michael Gogins
>>>>>>  wrote:
>>>>>> > If that's the case, then changing the linker flags should do the
>>>>>> > trick. @8
>>>>>> > marks the function as stdcall calling convention with 8 bytes to be
>>>>>> > popped
>>>>>> > off the stack after returning from the call.
>>>>>> >
>>>>>> > To CFLAGS and CXXFLAGS for the DLL, add -"Wl,--add-stdcall-alias
>>>>>> > -Wl,--enable-stdcall-fixup". I think only the first is required but
>>>>>> > I used
>>>>>> > to add both to everything just to cover my bases.
>>>>>> >
>>>>>> > --add-stdcall-alias                Export symbols with and without
>>>>>> > @nn
>>>>>> > --disable-stdcall-fixup            Don't link _sym to _sym@nn DON'T
>>>>>> > USE!
>>>>>> > --enable-stdcall-fixup             Link _sym to _sym@nn without
>>>>>> > warnings
>>>>>> >
>>>>>> > Best,
>>>>>> > Mike
>>>>>> >
>>>>>> >
>>>>>> > ===========================
>>>>>> > Michael Gogins
>>>>>> > Irreducible Productions
>>>>>> > http://michaelgogins.tumblr.com
>>>>>> > Michael dot Gogins at gmail dot com
>>>>>> >
>>>>>> >
>>>>>> > On Wed, Aug 28, 2013 at 1:25 PM, Steven Yi 
>>>>>> > wrote:
>>>>>> >>
>>>>>> >> I found something that looks useful.  In _jcsound.dll from CS5,
>>>>>> >> DependencyWalker shows symbols like:
>>>>>> >>
>>>>>> >> Java_csnd_csndJNI_swig_1module_1init
>>>>>> >> Java_csnd_csndJNI_swig_1module_1init@8
>>>>>> >>
>>>>>> >> while CS6 only has:
>>>>>> >>
>>>>>> >> Java_csnd6_csnd6JNI_swig_1module_1init@8
>>>>>> >>
>>>>>> >> I get the impression that the PUBLIC attribute isn't working
>>>>>> >> correctly, or something along those lines.  I've got to take a
>>>>>> >> break
>>>>>> >> but will continue on with this after lunch.
>>>>>> >>
>>>>>> >> On Wed, Aug 28, 2013 at 12:22 PM, Steven Yi 
>>>>>> >> wrote:
>>>>>> >> > That didn't seem to affect anything unfortunately. Continuing
>>>>>> >> > on....
>>>>>> >> >
>>>>>> >> > On Wed, Aug 28, 2013 at 11:59 AM, Michael Gogins
>>>>>> >> >  wrote:
>>>>>> >> >> Well, that's certainly a mistake.
>>>>>> >> >>
>>>>>> >> >> On Aug 28, 2013 11:59 AM, "Steven Yi" 
>>>>>> >> >> wrote:
>>>>>> >> >>>
>>>>>> >> >>> That sounds reasonable, but the Csound5 API still loads for me
>>>>>> >> >>> fine
>>>>>> >> >>> with Blue, using the same VM.  I think that'd rule that one
>>>>>> >> >>> out.  I
>>>>>> >> >>> saw that csound.h has "%module csnd" isntead of "%module
>>>>>> >> >>> csnd6".  I'm
>>>>>> >> >>> not sure that's it, as that seems like it'd affect other
>>>>>> >> >>> platforms,
>>>>>> >> >>> but I'm giving it a try now just in case.  (compile should be
>>>>>> >> >>> done in
>>>>>> >> >>> 15-20 mins... ugh...)
>>>>>> >> >>>
>>>>>> >> >>> On Wed, Aug 28, 2013 at 11:35 AM, Michael Gogins
>>>>>> >> >>>  wrote:
>>>>>> >> >>> > If I were you, I would try compiling the library with both
>>>>>> >> >>> > the
>>>>>> >> >>> > wrapper
>>>>>> >> >>> > and
>>>>>> >> >>> > the wrapped lib, just to rule that out.
>>>>>> >> >>> >
>>>>>> >> >>> > There may well have been some change in the way the Java VM
>>>>>> >> >>> > and
>>>>>> >> >>> > library
>>>>>> >> >>> > link. You could try Oracle issues on Java regarding that.
>>>>>> >> >>> >
>>>>>> >> >>> > Best,
>>>>>> >> >>> > Mike
>>>>>> >> >>> >
>>>>>> >> >>> >
>>>>>> >> >>> > ===========================
>>>>>> >> >>> > Michael Gogins
>>>>>> >> >>> > Irreducible Productions
>>>>>> >> >>> > http://michaelgogins.tumblr.com
>>>>>> >> >>> > Michael dot Gogins at gmail dot com
>>>>>> >> >>> >
>>>>>> >> >>> >
>>>>>> >> >>> > On Wed, Aug 28, 2013 at 11:18 AM, Steven Yi
>>>>>> >> >>> > 
>>>>>> >> >>> > wrote:
>>>>>> >> >>> >>
>>>>>> >> >>> >> Just an update, I tried modifying to use libcsnd6 and
>>>>>> >> >>> >> linking to
>>>>>> >> >>> >> that,
>>>>>> >> >>> >> but it had no affect on the Java test.  I did see in the
>>>>>> >> >>> >> SWIG
>>>>>> >> >>> >> manual
>>>>>> >> >>> >> for Java that they have an error shown similar to ours, with
>>>>>> >> >>> >> the
>>>>>> >> >>> >> documentation:
>>>>>> >> >>> >>
>>>>>> >> >>> >> "This error usually indicates that you forgot to include
>>>>>> >> >>> >> some
>>>>>> >> >>> >> object
>>>>>> >> >>> >> files or libraries in the linking of the native library
>>>>>> >> >>> >> file. Make
>>>>>> >> >>> >> sure you compile both the SWIG wrapper file and the code you
>>>>>> >> >>> >> are
>>>>>> >> >>> >> wrapping into the native library file. If you forget to
>>>>>> >> >>> >> compile and
>>>>>> >> >>> >> link in the SWIG wrapper file into your native library file,
>>>>>> >> >>> >> you
>>>>>> >> >>> >> will
>>>>>> >> >>> >> get a message similar to the following:"
>>>>>> >> >>> >>
>>>>>> >> >>> >> However, I don't think this is quite the issue as the same
>>>>>> >> >>> >> Cmake
>>>>>> >> >>> >> script works on OSX and Linux. I did see an email about
>>>>>> >> >>> >> possibly
>>>>>> >> >>> >> needing to compile the library with both the wrapper and the
>>>>>> >> >>> >> wrapped
>>>>>> >> >>> >> lib, but that seemed odd as we had things working with CS5.
>>>>>> >> >>> >>
>>>>>> >> >>> >> I'll continue to explore here.
>>>>>> >> >>> >>
>>>>>> >> >>> >> On Tue, Aug 27, 2013 at 5:19 PM, Steven Yi
>>>>>> >> >>> >> 
>>>>>> >> >>> >> wrote:
>>>>>> >> >>> >> > Thanks for the info, at least we can eliminate that
>>>>>> >> >>> >> > possibility
>>>>>> >> >>> >> > then.
>>>>>> >> >>> >> > I'll hopefully get further along tomorrow and will report
>>>>>> >> >>> >> > anything I
>>>>>> >> >>> >> > find.
>>>>>> >> >>> >> >
>>>>>> >> >>> >> > On Tue, Aug 27, 2013 at 5:13 PM, Michael Gogins
>>>>>> >> >>> >> >  wrote:
>>>>>> >> >>> >> >> The csnd name should be versioned but I don't have 5 on
>>>>>> >> >>> >> >> my
>>>>>> >> >>> >> >> machine
>>>>>> >> >>> >> >> at
>>>>>> >> >>> >> >> all.
>>>>>> >> >>> >> >>
>>>>>> >> >>> >> >> On Aug 27, 2013 5:03 PM, "Steven Yi" 
>>>>>> >> >>> >> >> wrote:
>>>>>> >> >>> >> >>>
>>>>>> >> >>> >> >>> The compile paths here are a mess so I'm going to need
>>>>>> >> >>> >> >>> to sort
>>>>>> >> >>> >> >>> that
>>>>>> >> >>> >> >>> out here locally.  However, I'm wondering if at runtime
>>>>>> >> >>> >> >>> if the
>>>>>> >> >>> >> >>> wrong
>>>>>> >> >>> >> >>> dll is getting loaded due to csnd.dll being the same
>>>>>> >> >>> >> >>> name in
>>>>>> >> >>> >> >>> CS5
>>>>>> >> >>> >> >>> and
>>>>>> >> >>> >> >>> CS6.  Perhaps we should rename that to see if that's the
>>>>>> >> >>> >> >>> source
>>>>>> >> >>> >> >>> of
>>>>>> >> >>> >> >>> issues for Java (possible CsoundPerformanceThread too?).
>>>>>> >> >>> >> >>> I'm
>>>>>> >> >>> >> >>> imagining
>>>>>> >> >>> >> >>> if Csound runs multiple times alright, but
>>>>>> >> >>> >> >>> CsoundPerformanceThread
>>>>>> >> >>> >> >>> does not, then it could be possible that the csound6
>>>>>> >> >>> >> >>> library is
>>>>>> >> >>> >> >>> loading fine, but the cs5 version of csnd is loading and
>>>>>> >> >>> >> >>> causing
>>>>>> >> >>> >> >>> issues.
>>>>>> >> >>> >> >>>
>>>>>> >> >>> >> >>> On Tue, Aug 27, 2013 at 4:52 PM, Michael Gogins
>>>>>> >> >>> >> >>>  wrote:
>>>>>> >> >>> >> >>> > In my build I'm very careful about the actual library
>>>>>> >> >>> >> >>> > paths.
>>>>>> >> >>> >> >>> > I
>>>>>> >> >>> >> >>> > look
>>>>>> >> >>> >> >>> > at
>>>>>> >> >>> >> >>> > the
>>>>>> >> >>> >> >>> > CMakeCache.txt, I look at the compiler and linker
>>>>>> >> >>> >> >>> > commands,
>>>>>> >> >>> >> >>> > and I
>>>>>> >> >>> >> >>> > look
>>>>>> >> >>> >> >>> > at
>>>>>> >> >>> >> >>> > what libraries actually get loaded during a run (there
>>>>>> >> >>> >> >>> > are
>>>>>> >> >>> >> >>> > various
>>>>>> >> >>> >> >>> > tools
>>>>>> >> >>> >> >>> > for
>>>>>> >> >>> >> >>> > doing this on Windows). I am careful because yes, it
>>>>>> >> >>> >> >>> > has been
>>>>>> >> >>> >> >>> > a
>>>>>> >> >>> >> >>> > problem
>>>>>> >> >>> >> >>> > for
>>>>>> >> >>> >> >>> > me, as you saw from my earlier emails.
>>>>>> >> >>> >> >>> >
>>>>>> >> >>> >> >>> > But we should talk about how to make this better on
>>>>>> >> >>> >> >>> > Windows.
>>>>>> >> >>> >> >>> >
>>>>>> >> >>> >> >>> > Best,
>>>>>> >> >>> >> >>> > Mike
>>>>>> >> >>> >> >>> >
>>>>>> >> >>> >> >>> >
>>>>>> >> >>> >> >>> > ===========================
>>>>>> >> >>> >> >>> > Michael Gogins
>>>>>> >> >>> >> >>> > Irreducible Productions
>>>>>> >> >>> >> >>> > http://michaelgogins.tumblr.com
>>>>>> >> >>> >> >>> > Michael dot Gogins at gmail dot com
>>>>>> >> >>> >> >>> >
>>>>>> >> >>> >> >>> >
>>>>>> >> >>> >> >>> > On Tue, Aug 27, 2013 at 4:15 PM, Steven Yi
>>>>>> >> >>> >> >>> > 
>>>>>> >> >>> >> >>> > wrote:
>>>>>> >> >>> >> >>> >>
>>>>>> >> >>> >> >>> >> Hi Michael and All,
>>>>>> >> >>> >> >>> >>
>>>>>> >> >>> >> >>> >> I just spent a bit of time looking into this and
>>>>>> >> >>> >> >>> >> found some
>>>>>> >> >>> >> >>> >> very
>>>>>> >> >>> >> >>> >> heinous stuff going on in windows.  It looks to me
>>>>>> >> >>> >> >>> >> that
>>>>>> >> >>> >> >>> >> CMake
>>>>>> >> >>> >> >>> >> actually
>>>>>> >> >>> >> >>> >> found all types of libraries from the PATH to use.
>>>>>> >> >>> >> >>> >> That
>>>>>> >> >>> >> >>> >> meant
>>>>>> >> >>> >> >>> >> some
>>>>>> >> >>> >> >>> >> libraries from C:\Program Files (x86)\Csound\bin were
>>>>>> >> >>> >> >>> >> found,
>>>>>> >> >>> >> >>> >> others
>>>>>> >> >>> >> >>> >> from C:\Program Files (x86)\Csound6\bin, and others
>>>>>> >> >>> >> >>> >> from my
>>>>>> >> >>> >> >>> >> MSYS
>>>>>> >> >>> >> >>> >> /usr/local/lib and custom set paths.  I get the
>>>>>> >> >>> >> >>> >> impression
>>>>>> >> >>> >> >>> >> this
>>>>>> >> >>> >> >>> >> could
>>>>>> >> >>> >> >>> >> be a source of some of the issues we're seeing both
>>>>>> >> >>> >> >>> >> with the
>>>>>> >> >>> >> >>> >> Java
>>>>>> >> >>> >> >>> >> library and other windows oddities.
>>>>>> >> >>> >> >>> >>
>>>>>> >> >>> >> >>> >> I mostly noticed this in looking at my
>>>>>> >> >>> >> >>> >> CmakeCache.txt.  I'm
>>>>>> >> >>> >> >>> >> wondering
>>>>>> >> >>> >> >>> >> if the Java lib is linking to Csound 5's csnd.dll
>>>>>> >> >>> >> >>> >> instead of
>>>>>> >> >>> >> >>> >> Csound6's.  If that's the case, then perhaps we can
>>>>>> >> >>> >> >>> >> change
>>>>>> >> >>> >> >>> >> csnd
>>>>>> >> >>> >> >>> >> to
>>>>>> >> >>> >> >>> >> be
>>>>>> >> >>> >> >>> >> csnd6 instead.
>>>>>> >> >>> >> >>> >>
>>>>>> >> >>> >> >>> >> I've got to move on for the day, but will come back
>>>>>> >> >>> >> >>> >> to this
>>>>>> >> >>> >> >>> >> tomorrow.
>>>>>> >> >>> >> >>> >>
>>>>>> >> >>> >> >>> >>
>>>>>> >> >>> >> >>> >>
>>>>>> >> >>> >> >>> >> On Tue, Aug 20, 2013 at 11:14 PM, Michael Gogins
>>>>>> >> >>> >> >>> >>  wrote:
>>>>>> >> >>> >> >>> >> > People do seem to be switching to mingw-builds. I
>>>>>> >> >>> >> >>> >> > am using
>>>>>> >> >>> >> >>> >> > 4.8.1,
>>>>>> >> >>> >> >>> >> > dwarf-2,
>>>>>> >> >>> >> >>> >> > posix threads, 32 bits. If you use the same version
>>>>>> >> >>> >> >>> >> > we
>>>>>> >> >>> >> >>> >> > have a
>>>>>> >> >>> >> >>> >> > much
>>>>>> >> >>> >> >>> >> > better
>>>>>> >> >>> >> >>> >> > chance of understanding what is going on.
>>>>>> >> >>> >> >>> >> >
>>>>>> >> >>> >> >>> >> > I think there is something pretty subtle going on
>>>>>> >> >>> >> >>> >> > both
>>>>>> >> >>> >> >>> >> > with
>>>>>> >> >>> >> >>> >> > Java
>>>>>> >> >>> >> >>> >> > and
>>>>>> >> >>> >> >>> >> > with
>>>>>> >> >>> >> >>> >> > the CsoundPerformanceThread.
>>>>>> >> >>> >> >>> >> >
>>>>>> >> >>> >> >>> >> > I have proved that the existence of incompatible
>>>>>> >> >>> >> >>> >> > MinGW
>>>>>> >> >>> >> >>> >> > runtime
>>>>>> >> >>> >> >>> >> > libraries
>>>>>> >> >>> >> >>> >> > can
>>>>>> >> >>> >> >>> >> > be a problem. I have also proved that that is not
>>>>>> >> >>> >> >>> >> > the ONLY
>>>>>> >> >>> >> >>> >> > problem,
>>>>>> >> >>> >> >>> >> > at
>>>>>> >> >>> >> >>> >> > least, on my computer. I succeeded finally in
>>>>>> >> >>> >> >>> >> > removing
>>>>>> >> >>> >> >>> >> > incompatible
>>>>>> >> >>> >> >>> >> > MinGW
>>>>>> >> >>> >> >>> >> > runtime libraries from my SysWOW64 directory (!) so
>>>>>> >> >>> >> >>> >> > I now
>>>>>> >> >>> >> >>> >> > can
>>>>>> >> >>> >> >>> >> > run
>>>>>> >> >>> >> >>> >> > CsoundAC
>>>>>> >> >>> >> >>> >> > code, but I am still having problems with the
>>>>>> >> >>> >> >>> >> > performance
>>>>>> >> >>> >> >>> >> > thread
>>>>>> >> >>> >> >>> >> > and
>>>>>> >> >>> >> >>> >> > with
>>>>>> >> >>> >> >>> >> > Java. Different computers behave differently, e.g.
>>>>>> >> >>> >> >>> >> > I can
>>>>>> >> >>> >> >>> >> > run
>>>>>> >> >>> >> >>> >> > CsoundQt
>>>>>> >> >>> >> >>> >> > at
>>>>>> >> >>> >> >>> >> > work but not at home.
>>>>>> >> >>> >> >>> >> >
>>>>>> >> >>> >> >>> >> > In my programming life, these errors can arise from
>>>>>> >> >>> >> >>> >> > several
>>>>>> >> >>> >> >>> >> > errors
>>>>>> >> >>> >> >>> >> > but
>>>>>> >> >>> >> >>> >> > one
>>>>>> >> >>> >> >>> >> > common source is uninitialized members of structs
>>>>>> >> >>> >> >>> >> > and
>>>>>> >> >>> >> >>> >> > classes
>>>>>> >> >>> >> >>> >> > that
>>>>>> >> >>> >> >>> >> > contain
>>>>>> >> >>> >> >>> >> > zeroes on some machines and junk on other machines.
>>>>>> >> >>> >> >>> >> > Or
>>>>>> >> >>> >> >>> >> > writes
>>>>>> >> >>> >> >>> >> > past
>>>>>> >> >>> >> >>> >> > buffer
>>>>>> >> >>> >> >>> >> > ends that poke holes in junk on some machines and
>>>>>> >> >>> >> >>> >> > in vital
>>>>>> >> >>> >> >>> >> > organs
>>>>>> >> >>> >> >>> >> > on
>>>>>> >> >>> >> >>> >> > other
>>>>>> >> >>> >> >>> >> > machines. Having multiple threads makes this
>>>>>> >> >>> >> >>> >> > harder...
>>>>>> >> >>> >> >>> >> >
>>>>>> >> >>> >> >>> >> > Regards,
>>>>>> >> >>> >> >>> >> > Mike
>>>>>> >> >>> >> >>> >> >
>>>>>> >> >>> >> >>> >> > I wish I had something like valgrind on Windows but
>>>>>> >> >>> >> >>> >> > I
>>>>>> >> >>> >> >>> >> > can't
>>>>>> >> >>> >> >>> >> > afford
>>>>>> >> >>> >> >>> >> > the
>>>>>> >> >>> >> >>> >> > equivalent.
>>>>>> >> >>> >> >>> >> >
>>>>>> >> >>> >> >>> >> >
>>>>>> >> >>> >> >>> >> > ===========================
>>>>>> >> >>> >> >>> >> > Michael Gogins
>>>>>> >> >>> >> >>> >> > Irreducible Productions
>>>>>> >> >>> >> >>> >> > http://michaelgogins.tumblr.com
>>>>>> >> >>> >> >>> >> > Michael dot Gogins at gmail dot com
>>>>>> >> >>> >> >>> >> >
>>>>>> >> >>> >> >>> >> >
>>>>>> >> >>> >> >>> >> > On Tue, Aug 20, 2013 at 10:56 PM, Steven Yi
>>>>>> >> >>> >> >>> >> > 
>>>>>> >> >>> >> >>> >> > wrote:
>>>>>> >> >>> >> >>> >> >>
>>>>>> >> >>> >> >>> >> >> Hi Michael,
>>>>>> >> >>> >> >>> >> >>
>>>>>> >> >>> >> >>> >> >> I was trying to setup to get a build working on
>>>>>> >> >>> >> >>> >> >> Windows
>>>>>> >> >>> >> >>> >> >> to
>>>>>> >> >>> >> >>> >> >> see
>>>>>> >> >>> >> >>> >> >> if I
>>>>>> >> >>> >> >>> >> >> can further diagnose what's going on.  I currently
>>>>>> >> >>> >> >>> >> >> have
>>>>>> >> >>> >> >>> >> >> the
>>>>>> >> >>> >> >>> >> >> stock
>>>>>> >> >>> >> >>> >> >> mingw/msys installed from sf.net/projects/mingw. I
>>>>>> >> >>> >> >>> >> >> noticed in
>>>>>> >> >>> >> >>> >> >> your
>>>>>> >> >>> >> >>> >> >> How
>>>>>> >> >>> >> >>> >> >> to Build doc that you are using mingwbuilds
>>>>>> >> >>> >> >>> >> >> version.
>>>>>> >> >>> >> >>> >> >> Could
>>>>>> >> >>> >> >>> >> >> you
>>>>>> >> >>> >> >>> >> >> advise: should I uninstalled mingw/msys and use
>>>>>> >> >>> >> >>> >> >> just
>>>>>> >> >>> >> >>> >> >> mingwbuilds?
>>>>>> >> >>> >> >>> >> >> (I.e. better to start clean).
>>>>>> >> >>> >> >>> >> >>
>>>>>> >> >>> >> >>> >> >> Thanks!
>>>>>> >> >>> >> >>> >> >> steven
>>>>>> >> >>> >> >>> >> >>
>>>>>> >> >>> >> >>> >> >> On Thu, Aug 15, 2013 at 8:44 AM, Michael Gogins
>>>>>> >> >>> >> >>> >> >>  wrote:
>>>>>> >> >>> >> >>> >> >> > Sorry, fumble fingers.
>>>>>> >> >>> >> >>> >> >> >
>>>>>> >> >>> >> >>> >> >> > The problem I see is that the csnd6 low level
>>>>>> >> >>> >> >>> >> >> > JNI Java
>>>>>> >> >>> >> >>> >> >> > class
>>>>>> >> >>> >> >>> >> >> > needs
>>>>>> >> >>> >> >>> >> >> > to
>>>>>> >> >>> >> >>> >> >> > call
>>>>>> >> >>> >> >>> >> >> > SWIG's initializer in _csound.dll. The
>>>>>> >> >>> >> >>> >> >> > initializer is
>>>>>> >> >>> >> >>> >> >> > the
>>>>>> >> >>> >> >>> >> >> > thing
>>>>>> >> >>> >> >>> >> >> > not
>>>>>> >> >>> >> >>> >> >> > found.
>>>>>> >> >>> >> >>> >> >> > Without it we don't have Java Csound.
>>>>>> >> >>> >> >>> >> >> >
>>>>>> >> >>> >> >>> >> >> > Still no solution, though. The initializer is in
>>>>>> >> >>> >> >>> >> >> > _jcsound.dll.
>>>>>> >> >>> >> >>> >> >> > Java
>>>>>> >> >>> >> >>> >> >> > doesn't
>>>>>> >> >>> >> >>> >> >> > find it. Java finds the CsoundEditor.jar (a
>>>>>> >> >>> >> >>> >> >> > better test
>>>>>> >> >>> >> >>> >> >> > than
>>>>>> >> >>> >> >>> >> >> > CSDPlayer.jar
>>>>>> >> >>> >> >>> >> >> > because it loads csnd6 right away) and loads and
>>>>>> >> >>> >> >>> >> >> > begins
>>>>>> >> >>> >> >>> >> >> > to
>>>>>> >> >>> >> >>> >> >> > run
>>>>>> >> >>> >> >>> >> >> > the
>>>>>> >> >>> >> >>> >> >> > Java
>>>>>> >> >>> >> >>> >> >> > code. The first thing to run is the static block
>>>>>> >> >>> >> >>> >> >> > that
>>>>>> >> >>> >> >>> >> >> > loads
>>>>>> >> >>> >> >>> >> >> > _jcsound.dll
>>>>>> >> >>> >> >>> >> >> > and
>>>>>> >> >>> >> >>> >> >> > calls the initializer. There are 4 steps here:
>>>>>> >> >>> >> >>> >> >> > locate
>>>>>> >> >>> >> >>> >> >> > the
>>>>>> >> >>> >> >>> >> >> > DLL,
>>>>>> >> >>> >> >>> >> >> > load
>>>>>> >> >>> >> >>> >> >> > the
>>>>>> >> >>> >> >>> >> >> > DLL,
>>>>>> >> >>> >> >>> >> >> > find the initializer function, call the
>>>>>> >> >>> >> >>> >> >> > initializer. We
>>>>>> >> >>> >> >>> >> >> > know
>>>>>> >> >>> >> >>> >> >> > that
>>>>>> >> >>> >> >>> >> >> > we
>>>>>> >> >>> >> >>> >> >> > don't
>>>>>> >> >>> >> >>> >> >> > find the initializer. I think it fails at the
>>>>>> >> >>> >> >>> >> >> > load
>>>>>> >> >>> >> >>> >> >> > stage
>>>>>> >> >>> >> >>> >> >> > because I
>>>>>> >> >>> >> >>> >> >> > have
>>>>>> >> >>> >> >>> >> >> > DLL
>>>>>> >> >>> >> >>> >> >> > hell on my notebook right now and I seem to
>>>>>> >> >>> >> >>> >> >> > recall
>>>>>> >> >>> >> >>> >> >> > catching
>>>>>> >> >>> >> >>> >> >> > the
>>>>>> >> >>> >> >>> >> >> > DLL
>>>>>> >> >>> >> >>> >> >> > load.
>>>>>> >> >>> >> >>> >> >> > I'll verify that later. In other words I think
>>>>>> >> >>> >> >>> >> >> > it
>>>>>> >> >>> >> >>> >> >> > starts to
>>>>>> >> >>> >> >>> >> >> > load
>>>>>> >> >>> >> >>> >> >> > _jcsound.dll and then there is a problem when
>>>>>> >> >>> >> >>> >> >> > _jcsound.dll
>>>>>> >> >>> >> >>> >> >> > is
>>>>>> >> >>> >> >>> >> >> > loading
>>>>>> >> >>> >> >>> >> >> > other
>>>>>> >> >>> >> >>> >> >> > things or initializating its own things.
>>>>>> >> >>> >> >>> >> >> >
>>>>>> >> >>> >> >>> >> >> >
>>>>>> >> >>> >> >>> >> >> > ===========================
>>>>>> >> >>> >> >>> >> >> > Michael Gogins
>>>>>> >> >>> >> >>> >> >> > Irreducible Productions
>>>>>> >> >>> >> >>> >> >> > http://michaelgogins.tumblr.com
>>>>>> >> >>> >> >>> >> >> > Michael dot Gogins at gmail dot com
>>>>>> >> >>> >> >>> >> >> >
>>>>>> >> >>> >> >>> >> >> >
>>>>>> >> >>> >> >>> >> >> > On Thu, Aug 15, 2013 at 8:32 AM, Michael Gogins
>>>>>> >> >>> >> >>> >> >> > 
>>>>>> >> >>> >> >>> >> >> > wrote:
>>>>>> >> >>> >> >>> >> >> >>
>>>>>> >> >>> >> >>> >> >> >> The problem I see is that the Csound JNI
>>>>>> >> >>> >> >>> >> >> >>
>>>>>> >> >>> >> >>> >> >> >>
>>>>>> >> >>> >> >>> >> >> >> ===========================
>>>>>> >> >>> >> >>> >> >> >> Michael Gogins
>>>>>> >> >>> >> >>> >> >> >> Irreducible Productions
>>>>>> >> >>> >> >>> >> >> >> http://michaelgogins.tumblr.com
>>>>>> >> >>> >> >>> >> >> >> Michael dot Gogins at gmail dot com
>>>>>> >> >>> >> >>> >> >> >>
>>>>>> >> >>> >> >>> >> >> >>
>>>>>> >> >>> >> >>> >> >> >> On Thu, Aug 15, 2013 at 7:44 AM, Steven Yi
>>>>>> >> >>> >> >>> >> >> >> 
>>>>>> >> >>> >> >>> >> >> >> wrote:
>>>>>> >> >>> >> >>> >> >> >>>
>>>>>> >> >>> >> >>> >> >> >>> Hi Michael,
>>>>>> >> >>> >> >>> >> >> >>>
>>>>>> >> >>> >> >>> >> >> >>> I'm wondering if this is the same issue. I
>>>>>> >> >>> >> >>> >> >> >>> need to
>>>>>> >> >>> >> >>> >> >> >>> re-test,
>>>>>> >> >>> >> >>> >> >> >>> but
>>>>>> >> >>> >> >>> >> >> >>> when I
>>>>>> >> >>> >> >>> >> >> >>> was trying things out I thought I didn't quite
>>>>>> >> >>> >> >>> >> >> >>> get a
>>>>>> >> >>> >> >>> >> >> >>> crash,
>>>>>> >> >>> >> >>> >> >> >>> just
>>>>>> >> >>> >> >>> >> >> >>> an
>>>>>> >> >>> >> >>> >> >> >>> UnsatisfiedLinkError exception for the
>>>>>> >> >>> >> >>> >> >> >>> function I was
>>>>>> >> >>> >> >>> >> >> >>> trying
>>>>>> >> >>> >> >>> >> >> >>> to
>>>>>> >> >>> >> >>> >> >> >>> call,
>>>>>> >> >>> >> >>> >> >> >>> which I could catch and do something about.
>>>>>> >> >>> >> >>> >> >> >>> The test
>>>>>> >> >>> >> >>> >> >> >>> java
>>>>>> >> >>> >> >>> >> >> >>> class
>>>>>> >> >>> >> >>> >> >> >>> I
>>>>>> >> >>> >> >>> >> >> >>> put
>>>>>> >> >>> >> >>> >> >> >>> into the bug may not be doing any catching,
>>>>>> >> >>> >> >>> >> >> >>> but then
>>>>>> >> >>> >> >>> >> >> >>> Java
>>>>>> >> >>> >> >>> >> >> >>> should
>>>>>> >> >>> >> >>> >> >> >>> have
>>>>>> >> >>> >> >>> >> >> >>> just exited rather than crash.
>>>>>> >> >>> >> >>> >> >> >>>
>>>>>> >> >>> >> >>> >> >> >>> steven
>>>>>> >> >>> >> >>> >> >> >>>
>>>>>> >> >>> >> >>> >> >> >>> On Wed, Aug 14, 2013 at 1:29 PM, Michael
>>>>>> >> >>> >> >>> >> >> >>> Gogins
>>>>>> >> >>> >> >>> >> >> >>>  wrote:
>>>>>> >> >>> >> >>> >> >> >>> > Gdb tells me Java crash is caused by
>>>>>> >> >>> >> >>> >> >> >>> > linstd++-6.dll
>>>>>> >> >>> >> >>> >> >> >>> > of
>>>>>> >> >>> >> >>> >> >> >>> > wrong
>>>>>> >> >>> >> >>> >> >> >>> > model
>>>>>> >> >>> >> >>> >> >> >>> > found in
>>>>>> >> >>> >> >>> >> >> >>> > SysWOW64, where it does not belong and was
>>>>>> >> >>> >> >>> >> >> >>> > put by
>>>>>> >> >>> >> >>> >> >> >>> > some
>>>>>> >> >>> >> >>> >> >> >>> > incompetent
>>>>>> >> >>> >> >>> >> >> >>> > installer. I'm afraid to remove it because I
>>>>>> >> >>> >> >>> >> >> >>> > did
>>>>>> >> >>> >> >>> >> >> >>> > once
>>>>>> >> >>> >> >>> >> >> >>> > before
>>>>>> >> >>> >> >>> >> >> >>> > and
>>>>>> >> >>> >> >>> >> >> >>> > lost
>>>>>> >> >>> >> >>> >> >> >>> > my
>>>>>> >> >>> >> >>> >> >> >>> > user profile.
>>>>>> >> >>> >> >>> >> >> >>> >
>>>>>> >> >>> >> >>> >> >> >>> >
>>>>>> >> >>> >> >>> >> >> >>> >
>>>>>> >> >>> >> >>> >> >> >>> >
>>>>>> >> >>> >> >>> >> >> >>> >
>>>>>> >> >>> >> >>> >> >> >>> >
>>>>>> >> >>> >> >>> >> >> >>> >
>>>>>> >> >>> >> >>> >> >> >>> >
>>>>>> >> >>> >> >>> >> >> >>> >
>>>>>> >> >>> >> >>> >> >> >>> >
>>>>>> >> >>> >> >>> >> >> >>> > ------------------------------------------------------------------------------
>>>>>> >> >>> >> >>> >> >> >>> > Get 100% visibility into Java/.NET code with
>>>>>> >> >>> >> >>> >> >> >>> > AppDynamics
>>>>>> >> >>> >> >>> >> >> >>> > Lite!
>>>>>> >> >>> >> >>> >> >> >>> > It's a free troubleshooting tool designed
>>>>>> >> >>> >> >>> >> >> >>> > for
>>>>>> >> >>> >> >>> >> >> >>> > production.
>>>>>> >> >>> >> >>> >> >> >>> > Get down to code-level detail for
>>>>>> >> >>> >> >>> >> >> >>> > bottlenecks, with
>>>>>> >> >>> >> >>> >> >> >>> > <2%
>>>>>> >> >>> >> >>> >> >> >>> > overhead.
>>>>>> >> >>> >> >>> >> >> >>> > Download for free and get started
>>>>>> >> >>> >> >>> >> >> >>> > troubleshooting
>>>>>> >> >>> >> >>> >> >> >>> > in
>>>>>> >> >>> >> >>> >> >> >>> > minutes.
>>>>>> >> >>> >> >>> >> >> >>> >
>>>>>> >> >>> >> >>> >> >> >>> >
>>>>>> >> >>> >> >>> >> >> >>> >
>>>>>> >> >>> >> >>> >> >> >>> >
>>>>>> >> >>> >> >>> >> >> >>> >
>>>>>> >> >>> >> >>> >> >> >>> >
>>>>>> >> >>> >> >>> >> >> >>> >
>>>>>> >> >>> >> >>> >> >> >>> >
>>>>>> >> >>> >> >>> >> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>>>>>> >> >>> >> >>> >> >> >>> >
>>>>>> >> >>> >> >>> >> >> >>> > _______________________________________________
>>>>>> >> >>> >> >>> >> >> >>> > Csound-devel mailing list
>>>>>> >> >>> >> >>> >> >> >>> > Csound-devel@lists.sourceforge.net
>>>>>> >> >>> >> >>> >> >> >>> >
>>>>>> >> >>> >> >>> >> >> >>> >
>>>>>> >> >>> >> >>> >> >> >>> >
>>>>>> >> >>> >> >>> >> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> >> >>> >> >>> >> >> >>> >
>>>>>> >> >>> >> >>> >> >> >>>
>>>>>> >> >>> >> >>> >> >> >>>
>>>>>> >> >>> >> >>> >> >> >>>
>>>>>> >> >>> >> >>> >> >> >>>
>>>>>> >> >>> >> >>> >> >> >>>
>>>>>> >> >>> >> >>> >> >> >>>
>>>>>> >> >>> >> >>> >> >> >>>
>>>>>> >> >>> >> >>> >> >> >>>
>>>>>> >> >>> >> >>> >> >> >>>
>>>>>> >> >>> >> >>> >> >> >>> ------------------------------------------------------------------------------
>>>>>> >> >>> >> >>> >> >> >>> Get 100% visibility into Java/.NET code with
>>>>>> >> >>> >> >>> >> >> >>> AppDynamics
>>>>>> >> >>> >> >>> >> >> >>> Lite!
>>>>>> >> >>> >> >>> >> >> >>> It's a free troubleshooting tool designed for
>>>>>> >> >>> >> >>> >> >> >>> production.
>>>>>> >> >>> >> >>> >> >> >>> Get down to code-level detail for bottlenecks,
>>>>>> >> >>> >> >>> >> >> >>> with
>>>>>> >> >>> >> >>> >> >> >>> <2%
>>>>>> >> >>> >> >>> >> >> >>> overhead.
>>>>>> >> >>> >> >>> >> >> >>> Download for free and get started
>>>>>> >> >>> >> >>> >> >> >>> troubleshooting in
>>>>>> >> >>> >> >>> >> >> >>> minutes.
>>>>>> >> >>> >> >>> >> >> >>>
>>>>>> >> >>> >> >>> >> >> >>>
>>>>>> >> >>> >> >>> >> >> >>>
>>>>>> >> >>> >> >>> >> >> >>>
>>>>>> >> >>> >> >>> >> >> >>>
>>>>>> >> >>> >> >>> >> >> >>>
>>>>>> >> >>> >> >>> >> >> >>>
>>>>>> >> >>> >> >>> >> >> >>>
>>>>>> >> >>> >> >>> >> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>>>>>> >> >>> >> >>> >> >> >>>
>>>>>> >> >>> >> >>> >> >> >>> _______________________________________________
>>>>>> >> >>> >> >>> >> >> >>> Csound-devel mailing list
>>>>>> >> >>> >> >>> >> >> >>> Csound-devel@lists.sourceforge.net
>>>>>> >> >>> >> >>> >> >> >>>
>>>>>> >> >>> >> >>> >> >> >>>
>>>>>> >> >>> >> >>> >> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> >> >>> >> >>> >> >> >>
>>>>>> >> >>> >> >>> >> >> >>
>>>>>> >> >>> >> >>> >> >> >
>>>>>> >> >>> >> >>> >> >> >
>>>>>> >> >>> >> >>> >> >> >
>>>>>> >> >>> >> >>> >> >> >
>>>>>> >> >>> >> >>> >> >> >
>>>>>> >> >>> >> >>> >> >> >
>>>>>> >> >>> >> >>> >> >> >
>>>>>> >> >>> >> >>> >> >> >
>>>>>> >> >>> >> >>> >> >> >
>>>>>> >> >>> >> >>> >> >> > ------------------------------------------------------------------------------
>>>>>> >> >>> >> >>> >> >> > Get 100% visibility into Java/.NET code with
>>>>>> >> >>> >> >>> >> >> > AppDynamics
>>>>>> >> >>> >> >>> >> >> > Lite!
>>>>>> >> >>> >> >>> >> >> > It's a free troubleshooting tool designed for
>>>>>> >> >>> >> >>> >> >> > production.
>>>>>> >> >>> >> >>> >> >> > Get down to code-level detail for bottlenecks,
>>>>>> >> >>> >> >>> >> >> > with <2%
>>>>>> >> >>> >> >>> >> >> > overhead.
>>>>>> >> >>> >> >>> >> >> > Download for free and get started
>>>>>> >> >>> >> >>> >> >> > troubleshooting in
>>>>>> >> >>> >> >>> >> >> > minutes.
>>>>>> >> >>> >> >>> >> >> >
>>>>>> >> >>> >> >>> >> >> >
>>>>>> >> >>> >> >>> >> >> >
>>>>>> >> >>> >> >>> >> >> >
>>>>>> >> >>> >> >>> >> >> >
>>>>>> >> >>> >> >>> >> >> >
>>>>>> >> >>> >> >>> >> >> >
>>>>>> >> >>> >> >>> >> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>>>>>> >> >>> >> >>> >> >> > _______________________________________________
>>>>>> >> >>> >> >>> >> >> > Csound-devel mailing list
>>>>>> >> >>> >> >>> >> >> > Csound-devel@lists.sourceforge.net
>>>>>> >> >>> >> >>> >> >> >
>>>>>> >> >>> >> >>> >> >> >
>>>>>> >> >>> >> >>> >> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> >> >>> >> >>> >> >> >
>>>>>> >> >>> >> >>> >> >>
>>>>>> >> >>> >> >>> >> >>
>>>>>> >> >>> >> >>> >> >>
>>>>>> >> >>> >> >>> >> >>
>>>>>> >> >>> >> >>> >> >>
>>>>>> >> >>> >> >>> >> >>
>>>>>> >> >>> >> >>> >> >>
>>>>>> >> >>> >> >>> >> >>
>>>>>> >> >>> >> >>> >> >> ------------------------------------------------------------------------------
>>>>>> >> >>> >> >>> >> >> Introducing Performance Central, a new site from
>>>>>> >> >>> >> >>> >> >> SourceForge
>>>>>> >> >>> >> >>> >> >> and
>>>>>> >> >>> >> >>> >> >> AppDynamics. Performance Central is your source
>>>>>> >> >>> >> >>> >> >> for news,
>>>>>> >> >>> >> >>> >> >> insights,
>>>>>> >> >>> >> >>> >> >> analysis and resources for efficient Application
>>>>>> >> >>> >> >>> >> >> Performance
>>>>>> >> >>> >> >>> >> >> Management.
>>>>>> >> >>> >> >>> >> >> Visit us today!
>>>>>> >> >>> >> >>> >> >>
>>>>>> >> >>> >> >>> >> >>
>>>>>> >> >>> >> >>> >> >>
>>>>>> >> >>> >> >>> >> >>
>>>>>> >> >>> >> >>> >> >>
>>>>>> >> >>> >> >>> >> >>
>>>>>> >> >>> >> >>> >> >>
>>>>>> >> >>> >> >>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>>>>>> >> >>> >> >>> >> >>
>>>>>> >> >>> >> >>> >> >> _______________________________________________
>>>>>> >> >>> >> >>> >> >> Csound-devel mailing list
>>>>>> >> >>> >> >>> >> >> Csound-devel@lists.sourceforge.net
>>>>>> >> >>> >> >>> >> >>
>>>>>> >> >>> >> >>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> >> >>> >> >>> >> >
>>>>>> >> >>> >> >>> >> >
>>>>>> >> >>> >> >>> >> >
>>>>>> >> >>> >> >>> >> >
>>>>>> >> >>> >> >>> >> >
>>>>>> >> >>> >> >>> >> >
>>>>>> >> >>> >> >>> >> >
>>>>>> >> >>> >> >>> >> >
>>>>>> >> >>> >> >>> >> >
>>>>>> >> >>> >> >>> >> > ------------------------------------------------------------------------------
>>>>>> >> >>> >> >>> >> > Introducing Performance Central, a new site from
>>>>>> >> >>> >> >>> >> > SourceForge
>>>>>> >> >>> >> >>> >> > and
>>>>>> >> >>> >> >>> >> > AppDynamics. Performance Central is your source for
>>>>>> >> >>> >> >>> >> > news,
>>>>>> >> >>> >> >>> >> > insights,
>>>>>> >> >>> >> >>> >> > analysis and resources for efficient Application
>>>>>> >> >>> >> >>> >> > Performance
>>>>>> >> >>> >> >>> >> > Management.
>>>>>> >> >>> >> >>> >> > Visit us today!
>>>>>> >> >>> >> >>> >> >
>>>>>> >> >>> >> >>> >> >
>>>>>> >> >>> >> >>> >> >
>>>>>> >> >>> >> >>> >> >
>>>>>> >> >>> >> >>> >> >
>>>>>> >> >>> >> >>> >> >
>>>>>> >> >>> >> >>> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>>>>>> >> >>> >> >>> >> > _______________________________________________
>>>>>> >> >>> >> >>> >> > Csound-devel mailing list
>>>>>> >> >>> >> >>> >> > Csound-devel@lists.sourceforge.net
>>>>>> >> >>> >> >>> >> >
>>>>>> >> >>> >> >>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> >> >>> >> >>> >> >
>>>>>> >> >>> >> >>> >>
>>>>>> >> >>> >> >>> >>
>>>>>> >> >>> >> >>> >>
>>>>>> >> >>> >> >>> >>
>>>>>> >> >>> >> >>> >>
>>>>>> >> >>> >> >>> >>
>>>>>> >> >>> >> >>> >>
>>>>>> >> >>> >> >>> >> ------------------------------------------------------------------------------
>>>>>> >> >>> >> >>> >> Learn the latest--Visual Studio 2012, SharePoint
>>>>>> >> >>> >> >>> >> 2013, SQL
>>>>>> >> >>> >> >>> >> 2012,
>>>>>> >> >>> >> >>> >> more!
>>>>>> >> >>> >> >>> >> Discover the easy way to master current and previous
>>>>>> >> >>> >> >>> >> Microsoft
>>>>>> >> >>> >> >>> >> technologies
>>>>>> >> >>> >> >>> >> and advance your career. Get an incredible 1,500+
>>>>>> >> >>> >> >>> >> hours of
>>>>>> >> >>> >> >>> >> step-by-step
>>>>>> >> >>> >> >>> >> tutorial videos with LearnDevNow. Subscribe today and
>>>>>> >> >>> >> >>> >> save!
>>>>>> >> >>> >> >>> >>
>>>>>> >> >>> >> >>> >>
>>>>>> >> >>> >> >>> >>
>>>>>> >> >>> >> >>> >>
>>>>>> >> >>> >> >>> >>
>>>>>> >> >>> >> >>> >>
>>>>>> >> >>> >> >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>>>>> >> >>> >> >>> >>
>>>>>> >> >>> >> >>> >> _______________________________________________
>>>>>> >> >>> >> >>> >> Csound-devel mailing list
>>>>>> >> >>> >> >>> >> Csound-devel@lists.sourceforge.net
>>>>>> >> >>> >> >>> >>
>>>>>> >> >>> >> >>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> >> >>> >> >>> >
>>>>>> >> >>> >> >>> >
>>>>>> >> >>> >> >>> >
>>>>>> >> >>> >> >>> >
>>>>>> >> >>> >> >>> >
>>>>>> >> >>> >> >>> >
>>>>>> >> >>> >> >>> >
>>>>>> >> >>> >> >>> >
>>>>>> >> >>> >> >>> > ------------------------------------------------------------------------------
>>>>>> >> >>> >> >>> > Learn the latest--Visual Studio 2012, SharePoint 2013,
>>>>>> >> >>> >> >>> > SQL
>>>>>> >> >>> >> >>> > 2012,
>>>>>> >> >>> >> >>> > more!
>>>>>> >> >>> >> >>> > Discover the easy way to master current and previous
>>>>>> >> >>> >> >>> > Microsoft
>>>>>> >> >>> >> >>> > technologies
>>>>>> >> >>> >> >>> > and advance your career. Get an incredible 1,500+
>>>>>> >> >>> >> >>> > hours of
>>>>>> >> >>> >> >>> > step-by-step
>>>>>> >> >>> >> >>> > tutorial videos with LearnDevNow. Subscribe today and
>>>>>> >> >>> >> >>> > save!
>>>>>> >> >>> >> >>> >
>>>>>> >> >>> >> >>> >
>>>>>> >> >>> >> >>> >
>>>>>> >> >>> >> >>> >
>>>>>> >> >>> >> >>> >
>>>>>> >> >>> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>>>>> >> >>> >> >>> > _______________________________________________
>>>>>> >> >>> >> >>> > Csound-devel mailing list
>>>>>> >> >>> >> >>> > Csound-devel@lists.sourceforge.net
>>>>>> >> >>> >> >>> >
>>>>>> >> >>> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> >> >>> >> >>> >
>>>>>> >> >>> >> >>>
>>>>>> >> >>> >> >>>
>>>>>> >> >>> >> >>>
>>>>>> >> >>> >> >>>
>>>>>> >> >>> >> >>>
>>>>>> >> >>> >> >>>
>>>>>> >> >>> >> >>> ------------------------------------------------------------------------------
>>>>>> >> >>> >> >>> Learn the latest--Visual Studio 2012, SharePoint 2013,
>>>>>> >> >>> >> >>> SQL
>>>>>> >> >>> >> >>> 2012,
>>>>>> >> >>> >> >>> more!
>>>>>> >> >>> >> >>> Discover the easy way to master current and previous
>>>>>> >> >>> >> >>> Microsoft
>>>>>> >> >>> >> >>> technologies
>>>>>> >> >>> >> >>> and advance your career. Get an incredible 1,500+ hours
>>>>>> >> >>> >> >>> of
>>>>>> >> >>> >> >>> step-by-step
>>>>>> >> >>> >> >>> tutorial videos with LearnDevNow. Subscribe today and
>>>>>> >> >>> >> >>> save!
>>>>>> >> >>> >> >>>
>>>>>> >> >>> >> >>>
>>>>>> >> >>> >> >>>
>>>>>> >> >>> >> >>>
>>>>>> >> >>> >> >>>
>>>>>> >> >>> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>>>>> >> >>> >> >>> _______________________________________________
>>>>>> >> >>> >> >>> Csound-devel mailing list
>>>>>> >> >>> >> >>> Csound-devel@lists.sourceforge.net
>>>>>> >> >>> >> >>>
>>>>>> >> >>> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> >> >>> >> >>
>>>>>> >> >>> >> >>
>>>>>> >> >>> >> >>
>>>>>> >> >>> >> >>
>>>>>> >> >>> >> >>
>>>>>> >> >>> >> >>
>>>>>> >> >>> >> >> ------------------------------------------------------------------------------
>>>>>> >> >>> >> >> Learn the latest--Visual Studio 2012, SharePoint 2013,
>>>>>> >> >>> >> >> SQL 2012,
>>>>>> >> >>> >> >> more!
>>>>>> >> >>> >> >> Discover the easy way to master current and previous
>>>>>> >> >>> >> >> Microsoft
>>>>>> >> >>> >> >> technologies
>>>>>> >> >>> >> >> and advance your career. Get an incredible 1,500+ hours
>>>>>> >> >>> >> >> of
>>>>>> >> >>> >> >> step-by-step
>>>>>> >> >>> >> >> tutorial videos with LearnDevNow. Subscribe today and
>>>>>> >> >>> >> >> save!
>>>>>> >> >>> >> >>
>>>>>> >> >>> >> >>
>>>>>> >> >>> >> >>
>>>>>> >> >>> >> >>
>>>>>> >> >>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>>>>> >> >>> >> >> _______________________________________________
>>>>>> >> >>> >> >> Csound-devel mailing list
>>>>>> >> >>> >> >> Csound-devel@lists.sourceforge.net
>>>>>> >> >>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> >> >>> >> >>
>>>>>> >> >>> >>
>>>>>> >> >>> >>
>>>>>> >> >>> >>
>>>>>> >> >>> >>
>>>>>> >> >>> >>
>>>>>> >> >>> >> ------------------------------------------------------------------------------
>>>>>> >> >>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>>>>>> >> >>> >> 2012,
>>>>>> >> >>> >> more!
>>>>>> >> >>> >> Discover the easy way to master current and previous
>>>>>> >> >>> >> Microsoft
>>>>>> >> >>> >> technologies
>>>>>> >> >>> >> and advance your career. Get an incredible 1,500+ hours of
>>>>>> >> >>> >> step-by-step
>>>>>> >> >>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>>>>>> >> >>> >>
>>>>>> >> >>> >>
>>>>>> >> >>> >>
>>>>>> >> >>> >>
>>>>>> >> >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>>>>> >> >>> >> _______________________________________________
>>>>>> >> >>> >> Csound-devel mailing list
>>>>>> >> >>> >> Csound-devel@lists.sourceforge.net
>>>>>> >> >>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> >> >>> >
>>>>>> >> >>> >
>>>>>> >> >>> >
>>>>>> >> >>> >
>>>>>> >> >>> >
>>>>>> >> >>> >
>>>>>> >> >>> > ------------------------------------------------------------------------------
>>>>>> >> >>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>>>>>> >> >>> > 2012,
>>>>>> >> >>> > more!
>>>>>> >> >>> > Discover the easy way to master current and previous
>>>>>> >> >>> > Microsoft
>>>>>> >> >>> > technologies
>>>>>> >> >>> > and advance your career. Get an incredible 1,500+ hours of
>>>>>> >> >>> > step-by-step
>>>>>> >> >>> > tutorial videos with LearnDevNow. Subscribe today and save!
>>>>>> >> >>> >
>>>>>> >> >>> >
>>>>>> >> >>> >
>>>>>> >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>>>>> >> >>> > _______________________________________________
>>>>>> >> >>> > Csound-devel mailing list
>>>>>> >> >>> > Csound-devel@lists.sourceforge.net
>>>>>> >> >>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> >> >>> >
>>>>>> >> >>>
>>>>>> >> >>>
>>>>>> >> >>>
>>>>>> >> >>>
>>>>>> >> >>> ------------------------------------------------------------------------------
>>>>>> >> >>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
>>>>>> >> >>> 2012, more!
>>>>>> >> >>> Discover the easy way to master current and previous Microsoft
>>>>>> >> >>> technologies
>>>>>> >> >>> and advance your career. Get an incredible 1,500+ hours of
>>>>>> >> >>> step-by-step
>>>>>> >> >>> tutorial videos with LearnDevNow. Subscribe today and save!
>>>>>> >> >>>
>>>>>> >> >>>
>>>>>> >> >>>
>>>>>> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>>>>> >> >>> _______________________________________________
>>>>>> >> >>> Csound-devel mailing list
>>>>>> >> >>> Csound-devel@lists.sourceforge.net
>>>>>> >> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> >> >>
>>>>>> >> >>
>>>>>> >> >>
>>>>>> >> >>
>>>>>> >> >> ------------------------------------------------------------------------------
>>>>>> >> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>>>>>> >> >> more!
>>>>>> >> >> Discover the easy way to master current and previous Microsoft
>>>>>> >> >> technologies
>>>>>> >> >> and advance your career. Get an incredible 1,500+ hours of
>>>>>> >> >> step-by-step
>>>>>> >> >> tutorial videos with LearnDevNow. Subscribe today and save!
>>>>>> >> >>
>>>>>> >> >>
>>>>>> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>>>>> >> >> _______________________________________________
>>>>>> >> >> Csound-devel mailing list
>>>>>> >> >> Csound-devel@lists.sourceforge.net
>>>>>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> >> >>
>>>>>> >>
>>>>>> >>
>>>>>> >>
>>>>>> >> ------------------------------------------------------------------------------
>>>>>> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>>>>>> >> more!
>>>>>> >> Discover the easy way to master current and previous Microsoft
>>>>>> >> technologies
>>>>>> >> and advance your career. Get an incredible 1,500+ hours of
>>>>>> >> step-by-step
>>>>>> >> tutorial videos with LearnDevNow. Subscribe today and save!
>>>>>> >>
>>>>>> >>
>>>>>> >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>>>>> >> _______________________________________________
>>>>>> >> Csound-devel mailing list
>>>>>> >> Csound-devel@lists.sourceforge.net
>>>>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > ------------------------------------------------------------------------------
>>>>>> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
>>>>>> > more!
>>>>>> > Discover the easy way to master current and previous Microsoft
>>>>>> > technologies
>>>>>> > and advance your career. Get an incredible 1,500+ hours of
>>>>>> > step-by-step
>>>>>> > tutorial videos with LearnDevNow. Subscribe today and save!
>>>>>> >
>>>>>> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>>>>> > _______________________________________________
>>>>>> > Csound-devel mailing list
>>>>>> > Csound-devel@lists.sourceforge.net
>>>>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> >
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>>>>>> Discover the easy way to master current and previous Microsoft
>>>>>> technologies
>>>>>> and advance your career. Get an incredible 1,500+ hours of
>>>>>> step-by-step
>>>>>> tutorial videos with LearnDevNow. Subscribe today and save!
>>>>>>
>>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>>>>> Discover the easy way to master current and previous Microsoft
>>>>> technologies
>>>>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>>>>> tutorial videos with LearnDevNow. Subscribe today and save!
>>>>>
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Saludos,
>>>> Felipe Sateler
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>>>> Discover the easy way to master current and previous Microsoft
>>>> technologies
>>>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>>>> tutorial videos with LearnDevNow. Subscribe today and save!
>>>>
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>>> Discover the easy way to master current and previous Microsoft
>>> technologies
>>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>>> tutorial videos with LearnDevNow. Subscribe today and save!
>>>
>>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>>
>>
>> --
>>
>> Saludos,
>> Felipe Sateler
>>
>>
>> ------------------------------------------------------------------------------
>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> Discover the easy way to master current and previous Microsoft
>> technologies
>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> tutorial videos with LearnDevNow. Subscribe today and save!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net