[Cs-dev] Windows build now always crashes
Date | 2014-08-05 02:41 |
From | Michael Gogins |
Subject | [Cs-dev] Windows build now always crashes |
Attachments | None None |
Windows 8, MinGW 4.8.3, fresh checkout today. No stack trace available. This is the message:
(gdb) run Starting program: C:\Program Files (x86)\Csound6\bin\csound.exe
[New Thread 4464.0x1098] virtual_keyboard real time MIDI plugin for Csound Program received signal SIGSEGV, Segmentation fault. 0x767322a3 in strchr () from C:\Windows\SysWOW64\msvcrt.dll
(gdb) bt #0 0x767322a3 in strchr () from C:\Windows\SysWOW64\msvcrt.dll (gdb) Pretty much every time I come back to build Csound on Windows after a week or so, the build fails or it succeeds but Csound builds but crashes and has to be debugged.
I am getting tired of this. Regards,
Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com |
Date | 2014-08-05 09:36 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Windows build now always crashes |
Have the plugins been recompiled? I had a similar problem two days ago when using the latest Csound against an earlier build of plugins on OSX. ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 5 Aug 2014, at 02:41, Michael Gogins |
Date | 2014-08-05 10:20 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Windows build now always crashes |
Attachments | None None |
Yes. I always do a complete clean and rebuild. However I changed compiler options from -march=nocona to -mtune=pentium4 and have not rebuilt all third party libraries. But this configuration ran on the previous build a week or so ago so I think it is a change in the source code. Regards, On Aug 5, 2014 4:36 AM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
Have the plugins been recompiled? I had a similar problem two days ago when using the latest Csound against an earlier build of |
Date | 2014-08-05 10:25 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] Windows build now always crashes |
Attachments | None |
Date | 2014-08-05 13:02 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Windows build now always crashes |
Attachments | None None |
Here is a clue for you (what is "L"?): (gdb) 596 for (m = (csoundModule_t*) csound->csmodule_db; m != NULL; m = m->nxt) { (gdb) 597 i = csoundInitModule(csound, m);
(gdb) print *m $9 = {nxt = 0x4b9c90, h = 0x6d780000, PreInitFunc = 0x6d78159c <csoundModuleCreate(CSOUND*)>, fn = {p = {InitFunc = 0x6d781a08 <csoundModuleInit(CSOUND*)>, DestFunc = 0x6d781a8f <csoundModuleDestroy(CSOUND*)>, ErrCodeToStr = 0x0}, o = {opcode_init = 0x6d781a08 <csoundModuleInit(CSOUND*)>,
fgen_init = 0x6d781a8f <csoundModuleDestroy(CSOUND*)>, dummy = 0x0}}, name = "L"} (gdb) next Program received signal SIGSEGV, Segmentation fault. 0x767322a3 in strchr () from C:\Windows\SysWOW64\msvcrt.dll
(gdb) Regards, Mike -----------------------------------------------------
Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Tue, Aug 5, 2014 at 5:25 AM, <jpff@cs.bath.ac.uk> wrote: \Steven made some fundamental changes to internal structures which |
Date | 2014-08-05 13:29 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] Windows build now always crashes |
Attachments | None |
Date | 2014-08-05 13:50 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Windows build now always crashes |
Attachments | None None |
Taking a quick look at the manual, I don't see any opcodes starting with "L", so it's either a new opcode, not an opcode, or the memory is not lined up. Regards,
Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Tue, Aug 5, 2014 at 8:29 AM, <jpff@cs.bath.ac.uk> wrote: L is the first letter of the name in the csoundModule_t structure. |
Date | 2014-08-05 14:04 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Windows build now always crashes |
These are library file names (*.dll on Windows, not opcode names). Can you try making sure there are absolutely no plugins (or DLLs) in the OPCODE6DIR64 path and run Csound. This does look like Csound trying to initialise incompatible opcode. ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 5 Aug 2014, at 13:50, Michael Gogins |
Date | 2014-08-05 14:14 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Windows build now always crashes |
Attachments | None None |
This was a fresh installation from a newly built Windows installer, so there should not be any incompatible opcodes. I don't think this is the problem because the ONLY change between this failure and the earlier success is changes in the Csound source code.
However, I will try your suggestion anyway this evening. Regards, Mike
----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Tue, Aug 5, 2014 at 9:04 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: These are library file names (*.dll on Windows, not opcode names). Can you try making sure there are absolutely no plugins (or DLLs) in the |
Date | 2014-08-05 16:18 |
From | Steven Yi |
Subject | Re: [Cs-dev] Windows build now always crashes |
I just built on Windows and set my OPCODE6DIR64 to the location of where I built. I had one opcode library that was out of date and it caused csound to crash on startup. I deleted that and was able to run Trapped in realtime. I'm guessing you have an out-of-date opcode lib that is incompatible and causing the crash. (As a sidenote, I'm having problems building the java wrapper on Windows; I think Oeyvind had mentioned something similiar recently. It's an error with CsoundMIDIInputBuffer. I have to move to other things at the moment, but perhaps others have had this too?) On Tue, Aug 5, 2014 at 9:14 AM, Michael Gogins |
Date | 2014-08-05 20:21 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Windows build now always crashes |
Hi Steven, you will need to rename one of the symbols in that class, because it clashes with a Windows API function or something. ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 5 Aug 2014, at 16:18, Steven Yi |
Date | 2014-08-05 20:55 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Windows build now always crashes |
The symbol that need to be changed is ‘SendMessage’, if you rename all instances of it in that class to say, SendMidiMessage, it should fix it. ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 5 Aug 2014, at 20:21, Victor Lazzarini |
Date | 2014-08-05 21:36 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Windows build now always crashes |
Attachments | None None |
This happened before. Regards, Miker -----------------------------------------------------
Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Tue, Aug 5, 2014 at 3:55 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: The symbol that need to be changed is ‘SendMessage’, if you rename all instances of it in that class to |
Date | 2014-08-05 23:10 |
From | Steven Yi |
Subject | Re: [Cs-dev] Windows build now always crashes |
I modified to SendMidiMessage in interfaces/cs_glue.hpp and the .cpp file too (committed to GIT). That all now compiles fine on Windows. It's an API breakage, but I don't know if anyone uses that stuff anyways. How that's been in the codebase without it being changed before I have no ideas, but hopefully should be fixed for everyone now. On Tue, Aug 5, 2014 at 3:55 PM, Victor Lazzarini |