Could not resolve memory leak when using QuadArray  BY_REFERENCE

Hi,
While working on my project I have to create large mesh (grid). To do it I am using QuadArray and using BY_REFERENCE mode.
After I close the module, the float array that is used as the coordinates array for above QuadArray geometry, is not freed. And if I open same module it takes additional same amount of memory. If I open that module for 3-4 times, memory goes piling up and causing OutOfMemoryError.
Even I have nullified the coordinate array explicitly on closing the module, the problem could not be resolved.
Can any body please help and give me some points where the problem may be rooted.
Regards,

I found the solution
if I set the coordinate array to null memory frees up.
The code line look like
g.setCoordRefFloat(null);Probably reference kept by geometry was not being freed.
cheers!

Similar Messages

  • "Could not complete scan" error when using Windows Fax and Scan

    "Could not complete scan" error when using Windows Fax and Scan with a HP OfficeJet Pro 8600 Plus All-In-One network printer.
    Printing is fine.
    When using the HP Scan application, get the error "Scanner communication cannot be established".
    When scanning from the printer itself it fails with the same message. In addition the printer panel displays the error:
    "The scan could not be completed due to one or more of the following issues:
    Connection to the computer is lost
    The scanner is in use
    OCR application is not installed"
    My PC is a HP Compaq Pro 6300 SFF 64bit, with ethernet cable to the router and ethernet cable to the printer
    Originally ran Windows 8.0; recently upgraded to Windows 8.1.
    Older separate Netgear router and modem was replaced with a newer Netgear Router/Modem, but both experienced the same problem.
    There was no problem with the original Windows 8.0 configuration and only after upgrading to 8.1 did the problem emerge.
    On my home netowrk I have an HP ProBook 6550b running Windows 7 sp1 that uses wireless to get to the Router, and it has no problem with scanning.
    I have followed the recommendations of a number of articles relating to this issue (including: http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&​lc=en&docname=c02915410&product=4323659#N94), but there has been no change in behaviour.
    The printer has a static IP address;
    Power settings have been adjusted to Never for Turn off Hard Disk; Sleep and Hybrid Sleep.
    Scanning has been tested with all firewalls and antivirus turned off and in Selective Startup.
    The printer has been plugged directly into the power socket.
    With all these settings the Windows 8.1 cannot scan while the Windows 7 laptop with wireless to the router has no problems.
    Appreciate any insights into this problem.
    I can only surmise that the problem is a compatibility problem between the 8600 Printer and Windows 8.1.
    Any ideas?
    regards,
    Motorbike

    You can determine if there is compatiblity between the printer and PC by checking the Windows 8.1 hardware compatibility list. I have done that and it is shown to be fully compatible.  If the driver you installed before was only the basic driver,it would explain the lack of scan and copy functionality.
    Download and install the Windows 8.1 full feature driver and software on the HP Compaq Pro 6300 SFF 64bit PC . 
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloa​dIndex?softwareitem=bi-108858-4&cc=us&dlc=en&lc=en​...
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Could not resolve service name when installing Mobile Server

    Hi,
    when installing mobile server I am prompted for the SYSTEM pwd and then get "ORA-12154: Could not resolve service name". I install lite in a different home (LITE_HOME) than the database. Database's TNSNAMES.ORA looks like (I added the webtogo.world entry myself)
    ===================== TNSNAMES.ORA =================
    WEBTOGO.WORLD =
         (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = TCP)
    (Host = localhost)
    (Port = 1521)
    (CONNECT_DATA = (lite.oracle)))
    LITE.PL.ORACLE.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = lite.oracle)
    =======================================
    Then installing lite I enter localhost/1521/lite.oracle
    I can connect from sqlplus:
    sqlplus system/manager@lite
    Java version is 1.3.1_08, which I think is correct.
    Does anyone have any ideas? Thanks in advance.
    Best regards,
    Pawel

    Hi,
    When you install Oracle Lite the valid TNSNAMES.ora becomes the one that is coming with Oracle Lite.
    From now on when you must create a tns name you must create it in the Oracle Lite's tnsnames.ora file unless you specify which tnsnames file you will use in the registry.
    You can find tnsnams.ora file in the below path:
    <OracleLite_HOME>\network\admin\
    Regards,
    Bogac OZGEN

  • Memory leak when using Threads?

    I did an experiment and noticed a memory leak when I was using threads.. Here's what I did.
    ======================================
    while( true )
         Scanner sc = new Scanner(System.in);
         String answer;
         System.out.print("Press Enter to continue...");
         answer = sc.next();
         new TestThread();
    ========================================
    And TestThead is the following
    ========================================
    import java.io.*;
    import java.net.*;
    public class TestThread extends Thread
    public TestThread() { start(); }
    public void run() {  }
    =====================================
    When I open windows Task Manager, every time a new thread starts and stops, the java.exe increases the Mem Usage.. Its a memory leak!? What is going on in this situation.. If I start a thread and the it stops, and then I start a new thread, why does it use more memory?
    -Brian

    MoveScanner sc = new
    Scanner(System.in);out of the
    loop.Scanner sc = new Scanner(System.in);
    while (true) {
    That won't matter in any meaningful way.
    Every loop iteration creates a new Scanner, but it also makes a Scanner eligible for GC, so the net memory requirement of the program is constant.
    Now, of course, it's possible that the VM won't bother GCing until 64 MB worth of Scanners have been created, but we don't care about that. If we're allowing the GC 64 MB, then we don't care how it uses it or when it cleans it up.

  • Memory leak when using DB_DBT_MALLOC in CDB.

    Hello!
    Recently when I'm using Berkeley DB CDB and set the value Dbt DB_DBT_MALLOC, I noticed that the app's memory keeps growing during the db.get while;
    I found that many codes on the internet use the syntax free(value.get_data()), but when I tried to free the value.get_data(), I always got an interruption error.
    It's OK when I'm using the DB_DBT_USERMEM flag. So I just get very confused about the DB_DBT_MALLOC and DB_DBT_REALLOC.
    And also, I wonder why there's no memory leak problem when we use the single thread BDB. I think BDB cannot free the value.data pointer too in single thread before the app finish using it, then why our apps don't need to free the data afterwards?
    Thanks a lot in advance!

    You should use free() to free the DBT memory allocated via DB_DBT_MALLOC. You should do that after each Db::get() operation (and of course after finishing processing/using the data), otherwise you will loose the pointer to the memory previously allocated if you happen to reuse the DBT with DB_DBT_MALLOC (the data field will point to a new memory address).
    Alternatively you could use DB_DBT_REALLOC or DB_DBT_USERMEM.
    Note that there are small structures that BDB creates in the environment regions that only get freed/cleaned when the environment is closed.
    If you suspect that there is a memory leak inside the BDB code, make sure you rebuild Berkeley DB using the following configuration options (along with the others you use) when building: enable-debug, enable-umrw. Than, run the program under a memory leak detection utility, like Valgrind (allow the application to open and close the BDB environment) and see if there are any leaks reported.
    If memory leaks are reported, then put together a small stand-alone test case program that demonstrates the leaks, and post it here.
    Regards,
    Andrei

  • Memory leak when "Use JSSE SSL" is enabled

    I'm investigating a memory leak that occurs in WebLogic 11g (10.3.3 and 10.3.5) when "Use JSSE SSL" is checked using the Sun/Oracle JVM and JCE/JSSE providers. The leak is reproducible just by hitting the WebLogic Admin Console login page repeatedly using SSL. Running the app server under JProfiler shows byte arrays (among other objects) leaking from the socket handling code. I thought it might be a general problem with the default JSSE provider, but Tomcat does not exhibit the problem.
    Anyone else seeing this?

    Yes, we are seeing it as well on Oracle 11g while running a GWT 2.1.1 application using GWT RPC. Our current fix is to remove the JSSE SSL configuration check, however this might not be an option if you really need it for your application. Have you found anything else about it?

  • Memory leak when using database connectivity toolset and ODBC driver for MySQL

    The "DB Tools Close Connection VI" does not free all the memory used when "DB Tools Open Connection VI" connects to "MySQL ODBC Driver 3.51".
    I have made a small program that only opens and close the connection that I run continously and it's slowly eating all my memory. No error is given from any of the VI's. (I'm using the "Simple Error Handler VI" to check for errors.)
    I've also tried different options in the DSN configuration without any results.
    Attachments:
    TestProgram.vi ‏16 KB
    DSNconfig1.jpg ‏36 KB
    DSNconfig2.jpg ‏49 KB

    Also,
    I've duplicated the OPs example: a simple VI that opens and closes a connection. I can say this definately causes a memory leak.
    Watching the memory:
    10:17AM - 19308K
    10:19AM - 19432K
    10:22AM - 19764K
    10:58AM - 22124K
    Regards,
    Ken
    Attachments:
    OpenCloseConnection.vi ‏13 KB

  • Memory Leak when using Active X and/or Modbus commands

    I am using a piece of hardware connected by ethernet to my PC with its own IP address. The unit sends me data from my test rig (16 differential channels) such as voltage, current, temp, pressure etc.
    I am able to use ActiveX commands to get the data sent back. I am sampling data at about 1 second intervals and graphing it within Labview. The problem is that Labview consumes memory at about 4K every minute. I open a connection to the IP address send the ActiveX command receive the string of characters back and then close the connection (this procedure is repeated every second). The advice given by NI engineers was that it was the limitation of ActiveX communication layers, so I set about using Modbus TCP/IP instead.
    I searched the knowledge base and found an example of using Modbus to communicate to a Festo controller written by an NI engineer. I adapted this to suit reading back one input register starting at address 1 and found it obtained the data from my own piece of hardware. Again, running this in a 1 second interval a memory leak of about 4K/minute occurs.
    Neither approach is satisfactory as tests must run for months at a time without interruption.
    Is the problem therefore not to do with Labview and not the communication layer protocols?
    A solution would be greatly appreciated!!

    I've attached both the ActiveX vi   and the Modbus vi code
    Attachments:
    ActiveX.vi ‏58 KB
    Modbus.zip ‏658 KB

  • Could not connect to ESS when using vpn or remote connection to network.

    Hi,
    Our users could not connect directly to ESS when they are using vpn or dial-up.  The ESS link would ask for user id and password.  There is no problem when they are directly connected to the office network.  The ESS page will display directly when they click on it.  It will not ask for user id and password. We are using Single Sign-On.
    thanks,
    krbas

    I have solved the problem. 
    The problem was solved by including the url of our server in the exception list of the IE proxy settings of VPN.
    Thanks to me. :-D
    Now.... How can I assign points to myself?

  • Makequeues memory leak when using Lexmark Z53

    Behavior with printer switched off while connected to built-in USB port:
    Problem 1: makequeues has a memory leak, starting up with between 3 and 5 MB of RAM. This is done by connecting the printer when logged in and watching via Activity Monitor.
    Initially makequeues has sent 255 Mach messages. Every ~10.5 seconds, makequeues sends 59 more messages and gets 53 in reply. With each send/receive cycle, its RAM usage grows by 8 KB, a rate of 780 kiB/min.
    Problem 2: The process is started each time the same printer is reconnected.
    Symptoms: Disconnecting the printer doesn't let the process exit (any instance). If left alone, the memory usage cycle continues.
    The memory leak caught my attention after taking up over a half-gigabyte of RAM when I left the Mac running over night.
    Resolution:
    (1) Disconnect USB cable
    (2) Kill each instance of the process
    Results:
    (1) The process launches after reconnection of the printer with 996 KB of RAM, immediately having sent 60 Mach messages and received 56.
    (2) During this run time, the process may use less and less RAM, down to a minimum of 912.
    (3) After sending 64 more messages without replies, one every 4 seconds, the process exits after having sent a total of 120 messages.
    (4) This behavior (1 through 3) is the same for each process launched as a result of printer reconnection.
    This behavior isn't shown during Safe Mode boot - makequeues never starts up as a result of printer connection.
    PowerMac G4 QuickSilver 2001 733Mhz

    If this is meant to be a bug report, please file a bug report in the proper place. This is a user to user discussion forum.
    As to the source of running 'makequeues' (/System/Library/SystemConfiguration/PrinterNotifications.bundle/Contents/MacOS /makequeues), I would look at the Lexmark software. I currently have two Epson printers connected via USB with CUPS running. I see no process 'makequeues' appearing.
    Matt

  • Memory leak when using JMS Cache Coordination

    We have two Weblogic Server 8.1 processes running Java 1.4.2 on Solaris using TOPLink 10.1.3 with JMS Cache Coordination. We observe that heap is filled with uncollectable instances of TOPLink-mapped classes. In our production system, under full load, this completely fills a 3.6 GB heap in 30 minutes, requiring a process restart. The problem goes away if we turn off cache coordination.
    It appears that these instances are UnitOfWork or some other kind of toplink-created clone. We have not yet been able to successfully analyse this problem with a heap profiler.
    Has anyone else experienced this this problem? Any suggestions for debugging?
    Thanks in advance.

    We do set the command manager to asychronous mode. (Our debug tracing confirms that the CommandPropagator method asynchronousPropagateCommand() is invoked, not synchronousPropagateCommand().) We started with asynchronous messaging and actually have never tried running in a synchronous mode.
    The Java bug I referenced in my last post (which I have confirmed with a stand-alone test case) indicates that, for Java 1.4.2 and earlier, is is never ok to not start() a Thread -- it will always produce a memory leak. So I am quite surprised than anyone on a pre-1.5 Java had ever had success with synchronous cache coordination messaging. Do you think it is possible all of the pre-release tests and existing customers installations of 10.1.3 cache coordination are using Java 1.5 ?!
    Our heap profiling indicates that the instances of CommandPropagator which are pinned (i.e., those not started) are allocated in the run() method of CommandPropagator itself. So it seems that the instance of CommandPropagator, after it is started, allocates another one in its run method. Looking at the bytecodes for the run() method (using javap -c) shows that in one branch of the code a second CommandPropagator is indeed allocated and then handed off to the launchContainerRunnable method of a ServerPlatform.
    Since these secondary CommandPropagators are the ones which are not started, we have looked into the WebLogic_8_1_Platform class and found that its implementation launchContainerRunnable (inherited from ServerPlatformBase) does a
    new Thread(runnable).start()where the argument runnable is the CommandPropagator.
    So the CommandPropagator itself is not started(), but is instead run an another Thread.
    We are experimenting with a custom ServerPlatform which overrides launchContainerRunnable:
        server.setServerPlatform(
            new WebLogic_8_1_Platform(server)
                public void launchContainerRunnable(Runnable runnable)
                   if (runnable instanceof Thread) ((Thread)runnable).start();
                   else super.launchContainerRunnable(runnable);
        );  This starts the argument Runnable directly if it is actually a Thread. Our early, small-scale tests indicate that this change eliminates the memory leak. We are testing now in a production-replicate environment under full load.
    But this feels like a hack. I have no idea what TOPLink behavior other than cache coordination flows through this method. Does anyone know what else this ServerPlatform method is used for? Is there a better way to do this? Are there any adverse conquences to our hack? Any suggestions would be appreciated.
    Thanks in advance.

  • HUGE memory leak when using MP3

    I downloaded a new FME 2.0 and noticed they added an option
    to stream in MP3 format. DO NOT USE that mode (!). If you start
    streaming in MP3 format you will get a huge memory leak on the
    client side. Your browser starts eating memory like crazy and it
    will bury your machine withing an hour or two by taking all the
    memory available. I have proved it on several machines, notifed
    Adobe. They confirmed it as a bug and promised to fix in the future
    releases. Nice, huh? and what people are supposed to do with the
    current build?

    A new build 2.0.1.1114 has been posted . Please try and let
    us know if you face this issue with this build.

  • I am experiencing a memory leak when using ajax calls, only in Firefox 4.

    I have been developing an intranet application that uses jquery's ajax function to refresh certain parts of a page. I have tested this application in Firefox 4, IE9 and Chrome 11 on a Windows 7 64-bit machine.
    Only Firefox is seeing an increase in memory usage, leading me to believe there may be an issue with how Firefox is handling these types of calls.
    I have been investigating this issue for two solid days now and have come across solutions to similar issues for slightly different configurations, but none have solved the problem I am experiencing.
    The software and versions I have been using are:
    Windows 7 64-bit
    Firefox 4.0.1
    jQuery 1.6.1
    Any assistance or even a clarification that the issue exists would be helpful.

    The behaviour you describe is strange. Something to try: Open a refernce to the file one time before entering the loop, then inside the loop use that reference to do all the writing. Finally close the reference when the loop completes.If this doesn't work, post your code in 6.0 format and I'll be glad to look at it.Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Memory leak when using worker

    Set byteArray as sharedProperty.
    Write data to byteArray.
    Set byteArray length to zero.
    Clear byteArray.
    Memory use is bigger and bigger.
    Bug#3555791

    I have no new information at this time.  The bug is open and assigned.  We'll list the bugfix in the announcement in the Beta Forums and will update the bugbase when the issue is resolved.
    Thanks,
    Jeromie

  • JVM - Microsoft JScript.dll Memory Leak when using Java Web Start

    I have posted before a topic related to this matter, although now I have a lot more information about what is going on (although still no fix for it). This is the link to the earlier post, containing JVM HOTSPOT EXCEPTION_ACCESS_VIOLATION
    http://forum.java.sun.com/thread.jspa?threadID=5116970&messageID=9402346#9402346
    The issue is that after deploying on Windows XP a multi threaded, memory consuming (40 Mb) Java Swing application using Java Web Start, and the standard web page (IE6) reference to the jnlp file to launch the installation from Tomcat, each time this application gets executed by double clicking on the desktop icon (with no IE6 interaction at all), calls start being made between jvm.dll (sun) and jscript.dll (Microsoft IE), these interactions never release the memory they consume, so after a period of using the application it crashes unavoidably. If I execute exactly the same application launching it from command line (no Web Start nor IE6 browser involved), the application works nicely all the time, no problem at all.
    My question is: does anyone know why these calls to jscript.dll are even being made during web start application execution? As said, it's a desktop Swing app, it does not need the browser at all, and jscript.dll is a IE dll. Anyone can advice on how these interactions can be eliminated?
    I've worked with Microsoft support for two weeks on this issue and all they have said is that it is a Sun problem and they can not help further.
    Thanks
    Jes�s

    Microsoft suggested (among others) two test.
    1- Install IE7 and run the application
    2-Install Firefox and run the application
    Results were:
    For 1: The application does not crash, apparently IE7 has a newer version of Jscript.dll that, in Microsoft words, handles better 'bad software', refering to 'bad software' to the java virtual machine I guess. Looking at the performance manager you can see memory goes down as with IE6, but at some point memory is released and the app. does not crash. Anyway is still is uncertain to me why Jscript.dll is getting involved at all. Although this solves the problem is not a viable solution for us, because I work in a corporation where changes such as upgrading the IE version on a large number of desktop can not be justified just because one app. is crashing, and it would take a long validation time anyway before the upgrade can proceed.
    For 2: I did install Firefox in a machine and the application still crashed, but it is true I did not uninstall IE6, so the conflictive Jscript.dll was still sitting at system32. Quite possibly the crash would not happen if that dll wasn't there at all.
    Thanks
    Jes�s

Maybe you are looking for