img_data_lock: Cannot allocate memory

Discussion in 'Installation and Configuration of Parallels Desktop' started by NotBill, Dec 16, 2007.

  1. NotBill

    NotBill Member

    Messages:
    36
    Hi all-

    I'm trying to resolve an issue where Parallels crashes. Below is a lot of information, thought I'm sure I've left something important out. I'll provide whatever additional information anyone may need including putting the log files online if that would be useful. I'll be happy to "set a breakpoint in szone_error to debug" if someone can provide me with directions. If I can't do that and the Parallels people want to provide me with a test version that can do that, I'll be happy to do that. Because I have not found other people with this issue, I feel it's likely something I've done incorrectly. I've tried a bunch of stuff and at this point I've run out of ideas. I'm willing to try just about anything, though do read all of this to see what I've already tried. Thanks in advance for any ideas!

    Searching this forum for img_data_lock shows only one thread, started by me, post #7 in this thread http://tinyurl.com/2wm5wg .
    In that thread the issue was low video memory. This crashing issue starts or is, at least, noticed and continues from that point.
    At the end of that thread I followed the suggestion to uninstall version 5160 and install 4560. This crashing issue and the sound issue remained.
    Around the end of October I noticed that the hdd files had grown to an unreasonable size and I discovered that I could not compact. On November 2nd I again uninstalled Parallels and deleted the VM and retransported the entire system, this time installing version 5160. I upgraded 5160 to 5582 on or about the 5th of December.

    Searching the web for img_data_lock shows me that this string may be related to a memory leak [http://tinyurl.com/2cyzmm].
    This leak may or may not have been fixed by apple, I can't tell.
    It also seems that there exists a work around that doesn't leak memory [http://tinyurl.com/2762sx]
    I'm not a developer. I'm pointing this out as a possible link to the issue I'm talking about here, and it's very possible that the 2 have nothing to do with each other.

    I have tools version 5582 (03.12.2007) installed.

    Parallels has crashed with this error 9 times from November 5th through December 15th.


    Parallels crashes about 3 minutes after this error is logged in console.log:

    Parallels(479,0xa000d000) malloc: *** vm_allocate(size=4988928) failed (error code=3)
    Parallels(479,0xa000d000) malloc: *** error: can't allocate region
    Parallels(479,0xa000d000) malloc: *** set a breakpoint in szone_error to debug
    Dec 15 04:19:23 roswell /Applications/Parallels/Parallels Desktop.app/Contents/MacOS/Parallels: img_data_lock: Cannot allocate memory

    ~80 similar entries...

    Parallels(479,0xa000d000) malloc: *** vm_allocate(size=4284416) failed (error code=3)
    Parallels(479,0xa000d000) malloc: *** error: can't allocate region
    Parallels(479,0xa000d000) malloc: *** set a breakpoint in szone_error to debug
    Dec 15 04:22:06 roswell /Applications/Parallels/Parallels Desktop.app/Contents/MacOS/Parallels: img_data_lock: Cannot allocate memory
    Dec 15 04:22:06 roswell crashdump[872]: Parallels crashed
    Parallels(479,0xa000d000) malloc: *** vm_allocate(size=163840) failed (error code=3)
    Parallels(479,0xa000d000) malloc: *** error: can't allocate region
    Parallels(479,0xa000d000) malloc: *** set a breakpoint in szone_error to debug
    Dec 15 04:22:07 roswell /Applications/Parallels/Parallels Desktop.app/Contents/MacOS/Parallels: img_data_lock: Cannot allocate memory
    Dec 15 04:22:07 roswell crashdump[872]: crash report written to: /Users/admin/Library/Logs/CrashReporter/Parallels.crash.log


    Parallels Desktop 3.0 critical error! Send log file ( /Library/Parallels/bugreports/parallels-fault-042207.151107.479.log ) to [email protected]

    Parallels.crash.log contains, in part:

    Host Name: roswell
    Date/Time: 2007-12-15 04:22:05.160 -0500
    OS Version: 10.4.11 (Build 8S2167)
    Report Version: 4

    Command: Parallels
    Path: /Applications/Parallels/Parallels Desktop.app/Contents/MacOS/Parallels
    Parent: WindowServer [60]

    Version: 3.0 (3.0 Build 5582.0)

    PID: 479
    Thread: 10

    Exception: EXC_BAD_ACCESS (0x0001)
    Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000

    Thread 10 Crashed:
    0 <<00000000>> 0xffff0680 __bzero + 128 (cpu_capabilities.h:226)
    1 ....audio.toolbox.AudioToolbox 0x93d7700c Resampler2::Reset() + 40
    2 ....audio.toolbox.AudioToolbox 0x93d76fbf Resampler2Wrapper::Reset() + 67
    3 ....audio.toolbox.AudioToolbox 0x93d7181a AudioConverterChain::Reset() + 38
    4 ....audio.toolbox.AudioToolbox 0x93d717a2 AudioConverterReset + 80
    5 ...pple.audio.units.Components 0xbd4eed87 DefaultOutputAUEntry + 23483
    6 ...pple.audio.units.Components 0xbd4eecbd DefaultOutputAUEntry + 23281
    7 ...pple.audio.units.Components 0xbd4eebea DefaultOutputAUEntry + 23070
    8 ...pple.audio.units.Components 0xbd4e91f3 DefaultOutputAUEntry + 39
    9 ...ple.CoreServices.CarbonCore 0x90cd0734 CallComponentDispatch + 34
    10 ...apple.audio.units.AudioUnit 0x93e658b1 AudioOutputUnitStart + 37
    11 com.parallels.desktop 0x007c0f0d 0x1000 + 8126221
    12 com.parallels.desktop 0x006eb15f 0x1000 + 7250271
    13 com.parallels.desktop 0x006eb8c3 0x1000 + 7252163
    14 com.parallels.desktop 0x006dd000 0x1000 + 7192576
    15 com.parallels.desktop 0x00422a66 0x1000 + 4332134
    16 libSystem.B.dylib 0x90024227 _pthread_body + 84

    Thread 10 crashed with X86 Thread State (32-bit):
    eax: 0x00000000 ebx: 0x93d7175f ecx: 0xfffefe80 edx: 0x00000000
    edi: 0x00010180 esi: 0xfcb6e590 ebp: 0xbd3a4c98 esp: 0xbd3a4c94
    ss: 0x0000001f efl: 0x00010283 eip: 0xffff0680 cs: 0x00000017
    ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037

    parallels-fault-042207.151107.479.log contains:

    Parallels Desktop 3.0 for Mac OS X version 3.0 Build 5582.0 from 2007-12-05
    Received SIGBUS: Bus error
    Access to fault address: 0x0
    unknown signal sender: 2

    In system.log I have:

    Dec 15 04:19:23 roswell /Applications/Parallels/Parallels Desktop.app/Contents/MacOS/Parallels: img_data_lock: Cannot allocate memory

    ~80 similar entries...

    Dec 15 04:22:06 roswell /Applications/Parallels/Parallels Desktop.app/Contents/MacOS/Parallels: img_data_lock: Cannot allocate memory
    Dec 15 04:22:06 roswell crashdump[872]: Parallels crashed
    Dec 15 04:22:07 roswell /Applications/Parallels/Parallels Desktop.app/Contents/MacOS/Parallels: img_data_lock: Cannot allocate memory
    Dec 15 04:22:07 roswell crashdump[872]: crash report written to: /Users/admin/Library/Logs/CrashReporter/Parallels.crash.log
    Dec 15 04:22:11 roswell kernel[0]: [err in VmObserverThread ] : Forced quit VM (!) id=92690384 -> ../host.Darwin/device.c:448


    Information on my mac:

    Model Name: Mac Pro
    Model Identifier: MacPro1,1
    Processor Name: Dual-Core Intel Xeon
    Processor Speed: 2.66 GHz
    Number Of Processors: 2
    Total Number Of Cores: 4
    L2 Cache (per processor): 4 MB
    Memory: 3 GB
    Bus Speed: 1.33 GHz
    Boot ROM Version: MP11.005C.B08
    SMC Version: 1.7f10

    System Version: Mac OS X 10.4.11 (8S2167)
    Kernel Version: Darwin 8.11.1
    Boot Volume: Macintosh HD

    250 gig hdd

    Information on the windows vitural machine:

    System Information report written at: 2007-12-16 13:15:31
    [System Summary]

    Item Value
    OS Name Microsoft Windows 2000 Professional
    Version 5.0.2195 Service Pack 4 Build 2195
    OS Manufacturer Microsoft Corporation
    System Name CASE2
    System Manufacturer Parallels Software International Inc.
    System Model Parallels Virtual Platform
    System Type X86-based PC
    Processor x86 Family 6 Model 15 Stepping 6 GenuineIntel ~2660 Mhz
    BIOS Version 12/03/07
    Windows Directory C:\WINNT2K
    System Directory C:\WINNT2K\system32
    Boot Device Not Available
    Locale United States
    User Name CASE2\Administrator
    Time Zone Eastern Standard Time
    Total Physical Memory 523,828 KB
    Available Physical Memory 314,128 KB
    Total Virtual Memory 1,535,152 KB
    Available Virtual Memory 1,120,916 KB
    Page File Space 1,011,324 KB
    Page File E:\pagefile.sys
     
  2. Stacey M

    Stacey M Parallels Team

    Messages:
    908
    Hello,

    could you please tell me what actions to you perform when this problem occurs?
    Please provide me with two screenshots:
    1. 'Configuration Editor' (Edit -> Virtual Machine) -> 'Memory' tab.
    2. 'Parallels Desktop' in menubar -> 'Preferences' -> 'Memory' tab.

    Best regards,
    Stacey
     
  3. NotBill

    NotBill Member

    Messages:
    36
    Hi Stacey, thanks for the reply.

    Usually it crashes when I'm not sitting at the keyboard. Say a few hours after I've left. I don't have a screen saver enabled or any power saving options set for the VM. The only application that is usually running is mirc (more info www.mirc.com), though it has crashed without mirc running (or anything else.)

    The requested screenshots are here:
    http://www.easytospell.com/pd/

    The gif's are the same as the tiff's but much smaller.
     
  4. Stacey M

    Stacey M Parallels Team

    Messages:
    908
    Hello,

    please try to disable Virtual Memory Preallocation.

    Best regards,
    Stacey
     
  5. NotBill

    NotBill Member

    Messages:
    36
    Hi Stacey-

    I've unchecked 'Virtual Memory Preallocation'.

    When I got to the computer today, before I read your message, I had an error about the screen resolution. I have the VM as well as the Mac set to 1600x1280 & colors 'millions', refresh @ 75 Hertz. I have 2 CRT's with the VM in coherence on one. A screen shot of this error is here: http://www.easytospell.com/pd/Picture 4.gif and you can see that the video memory is set to the maximum allowed here: http://www.easytospell.com/pd/Picture 1.gif .

    When I hit the OK button in the error box, the VM locked.

    I understand that this error may also be resolved by the suggestion you just gave me, however I wanted to keep you and others up to date on whats going on here.
     
  6. Stacey M

    Stacey M Parallels Team

    Messages:
    908
    Hello,

    after disabling the Virtual Memory Preallocation, do you still have such problems?

    Best regards,
    Stacey
     
  7. NotBill

    NotBill Member

    Messages:
    36
    So far, so good. VM has been up for 2days 3hrs 24mins 47secs .

    If it can go 7 days I'd say it's fixed.
    I know I can count on Microsoft to force me to restart monthly =]

    Thanks.
     

Share This Page