Menu

native library and AWT

Anonymous
2013-05-16
2013-06-18
  • Anonymous

    Anonymous - 2013-05-16

    In VideoCapture, it says

        // on 32 bit osx a deadlock seems to occur between the
        // initialisation of the native library and AWT. This
        // seems to fix it...
    

    I saw the same issue on my 64 bit osx MacBook and noticed that if I load the AWT native library first(e.g. create a window before calling VideoCapture), then it doesn't have the problem.

    I'm wondering what was the work around in OpenIMAJ and since I'm still seeing it in osx, was this issue really fixed?(sorry can't tell from svn log).

    Thanks,

    Anthony

     
  • Jonathon Hare

    Jonathon Hare - 2013-06-18

    Looking back through the logs I would guess that the fix was to force the native library to load immediately in the constructor by calling VideoCapture.getVideoDevices(). As time progressed, the constructor was changed to make use of the output of that call to get the default device, rather than just ignoring it.

    I'm fairly sure the issue is fixed - certainly the two of us using it on a daily basis on 64-bit OSX haven't seen any problems irrespective of whether a window is created before using VideoCapture. If you're having repeatable problems it would be helpful to know some details about what you're doing and what version of java you're using.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.