From: Jose A. de F. <jos...@ms...> - 2006-07-17 17:02:09
|
Hello! I am using the stable version (1.5.1). I have two different USB cameras. I am testing the "vidl2_v4l_example" example program (It comes with the VxL library). It works fine with the first camera. But... with the second... I get a error message like this: name = Aiptek PocketDV3100+ type = 1 channels = 1 maxwidth = 464 maxheight = 480 vp.brightness = 33024 p.brightness = 32768 vp.colour = 2048 p.colour = 4096 vidl2_v4l_example: /usr/local/vxl/vxl-1.5.1/contrib/brl/bbas/vidl2/vidl2_v4l_istream.cxx:84: bool vidl2_v4l_istream::open(const std::string&): Assertion `sp_ret==true' failed. The problem seems to be in the camera configuration ("vidl2_v4l_istream::set_params" function). The program can't set the camera to a special mode (brightness and colour). Is there anything than I can do to fix this problem? Regards, Jose Franca |
From: Brendan M. <mc...@cs...> - 2006-07-17 21:22:49
|
On Mon, 2006-07-17 at 17:01 +0000, Jose Alexandre de Franca wrote: > Hello! > > I am using the stable version (1.5.1). I have two different USB cameras. I > am testing the "vidl2_v4l_example" example program (It comes with the VxL > library). It works fine with the first camera. But... with the second... I > get a error message like this: > > name = Aiptek PocketDV3100+ > type = 1 > channels = 1 > maxwidth = 464 > maxheight = 480 > vp.brightness = 33024 > p.brightness = 32768 > vp.colour = 2048 > p.colour = 4096 > vidl2_v4l_example: > /usr/local/vxl/vxl-1.5.1/contrib/brl/bbas/vidl2/vidl2_v4l_istream.cxx:84: > bool vidl2_v4l_istream::open(const std::string&): Assertion `sp_ret==true' > failed. > > > The problem seems to be in the camera configuration > ("vidl2_v4l_istream::set_params" function). The program can't set the camera > to a special mode (brightness and colour). Is there anything than I can do > to fix this problem? Hi Jose. Yes please, if you can fix the problem that's great. vidl2_v4l_istream is my fault if you like. Unfortunately, it is almost impossible for me to debug it for a random camera that I don't have. Are you able to debug the code and tell me exactly where the "false" result happens in the set_params function? > > Regards, > Jose Franca > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Vxl-users mailing list > Vxl...@li... > https://lists.sourceforge.net/lists/listinfo/vxl-users -- Cheers, Brendan. ---------------------------------------------------------------------------- Brendan McCane Email: mc...@cs... Department of Computer Science Phone: +64 3 479 8588/8578. University of Otago Fax: +64 3 479 8529 Box 56, Dunedin, New Zealand. |
From: Jose A. de F. <jos...@ms...> - 2006-07-17 21:32:59
|
Hi! The problem happens in these two blocks. if (vp.brightness != p.brightness_) { success = false; vcl_cerr << "vp.brightness = " << vp.brightness << vcl_endl; vcl_cerr << "p.brightness = " << p.brightness_ << vcl_endl; } if (vp.colour != p.colour_) { success = false; vcl_cerr << "vp.colour = " << vp.colour << vcl_endl; vcl_cerr << "p.colour = " << p.colour_ << vcl_endl; } To my camera, vp.brightness = 33024 and p.brightness = 32768. Besides, vp.colour = 2048 and p.colour = 4096. Jose >From: Brendan McCane <mc...@cs...> >Reply-To: mc...@cs... >To: Jose Alexandre de Franca <jos...@ms...> >CC: vxl...@li... >Subject: Re: [Vxl-users] Another VIDL2 problem!!! >Date: Tue, 18 Jul 2006 09:22:35 +1200 > >On Mon, 2006-07-17 at 17:01 +0000, Jose Alexandre de Franca wrote: > > Hello! > > > > I am using the stable version (1.5.1). I have two different USB >cameras. I > > am testing the "vidl2_v4l_example" example program (It comes with the >VxL > > library). It works fine with the first camera. But... with the second... >I > > get a error message like this: > > > > name = Aiptek PocketDV3100+ > > type = 1 > > channels = 1 > > maxwidth = 464 > > maxheight = 480 > > vp.brightness = 33024 > > p.brightness = 32768 > > vp.colour = 2048 > > p.colour = 4096 > > vidl2_v4l_example: > > >/usr/local/vxl/vxl-1.5.1/contrib/brl/bbas/vidl2/vidl2_v4l_istream.cxx:84: > > bool vidl2_v4l_istream::open(const std::string&): Assertion >`sp_ret==true' > > failed. > > > > > > The problem seems to be in the camera configuration > > ("vidl2_v4l_istream::set_params" function). The program can't set the >camera > > to a special mode (brightness and colour). Is there anything than I can >do > > to fix this problem? > >Hi Jose. Yes please, if you can fix the problem that's great. >vidl2_v4l_istream is my fault if you like. Unfortunately, it is almost >impossible for me to debug it for a random camera that I don't have. Are >you able to debug the code and tell me exactly where the "false" result >happens in the set_params function? > > > > > Regards, > > Jose Franca > > > > > > > > > > >------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, >security? > > Get stuff done quickly with pre-integrated technology to make your job >easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache >Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Vxl-users mailing list > > Vxl...@li... > > https://lists.sourceforge.net/lists/listinfo/vxl-users >-- >Cheers, > >Brendan. >---------------------------------------------------------------------------- >Brendan McCane Email: mc...@cs... >Department of Computer Science Phone: +64 3 479 8588/8578. >University of Otago Fax: +64 3 479 8529 >Box 56, Dunedin, New Zealand. > > > >------------------------------------------------------------------------- >Take Surveys. Earn Cash. Influence the Future of IT >Join SourceForge.net's Techsay panel and you'll get the chance to share >your >opinions on IT & business topics through brief surveys -- and earn cash >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >_______________________________________________ >Vxl-users mailing list >Vxl...@li... >https://lists.sourceforge.net/lists/listinfo/vxl-users |
From: Brendan M. <mc...@cs...> - 2006-07-17 22:30:59
|
Hi Jose, Well that's very strange. Basically the construction and set_params code does this: in constructor: get_current_camera_params(p) in set_params: set_camera_params_to(p) get_current_camera_params(vp) return (p==vp) Are you sure that's the problem? I have just upgraded to fed 5 and have tried the vidl2_v4l_example and got exactly the same output you initially reported. I then compiled with -g so I could debug it. Hey presto, the problem goes away. This implies that there's probably a memory overrun in one of the calls. I then recompiled a Release version and similarly had no problem. Actually I'm having difficulty reproducing the problem. Could you try recompiling either with debug or with release and see if your problems persist. On Mon, 2006-07-17 at 21:32 +0000, Jose Alexandre de Franca wrote: > Hi! > > The problem happens in these two blocks. > > if (vp.brightness != p.brightness_) > { > success = false; > vcl_cerr << "vp.brightness = " << vp.brightness << vcl_endl; > vcl_cerr << "p.brightness = " << p.brightness_ << vcl_endl; > } > > if (vp.colour != p.colour_) > { > success = false; > vcl_cerr << "vp.colour = " << vp.colour << vcl_endl; > vcl_cerr << "p.colour = " << p.colour_ << vcl_endl; > } > > To my camera, vp.brightness = 33024 and p.brightness = 32768. Besides, > vp.colour = 2048 and p.colour = 4096. > > Jose > > >From: Brendan McCane <mc...@cs...> > >Reply-To: mc...@cs... > >To: Jose Alexandre de Franca <jos...@ms...> > >CC: vxl...@li... > >Subject: Re: [Vxl-users] Another VIDL2 problem!!! > >Date: Tue, 18 Jul 2006 09:22:35 +1200 > > > >On Mon, 2006-07-17 at 17:01 +0000, Jose Alexandre de Franca wrote: > > > Hello! > > > > > > I am using the stable version (1.5.1). I have two different USB > >cameras. I > > > am testing the "vidl2_v4l_example" example program (It comes with the > >VxL > > > library). It works fine with the first camera. But... with the second... > >I > > > get a error message like this: > > > > > > name = Aiptek PocketDV3100+ > > > type = 1 > > > channels = 1 > > > maxwidth = 464 > > > maxheight = 480 > > > vp.brightness = 33024 > > > p.brightness = 32768 > > > vp.colour = 2048 > > > p.colour = 4096 > > > vidl2_v4l_example: > > > > >/usr/local/vxl/vxl-1.5.1/contrib/brl/bbas/vidl2/vidl2_v4l_istream.cxx:84: > > > bool vidl2_v4l_istream::open(const std::string&): Assertion > >`sp_ret==true' > > > failed. > > > > > > > > > The problem seems to be in the camera configuration > > > ("vidl2_v4l_istream::set_params" function). The program can't set the > >camera > > > to a special mode (brightness and colour). Is there anything than I can > >do > > > to fix this problem? > > > >Hi Jose. Yes please, if you can fix the problem that's great. > >vidl2_v4l_istream is my fault if you like. Unfortunately, it is almost > >impossible for me to debug it for a random camera that I don't have. Are > >you able to debug the code and tell me exactly where the "false" result > >happens in the set_params function? > > > > > > > > Regards, > > > Jose Franca > > > > > > > > > > > > > > > > >------------------------------------------------------------------------- > > > Using Tomcat but need to do more? Need to support web services, > >security? > > > Get stuff done quickly with pre-integrated technology to make your job > >easier > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > >Geronimo > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > _______________________________________________ > > > Vxl-users mailing list > > > Vxl...@li... > > > https://lists.sourceforge.net/lists/listinfo/vxl-users > >-- > >Cheers, > > > >Brendan. > >---------------------------------------------------------------------------- > >Brendan McCane Email: mc...@cs... > >Department of Computer Science Phone: +64 3 479 8588/8578. > >University of Otago Fax: +64 3 479 8529 > >Box 56, Dunedin, New Zealand. > > > > > > > >------------------------------------------------------------------------- > >Take Surveys. Earn Cash. Influence the Future of IT > >Join SourceForge.net's Techsay panel and you'll get the chance to share > >your > >opinions on IT & business topics through brief surveys -- and earn cash > >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > >_______________________________________________ > >Vxl-users mailing list > >Vxl...@li... > >https://lists.sourceforge.net/lists/listinfo/vxl-users > > -- Cheers, Brendan. ---------------------------------------------------------------------------- Brendan McCane Email: mc...@cs... Department of Computer Science Phone: +64 3 479 8588/8578. University of Otago Fax: +64 3 479 8529 Box 56, Dunedin, New Zealand. |
From: Jose A. de F. <jos...@ms...> - 2006-07-19 01:17:10
|
Hi, Brendan! I have just compiled VxL with - g flag. The problem persists exactly as before. Soon afterwards, I compiled (again) without the - g flag and... try to guess... The problem persists. I don't know what can be. Here is the output. name = Aiptek PocketDV3100+ type = 1 channels = 1 maxwidth = 464 maxheight = 480 vp.brightness = 33024 p.brightness = 32768 vp.colour = 2048 p.colour = 4096 vidl2_v4l_example: /usr/local/vxl/vxl-1.5.1/contrib/brl/bbas/vidl2/vidl2_v4l_istream.cxx:84: bool vidl2_v4l_istream::open(const std::string&): Assertion `sp_ret==true' failed. >From: Brendan McCane <mc...@cs...> >Reply-To: mc...@cs... >To: Jose Alexandre de Franca <jos...@ms...> >CC: vxl...@li... >Subject: Re: [Vxl-users] Another VIDL2 problem!!! >Date: Tue, 18 Jul 2006 10:30:53 +1200 > >Hi Jose, > >Well that's very strange. Basically the construction and set_params code >does this: >in constructor: >get_current_camera_params(p) > >in set_params: >set_camera_params_to(p) >get_current_camera_params(vp) >return (p==vp) > >Are you sure that's the problem? I have just upgraded to fed 5 and have >tried the vidl2_v4l_example and got exactly the same output you >initially reported. I then compiled with -g so I could debug it. Hey >presto, the problem goes away. This implies that there's probably a >memory overrun in one of the calls. I then recompiled a Release version >and similarly had no problem. Actually I'm having difficulty reproducing >the problem. Could you try recompiling either with debug or with release >and see if your problems persist. > >On Mon, 2006-07-17 at 21:32 +0000, Jose Alexandre de Franca wrote: > > Hi! > > > > The problem happens in these two blocks. > > > > if (vp.brightness != p.brightness_) > > { > > success = false; > > vcl_cerr << "vp.brightness = " << vp.brightness << vcl_endl; > > vcl_cerr << "p.brightness = " << p.brightness_ << vcl_endl; > > } > > > > if (vp.colour != p.colour_) > > { > > success = false; > > vcl_cerr << "vp.colour = " << vp.colour << vcl_endl; > > vcl_cerr << "p.colour = " << p.colour_ << vcl_endl; > > } > > > > To my camera, vp.brightness = 33024 and p.brightness = 32768. Besides, > > vp.colour = 2048 and p.colour = 4096. > > > > Jose > > > > >From: Brendan McCane <mc...@cs...> > > >Reply-To: mc...@cs... > > >To: Jose Alexandre de Franca <jos...@ms...> > > >CC: vxl...@li... > > >Subject: Re: [Vxl-users] Another VIDL2 problem!!! > > >Date: Tue, 18 Jul 2006 09:22:35 +1200 > > > > > >On Mon, 2006-07-17 at 17:01 +0000, Jose Alexandre de Franca wrote: > > > > Hello! > > > > > > > > I am using the stable version (1.5.1). I have two different USB > > >cameras. I > > > > am testing the "vidl2_v4l_example" example program (It comes with >the > > >VxL > > > > library). It works fine with the first camera. But... with the >second... > > >I > > > > get a error message like this: > > > > > > > > name = Aiptek PocketDV3100+ > > > > type = 1 > > > > channels = 1 > > > > maxwidth = 464 > > > > maxheight = 480 > > > > vp.brightness = 33024 > > > > p.brightness = 32768 > > > > vp.colour = 2048 > > > > p.colour = 4096 > > > > vidl2_v4l_example: > > > > > > > >/usr/local/vxl/vxl-1.5.1/contrib/brl/bbas/vidl2/vidl2_v4l_istream.cxx:84: > > > > bool vidl2_v4l_istream::open(const std::string&): Assertion > > >`sp_ret==true' > > > > failed. > > > > > > > > > > > > The problem seems to be in the camera configuration > > > > ("vidl2_v4l_istream::set_params" function). The program can't set >the > > >camera > > > > to a special mode (brightness and colour). Is there anything than I >can > > >do > > > > to fix this problem? > > > > > >Hi Jose. Yes please, if you can fix the problem that's great. > > >vidl2_v4l_istream is my fault if you like. Unfortunately, it is almost > > >impossible for me to debug it for a random camera that I don't have. >Are > > >you able to debug the code and tell me exactly where the "false" result > > >happens in the set_params function? > > > > > > > > > > > Regards, > > > > Jose Franca > > > > > > > > > > > > > > > > > > > > > > > >------------------------------------------------------------------------- > > > > Using Tomcat but need to do more? Need to support web services, > > >security? > > > > Get stuff done quickly with pre-integrated technology to make your >job > > >easier > > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > > >Geronimo > > > > >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > > _______________________________________________ > > > > Vxl-users mailing list > > > > Vxl...@li... > > > > https://lists.sourceforge.net/lists/listinfo/vxl-users > > >-- > > >Cheers, > > > > > >Brendan. > > > >---------------------------------------------------------------------------- > > >Brendan McCane Email: mc...@cs... > > >Department of Computer Science Phone: +64 3 479 8588/8578. > > >University of Otago Fax: +64 3 479 8529 > > >Box 56, Dunedin, New Zealand. > > > > > > > > > > > > >------------------------------------------------------------------------- > > >Take Surveys. Earn Cash. Influence the Future of IT > > >Join SourceForge.net's Techsay panel and you'll get the chance to share > > >your > > >opinions on IT & business topics through brief surveys -- and earn cash > > > >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > >_______________________________________________ > > >Vxl-users mailing list > > >Vxl...@li... > > >https://lists.sourceforge.net/lists/listinfo/vxl-users > > > > >-- >Cheers, > >Brendan. >---------------------------------------------------------------------------- >Brendan McCane Email: mc...@cs... >Department of Computer Science Phone: +64 3 479 8588/8578. >University of Otago Fax: +64 3 479 8529 >Box 56, Dunedin, New Zealand. > > |
From: Brendan M. <mc...@cs...> - 2006-07-19 02:41:29
|
Hi Jose, No idea what the problem is then. So there are two possibilities - replace the assert with a warning and see if things continue OK; or send the camera to me and I'll try to debug it for you:-) I suggest the former course of action (and will probably change the cvs version to that at some point). On Wed, 2006-07-19 at 01:16 +0000, Jose Alexandre de Franca wrote: > Hi, Brendan! > > I have just compiled VxL with - g flag. The problem persists exactly as > before. Soon afterwards, I compiled (again) without the - g flag and... try > to guess... The problem persists. I don't know what can be. > > Here is the output. > > name = Aiptek PocketDV3100+ > type = 1 > channels = 1 > maxwidth = 464 > maxheight = 480 > vp.brightness = 33024 > p.brightness = 32768 > vp.colour = 2048 > p.colour = 4096 > vidl2_v4l_example: > /usr/local/vxl/vxl-1.5.1/contrib/brl/bbas/vidl2/vidl2_v4l_istream.cxx:84: > bool vidl2_v4l_istream::open(const std::string&): Assertion `sp_ret==true' > failed. > > > >From: Brendan McCane <mc...@cs...> > >Reply-To: mc...@cs... > >To: Jose Alexandre de Franca <jos...@ms...> > >CC: vxl...@li... > >Subject: Re: [Vxl-users] Another VIDL2 problem!!! > >Date: Tue, 18 Jul 2006 10:30:53 +1200 > > > >Hi Jose, > > > >Well that's very strange. Basically the construction and set_params code > >does this: > >in constructor: > >get_current_camera_params(p) > > > >in set_params: > >set_camera_params_to(p) > >get_current_camera_params(vp) > >return (p==vp) > > > >Are you sure that's the problem? I have just upgraded to fed 5 and have > >tried the vidl2_v4l_example and got exactly the same output you > >initially reported. I then compiled with -g so I could debug it. Hey > >presto, the problem goes away. This implies that there's probably a > >memory overrun in one of the calls. I then recompiled a Release version > >and similarly had no problem. Actually I'm having difficulty reproducing > >the problem. Could you try recompiling either with debug or with release > >and see if your problems persist. > > > >On Mon, 2006-07-17 at 21:32 +0000, Jose Alexandre de Franca wrote: > > > Hi! > > > > > > The problem happens in these two blocks. > > > > > > if (vp.brightness != p.brightness_) > > > { > > > success = false; > > > vcl_cerr << "vp.brightness = " << vp.brightness << vcl_endl; > > > vcl_cerr << "p.brightness = " << p.brightness_ << vcl_endl; > > > } > > > > > > if (vp.colour != p.colour_) > > > { > > > success = false; > > > vcl_cerr << "vp.colour = " << vp.colour << vcl_endl; > > > vcl_cerr << "p.colour = " << p.colour_ << vcl_endl; > > > } > > > > > > To my camera, vp.brightness = 33024 and p.brightness = 32768. Besides, > > > vp.colour = 2048 and p.colour = 4096. > > > > > > Jose > > > > > > >From: Brendan McCane <mc...@cs...> > > > >Reply-To: mc...@cs... > > > >To: Jose Alexandre de Franca <jos...@ms...> > > > >CC: vxl...@li... > > > >Subject: Re: [Vxl-users] Another VIDL2 problem!!! > > > >Date: Tue, 18 Jul 2006 09:22:35 +1200 > > > > > > > >On Mon, 2006-07-17 at 17:01 +0000, Jose Alexandre de Franca wrote: > > > > > Hello! > > > > > > > > > > I am using the stable version (1.5.1). I have two different USB > > > >cameras. I > > > > > am testing the "vidl2_v4l_example" example program (It comes with > >the > > > >VxL > > > > > library). It works fine with the first camera. But... with the > >second... > > > >I > > > > > get a error message like this: > > > > > > > > > > name = Aiptek PocketDV3100+ > > > > > type = 1 > > > > > channels = 1 > > > > > maxwidth = 464 > > > > > maxheight = 480 > > > > > vp.brightness = 33024 > > > > > p.brightness = 32768 > > > > > vp.colour = 2048 > > > > > p.colour = 4096 > > > > > vidl2_v4l_example: > > > > > > > > > > >/usr/local/vxl/vxl-1.5.1/contrib/brl/bbas/vidl2/vidl2_v4l_istream.cxx:84: > > > > > bool vidl2_v4l_istream::open(const std::string&): Assertion > > > >`sp_ret==true' > > > > > failed. > > > > > > > > > > > > > > > The problem seems to be in the camera configuration > > > > > ("vidl2_v4l_istream::set_params" function). The program can't set > >the > > > >camera > > > > > to a special mode (brightness and colour). Is there anything than I > >can > > > >do > > > > > to fix this problem? > > > > > > > >Hi Jose. Yes please, if you can fix the problem that's great. > > > >vidl2_v4l_istream is my fault if you like. Unfortunately, it is almost > > > >impossible for me to debug it for a random camera that I don't have. > >Are > > > >you able to debug the code and tell me exactly where the "false" result > > > >happens in the set_params function? > > > > > > > > > > > > > > Regards, > > > > > Jose Franca > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >------------------------------------------------------------------------- > > > > > Using Tomcat but need to do more? Need to support web services, > > > >security? > > > > > Get stuff done quickly with pre-integrated technology to make your > >job > > > >easier > > > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > > > >Geronimo > > > > > > >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > > > _______________________________________________ > > > > > Vxl-users mailing list > > > > > Vxl...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/vxl-users > > > >-- > > > >Cheers, > > > > > > > >Brendan. > > > > > >---------------------------------------------------------------------------- > > > >Brendan McCane Email: mc...@cs... > > > >Department of Computer Science Phone: +64 3 479 8588/8578. > > > >University of Otago Fax: +64 3 479 8529 > > > >Box 56, Dunedin, New Zealand. > > > > > > > > > > > > > > > > > >------------------------------------------------------------------------- > > > >Take Surveys. Earn Cash. Influence the Future of IT > > > >Join SourceForge.net's Techsay panel and you'll get the chance to share > > > >your > > > >opinions on IT & business topics through brief surveys -- and earn cash > > > > > >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > >_______________________________________________ > > > >Vxl-users mailing list > > > >Vxl...@li... > > > >https://lists.sourceforge.net/lists/listinfo/vxl-users > > > > > > > >-- > >Cheers, > > > >Brendan. > >---------------------------------------------------------------------------- > >Brendan McCane Email: mc...@cs... > >Department of Computer Science Phone: +64 3 479 8588/8578. > >University of Otago Fax: +64 3 479 8529 > >Box 56, Dunedin, New Zealand. > > > > > > -- Cheers, Brendan. ---------------------------------------------------------------------------- Brendan McCane Email: mc...@cs... Department of Computer Science Phone: +64 3 479 8588/8578. University of Otago Fax: +64 3 479 8529 Box 56, Dunedin, New Zealand. |