System.InsufficientMemoryException: Failed to allocate a managed memory buffer of 268435456 bytes. The amount of available memory may be low. --- System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.

Appfabric 1.1 server setup on 3 Windows server 2008 R2 machines.
Client windows 7 64 bit.
Because there is no bulkupdate ,we are trying to persist around 4000 objects wrapped in a CLR object.
 [Serializable]
    public class CacheableCollection<T> : ICacheable, IEnumerable<T>
        where T : class, ICacheable
        [DataMember]
        private Dictionary<string, T> _items;
        public IEnumerator<T> GetEnumerator()
            return _items.Values.GetEnumerator();
        IEnumerator IEnumerable.GetEnumerator()
            return _items.Values.GetEnumerator();
        [DataMember]
        public string CacheKey { get; private set; }
        public T this[string cacheKey] { get { return _items[cacheKey]; } }
        public CacheableCollection(string cacheKey, T[] items)
            if (string.IsNullOrWhiteSpace(cacheKey))
                throw new ArgumentNullException("cacheKey", "Cache key not specified.");
            if (items == null || items.Length == 0)
                throw new ArgumentNullException("items", "Collection items not specified.");
            this.CacheKey = cacheKey;
            _items = items.ToDictionary(p => p.CacheKey, p => p);
We tried with the following options on server and client
Server:
 <advancedProperties>
            <partitionStoreConnectionSettings leadHostManagement="false" />
            <securityProperties mode="None" protectionLevel="None">
                <authorization>
                    <allow users="[email protected]" />
                    <allow users="[email protected]" />
                </authorization>
            </securityProperties>
            <transportProperties maxBufferSize="500000000" />
        </advancedProperties>
Client: 
 <transportProperties connectionBufferSize="131072" maxBufferPoolSize="500000000"
                       maxBufferSize="838860800" maxOutputDelay="2" channelInitializationTimeout="60000"
                       receiveTimeout="600000"/>
I see different people experiencing different memory size issues. What is the actual memory limit of an  object that can be pushed to Appfabric. 
Can some one please help ?
Stack trace:
Test method Anz.Cre.Pdc.Bootstrapper.Test.LoaderFuncCAOTest.AppFabPushAndRetrieveData threw exception: 
System.InsufficientMemoryException: Failed to allocate a managed memory buffer of 268435456 bytes. The amount of available memory may be low. ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
System.Runtime.Fx.AllocateByteArray(Int32 size)
System.Runtime.Fx.AllocateByteArray(Int32 size)
System.Runtime.InternalBufferManager.PooledBufferManager.TakeBuffer(Int32 bufferSize)
System.Runtime.BufferedOutputStream.ToArray(Int32& bufferSize)
System.ServiceModel.Channels.BufferedMessageWriter.WriteMessage(Message message, BufferManager bufferManager, Int32 initialOffset, Int32 maxSizeQuota)
System.ServiceModel.Channels.BinaryMessageEncoderFactory.BinaryMessageEncoder.WriteMessage(Message message, Int32 maxMessageSize, BufferManager bufferManager, Int32 messageOffset)
System.ServiceModel.Channels.FramingDuplexSessionChannel.EncodeMessage(Message message)
System.ServiceModel.Channels.FramingDuplexSessionChannel.OnSendCore(Message message, TimeSpan timeout)
System.ServiceModel.Channels.TransportDuplexSessionChannel.OnSend(Message message, TimeSpan timeout)
System.ServiceModel.Channels.OutputChannel.Send(Message message, TimeSpan timeout)
Microsoft.ApplicationServer.Caching.WcfClientChannel.SendMessage(EndpointID endpoint, Message message, TimeSpan timeout, WaitCallback callback, Object state, Boolean async)
Microsoft.ApplicationServer.Caching.WcfClientChannel.Send(EndpointID endpoint, Message message, TimeSpan timeout)
Microsoft.ApplicationServer.Caching.WcfClientChannel.Send(EndpointID endpoint, Message message)
Microsoft.ApplicationServer.Caching.DRM.SendRequest(EndpointID address, RequestBody request)
Microsoft.ApplicationServer.Caching.RequestBody.Send()
Microsoft.ApplicationServer.Caching.DRM.SendToDestination(RequestBody request, Boolean recordRequest)
Microsoft.ApplicationServer.Caching.DRM.ProcessRequest(RequestBody request, Boolean recordRequest)
Microsoft.ApplicationServer.Caching.DRM.ProcessRequest(RequestBody request, Object session)
Microsoft.ApplicationServer.Caching.RoutingClient.SendMsgAndWait(RequestBody reqMsg)
Microsoft.ApplicationServer.Caching.DataCache.SendReceive(RequestBody reqMsg)
Microsoft.ApplicationServer.Caching.DataCache.ExecuteAPI(RequestBody reqMsg)
Microsoft.ApplicationServer.Caching.DataCache.InternalPut(String key, Object value, DataCacheItemVersion oldVersion, TimeSpan timeout, DataCacheTag[] tags, String region)
Microsoft.ApplicationServer.Caching.DataCache.Put(String key, Object value, String region)
Anz.Cre.Pdc.DataCache.DataCacheAccess.Put[T](String cacheName, String regionName, T value) in C:\SVN\2.3_Drop3\app\Src\Anz.Cre.Pdc.DataCache\DataCacheAccess.cs: line 141
Anz.Cre.Pdc.DataCache.DataCacheAccess.Put[T](String cacheName, String regionName, Boolean flushRegion, T value) in C:\SVN\2.3_Drop3\app\Src\Anz.Cre.Pdc.DataCache\DataCacheAccess.cs: line 372
Anz.Cre.Pdc.Bootstrapper.Test.LoaderFuncCAOTest.AppFabPushAndRetrieveData() in C:\SVN\2.3_Drop3\app\Src\Anz.Cre.Pdc.Bootstrapper.Test\LoaderFuncCAOTest.cs: line 281

Essentially what we are trying to do is the following.
we have different kinds of objects in our baseline. Objects of type CAO, Exposures, Limits that change everyday after close of business day. 
We wanted to push these different objects in to respective named regions in the cache. 
Region Name     Objects
CAO                   ienumerable<caos>
Exposures           ienumerable<exposures>
Limits                ienumerable<limits>
we have a producer that pushes this data in to the cache and consumers of this data acting on the data when its available.
Now the issue we are facing is when we try to push around 4000 cao objects (roughly in the size of 300MB when serialized using xml) ,we are getting the above error. Increasing the size on the client and cache cluster didnt help.
The other alternative we were thinking about is chunking and pushing because appfabric doesnt support streaming. We might be able to push this data successfuly if we chunk. But how about the consumers ? wouldnt they face the same memory issue when we use
getallobjectsinregion ?
We thought if there was a way to figure out the keys in the region then probably the consumers can get one by one. However there is no such API. 
The only option i see is using Appfabric notifications which msdn says isnt a reliable way.
Please help.

Similar Messages

  • Exception of Type 'System.OutofMemoryException' was thrown

    I am trying to run test software developed using TestStand 2010 SP1 and LabVIEW 2011 SP1 on a Windows XP machine. We have generated common sequences in TestStand that are called from a custom script language. The test runs for about 2.5 hours before throwing an error, "Exception of Type 'System.OutofMemoryException' was thrown." It happens at about the same point each time, but not always during the same Sequence or VI call.
    Our software does loop quite a bit calling the same TestStand sequence multiple times. And we are saving data samples read from test equipment into arrarys to analyze, but would that array not be written over each time rather than allocating new memory for each call? Or could it be generating a new memory allocation for each time the TestStand sequence is called?
    Any other ideas on why we would be getting an out of memory exception only when we run the entire test consecutively(>2.5hours), meaning if we run it in two halfs(tests 1-5 then terminate, then restart and run tests 6-10) it works fine?

    No, the local variables only exist while the sequence is running (unless you are leaking references to them in your code modules). So you should only have as many versions of the locals in memory as you have actively running versions of the sequence. You might have a lot of actively running versions though, I have no idea what your sequences look like.
    How much memory is the process using as reported in Task Manager? Are you trying to allocate a large block of memory such as a large array? As memory becomes more fragmented and used more, it becomes harder to allocate large blocks of memory in 32-bit programs due to the limitation of the address space (i.e. it's hard to find a contiguous block of address space large enough). You might be hitting this issue.
    The general approach I'd recommend for you is to try to figure out what is using most of the memory and try to optimize that to use less memory. Also avoid trying to allocate very large blocks. Once your process is using about 1 gig of ram, it becomes difficult to allocate blocks bigger than 100meg in a 32-bit process.
    Since you are getting a .NET out of memory exception, another possibility is that you have an issue with garbage collection or are leaking .NET objects (i.e. unintentionally holding a reference to them somewhere keeping them from being garbage collected). You can call GC.Collect() before doing something memory intensive and see if that helps. If you don't have .NET code modules though, then this is likely not the problem.
    -Doug

  • A first chance exception of type 'System.IO.FileLoadException' occurred in Unknown Module.

    Hiii...
    I was doing FacebookIntegration App.Trying it from many dayss...Can anybody please help me with the below error.It was raising in FacebookLoginPage....
    A first chance exception of type 'System.IO.FileLoadException' occurred in Unknown Module.
    My code is
    namespace tori.Pages
        public partial class FacebookLoginPage : PhoneApplicationPage
               public FacebookLoginPage()
                InitializeComponent();
                this.Loaded += FacebookLoginPage_Loaded;
            async void FacebookLoginPage_Loaded(object sender, RoutedEventArgs e)
                if (!App.isAuthenticated)
                    App.isAuthenticated = true;
                    await Authenticate();
            private FacebookSession session;
            private async Task Authenticate()
                string message = String.Empty;
                try
                    session = await App.FacebookSessionClient.LoginAsync("user_about_me,read_stream,publish_stream,publish_actions");
                    App.AccessToken = session.AccessToken;
                    App.FacebookId = session.FacebookId;
                    Dispatcher.BeginInvoke(() => NavigationService.Navigate(new Uri("/Pages/LandingPage.xaml", UriKind.Relative)));
                catch (InvalidOperationException e)
                    message = "Login failed! Exception details: " + e.Message;
                    MessageBox.Show(message);
        While I was debugging error was raising in this line 
    App.FacebookSessionClient.LoginAsync("user_about_me,read_stream,publish_stream,publish_actions");
    While running the App in device I was getting the above error.
    And while running the app in emulator I was facing the below error
    A first chance exception of type 'System.TypeLoadException' occurred in System.Windows.dll
    Additional information: File or assembly name 'System.Threading.Tasks, Version=1.5.10.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A', or one of its dependencies, was not found.
    I am unable to understand what to solve and which is the reason also.
    Can anybody please help me in rectifying it...
    Many Thanks in advance..

    Hi venukoti,
    Are you using Facebook SDK for helping with feature implementation?
    Looks like your app does not have dependencies installed. Please try to re-install the Facebook SDK to see if the same thing happens.
    I would recommend you ask Facebook:
    http://facebooksdk.net/docs/windows/ also
    https://developers.facebook.com/tools-and-support/ for more sufficient suggestions.
    Thanks for your understanding.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Exception of type 'System.ArgumentException' was thrown. Parameter name: newObj when register sts to sharepoint 2010

    Hi
    when i register my custom sts to sharepoint i receive error : 
    Exception of type 'System.ArgumentException' was thrown.
    Parameter name: newObj
    i followed https://msdn.microsoft.com/EN-US/library/office/ff955607(v=office.14).aspx
    private void button1_Click(object sender, EventArgs e)
    List<SPTrustedClaimTypeInformation> claimMapping = new List<SPTrustedClaimTypeInformation>();
    List<string> strClaimMapping = new List<string>();
    SPTrustedClaimTypeInformation idClaim = new SPTrustedClaimTypeInformation("EmailAddress",
    "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress",
    "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress");
    SPTrustedClaimTypeInformation titleClaim = new SPTrustedClaimTypeInformation("Title",
    "http://schemas.wingtip.com/sharepoint/2009/08/claims/title",
    "http://schemas.wingtip.com/sharepoint/2009/08/claims/title");
    titleClaim.AcceptOnlyKnownClaimValues = true;
    idClaim.AddKnownClaimValue("[email protected]");
    idClaim.AddKnownClaimValue("[email protected]");
    idClaim.AddKnownClaimValue("[email protected]");
    titleClaim.AddKnownClaimValue("Engineer");
    titleClaim.AddKnownClaimValue("Manager");
    titleClaim.AddKnownClaimValue("CEO");
    // Create the string[] for all claims. This is required for
    // the construction of the SPTrustedLoginProvider object.
    strClaimMapping.Add(idClaim.InputClaimType);
    strClaimMapping.Add(titleClaim.InputClaimType);
    X509Certificate2 ImportTrustCertificate = new X509Certificate2(@"C:\SPPROJECTS\STS\ClaimsWalkthrough\Resources\STSTestCertPub.cer");
    claimMapping.Add(idClaim);
    claimMapping.Add(titleClaim);
    SPSecurityTokenServiceManager manager = SPSecurityTokenServiceManager.Local;
    SPTrustedLoginProvider provider = new SPTrustedLoginProvider(manager,
    "WingtipSTS", "WingtipSTS", new Uri("http://localhost:97/default.aspx"),
    "https://portal.test.com:90/_trust/", strClaimMapping.ToArray(), idClaim);
    foreach (SPTrustedClaimTypeInformation claimTypeInfo in claimMapping)
    if (claimTypeInfo.InputClaimType == provider.IdentityClaimTypeInformation.InputClaimType)
    continue;
    provider.AddClaimTypeInformation(claimTypeInfo);
    if (ImportTrustCertificate != null)
    provider.SigningCertificate = ImportTrustCertificate;
    //provider.ClaimProviderName = "ContosoCRMClaimProvider";
    provider.UseWReplyParameter = true;
    manager.TrustedLoginProviders.Add(provider);
    manager.Update();
    adil

    After spending the last hour looking again at my FBA issue, i finally got the answer to my own question which is SPClaimsUtility.
    For anyone in the future having this issue, this is a snapshot from my code:
    SPSecurity.RunWithElevatedPrivileges(delegate()
                   string usernamestring = GetTextBox("tbUsername").Text;
                   string passwordstring = GetTextBox("tbPassword").Text;
    ATPAuthProvider.ATPMembershipProvider memProvider = new ATPAuthProvider.ATPMembershipProvider();
    if (memProvider.ValidateUser(usernamestring, passwordstring))
                           MembershipUser user = memProvider.GetUser(usernamestring,
    true);
                           if (user != null)
      bool Status = SPClaimsUtility.AuthenticateFormsUser(HttpContext.Current.Request.UrlReferrer,
    usernamestring, passwordstring);
                               if (Status)
                                   HttpContext.Current.Response.Redirect("/Pages/Home.aspx", false);
    Note: The SPClaimsUtility class is from the Microsoft.SharePoint.IdentityModel dll which reside in the new GAC location: C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SharePoint.IdentityModel\v4.0_15.0.0.0__71e9bce111e9429c
    Credit to Sivarajan's blog: http://sivarajan.me/post/SharePoint-2013-Enabling-Custom-Login-Page-and-Mixed-Contents-Part-2
    Enjoy!

  • How to read the amount of free memory available?

    I need a tool to tell me the amount of free memory left, at any given time. I want to tell my user in advance, and as the experiment proceeds, how much experiment time can remain before we will run out of memory. Yes I know, in a more perfect world the data would be written to disk and not stay in memory; but for now this solution would really help.
    Please be clear: I'm not looking for the performance profiling tool. I need something that will tell my program, at runtime, how much memory is left available to it. Is there any such tool?
    Thanks,
    Ken

    Hey Ken,
           I think this article discusses what you're looking for:
    How Can I Programmatically Find Information About My Computer's Memory Usage?
    http://digital.ni.com/public.nsf/allkb/B5889EB5349FAC478625723E00090265
    Hope this helps!
    --Ryan S.

  • Exception of type  'System.OutOfMemory Exception' was thrown while running

    We have a web application develeoped in ASP.Net, SQL Server 2005 , Crystal Reports 10.2. When I try to run a report which has around 5 lakh records (the query to fetch the records in sql server takes around 1.5 to 2 minutes) gives an error Exception of type  'System.OutOfMemory Exception' was thrown.
    Can anybody help !!
    Thanks

    Hello, Balla;
    the first thing to check is that the ASP.NET Worker process has rights to your Temp folder. You will find where it is by checking your Environment variables.
    Use the correct name for the ASP.NET worker process depending on your operating system - LocalMachine\IIS_WPG(Windows 2003 Server) or ASPNET(XP) or (Vista) IIS_IUSRS
    To give the IIS_WPG account full control of a folder:
    1. Right-click the folder and select 'Properties'.
    2. Go to the 'Security' tab and click the 'Add' button.
    3. Click the 'Locations' button and select the
    computer name. Click 'OK'.
    4. Type "IIS_WPG" under the 'Enter the object names to
    select' box.
    5. Click 'Check Names'. <Your machine name>\IIS_WPG
    appears. Click 'OK'.
    6. Check 'Full Control' from 'Permissions for IIS_WPG'.
    Click 'OK'.
    ====================
    NOTE:
    The IIS_WPG includes the LocalService,
    System, and NetworkService accounts.
    ====================
    If that is not the issue:
    What database driver are you using in the design of your report? Go to Database|Set datasource location and tell me the properties of the database connection.
    Do you logon to the database in your code or pass the data to it using Datasets?
    Are there subreports in the design? How many are there? What section are they in? What data source does each one use?
    Do you have a lot of formulas in the report?
    Elaine

  • A first chance exception of type 'System.InvalidOperationException' occurred in Silverlight.Media.Phone.DLL.

    Hi,
    I was running Shoutcast.Sample.Phone.Background in windows phone 8 device.I have got this example from codeplex  http://shoutcastmss.codeplex.com/workitem/826.
    I have used the code present in above and started running the app.But the stream was not playing continuosly in Background.
    It was stopping rising the below exception 
    A first chance exception of type 'System.InvalidOperationException' occurred in Silverlight.Media.Phone.DLL.
    An exception of type 'System.InvalidOperationException' occurred in Silverlight.Media.Phone.DLL but was not handled in user code.
    Can anybody please help me how can I overcome this exception.And play stream continuosly in background until I stop it.
    ManyThanks in advance..

    You should ask in the discussion for that code sample.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • Creative Cloud for Students: Adobe Manager Application ask me to subscribe the single application or entering a serial number that I have never been provided. [was: URGENT URGENT]

    I subscribed Adobe Creative Cloud Students on 2/12/14 , but once the trial version is end, Adobe Manager Application ask me to subscribe the single application or entering a serial number that I have never been provided . I consulted all the suggestions from Adobe , without finding a solution . In the event that the problem is not solved I will be forced to cancel my subscription .

    This is an open forum with a mix of program users and Adobe staff, not Adobe support... you need Adobe support
    Adobe contact information - http://helpx.adobe.com/contact.html may help
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • 106 Exception of type system.OutOfMemory Exception while packaging worker roles

    I am trying to package a 2 worker roles(small vms size) , in which i am having about 300mb of data content on both approot folders of roles.
    When i try to package it takes about 10 mins time and throws a "System.OutOfMemoryException". 
    I also tried using medium size vms, but the same error i got.
    Is there any other way to do it as i need these data in approot folder for batch script initialisation.

    HI
    The maximum package size that can be deployed is 600 MB (600 * 1024
    * 1024 bytes).
    Any other data should moved to Windows Azure storage and retrieved from there.
    So any other data, should be moved to windows Azure storage and SQL Azure.
    That's the solution, MS suggest.
    Dino He
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • The sound from my facetime is very low.  I have gone to system preferences and adjusted the sound, it makes no difference and I cant hear when it rings

    the ringing sound from my facetime is very low and i cant hear it at all unless i am already using the notebook and facetime opens.  I have tried to adjust the sound of my notebook, on the whole the sound is not high

    Try resetting the SMC:
    http://support.apple.com/kb/ht3964

  • BPC 5.0.502  BPC Web Error Message: Exxception of Type System out of memory

    In the process of updating a web page in the content library, page crashed received an error message of "Exception of type System out of memory.  Exception was throw".  What does this mean?  We are now unable to open this sheet without receiving the prior message.  Any remadies would be appreciated.

    Hello,
        Did you receive this specific error message only managing that web page or for all pages?
        Did you try to stop all COM+ components on the application servers(on each if you are using more). It looks to be related to some memory problems.
        If the problem is related to a specific web page, the problem can be related to the content of that web page.
    Best regards,
    Mihaela

  • Source system RFC fails after transport

    Hi all
    in our QA system any transport containing a process chain causes the RFC connection to the source ECC6 system to fail after too many logon attempts.
    This doesn't happen when we send the same transport to production.
    Any ideas?
    Regards
    Hayley

    Hi
    thanks, but I had already checked out this note.  This refers to the post processing of the transport on BW of client 000 logging onto the BW client to carry out changes, not the RFC connection to the BW ECC source system. 
    The transport goes through ok, and the process chain can be activated, however at this point we always notice that the ECC source system connection fails with an RFC error, as soon as we get the password reset and changed in SM59 it works ok.

  • System synchronization failed--Protocol Error: Handheld file could not be opened. (4004)

    I have reviewed Palm Support Page and the forums and recognize this is an old story but the solutions offered haven't worked for me.  I have had my Tungsten 2E for over a year and an earlier version before that.  It has been working well for me until I had a problem (out of the blue) with the HotSync.  I reinstalled the Palm software after checking cables, etc.  I was able to relink and get updated info from my handheld to the desktop but with a few blips in DocstoGo where I had to delete documents and add them back to the desktop and resync with the handheld.  All the info is on the handheld but see the log below to see the message "System synchronization failed".  A suggestion by other users is to delete the "PmTraceDatabase" to file C:\Program Files\Palm\N\Backup\PmTraceDatabase.PDB but I cannot find the named file on my desktop program files for Palm. 
    Does anyone have an explanation other than "live with it" since I believe I'm getting all my info synced?
    HotSync operation started 02/14/08 09:26:07
    OK Calendar
    OK Contacts
    OK Tasks
    OK Memos
    OK Expense
    OK Note Pad
    OK Documents To Go
    OK Photos
       - Installed file: C:\Program Files\Palm\N\Install\DocsToGo.prc
       - Installed file: C:\Program Files\Palm\N\Install\GraphicsLibrary.prc
       - Installed file: C:\Program Files\Palm\N\Install\SheetToGo.prc
       - Installed file: C:\Program Files\Palm\N\Install\SS_P2P.prc
       - Installed file: C:\Program Files\Palm\N\Install\WordToGo.prc
       - Installed file: C:\Program Files\Palm\N\Install\WP_P2P.prc
       - Installed file: C:\Program Files\Palm\N\Install\WTGFontPackage.pdb
    OK Install
       -- Backing up db psysLaunchDB to file C:\Program Files\Palm\N\Backup\psysLaunchDB.PDB
       -- Backing up db PmTraceDatabase to file C:\Program Files\Palm\N\Backup\PmTraceDatabase.PDB
    System synchronization failed
    Protocol Error: Handheld file could not be opened.  (4004)
    HotSync operation complete 02/14/08 09:26:47
    Post relates to: Tungsten T2
    This question was solved.
    View Solution.

    1. download and install FileZ from here
    http://nosleepsoftware.sourceforge.net/index.php?page=filez
    2. Launch FileZ and tap on view and edit files
    3. Open the internal folder and tap pmtracedatabase and put a check mark next to it
    4. Tap details
    5. Tap on the "Attrs" tab
    6. Uncheck the box next to backup
    7. Click Save
    8. Sync

  • Requested buffer too large - but data is already in memory

    Hello all,
    I am writing a program that generates sound and then uses the Java Sound API to play it back over the speakers. Until recently, using clips have not led to any problems. On two computers I can play the sound without a hitch. However, on the newest computer (and also with the largest specs and especially more RAM), I am getting an error while trying to play back the sound. The exception that is thrown is:
    javax.sound.sampled.LineUnavailableException: Failed to allocate clip data: Requested buffer too large.
    I find this odd because the buffer already exists in memory: I don't have to read in a .wav file or anything because I am creating the audio during the course of my program's execution (this is also why I use Clips instead of streaming - the values are saved as doubles during the calculations and then converted into a byte array, which is the buffer that is used in the clip.open() method call). It has no problems allocating the double array, the byte array, or populating the byte array. It is only thrown during clip.open() call. I also find it strange that it would work on two other computers, both of which have less RAM (it runs fine on a machine with 512MB and 2GB of RAM, both XP 32-bit). The only difference is that the computer with the issue is running Windows 7 (the RTM build), 64-bit with 6GB of RAM. I am running it through Netbeans 6.7.1 with memory options set to use up to 512MB - but it's never gone up that far before. And I've checked the size of the buffer on all three computers and they are all the same.
    Does anyone know what the issue could be or how to resolve it? I am using JDK6 if that matters. Thank you for your time.
    Edited by: Sengin on Sep 18, 2009 9:40 PM

    Thanks for your answer. I'll try that.
    I figured it had something to do with Windows 7 since it technically hasn't been released yet (however I have the RTM version thanks to a group at my univeristy in cahoots with Microsoft which allows some students to get various Microsoft products for $12).
    Edit: I just changed the Clip to a SourceDataLine (and the few other necessary changes like changing the way the DataLine.Info object was created) and wrote the whole buffer into it, drained the line and then closed it. It works fine. I'll mark the question as answered, however that may not be the "correct" answer (perhaps it does have something to do with Windows 7 and not being completely tested yet). Thanks.
    Edited by: Sengin on Sep 21, 2009 8:44 PM
    Edited by: Sengin on Sep 21, 2009 8:46 PM

  • After Effects error: Unable to allocate space for image buffer

    I am having some glitchy issues with After Effects, very inconsistent, but I am getting the error message "After Effects error: unable to Allocate Space for a 7500 x 4500 image buffer. You may be experiencing fragmentation. In the Memory and Multiprocessing Preference dialog box, trying increasing the RAM to leave for other applications, and selecting the Enable Disk Cache option in the Media & Disk Cache Panel".
    Pretty straightforward, but I have a brand new 8 core dual 2.25 Mac Pro with 16GB Ram. I have it set to allow other applications to use 7GB, have jockeyed that setting between 1GB and 5GB and still gotten the same error message. Disk Cache is set to 3GB, have pushed it all the up to 7GB and still gotten the same message. I am working in 1080p, but I got the error message with Open GL on, quarter resolution, and wasn't even trying to RAM preview. I also noticed that with a straight 1080p clip .mov animation codec clip, after effects will only RAM preview about 7 seconds. That is without any other layers or effects.  I do not have all of my source footage in one folder, I am going to try that next. I am running of a fast internal hard drive that is not they system drive.  It also seems like it happens after I have been using the comptuer for awhile. If I restart the problem will usually go away for a little while.
    I think that I may have a bigger system error, the computer locked up bad once after I had it for a few weeks and since that happened CS4 has been unstable in general, especially Photoshop and Bridge. My guess is bad RAM, but I wanted to make sure I wasn't missing something with my AE settings.  If any one has any input please let me know. Thanks.

    > I lowered the minimum RAM per core to 1GB, because the Adobe site recommends that as a base setting for andHD project
    When you say "the Adobe site recommends", what exactly are you referring to? If you're quoting recommendations written for After Effects on the Adobe website, you're very likely quoting me. And this is what I wrote in the Help document:
    "Memory & Multiprocessing preferences":
    "The amount of RAM required for each background process varies depending on your system configuration; at least 1 GB per process is recommended. Optimum performance is achieved with computer systems with at least 2 GB of installed RAM per processor core."
    This blog post gives essentially the same advice, but with more explicit suggestions.
    But, as I say at the bottom of that blog post, if you find that some other settings are working better for you, that's great. Every project and computer system are different. Do what works for you.
    > Also, if it is an
    dual quad core system, there should be 8 cores, but in the
    multi-processer preferences panel it lists CPU's as 16.
    The number of "virtual" processors can be double in a system that uses hyperthreading. After Effects doesn't actually treat these as separate processors in this context, though.

Maybe you are looking for

  • Error in Printing Web Reports

    Hi, I have a requirement from an User. The user wants to take printouts of a web report and is using options: portrait / landscape from BW. The problem is that the entire report doesn't print.  It trucates columns off to the right, and if the report

  • How can I close the music player?

    Good morning,      I just bought an iPod nano 6G, and this is my firs Apple product.      Anyway, there is something that is bottering me. I use the iPod as a watch, and sometimes I use as music player. After I'm done listening to music and want to u

  • How to send multiple commands throught the Instrument I/O Assistant

        I am using the Instrument I/O Assistant to set up an instrument driver.  I am only using two rs 232 commands. The way I have the Instrument I/O Assistant setup is: first I have a default instrument setup step then I use a write step with the firs

  • Apple's response to my whiney MBP

    Hey fellas. I just got off the phone with Apple and I thought I would relay the fruits of my experience with my MBP. I bought a 1.83 (week 12) that has the whine under the keyboard that goes away by launching photobooth. I took it in to an Apple stor

  • All music + pictures disappeared - HELP Lumia 920

    All my music and pictures from my Nokia Lumia 920 have disappeared. However, there are stubs as in cover photo's of albums when I go into the music app, some artist names but no music. And photo's almost as if someone's wiped them clean. The photos h