Closed GoogleCodeExporter closed 8 years ago
Also found this in the Console:
2/14/12 4:45:05
PM [0x0-0x18e18e].com.google.CoverStory[84687] CoverStory(84687,0xa00f1540)
malloc: *** mmap(size=1208320) failed (error code=12)
2/14/12 4:45:05 PM [0x0-0x18e18e].com.google.CoverStory[84687] *** error: can't
allocate region
2/14/12 4:45:05 PM [0x0-0x18e18e].com.google.CoverStory[84687] *** set a
breakpoint in malloc_error_break to debug
2/14/12 4:45:05 PM CoverStory[84687] Attempt to allocate 1208304 bytes for
CFString failed
Original comment by marimbas...@gmail.com
on 14 Feb 2012 at 11:19
Code is available right here:
http://code.google.com/p/coverstory/source/checkout
It builds cleanly on Xcode 4.2 (10.6.8)
I'd be interested to know what string is blowing out.
Original comment by dmaclach
on 15 Feb 2012 at 5:31
Hi Dave,
I tried to compile on Xcode 4.2.1 with 10.7.3 and I had to change to the 10.6
SDK in the project settings. Even after I did that I still cannot get it to
compile with error:
clang: error: no such file or directory:
'/Volumes/Data/coverstory/coverstory-read-only/external/google-toolbox-for-mac/S
nowLeopardGcov/GTM_fdopen2003.c'
which is a file and directory that is not there and didn't come down with the
SVN sync. I will try and dig into the google-toolbox-for-mac folders to try and
find it next. Any other pointers appreciated.
Original comment by marimbas...@gmail.com
on 21 Feb 2012 at 9:39
I did a quick pass on fixing things up, so it should build now, but I didn't
get a chance to really validate things.
Original comment by thoma...@gmail.com
on 22 Feb 2012 at 12:20
It now builds and runs correctly on XCode 4.2.1 and 10.7.3 - thanks for the
updates.
In general I think I would like to request a 64-bit version of the app. I have
16GB of RAM and on this many files I am pretty sure it is hitting the 32-bit
memory ceiling for a single process. I am going to attach a number of things
for you to help debug it and let me know if I can help further as I am very
interested in this tool working for this project.
It goes into htmlSourceTabelData: and then I wrapped appledFormat: with this
try catch block to see where the actual memory error is.
@try {
[sourceHtml appendFormat:
@"<tr class='sourceline'>\n"
@"<td class='sourcelinehitcount'>%@</td>\n"
@"<td class='%@'>%@</td>\n"
@"</tr>\n", hitCountString, hitStyle, lineSource];
}
@catch (NSException *e) {
NSLog(@"ACK!");
break; // get out of the loop, returning what we can
}
That isn't a fix, it is just to point out what happens when there is a memory
error and no data gets written to the drive for any of the HTML files or
folders.
Original comment by marimbas...@gmail.com
on 27 Feb 2012 at 9:18
Attachments:
As far as I can tell you have a 64 bit version if you build it from sources.
What does otool tell you?
Original comment by dmaclach
on 27 Feb 2012 at 10:00
Here is what I am doing (correct me if there is a different way to build
CoverStory).
1) On Mac OS X 10.7.3, Sync latest code from CoverStory with "svn checkout
http://coverstory.googlecode.com/svn/trunk/ coverstory-read-only"
2) Launch XCode 4.2.1
2) File -> Open -> ~/coverstory-read-only/CoverStory.xcodeproj
3) In the XCode GUI (screenshot attached) there is only a My Mac 32-bit option
4) Press Command -B to build.
I get a i386 folder with a 32-bit executable.
Compare that with HelloWorld an application I created with File-New-Project and
I get the 64-bit option and a 64-bit executable. (see screenshot).
So I don't see a way to tell XCode to build the 64-bit app. Possible guesses:
a) Is there a scheme that didn't get checked into the project for 64-bit?
b) Should I be building CoverStory in some other way than the XCode GUI?
c) something else?
I also took a look at the xconfig files for CoverStory and Google Toolbox for
Mac. I saw the iPhone targets but nothing for 64-bit there either.
Thanks again for checking on this.
Original comment by marimbas...@gmail.com
on 28 Feb 2012 at 7:23
Attachments:
Just pushed a new version of Coverstory (4.3) that should handle this.
A) Now 32/64 bit Intel (Dropped PowerPC)
B) we now use significantly less memory when exporting HTML
I think we are fixed. Let me know if this is not the case.
Original comment by dmaclach
on 7 Mar 2012 at 12:13
The new 64-bit version works great. I can confirm it is now running as a 64-bit
app in Activity Monitor and doesn't run out of RAM when I do an Export to HTML.
Total RAM usage peaks at about 4.6 GB but then returns to 2.6GB after the
Export to HTML is complete.
THANK YOU so much for this fix. I will let you know if there is anything else
but right now we are all set.
Original comment by marimbas...@gmail.com
on 9 Mar 2012 at 6:59
Original issue reported on code.google.com by
marimbas...@gmail.com
on 14 Feb 2012 at 10:48