Git Product home page Git Product logo

Comments (8)

vonnieda avatar vonnieda commented on July 24, 2024

If someone can come up with working fix for this, I'd be happy to integrate it :) Otherwise it will take a while until I can find some time to do this work on Windows.

from opencv.

phrack avatar phrack commented on July 24, 2024

My project can probably spend some time on a PR for this since it's really annoying for our users. Packaging binaries for Windows/Linux/Mac less so.

from opencv.

vonnieda avatar vonnieda commented on July 24, 2024

That would be awesome! I am planning to work on new binaries soon - just swamped with a cross country move right now and don't have time.

from opencv.

phrack avatar phrack commented on July 24, 2024

I just did that two weeks ago. I understand. I will check into OpenCV 3.1 stability too.

from opencv.

phrack avatar phrack commented on July 24, 2024

I've done a little bit of experimenting here and using a custom classloader that will get garbage collected, as the other repo issue suggests, just isn't going to be reliable. You can't guarantee when the garbage collector will actually run even with System.gc or how extensive the collection will be. In fact, System.gc, which is the only real illusion of control over garbage collection, doesn't even have to be implemented by a JVM.

I am going to propose a formalization of a solution I use in my project that uses this OpenCV package:

  1. On Windows, prepend the folder created to hold the OpenCV binaries with opencv_ so that it's easy to find.
  2. On Windows, do not try to delete the folder on shutdown.
  3. On Windows, on startup look for folders that start with opencv_ and try to delete them otherwise the drive fills up with temporary OpenCV instances. If the delete fails, log it but move on without an exception. Failure to delete could simply mean another application on the same system is using the library.

from opencv.

vonnieda avatar vonnieda commented on July 24, 2024

Note: The JNA loader does something similar, but takes it a step further by adding a marker indicating which file should be deleted. I like this method and we should adopt it: https://github.com/java-native-access/jna/blob/master/src/com/sun/jna/Native.java#L1192

from opencv.

mgineer85 avatar mgineer85 commented on July 24, 2024

hi, just looked through the project and found an commit addressing the isse described here and I in openpnp/#699:
4697860#diff-cc2450ddb977c98e67b0eaa70c4aaa92R372

the commit was merged but I can't find the code in the local copy my eclipse is using. why is this?
unbenannt
this error prevents the junit-tests on windows to fail and abort early ...

from opencv.

vonnieda avatar vonnieda commented on July 24, 2024

Believe this was fixed in #9. If still experiencing please reopen.

from opencv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.