Giter VIP home page Giter VIP logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 15, 2024
It seems to crash trying to free a CallBack object somewhere.. the only thing I 
can
see is the "new JavaCvErrorCallback().redirectError();" line. Can you try to 
remove
this line and see what happens? Thanks

Samuel

Original comment by [email protected] on 19 May 2010 at 4:33

from javacv.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 15, 2024
That appears to have fixed it. I will reopen if it begins happening again, but, 
for now, it appears to run perfectly.

Thank you very much. 

Original comment by [email protected] on 19 May 2010 at 5:38

from javacv.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 15, 2024
Ok, that's good, but it should not happen with the error callback in place 
either...
What version of JNA are you using?

Samuel

Original comment by [email protected] on 20 May 2010 at 12:37

from javacv.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 15, 2024
3.2.4 (b0)


Here is the Manifest file:

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.1
Created-By: 1.5.0_20-141 (Apple Inc.)
Main-Class: com.sun.jna.Native

Name: com/sun/jna/
Implementation-Title: com.sun.jna
Implementation-Vendor: JNA Development Team
Implementation-Version: 3.2.4 (b0)
Specification-Title: Java Native Access (JNA)
Specification-Vendor: JNA Development Team
Specification-Version: 3

Original comment by [email protected] on 20 May 2010 at 12:45

from javacv.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 15, 2024
Hum, maybe it has been fixed with 3.2.5? Let me know if it causes the same 
issue with
3.2.5, and I will look further into it, thanks

Samuel

Original comment by [email protected] on 20 May 2010 at 12:47

from javacv.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 15, 2024
Still had the same problem with 3.2.5; I have attached the dump. 

For now, I am going to just comment the line out since this is only for 
research. If you want, I can continue 
testing new versions of JavaCV given that I can easily recreate the crash. I 
cannot guarantee immediate 
responses, but I will try to get to it as soon as I can. Also, I will probably 
be putting my entire project on Google 
code at the end of the quarter, so you can have it then for your own testing.

Original comment by [email protected] on 20 May 2010 at 1:26

Attachments:

from javacv.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 15, 2024
I believe it has to do with the "new JavaCvErrorCallback().redirectError();" 
being called every time the function is 
called (about 5 times). I now have it placed in a constructor that is only 
called once, and I don't seem to be 
having the problem anymore. I may try creating several of these objects and see 
if that reproduces the problem, 
but that may not be until later this week.

Original comment by [email protected] on 22 May 2010 at 2:37

from javacv.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 15, 2024
Thanks for the followup. I figured out that the crash occurs because of a bug 
in JNA
with the garbage collection of a Callback object:
https://jna.dev.java.net/servlets/ReadMsg?list=users&msgNo=4009
But as you say, JavaCvErrorCallback is supposed to be created once and never get
garbage collected, so it should work fine yes.. marking this issue as done, and 
we'll
see if I find the related problem in JNA :)

Samuel

Original comment by [email protected] on 22 May 2010 at 6:43

  • Changed state: Done

from javacv.

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.