<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
I admit I might have increased the problems. I'll try again with my config file fixes.<BR>
<BR>
<BR>
Truncated stuff:<BR>
<BR>
<BR>There are other problems.<BR><BR>
<BR>
It prompted me for my browser.<BR>
On a Mac, it could offer choices like:<BR>
jaypro:cm3ide jay$ find /Applications | grep -i fox$<BR>/Applications/Firefox.app/Contents/MacOS/firefox<BR>
<BR>
jaypro:cm3ide jay$ find /Applications | grep -i fari$<BR>/Applications/Safari.app/Contents/MacOS/Safari<BR>
<BR>
<BR>
if they exist.<BR><BR>
<BR>
Of course I should try Opera and whatever else and report their paths.<BR>
<BR>
<BR>
I had to close any existing Firefox, else I got an error that only one Firefox can run at a time.<BR>The error came from Firefox, not cm3ide.<BR>
<BR>
<BR>
For the prompt for editor, I grant there may be too many options to offer.<BR>I use TextWrangler, which provides /usr/bin/edit.<BR>It's not very good, but it is the best I have found on the Mac.<BR> (Visual C++ 5.0 is the best editor I have ever used by far; I use it every day; I'll try it in VMware.)<BR><BR>
<BR>
A popular one might be:<BR>/Developer/Applications/Xcode.app/Contents/MacOS/Xcode<BR>or arch -i386 /Developer/Applications/Xcode.app/Contents/MacOS/Xcode<BR>It crashed the first time I ran it but seemed ok after that.<BR><BR>
<BR>
And maybe still CodeWarrior, I can maybe get some paths for it if you want.<BR>
And maybe BBEdit, I can try a trial version.<BR>
Komodo.<BR>
In general of course, many.<BR>
<BR>
- Jay<BR><BR> <BR>
<HR id=stopSpelling>
Date: Fri, 17 Jul 2009 13:41:57 -0400<BR>From: rcoleburn@scires.com<BR>To: m3devel@elegosoft.com<BR>Subject: Re: [M3devel] cm3ide crash<BR><BR>
<DIV>Jay:</DIV>
<DIV> </DIV>
<DIV>I've not seen the whole of your message yet; I've received multiple truncated copies.</DIV>
<DIV> </DIV>
<DIV>Recall that CM3IDE is the open-source version of "Reactor". Reactor was tightly woven into the CM3 4.1 commercial release. During the install process, cm3install actually adjusted the cm3.cfg file to reflect the installation location, location of your preferred browser, preferred editor, etc. I know you don't use cm3install, and you've made changes to the cm3.cfg files, so if some of this stuff isn't going to be there going forward, I need to make adjustments to CM3IDE.</DIV>
<DIV> </DIV>
<DIV>When CM3IDE runs, if it doesn't find these variables in the cm3.cfg file, it tries to locate the appropriate stuff, hence the "CAUTION" messages you saw on stdout. In some cases, it asks the same type question that cm3install would have asked about the editor et al, then saves this information in its configuration file located in the user's home folder. Once the info is saved, it won't prompt you for it again.</DIV>
<DIV> </DIV>
<DIV>The error you are getting about the examples folder is probably due to you not copying this folder into your CM3 tree. There are README files explaining all this. If you don't have the examples folder, CM3IDE will still function, except you won't be able to build any of the examples. The examples are all pretty neat IMO, and CM3IDE actually builds them in your private workspace, so you can edit the sources and play around with them without affecting anyone else who wants to try out the examples. Each user gets a fresh copy from the examples folder.</DIV>
<DIV> </DIV>
<DIV>Not sure about the crash you are reporting, whether it is due to some problem with your cm3.cfg or your installation or just a bug. I don't experience this crash on Windows, but I have not rebuilt CM3IDE against the latest source tree yet. Perhaps a recent change to the source tree has impacted CM3IDE.</DIV>
<DIV> </DIV>
<DIV>I'm supposed to go rafting and camping this weekend with my son's Boy Scout troop, so I don't think I'll have much time to work on this problem. If I get back early, I'll try to look at the problem Sunday evening.</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>Randy Coleburn<BR><BR>>>> Jay K <jay.krell@cornell.edu> 7/17/2009 8:28 AM >>><BR><BR>I used cm3ide for a few minutes.<BR>I had to add BUILD_DIR explicitly to cm3.cfg. "Normally" (when compiling) it is constructed in a roundabout fashion by running the code.<BR>See m3-sys/cminstall/src/config-no-install/cm3.cfg for the config file I usually use.<BR><BR>Clicking on the examples link:<BR><BR>(gdb) r<BR>Starting program: /cm3/bin/cm3ide <BR>warning: posix_spawn failed, trying execvp, error: 86<BR>CAUTION: PKG_USE not defined in cm3.cfg, constructed it from cm3.cfg path as: /cm3/pkg<BR>CAUTION: DOC_INSTALL not defined in cm3.cfg, constructed it from package root as: /cm3/doc<BR>NOTICE: Unable to locate 'examples' folder.<BR>Recovering user state from /Users/jay/proj/CM3_IDE.cfg0<BR>calling start_browser(http://localhost:3800/)<BR>/Applications/Firefox.app/Contents/MacOS/firefox <A href="http://localhost:3800/">http://localhost:3800/</A><BR>starting TCP service<BR>Scanning Packages: Jul 17 05:15...<BR>?? b32e8e57 == cfe61f3f [Jay] Is this a problem?<BR>scan done: Jul 17 06:27<BR><BR>Program received signal EXC_BAD_ACCESS, Could not access memory.<BR>Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000<BR>[Switching to process 23997 thread 0x2703]<BR>0x000000010012d3d9 in Text__Length (M3_Bd56fi_t=0x0) at ../src/text/Text.m3:16<BR>16 t.get_info (i);<BR>(gdb) bt<BR>#0 0x000000010012d3d9 in Text__Length (M3_Bd56fi_t=0x0) at ../src/text/Text.m3:16<BR>#1 0x00000001000c4d22 in Pathname__Absolute (M3_Bd56fi_pn=0x0) at ../src/os/POSIX/PathnamePosix.m3:65<BR>#2 0x00000001000c3c8d in FS__Iterate (M3_Bd56fi_pn=0x0) at ../src/os/POSIX/FSPosix.m3:243<BR>#3 0x0000000100042713 in Roots__ScanExamples (M3_AnO5JK_self=0x100c72a78) at ../src/nodes/Roots.m3:1018<BR>#4 0x0000000100042338 in Roots__ExamplesRootPage (M3_AnO5JK_self=0x100c72a78, M3_Ah9VqA_wx=0x101800018, M3_DLS2Hj_action=1, M3_AJUDqH_data=0x0) at ../src/nodes/Roots.m3:996<BR>#5 0x000000010005abc0 in WebServer__ProcessRequest (M3_Bd56fi_cmd=0x100ce4c38, M3_Ah9VqA_wx=0x101800018) at ../src/misc/WebServer.m3:325<BR>#6 0x000000010001e688 in TCPServer (M3_D2z1aq_self=0x100c541e8) at ../src/server/TCPServer.m3:116<BR>#7 0x000000010011b52a in ThreadPThread__RunThread (M3_CgoaiZ_me=0x100d02270) at ../src/thread/PTHREAD/ThreadPThread.m3:547<BR>#8 0x000000010011b1b6 in ThreadPThread__ThreadBase (M3_AJWxb1_param=0x100d02270) at ../src/thread/PTHREAD/ThreadPThread.m3:523<BR>#9 0x00007fff82a66deb in _pthread_start ()<BR>#10 0x00007fff82a66cad in thread_start ()<BR><BR>There are other problems.<BR>It prompted me for my browser.<BR><BR>On a Mac, it could offer choices like:<BR><BR>jaypro:cm3ide jay$ find /Applications | grep -i fox$<BR>/Applications/Firefox.app/Contents/MacOS/firefox<BR><BR>jaypro:cm3ide jay$ find /Applications | grep -i fari$<BR>/Applications/Safari.app/Contents/MacOS/Safari<BR><BR>if they exist.<BR>Of course I should try Opera and whatever else and report their paths.<BR><BR>I had to close any existing Firefox, else I got an error that only one Firefox can run at a time.<BR>The error came from Firefox, not cm3ide.<BR><BR>For the prompt for editor, I grant there may be too many options to offer</DIV></body>
</html>