Eggplant keeps crashing

All of a sudden when I start Eggplant and do nothing the CPU and real Memory keep climbing and then it will crash and give the apple report dialog in about a minute. I have tried a restart and a full shutdown but the problem is still there. Here is the console logs. Not sure why this just started happening.

11/02/09 5:14:15 PM Eggplant[162] An uncaught exception was raised

11/02/09 5:14:15 PM Eggplant[162] Attempt to allocate 2097152 bytes for NS/CFData failed
11/02/09 5:14:14 PM [0x0-0x1b01b].com.redstonesoftware.Eggplant[162] Eggplant(162,0xb03e4000) malloc: *** mmap(size=2097152) failed (error code=12)
11/02/09 5:14:14 PM [0x0-0x1b01b].com.redstonesoftware.Eggplant[162] *** error: can’t allocate region
11/02/09 5:14:14 PM [0x0-0x1b01b].com.redstonesoftware.Eggplant[162] *** set a breakpoint in malloc_error_break to debug
11/02/09 5:14:21 PM [0x0-0x1b01b].com.redstonesoftware.Eggplant[162] Eggplant(162,0xb025e000) malloc: *** mmap(size=2097152) failed (error code=12)
11/02/09 5:14:21 PM [0x0-0x1b01b].com.redstonesoftware.Eggplant[162] *** error: can’t allocate region
11/02/09 5:14:21 PM [0x0-0x1b01b].com.redstonesoftware.Eggplant[162] *** set a breakpoint in malloc_error_break to debug
11/02/09 5:14:21 PM [0x0-0x1b01b].com.redstonesoftware.Eggplant[162] Eggplant(162,0xb025e000) malloc: *** mmap(size=2097152) failed (error code=12)
11/02/09 5:14:21 PM [0x0-0x1b01b].com.redstonesoftware.Eggplant[162] *** error: can’t allocate region
11/02/09 5:14:21 PM [0x0-0x1b01b].com.redstonesoftware.Eggplant[162] *** set a breakpoint in malloc_error_break to debug
11/02/09 5:14:21 PM [0x0-0x1b01b].com.redstonesoftware.Eggplant[162] Eggplant(162,0xb025e000) malloc: *** mmap(size=2097152) failed (error code=12)
11/02/09 5:14:21 PM [0x0-0x1b01b].com.redstonesoftware.Eggplant[162] *** error: can’t allocate region
11/02/09 5:14:21 PM [0x0-0x1b01b].com.redstonesoftware.Eggplant[162] *** set a breakpoint in malloc_error_break to debug
11/02/09 5:14:21 PM [0x0-0x1b01b].com.redstonesoftware.Eggplant[162] Eggplant(162,0xb025e000) malloc: *** mmap(size=2097152) failed (error code=12)
11/02/09 5:14:21 PM [0x0-0x1b01b].com.redstonesoftware.Eggplant[162] *** error: can’t allocate region
11/02/09 5:14:21 PM [0x0-0x1b01b].com.redstonesoftware.Eggplant[162] *** set a breakpoint in malloc_error_break to debug
11/02/09 5:14:21 PM [0x0-0x1b01b].com.redstonesoftware.Eggplant[162] Eggplant(162,0xb025e000) malloc: *** mmap(size=2097152) failed (error code=12)
11/02/09 5:14:21 PM [0x0-0x1b01b].com.redstonesoftware.Eggplant[162] *** error: can’t allocate region
11/02/09 5:14:21 PM [0x0-0x1b01b].com.redstonesoftware.Eggplant[162] *** set a breakpoint in malloc_error_break to debug
11/02/09 5:14:21 PM [0x0-0x1b01b].com.redstonesoftware.Eggplant[162] Eggplant(162,0xb01dc000) malloc: *** mmap(size=2097152) failed (error code=12)
11/02/09 5:14:21 PM [0x0-0x1b01b].com.redstonesoftware.Eggplant[162] *** error: can’t allocate region
11/02/09 5:14:21 PM [0x0-0x1b01b].com.redstonesoftware.Eggplant[162] *** set a breakpoint in malloc_error_break to debug
11/02/09 5:14:21 PM [0x0-0x1b01b].com.redstonesoftware.Eggplant[162] Eggplant(162,0xb01dc000) malloc: *** mmap(size=2097152) failed (error code=12)
11/02/09 5:14:21 PM [0x0-0x1b01b].com.redstonesoftware.Eggplant[162] *** error: can’t allocate region
11/02/09 5:14:21 PM [0x0-0x1b01b].com.redstonesoftware.Eggplant[162] *** set a breakpoint in malloc_error_break to debug
11/02/09 5:14:34 PM com.apple.launchd[62] ([0x0-0x1b01b].com.redstonesoftware.Eggplant[162]) Exited abnormally: Bus error

The virtual memory is also climbing as well seen it get up to 4 GB. The Real memory is at about 900MB.

Here is what the problem report for eggplant says in the Apple Report:
Process: Eggplant [207]
Path: /Applications/Eggplant.app/Contents/MacOS/Eggplant

It looks like Eggplant is gobbling lots of memory space. Do you re-establish connections to open VNC servers when Eggplant starts?
You might consider turning that feature off (for now) with this command in the terminal window:

defaults write com.redstonesoftware.Eggplant RestoreConnection -bool NO

I tried the above command but eggplant still crashed. Then I ended up changing the DelayForDoctor setting and that seemed to fix the problem. Not sure why. I always change the delayForDoctor setting in the terminal at least twice a day with no problem. But it is fixed now thanks for the input.

Another quick question is there a way to restore all default settings for eggplant for situations like this?

I just adjusted the delayfordoctor settings on another mac with eggplant and started getting the same Memory Leak problem. I then just shutdown eggplant and reentered the command a couple of times with the same value and it fixed it on the second mac as well.

That’s very good feedback, thanks for the information.

If you need to restore ALL of Eggplant’s defaults they are stored in the files: ~/Library/Preferences/com.redstonesoftware.Eggplant.plist ~/Library/Preferences/com.redstonesoftware.TextPlatforms.plist

You can move those files aside (while Eggplant is shutdown) to restore your defaults. You can also copy those files to other user account if you want to copy the preferences.

The problem went away for a about a 90 minutes after what I did in the previous post. Then it came back. I have tried restoring all defaults including the VNCServer plist as well. Couple of questions my MAC is running 10.5.6 is there a problem with this using Eggplant. Also I noticed that eggplant is writing to the disk at about 45 MB a second and this is with no Connections open or scripts running. Do you think a reinstall will fix this maybe or is there any other files that I could try deleting/moving that may store some other information about eggplant.

That behavior is very peculiar. We run Eggplant on 10.5.6 just fine so it’s not a general problem.

I would definitely suggest re-installing a fresh copy from our website. What files is it writing? can you tell? Is it just chewing up VM space?

The only thing I can thing would be if it’s recording a movie (but of course that requires a connection).

I did try reinstalling and that did not help. I even tried moving to a new network connection and that did not help.

I am not sure what file it is writing to. I do not know how to check that. I got the writing information from the activity monitor under the disk activity tab. Then the data written\sec field. If you know how I could tell what file it is writing to that would be a big help.

It is wierd it is happening on my other mac at my desk now to. The 2 others who work with eggplant have seen these problems before but never so persistent.

another note is that I am getting a this error message sometimes when eggplant crashes.
NSMallocException
Attempt to allocate 2097152 bytes for NS/CFData Failed.

I believe this is just because memory has ran out but not to sure.

I might just reformat soon but I don’t understand how both my macs could be doing this now.

A useful thing to do would be to run a sample of Eggplant:
[list]Launch Activity Monitor.app (found under /Applications/Utilities)
From the process list select the process name and then from the menu select View->Sample Process. This will take a sample of the process and display the sampling in a new window.
Save the sample by clicking on the “Save” button and email it to support@redstonesoftware.com.
[/list:u]
The crash that you previously reported definitely indicated that Eggplant had an active connection, you might double check that nothing is initiating a connection by looking at the Connection List.

I have sent in the sample process. The post in this thread I probably did have a connection but the sample has no connections to any machines in it and was still crashing with no connections.

Ok, sample was very helpful – I’m not sure why but you have an image that is causing some very degenerate behavior when it tries to update it’s thumbnail (I think that’s the problem).

Try this preference and then re-launch.

defaults write com.redstonesoftware.Eggplant SaveThumbnails -bool FALSE

I think that was it thanks a lot. I won’t know forsure until tomorrow.

That was definitely the problem. Working better then ever now. Just out of curiosity what does defaults write com.redstonesoftware.Eggplant SaveThumbnails -bool FALSE actual do I haven’t noticed any difference with the thumbnails and they seem to display everywere still.

It’s not needed nearly as much anymore since 10.5 will do icon preview for you on the fly. That flag actually causes Eggplant to store a thumbnail version of the image on the actual file that is used by the Finder and the open/close dialogues. It normally works just great so were not sure why it caused such a problem for you.

Well one thing I can think of is that I used a script that I created to capture the images. I ended up capturing about 450 images and it was pretty quick in between each image capture because I just had to change a page. Also the images were fairly large.