← Back to team overview

sikuli-driver team mailing list archive

[Bug 1231783] Re: [1.0.1] Insufficient Memory in OpenCV after 8 hour script operation

 

I don't believe so.  I know I considered it at one point but abandoned
the idea.  I will review the code tonight to double check.

As far as I remember all my interactions are based on creating a pattern
object, assigning the pattern object to a variable and then using the
variable.  There may be a hand full of spots where a pattern object is
acted on directly.

All images are taken using Windows Snipping Tool.  So nothing should be
even remotely close to 2 gigs.

I am running a loop within a loop for a very long time.  Something like:

For 100,000
        For 100,000
                  Do Stuff

So I have looked into garbage collection because at one point I was
getting errors that seemed to indicate pattern objects were not being
disposed of correctly.  But that error went away after cleaning up the
code.  I mention this only because of the 2GB data size you mention.

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1231783

Title:
  [1.0.1] Insufficient Memory in OpenCV after 8 hour script operation

Status in Sikuli:
  In Progress

Bug description:
  I have a script that sometimes hits the following error:

  OpenCV Error: Insufficient memory (Failed to allocate 5714572 bytes) in unknown function, file ..\..\..\..\ocv\opencv\src\cxcore\cxalloc.cpp, line 52
  #
  # A fatal error has been detected by the Java Runtime Environment:
  #
  #  EXCEPTION_UNCAUGHT_CXX_EXCEPTION (0xe06d7363) at pc=0x766bc41f, pid=6940, tid=5460
  #
  # JRE version: 7.0_25-b17
  # Java VM: Java HotSpot(TM) Client VM (23.25-b01 mixed mode, sharing windows-x86 )
  # Problematic frame:
  # C  [KERNELBASE.dll+0xc41f]  RaiseException+0x58
  #
  # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
  #
  # An error report file with more information is saved as:
  # D:\Misc\Scripts\FantaScripts.sikuli\hs_err_pid6940.log
  #
  # If you would like to submit a bug report, please visit:
  #   http://bugreport.sun.com/bugreport/crash.jsp
  # The crash happened outside the Java Virtual Machine in native code.
  # See problematic frame for where to report the bug.

  I run the script daily.  It can happen very soon after the script
  starts (this morning it too 15 min).  But usually the script runs for
  8+ hours no problem.  This may be a problem with garbage collection;
  but jython leaves that up to Java.  So I am not certain about how I
  could improve the garbage collection.

  OS:
  Win 7 x64

  Sikuli X ver:
  1.0rc3 (r905)

  PyDev ver:
  2.8.2.2013090511

  Eclipse Ver
  Eclipse Standard/SDK

  Version: Kepler Release
  Build id: 20130614-0229

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1231783/+subscriptions


References