We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
jMyron settings crash (Read 1671 times)
jMyron settings crash
Jun 12th, 2008, 2:37am
 
Does anyone know why jMyron crashes when settings() is called?

I'm using it on an intel mac and I need to access the settings dialog in order to turn off auto exposure.

Is there a way to change these sorts of settings in code? I'm trying to do some background subtraction stuff, but the auto exposure is screwing things up. I'm using the built in iSight of my MacBook Pro at the moment, but I want to be able to use external cameras as well.
Re: jMyron settings crash
Reply #1 - Aug 7th, 2008, 8:57pm
 
CongoZombie wrote on Jun 12th, 2008, 2:37am:
Does anyone know why jMyron crashes when settings() is called


Unfortunately not. I had been assuming that the pre-compiled jnilib for Intel macs (see http://www.jibberia.com/projects/) might cause the problem (it basically works, but is not up to date with the latest jMyron). But when I succesfully compiled jMyron from SVN in order to use the latest jar and jnilib, I ran into the same problem. The settings application included in the SVN checkout works, though. Consequently, it might be most reasonable to file a bug report for jMyron.
Re: jMyron settings crash
Reply #2 - Aug 10th, 2008, 3:27am
 
I didn't think that jMyron was even still being actively developed... I'll have to try the SVN build and see if I can get to the bottom of the settings crash.
Re: jMyron settings crash
Reply #3 - Aug 10th, 2008, 7:31am
 
BTW, jMyron from SVN does not compile out of the box on Leopard but that's more or less easily solved: you need to edit ezcam/Makefile (add '-nd' to the wget parameters, at least for the wget from MacPorts) and source/myron.cpp (add '#include <cstring>'). So you might be right about jMyron being not actively developed. At least not _very_ actively. Wink
Re: jMyron settings crash
Reply #4 - Mar 25th, 2009, 12:41pm
 
Hi,

since I ran into the same problem of settings() crashing and going through this thread, I want to post what I did to get the thing working on Mac OS X 10.4 Intel. Downloading the pre-compiled Intel binary from the described URL does not work as was pointed out.

Download JMyron from SVN

$ svn co https://webcamxtra.svn.sourceforge.net/svnroot/webcamxtra webcamxtra
$ cd webcamxtra/

since I don't have wget installed and I'm lazy to figure out how to do it with curl, I just removed the text

 wget -nc http://prdownloads.sourceforge.net/portvideo/PortVideoSDL-0.3.src.zip

from ezcam/Makefile and instead downloaded http://prdownloads.sourceforge.net/portvideo/PortVideoSDL-0.3.src.zip directly with a webbrowser and placed it into ezcam/extern

$ cd ezcam/
$ make
$ cd ..

Replace source/myron.cpp with the one from http://piratestudios.com/v4ljmyron/v4ljmyron-20080203.tgz !

$ cd source/
$ make

Assuming that you have installed JMyron previously in Processing's library folder, now copy the newly built JMyron.jar and libJMyron.jnilib to Processing.app/Contents/Resources/Java/libraries/JMyron/library (replace old files there)

ciao, -sciss-
Re: jMyron settings crash
Reply #5 - Mar 25th, 2009, 12:45pm
 
well, I just figured, it still crashes often, but at least it works in one out of four cases, so if you place m.settings() in your setup() method, you can at least get the sketch running at some point Wink
Re: jMyron settings crash
Reply #6 - Mar 25th, 2009, 8:56pm
 
The problem was theading (AWT versus AppKit). I have created a patch:

http://sourceforge.net/mailarchive/forum.php?thread_name=A7CDA720-5EBF-4F18-8F01-989BDF9333E8%40sciss.de&forum_name=webcamxtra-development

or if you want to download a binary (temporarily available):

http://sciss.de/test/JMyron.zip


cheers, -sciss-
Page Index Toggle Pages: 1