From gareth at ...560... Tue Jan 6 16:30:12 2009 From: gareth at ...560... (Gareth Bult) Date: Tue, 6 Jan 2009 15:30:12 +0000 (GMT) Subject: [Gambas-devel] Re; Bug? Message-ID: <22083735.296111231255812726.JavaMail.root@...616...> Hi, I'm trying the following code in 2.0 and trunk to the same effect; Blank page, one button (Button1), one picture object (MyFrame); ' Gambas class file Private hWebcam As VideoDevice Public Sub Form_Open() hWebcam = New VideoDevice("/dev/video0") End Public Sub Button1_Click() MyFrame.Picture = hWebcam.Picture '**** End Fails with; "Unable to get image" on the marked line. /dev/video0 works fine on every other program I can try that uses a webcam .. gb.v4l broken ? -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gareth at ...560... Wed Jan 7 11:22:27 2009 From: gareth at ...560... (Gareth Bult) Date: Wed, 7 Jan 2009 10:22:27 +0000 (GMT) Subject: [Gambas-devel] Re; Weird crash ... In-Reply-To: <16208992.298791231323706164.JavaMail.root@...616...> Message-ID: <28846381.298811231323747222.JavaMail.root@...616...> Hi, I just recompiled V3 from svn and the small project I was working on now crashes the IDE with the following; $ gambas3 FDebugExpr.$load.636: #11: Unknown symbol 'Toolbar' in class 'Window' 0: FDebugExpr.$load.636 1: FDebugExpr.FDebugExpr.0 2: FDebugExpr.Add.33 3: FDebugExpr.ReadSettings.552 4: Design.ReadDebugSettings.890 5: Design.Start.662 6: Design.Step.412 7: Project.Run.1628 8: FMain.Action_Activate.949 9: >Action.Raise.204 This happens when I try to run the program in any way .. (F8 for example). Project attached (it's all but empty!) ???? However (!) a couple of random example projects still seem to work file (gears for example) ... Gareth. -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Chat-0.0.1.tar.gz Type: application/x-gzip Size: 8059 bytes Desc: not available URL: From gareth at ...560... Fri Jan 9 15:04:08 2009 From: gareth at ...560... (Gareth Bult) Date: Fri, 9 Jan 2009 14:04:08 +0000 (GMT) Subject: [Gambas-devel] Webcam mods (Logitec Quickcam 4000 etc) :: testers wanted ... In-Reply-To: <31724041.312771231509800231.JavaMail.root@...616...> Message-ID: <17731615.312791231509848102.JavaMail.root@...616...> Hi, Attached is my version of CWebcam.c, if anyone can give this a try I would very much appreciate it. (against trunk) Issues; The current V4L2 assumes that the camera will return an RGB signal that it can stuff directly into a "Picture" or "Image" object. - not always the case, for example with the Logitec QuickCam 4000 (and I'm sure quite a few others) . As a result, a post-processor is required to convert from the Camera's format (in this case yuv420p) to RGB. I've inserted a hook so this (and possibly other) post-processing routines can be added. The actual conversion routine I've hijacked directly from "Camorama", pretty much no tweaking required. In addition and just to make life interesting, the VIDIOCGMBUF ioctl seems to be partially broken, not sure if it's specific to the driver for this camera or if it's a wider issue, however it seems to return a fixed buffer size and frame count, regardless of the resolution specified. For 320x240 this is fine, two frames will fit in the allocated space and it works fine. However, for 640x480 it returns sufficient memory for 1 frame, but specifies two frames in the header - not good! (this breaks gambas pretty quickly) So I've included a fix to rewrite the "mbuf" field IF the contents are invalid, i.e. if the widthxheightxdepthxframes is greater than the allocated size. I'm hoping that none of this affects standard RGB cameras, again if someone could test I would appreciate it. If you drop this into the v4l/src directory and do a make install, if your Logitec wasn't working, running the webcam demo should now work. .. I'm new to hacking Gambas so if I've done something bad re; memory etc , please let me know... Regards, Gareth. -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: CWebcam.c Type: text/x-csrc Size: 30409 bytes Desc: not available URL: From gambas at ...1... Fri Jan 9 15:08:08 2009 From: gambas at ...1... (Benoit Minisini) Date: Fri, 9 Jan 2009 15:08:08 +0100 Subject: [Gambas-devel] Re; Bug? In-Reply-To: <22083735.296111231255812726.JavaMail.root@...616...> References: <22083735.296111231255812726.JavaMail.root@...616...> Message-ID: <200901091508.08610.gambas@...1...> On mardi 6 janvier 2009, Gareth Bult wrote: > Hi, > > I'm trying the following code in 2.0 and trunk to the same effect; > > Blank page, one button (Button1), one picture object (MyFrame); > > ' Gambas class file > > Private hWebcam As VideoDevice > > Public Sub Form_Open() > hWebcam = New VideoDevice("/dev/video0") > End > > Public Sub Button1_Click() > MyFrame.Picture = hWebcam.Picture '**** > End > > Fails with; > "Unable to get image" on the marked line. > > /dev/video0 works fine on every other program I can try that uses a webcam > .. gb.v4l broken ? Daniel Campos wrote the component. I know nothing about v4l, so it's hard for me to guess what could be wrong. Regards, -- Benoit Minisini From gareth at ...560... Fri Jan 9 16:24:34 2009 From: gareth at ...560... (Gareth Bult) Date: Fri, 9 Jan 2009 15:24:34 +0000 (GMT) Subject: [Gambas-devel] Re; Bug? In-Reply-To: <200901091508.08610.gambas@...1...> Message-ID: <32490299.313631231514674854.JavaMail.root@...616...> Hi, See my last posting / fix .. not so much broken as incomplete ... What I've put in should fix a number of cameras and leave a hook to easily fix any more that appear to be an issue. Regards, Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Friday, 9 January, 2009 2:08:08 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Re; Bug? On mardi 6 janvier 2009, Gareth Bult wrote: > Hi, > > I'm trying the following code in 2.0 and trunk to the same effect; > > Blank page, one button (Button1), one picture object (MyFrame); > > ' Gambas class file > > Private hWebcam As VideoDevice > > Public Sub Form_Open() > hWebcam = New VideoDevice("/dev/video0") > End > > Public Sub Button1_Click() > MyFrame.Picture = hWebcam.Picture '**** > End > > Fails with; > "Unable to get image" on the marked line. > > /dev/video0 works fine on every other program I can try that uses a webcam > .. gb.v4l broken ? Daniel Campos wrote the component. I know nothing about v4l, so it's hard for me to guess what could be wrong. Regards, -- Benoit Minisini ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Sat Jan 10 22:45:54 2009 From: gambas at ...1... (Benoit Minisini) Date: Sat, 10 Jan 2009 22:45:54 +0100 Subject: [Gambas-devel] Webcam mods (Logitec Quickcam 4000 etc) :: testers wanted ... In-Reply-To: <17731615.312791231509848102.JavaMail.root@...616...> References: <17731615.312791231509848102.JavaMail.root@...616...> Message-ID: <200901102245.54834.gambas@...1...> On vendredi 9 janvier 2009, Gareth Bult wrote: > Hi, > > Attached is my version of CWebcam.c, if anyone can give this a try I would > very much appreciate it. (against trunk) > > Issues; > > The current V4L2 assumes that the camera will return an RGB signal that it > can stuff directly into a "Picture" or "Image" object. - not always the > case, for example with the Logitec QuickCam 4000 (and I'm sure quite a few > others) . > > As a result, a post-processor is required to convert from the Camera's > format (in this case yuv420p) to RGB. I've inserted a hook so this (and > possibly other) post-processing routines can be added. The actual > conversion routine I've hijacked directly from "Camorama", pretty much no > tweaking required. The image buffer support of Gambas is actually being redesigned and rewritten, because I need more power for my own job. :-) The current one is able to convert between different RGB formats, but not between YUV and RGB. Two possibilities then: - Keep the YUV/RGB conversion in gb.v4l, assuming that only video uses YUV. - Add the new format and the conversion routine is the future gb.image component. > > In addition and just to make life interesting, the VIDIOCGMBUF ioctl seems > to be partially broken, not sure if it's specific to the driver for this > camera or if it's a wider issue, however it seems to return a fixed buffer > size and frame count, regardless of the resolution specified. For 320x240 > this is fine, two frames will fit in the allocated space and it works fine. > However, for 640x480 it returns sufficient memory for 1 frame, but > specifies two frames in the header - not good! (this breaks gambas pretty > quickly) So I've included a fix to rewrite the "mbuf" field IF the contents > are invalid, i.e. if the widthxheightxdepthxframes is greater than the > allocated size. OK. > > I'm hoping that none of this affects standard RGB cameras, again if someone > could test I would appreciate it. > > If you drop this into the v4l/src directory and do a make install, if your > Logitec wasn't working, running the webcam demo should now work. > > .. I'm new to hacking Gambas so if I've done something bad re; memory etc , > please let me know... I will look at the code, but I have no camera to test, so volunteers are needed there! Regards, -- Benoit Minisini From gambas at ...1... Sat Jan 10 22:42:38 2009 From: gambas at ...1... (Benoit Minisini) Date: Sat, 10 Jan 2009 22:42:38 +0100 Subject: [Gambas-devel] Re; Weird crash ... In-Reply-To: <28846381.298811231323747222.JavaMail.root@...616...> References: <28846381.298811231323747222.JavaMail.root@...616...> Message-ID: <200901102242.38758.gambas@...1...> On mercredi 7 janvier 2009, Gareth Bult wrote: > Hi, > > I just recompiled V3 from svn and the small project I was working on now > crashes the IDE with the following; > > $ gambas3 > FDebugExpr.$load.636: #11: Unknown symbol 'Toolbar' in class 'Window' > 0: FDebugExpr.$load.636 > 1: FDebugExpr.FDebugExpr.0 > 2: FDebugExpr.Add.33 > 3: FDebugExpr.ReadSettings.552 > 4: Design.ReadDebugSettings.890 > 5: Design.Start.662 > 6: Design.Step.412 > 7: Project.Run.1628 > 8: FMain.Action_Activate.949 > 9: >Action.Raise.204 > > This happens when I try to run the program in any way .. (F8 for example). > > Project attached (it's all but empty!) > > ???? > > However (!) a couple of random example projects still seem to work file > (gears for example) ... > > Gareth. Apparently you don't use the latest svn revision. Please tell which revision you are using when you have a bug, because some of recent ones have broken - this is a development version! The reason of this bug is just that the Window.Toolbar constant were replaced by Window.Utility, Utility being the name used by the freedesktop standards. Regards, -- Benoit Minisini From gareth at ...560... Sun Jan 11 12:01:32 2009 From: gareth at ...560... (Gareth Bult) Date: Sun, 11 Jan 2009 11:01:32 +0000 (GMT) Subject: [Gambas-devel] Webcam mods (Logitec Quickcam 4000 etc) :: testers wanted ... In-Reply-To: <200901102245.54834.gambas@...1...> Message-ID: <4214872.319001231671692319.JavaMail.root@...616...> Hi, At the very least, video needs to look at the incoming format flag and run an appropriate conversion .. at the moment it's just pumping raw camera into a Picture .. (as per the suggested code ..) Incidentally, I forgot to include CWebcam.h .. there is one change to video_device_t required; unsigned char *tmp; Regards, Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Saturday, 10 January, 2009 9:45:54 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Webcam mods (Logitec Quickcam 4000 etc) :: testers wanted ... On vendredi 9 janvier 2009, Gareth Bult wrote: > Hi, > > Attached is my version of CWebcam.c, if anyone can give this a try I would > very much appreciate it. (against trunk) > > Issues; > > The current V4L2 assumes that the camera will return an RGB signal that it > can stuff directly into a "Picture" or "Image" object. - not always the > case, for example with the Logitec QuickCam 4000 (and I'm sure quite a few > others) . > > As a result, a post-processor is required to convert from the Camera's > format (in this case yuv420p) to RGB. I've inserted a hook so this (and > possibly other) post-processing routines can be added. The actual > conversion routine I've hijacked directly from "Camorama", pretty much no > tweaking required. The image buffer support of Gambas is actually being redesigned and rewritten, because I need more power for my own job. :-) The current one is able to convert between different RGB formats, but not between YUV and RGB. Two possibilities then: - Keep the YUV/RGB conversion in gb.v4l, assuming that only video uses YUV. - Add the new format and the conversion routine is the future gb.image component. > > In addition and just to make life interesting, the VIDIOCGMBUF ioctl seems > to be partially broken, not sure if it's specific to the driver for this > camera or if it's a wider issue, however it seems to return a fixed buffer > size and frame count, regardless of the resolution specified. For 320x240 > this is fine, two frames will fit in the allocated space and it works fine. > However, for 640x480 it returns sufficient memory for 1 frame, but > specifies two frames in the header - not good! (this breaks gambas pretty > quickly) So I've included a fix to rewrite the "mbuf" field IF the contents > are invalid, i.e. if the widthxheightxdepthxframes is greater than the > allocated size. OK. > > I'm hoping that none of this affects standard RGB cameras, again if someone > could test I would appreciate it. > > If you drop this into the v4l/src directory and do a make install, if your > Logitec wasn't working, running the webcam demo should now work. > > .. I'm new to hacking Gambas so if I've done something bad re; memory etc , > please let me know... I will look at the code, but I have no camera to test, so volunteers are needed there! Regards, -- Benoit Minisini ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...560... Mon Jan 12 14:17:41 2009 From: gareth at ...560... (Gareth Bult) Date: Mon, 12 Jan 2009 13:17:41 +0000 (GMT) Subject: [Gambas-devel] Returning a reference to an array ... Message-ID: <32656815.322281231766261956.JavaMail.root@...616...> Hi, I'm getting a little bogged down with arrays, any help much appreciated. I have a connection object; typedef struct { GB_BASE ob; // inherited from Gambas char* host; // server host name or IP char* user; // user name char* password; // user password int id; // registration id int reply; // registration reply int count; // connection counter CIAX2DEVICE** devices; // array of devices + caps } CIAX2CONNECTION; With a device object; typedef struct { GB_BASE ob; // inherited from Gambas int id; char* name; long capabilities; } CIAX2DEVICE; So the connection contains an array of device objects. I need to return this information to Gambas so gambas can see the available devices. I have a routine to create the array; char ***devices = &THIS->devices; CIAX2DEVICE *device; GB.NewArray(devices,sizeof(CIAX2DEVICE),ndevs); GB.New(POINTER(&(*devices)[0]),GB.FindClass("IAX2Device"),NULL,NULL); device = (CIAX2DEVICE *)&(*devices)[0]; GB.NewString(&(device->name),"MyName",0); GB.ReturnObject(devices); But the returning object is untyped .. how do I specify the return type as an array of "CIAX2Device[]" Can it be done?? Or do I need to code part of this in Gambas and call that ? Gareth. -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Mon Jan 12 14:27:39 2009 From: gambas at ...1... (Benoit Minisini) Date: Mon, 12 Jan 2009 14:27:39 +0100 Subject: [Gambas-devel] Returning a reference to an array ... In-Reply-To: <32656815.322281231766261956.JavaMail.root@...616...> References: <32656815.322281231766261956.JavaMail.root@...616...> Message-ID: <200901121427.39397.gambas@...1...> On lundi 12 janvier 2009, Gareth Bult wrote: > Hi, > > I'm getting a little bogged down with arrays, any help much appreciated. > > I have a connection object; > > typedef struct > { > GB_BASE ob; // inherited from Gambas > char* host; // server host name or IP > char* user; // user name > char* password; // user password > int id; // registration id > int reply; // registration reply > int count; // connection counter > CIAX2DEVICE** devices; // array of devices + caps > > } CIAX2CONNECTION; > > With a device object; > > typedef struct > { > GB_BASE ob; // inherited from Gambas > int id; > char* name; > long capabilities; > > } CIAX2DEVICE; > > So the connection contains an array of device objects. > I need to return this information to Gambas so gambas can see the available > devices. > > I have a routine to create the array; > > char ***devices = &THIS->devices; > CIAX2DEVICE *device; > > GB.NewArray(devices,sizeof(CIAX2DEVICE),ndevs); > GB.New(POINTER(&(*devices)[0]),GB.FindClass("IAX2Device"),NULL,NULL); > device = (CIAX2DEVICE *)&(*devices)[0]; > GB.NewString(&(device->name),"MyName",0); > GB.ReturnObject(devices); > > But the returning object is untyped .. how do I specify the return type as > an array of "CIAX2Device[]" > > Can it be done?? > Or do I need to code part of this in Gambas and call that ? > > Gareth. GB.NewArray() is just an utility function for creating a "C" dynamic array. To return a Gambas array object, you must use the GB.Array.*() functions to construct the array object and fill it. GB_ARRAY array; int i; GB.Array.New(&array, GB.FindClass("IAX2Device"), <>); for (i = 0; i < <>; i++) { GB.Ref(THIS->devices[i]) *((void **)GB.Array.Get(array, i)) = THIS->devices[i]; } GB.ReturnObject(array); Another possibility is to create the Gambas array at IAX2Device initialization, and store it inside the object structure. Choosing the better method depends on your knowledge of the size of the array at initialization, or if its contents will change during the life of the IAX2Device object. Regards, -- Benoit Minisini From gareth at ...560... Mon Jan 12 16:46:41 2009 From: gareth at ...560... (Gareth Bult) Date: Mon, 12 Jan 2009 15:46:41 +0000 (GMT) Subject: [Gambas-devel] Returning a reference to an array ... In-Reply-To: <200901121427.39397.gambas@...1...> Message-ID: <31489269.323851231775201766.JavaMail.root@...616...> Hi, I inserted your code to start with just replacing <> ... I get; iax2.c:455: warning: passing argument 2 of 'GB.Array.New' makes integer from pointer without a cast iax2.c:459: warning: dereferencing 'void *' pointer iax2.c:459: error: invalid use of void expression iax2.c:460: error: void value not ignored as it ought to be When compiling .. GB.Array.New seems to be expecting a GB_T constant , whereas GB.FindClass is returning a pointer (???) So whereas I would love to use; #GB.Array.New(&array, GB.FindClass("IAX2Device"), <>); It seems this option is not available .. which is why I was using; #GB.Array.New(&array,GB_T_OBJECT,ndevs); Help! Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Monday, 12 January, 2009 1:27:39 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Returning a reference to an array ... On lundi 12 janvier 2009, Gareth Bult wrote: > Hi, > > I'm getting a little bogged down with arrays, any help much appreciated. > > I have a connection object; > > typedef struct > { > GB_BASE ob; // inherited from Gambas > char* host; // server host name or IP > char* user; // user name > char* password; // user password > int id; // registration id > int reply; // registration reply > int count; // connection counter > CIAX2DEVICE** devices; // array of devices + caps > > } CIAX2CONNECTION; > > With a device object; > > typedef struct > { > GB_BASE ob; // inherited from Gambas > int id; > char* name; > long capabilities; > > } CIAX2DEVICE; > > So the connection contains an array of device objects. > I need to return this information to Gambas so gambas can see the available > devices. > > I have a routine to create the array; > > char ***devices = &THIS->devices; > CIAX2DEVICE *device; > > GB.NewArray(devices,sizeof(CIAX2DEVICE),ndevs); > GB.New(POINTER(&(*devices)[0]),GB.FindClass("IAX2Device"),NULL,NULL); > device = (CIAX2DEVICE *)&(*devices)[0]; > GB.NewString(&(device->name),"MyName",0); > GB.ReturnObject(devices); > > But the returning object is untyped .. how do I specify the return type as > an array of "CIAX2Device[]" > > Can it be done?? > Or do I need to code part of this in Gambas and call that ? > > Gareth. GB.NewArray() is just an utility function for creating a "C" dynamic array. To return a Gambas array object, you must use the GB.Array.*() functions to construct the array object and fill it. GB_ARRAY array; int i; GB.Array.New(&array, GB.FindClass("IAX2Device"), <>); for (i = 0; i < <>; i++) { GB.Ref(THIS->devices[i]) *((void **)GB.Array.Get(array, i)) = THIS->devices[i]; } GB.ReturnObject(array); Another possibility is to create the Gambas array at IAX2Device initialization, and store it inside the object structure. Choosing the better method depends on your knowledge of the size of the array at initialization, or if its contents will change during the life of the IAX2Device object. Regards, -- Benoit Minisini ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Mon Jan 12 17:14:16 2009 From: gambas at ...1... (Benoit Minisini) Date: Mon, 12 Jan 2009 17:14:16 +0100 Subject: [Gambas-devel] Returning a reference to an array ... In-Reply-To: <31489269.323851231775201766.JavaMail.root@...616...> References: <31489269.323851231775201766.JavaMail.root@...616...> Message-ID: <200901121714.16518.gambas@...1...> On lundi 12 janvier 2009, Gareth Bult wrote: > Hi, > > I inserted your code to start with just replacing <> ... > I get; > > iax2.c:455: warning: passing argument 2 of 'GB.Array.New' makes integer > from pointer without a cast iax2.c:459: warning: dereferencing 'void *' > pointer > iax2.c:459: error: invalid use of void expression > iax2.c:460: error: void value not ignored as it ought to be > > When compiling .. > > GB.Array.New seems to be expecting a GB_T constant , whereas GB.FindClass > is returning a pointer (???) > > So whereas I would love to use; > > #GB.Array.New(&array, GB.FindClass("IAX2Device"), <>); > > It seems this option is not available .. which is why I was using; > > #GB.Array.New(&array,GB_T_OBJECT,ndevs); > > Help! > > Gareth. > I forgot a cast. GB.Array.New(&array, (GB_TYPE)GB.FindClass("IAX2Device"), <>); You can use GB_T_OBJECT. But now you can have specialized arrays in Gambas, so why not using them? :-) -- Benoit Minisini From gareth at ...560... Mon Jan 12 19:03:47 2009 From: gareth at ...560... (Gareth Bult) Date: Mon, 12 Jan 2009 18:03:47 +0000 (GMT) Subject: [Gambas-devel] Returning a reference to an array ... In-Reply-To: <8850488.325071231783405057.JavaMail.root@...616...> Message-ID: <3615182.325091231783427727.JavaMail.root@...616...> Ok, I'm obviously being a bit dull .. however, the following code now seems to compile OK, however then I try to run it, Gambas reports "No return value". [so GB.ReturnObject(array) isn't working??] BEGIN_METHOD_VOID(CCONNECTION_audio_devices) struct iaxc_audio_device *devs; int ndevs,input,output,ring,i; GB_ARRAY array; CIAX2DEVICE *dev; iaxc_audio_devices_get(&devs,&ndevs,&input,&output,&ring); GB.Array.New(&array, (GB_TYPE)GB.FindClass("IAX2Device"), 1); for (i = 0; i < ndevs; i++) { GB.New((void**)&dev,GB.FindClass("IAX2Device"),NULL,NULL); GB.Ref(dev); GB.NewString(&dev->name,devs[i].name,0); *((void **)GB.Array.Get(array, i)) = dev; } GB.ReturnObject(array); return; END_METHOD Does the above seem "sane"? Am I missing something critical?? I think I've had this code before and had the same problem, been trying lots of different approaches ... Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Monday, 12 January, 2009 4:14:16 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Returning a reference to an array ... On lundi 12 janvier 2009, Gareth Bult wrote: > Hi, > > I inserted your code to start with just replacing <> ... > I get; > > iax2.c:455: warning: passing argument 2 of 'GB.Array.New' makes integer > from pointer without a cast iax2.c:459: warning: dereferencing 'void *' > pointer > iax2.c:459: error: invalid use of void expression > iax2.c:460: error: void value not ignored as it ought to be > > When compiling .. > > GB.Array.New seems to be expecting a GB_T constant , whereas GB.FindClass > is returning a pointer (???) > > So whereas I would love to use; > > #GB.Array.New(&array, GB.FindClass("IAX2Device"), <>); > > It seems this option is not available .. which is why I was using; > > #GB.Array.New(&array,GB_T_OBJECT,ndevs); > > Help! > > Gareth. > I forgot a cast. GB.Array.New(&array, (GB_TYPE)GB.FindClass("IAX2Device"), <>); You can use GB_T_OBJECT. But now you can have specialized arrays in Gambas, so why not using them? :-) -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Mon Jan 12 19:06:59 2009 From: gambas at ...1... (Benoit Minisini) Date: Mon, 12 Jan 2009 19:06:59 +0100 Subject: [Gambas-devel] Returning a reference to an array ... In-Reply-To: <3615182.325091231783427727.JavaMail.root@...616...> References: <3615182.325091231783427727.JavaMail.root@...616...> Message-ID: <200901121906.59224.gambas@...1...> On lundi 12 janvier 2009, Gareth Bult wrote: > Ok, > > I'm obviously being a bit dull .. however, the following code now seems to > compile OK, however then I try to run it, Gambas reports "No return value". > [so GB.ReturnObject(array) isn't working??] > > BEGIN_METHOD_VOID(CCONNECTION_audio_devices) > > struct iaxc_audio_device *devs; > int ndevs,input,output,ring,i; > > GB_ARRAY array; > CIAX2DEVICE *dev; > > iaxc_audio_devices_get(&devs,&ndevs,&input,&output,&ring); > > GB.Array.New(&array, (GB_TYPE)GB.FindClass("IAX2Device"), 1); > > for (i = 0; i < ndevs; i++) > { > GB.New((void**)&dev,GB.FindClass("IAX2Device"),NULL,NULL); > GB.Ref(dev); > GB.NewString(&dev->name,devs[i].name,0); > *((void **)GB.Array.Get(array, i)) = dev; > } > GB.ReturnObject(array); > return; > > END_METHOD > > Does the above seem "sane"? > Am I missing something critical?? > > I think I've had this code before and had the same problem, been trying > lots of different approaches ... > > Gareth. > Did you check that you have declared the method as returning something in the class declaration? -- Benoit Minisini From gareth at ...560... Mon Jan 12 19:13:45 2009 From: gareth at ...560... (Gareth Bult) Date: Mon, 12 Jan 2009 18:13:45 +0000 (GMT) Subject: [Gambas-devel] Returning a reference to an array ... In-Reply-To: <3615182.325091231783427727.JavaMail.root@...616...> Message-ID: <16390171.325121231784025299.JavaMail.root@...616...> I think my main problem here is the lack of a working example to reference .. For example, I can't find an instance of GB.Array.New that uses (GB_TYPE)GB.FindClass anywhere in the Gambas source tree .... Gareth. ----- Original Message ----- From: "Gareth Bult" To: "mailing list for gambas developers" Sent: Monday, 12 January, 2009 6:03:47 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Returning a reference to an array ... Ok, I'm obviously being a bit dull .. however, the following code now seems to compile OK, however then I try to run it, Gambas reports "No return value". [so GB.ReturnObject(array) isn't working??] BEGIN_METHOD_VOID(CCONNECTION_audio_devices) struct iaxc_audio_device *devs; int ndevs,input,output,ring,i; GB_ARRAY array; CIAX2DEVICE *dev; iaxc_audio_devices_get(&devs,&ndevs,&input,&output,&ring); GB.Array.New(&array, (GB_TYPE)GB.FindClass("IAX2Device"), 1); for (i = 0; i < ndevs; i++) { GB.New((void**)&dev,GB.FindClass("IAX2Device"),NULL,NULL); GB.Ref(dev); GB.NewString(&dev->name,devs[i].name,0); *((void **)GB.Array.Get(array, i)) = dev; } GB.ReturnObject(array); return; END_METHOD Does the above seem "sane"? Am I missing something critical?? I think I've had this code before and had the same problem, been trying lots of different approaches ... Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Monday, 12 January, 2009 4:14:16 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Returning a reference to an array ... On lundi 12 janvier 2009, Gareth Bult wrote: > Hi, > > I inserted your code to start with just replacing <> ... > I get; > > iax2.c:455: warning: passing argument 2 of 'GB.Array.New' makes integer > from pointer without a cast iax2.c:459: warning: dereferencing 'void *' > pointer > iax2.c:459: error: invalid use of void expression > iax2.c:460: error: void value not ignored as it ought to be > > When compiling .. > > GB.Array.New seems to be expecting a GB_T constant , whereas GB.FindClass > is returning a pointer (???) > > So whereas I would love to use; > > #GB.Array.New(&array, GB.FindClass("IAX2Device"), <>); > > It seems this option is not available .. which is why I was using; > > #GB.Array.New(&array,GB_T_OBJECT,ndevs); > > Help! > > Gareth. > I forgot a cast. GB.Array.New(&array, (GB_TYPE)GB.FindClass("IAX2Device"), <>); You can use GB_T_OBJECT. But now you can have specialized arrays in Gambas, so why not using them? :-) -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Mon Jan 12 19:14:01 2009 From: gambas at ...1... (Benoit Minisini) Date: Mon, 12 Jan 2009 19:14:01 +0100 Subject: [Gambas-devel] Returning a reference to an array ... In-Reply-To: <16390171.325121231784025299.JavaMail.root@...616...> References: <16390171.325121231784025299.JavaMail.root@...616...> Message-ID: <200901121914.01934.gambas@...1...> On lundi 12 janvier 2009, Gareth Bult wrote: > I think my main problem here is the lack of a working example to reference > .. For example, I can't find an instance of GB.Array.New that uses > (GB_TYPE)GB.FindClass anywhere in the Gambas source tree .... > > Gareth. > Yep. You will be the first one. :-) But if you are afraid, just use GB_T_OBJECT instead. -- Benoit Minisini From gareth at ...560... Mon Jan 12 19:32:49 2009 From: gareth at ...560... (Gareth Bult) Date: Mon, 12 Jan 2009 18:32:49 +0000 (GMT) Subject: [Gambas-devel] Returning a reference to an array ... In-Reply-To: <200901121914.01934.gambas@...1...> Message-ID: <14345532.325151231785169301.JavaMail.root@...616...> Ok, Now working with a little tweaking .. essentially I needed to change; GB_METHOD("audio_devices",NULL ,CCONNECTION_audio_devices,NULL), to GB_METHOD("audio_devices","IAX2Device[]" ,CCONNECTION_audio_devices,NULL), :) Getting there ... Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Monday, 12 January, 2009 6:14:01 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Returning a reference to an array ... On lundi 12 janvier 2009, Gareth Bult wrote: > I think my main problem here is the lack of a working example to reference > .. For example, I can't find an instance of GB.Array.New that uses > (GB_TYPE)GB.FindClass anywhere in the Gambas source tree .... > > Gareth. > Yep. You will be the first one. :-) But if you are afraid, just use GB_T_OBJECT instead. -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...560... Mon Jan 12 20:10:15 2009 From: gareth at ...560... (Gareth Bult) Date: Mon, 12 Jan 2009 19:10:15 +0000 (GMT) Subject: [Gambas-devel] Returning a reference to an array ... In-Reply-To: <14345532.325151231785169301.JavaMail.root@...616...> Message-ID: <4763783.325181231787415819.JavaMail.root@...616...> Ok, My array seems to work fine .. but now I'm adding; (ndevs=15) >>GB.Array.New(&THIS->devices, (GB_TYPE)GB.FindClass("IAX2Device"), ndevs); ++printf("Devices=%d (%d)\n",GB.Count(THIS->devices),ndevs); I was sort of expecting this to print; Devices=15 (15) But it prints; Devices=1308438512 (15) Am I making an obvious mistake, or is GB.Count not working ? Gareth. ----- Original Message ----- From: "Gareth Bult" To: "mailing list for gambas developers" Sent: Monday, 12 January, 2009 6:32:49 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Returning a reference to an array ... Ok, Now working with a little tweaking .. essentially I needed to change; GB_METHOD("audio_devices",NULL ,CCONNECTION_audio_devices,NULL), to GB_METHOD("audio_devices","IAX2Device[]" ,CCONNECTION_audio_devices,NULL), :) Getting there ... Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Monday, 12 January, 2009 6:14:01 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Returning a reference to an array ... On lundi 12 janvier 2009, Gareth Bult wrote: > I think my main problem here is the lack of a working example to reference > .. For example, I can't find an instance of GB.Array.New that uses > (GB_TYPE)GB.FindClass anywhere in the Gambas source tree .... > > Gareth. > Yep. You will be the first one. :-) But if you are afraid, just use GB_T_OBJECT instead. -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Mon Jan 12 21:11:45 2009 From: gambas at ...1... (Benoit Minisini) Date: Mon, 12 Jan 2009 21:11:45 +0100 Subject: [Gambas-devel] Returning a reference to an array ... In-Reply-To: <4763783.325181231787415819.JavaMail.root@...616...> References: <4763783.325181231787415819.JavaMail.root@...616...> Message-ID: <200901122111.45460.gambas@...1...> On lundi 12 janvier 2009, Gareth Bult wrote: > Ok, > > My array seems to work fine .. but now I'm adding; > > (ndevs=15) > > >>GB.Array.New(&THIS->devices, (GB_TYPE)GB.FindClass("IAX2Device"), ndevs); > > ++printf("Devices=%d (%d)\n",GB.Count(THIS->devices),ndevs); > > I was sort of expecting this to print; > > Devices=15 (15) > > But it prints; > > Devices=1308438512 (15) > > Am I making an obvious mistake, or is GB.Count not working ? > > Gareth. > > GB.Count() if for arrays created with GB.NewArray(). For Gambas arrays, use GB.Array.Count(). Regards, -- Benoit Minisini From gareth at ...560... Tue Jan 13 00:22:49 2009 From: gareth at ...560... (Gareth Bult) Date: Mon, 12 Jan 2009 23:22:49 +0000 (GMT) Subject: [Gambas-devel] Returning a reference to an array ... In-Reply-To: <11161177.325301231802429113.JavaMail.root@...616...> Message-ID: <14016062.325321231802569260.JavaMail.root@...616...> Arhrhrhr, sorry, I should've spotted that one. It's all looking pretty tight now, except for the Signal#11 I'm generating on my unref on the second pass through this routine .. I guess I'm misunderstanding memory management somewhere. First pass works fine, second pass not so good .. anything obvious? What's confusing me is I'm successfully refing and unrefing "dev", and I'm refing THIS->devices, however for some reason it doesn't like the unref. Should I not be using ref/unref on the array? void refresh_audio_devices(void* _object) { struct iaxc_audio_device *devs; int ndevs,input,output,ring,i; CIAX2DEVICE *dev; // this is the "free" code, only activated on second call .. if(THIS->devices) { for( i=0; i< GB.Array.Count(THIS->devices); i++ ) { dev = *((void **)GB.Array.Get(THIS->devices, i)); GB.FreeString(&dev->name); GB.Unref(&dev); } printf("Unref:%p\n",&THIS->devices); fflush(stdout); ===> GB.Unref(&THIS->devices); ' dies here with signal #11 !!!!!! logger("Done!"); } // this part happens on both passes ... iaxc_audio_devices_get(&devs,&ndevs,&input,&output,&ring); GB.Array.New(&THIS->devices, (GB_TYPE)GB.FindClass("IAX2Device"), ndevs); for (i = 0; i < ndevs; i++) { GB.New((void**)&dev,GB.FindClass("IAX2Device"),NULL,NULL); GB.Ref(dev); GB.NewString(&dev->name,devs[i].name,0); dev->id = devs[i].devID; dev->capabilities = devs[i].capabilities; *((void **)GB.Array.Get(THIS->devices, i)) = dev; } GB.Ref(THIS->devices); } typedef struct { GB_BASE ob; // inherited from Gambas char* host; // server host name or IP char* user; // user name char* password; // user password int id; // registration id int reply; // registration reply int count; // connection counter ==> GB_ARRAY devices; // THIS->devices !! } CIAX2CONNECTION; ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Monday, 12 January, 2009 8:11:45 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Returning a reference to an array ... On lundi 12 janvier 2009, Gareth Bult wrote: > Ok, > > My array seems to work fine .. but now I'm adding; > > (ndevs=15) > > >>GB.Array.New(&THIS->devices, (GB_TYPE)GB.FindClass("IAX2Device"), ndevs); > > ++printf("Devices=%d (%d)\n",GB.Count(THIS->devices),ndevs); > > I was sort of expecting this to print; > > Devices=15 (15) > > But it prints; > > Devices=1308438512 (15) > > Am I making an obvious mistake, or is GB.Count not working ? > > Gareth. > > GB.Count() if for arrays created with GB.NewArray(). For Gambas arrays, use GB.Array.Count(). Regards, -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Tue Jan 13 00:28:16 2009 From: gambas at ...1... (Benoit Minisini) Date: Tue, 13 Jan 2009 00:28:16 +0100 Subject: [Gambas-devel] Returning a reference to an array ... In-Reply-To: <14016062.325321231802569260.JavaMail.root@...616...> References: <14016062.325321231802569260.JavaMail.root@...616...> Message-ID: <200901130028.16173.gambas@...1...> On mardi 13 janvier 2009, Gareth Bult wrote: > Arhrhrhr, sorry, I should've spotted that one. > > It's all looking pretty tight now, except for the Signal#11 I'm generating > on my unref on the second pass through this routine .. I guess I'm > misunderstanding memory management somewhere. First pass works fine, second > pass not so good .. anything obvious? > > What's confusing me is I'm successfully refing and unrefing "dev", and I'm > refing THIS->devices, however for some reason it doesn't like the unref. > Should I not be using ref/unref on the array? > You must use GB.Ref() when storing an element into the object array, because you are accessing the array memory directly (this is faster). But you must not use GB.Unref() when you unref the array, because this is done automatically when the array is destroyed. You don't know, when unreferencing the array, if it will be destroyed immediately or not. -- Benoit Minisini From gareth at ...560... Tue Jan 13 03:36:32 2009 From: gareth at ...560... (Gareth Bult) Date: Tue, 13 Jan 2009 02:36:32 +0000 (GMT) Subject: [Gambas-devel] Returning a reference to an array ... In-Reply-To: <200901130028.16173.gambas@...1...> Message-ID: <33352025.325351231814192542.JavaMail.root@...616...> Ok ... sounds reasonable .. but how do I destroy an array ? ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Monday, 12 January, 2009 11:28:16 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Returning a reference to an array ... On mardi 13 janvier 2009, Gareth Bult wrote: > Arhrhrhr, sorry, I should've spotted that one. > > It's all looking pretty tight now, except for the Signal#11 I'm generating > on my unref on the second pass through this routine .. I guess I'm > misunderstanding memory management somewhere. First pass works fine, second > pass not so good .. anything obvious? > > What's confusing me is I'm successfully refing and unrefing "dev", and I'm > refing THIS->devices, however for some reason it doesn't like the unref. > Should I not be using ref/unref on the array? > You must use GB.Ref() when storing an element into the object array, because you are accessing the array memory directly (this is faster). But you must not use GB.Unref() when you unref the array, because this is done automatically when the array is destroyed. You don't know, when unreferencing the array, if it will be destroyed immediately or not. -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Tue Jan 13 03:39:46 2009 From: gambas at ...1... (Benoit Minisini) Date: Tue, 13 Jan 2009 03:39:46 +0100 Subject: [Gambas-devel] Returning a reference to an array ... In-Reply-To: <33352025.325351231814192542.JavaMail.root@...616...> References: <33352025.325351231814192542.JavaMail.root@...616...> Message-ID: <200901130339.46452.gambas@...1...> On mardi 13 janvier 2009, Gareth Bult wrote: > Ok ... sounds reasonable .. but how do I destroy an array ? > You don't destroy Gambas objects. You just unreference them. -- Benoit Minisini From gareth at ...560... Tue Jan 13 03:47:44 2009 From: gareth at ...560... (Gareth Bult) Date: Tue, 13 Jan 2009 02:47:44 +0000 (GMT) Subject: [Gambas-devel] Returning a reference to an array ... In-Reply-To: <200901130339.46452.gambas@...1...> Message-ID: <32998698.325381231814864342.JavaMail.root@...616...> >But you must not use GB.Unref() when you unref the array, because this is done >automatically when the array is destroyed. >>You don't destroy Gambas objects. You just unreference them. Ok, now I'm confused .. (!) ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Tuesday, 13 January, 2009 2:39:46 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Returning a reference to an array ... On mardi 13 janvier 2009, Gareth Bult wrote: > Ok ... sounds reasonable .. but how do I destroy an array ? > You don't destroy Gambas objects. You just unreference them. -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...560... Wed Jan 14 14:35:16 2009 From: gareth at ...560... (Gareth Bult) Date: Wed, 14 Jan 2009 13:35:16 +0000 (GMT) Subject: [Gambas-devel] Gambas and Sound ... In-Reply-To: <442668.333601231939739366.JavaMail.root@...616...> Message-ID: <14488144.333651231940116345.JavaMail.root@...616...> Hi, Can anyone tell me whether there is an easy way to run gambas programs with OSS emulation? I'm trying; padsp gbr3 However padsp does not seem to be capturing /dev/dsp, i.e. the LD_PRELOAD does not seem to be having any effect .. ?? Gareth. -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gareth at ...560... Thu Jan 15 16:12:10 2009 From: gareth at ...560... (Gareth Bult) Date: Thu, 15 Jan 2009 15:12:10 +0000 (GMT) Subject: [Gambas-devel] Quick Sig 11 question ... Message-ID: <716719.339481232032330593.JavaMail.root@...616...> Hi, I'm doing; gdb --args gbx3 -p (gdb) run Load project Run --> Sig 11 immediately Nothing is printed by (gdb) ... Run (again) ... runs. Anyone know (a) why gdb reports nothing and (b) how to see where the problem might be .. ? sample dmesg reports: [69285.794015] gbx3[21125]: segfault at b73d3e14 ip b73d3e14 sp b49da330 error 4 in LC_NAME[b7a1b000+1000] [69249.208792] gbx3[21099]: segfault at ddc7d880 ip 0804f2aa sp bfe93de4 error 5 in gbx3[8048000+2e000] [68909.200041] gbx3[20970]: segfault at b7474e14 ip b7474e14 sp b4a7b330 error 4 in LC_NAME[b7abc000+1000] ?? tia Gareth -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Thu Jan 15 16:20:23 2009 From: gambas at ...1... (Benoit Minisini) Date: Thu, 15 Jan 2009 16:20:23 +0100 Subject: [Gambas-devel] Quick Sig 11 question ... In-Reply-To: <716719.339481232032330593.JavaMail.root@...616...> References: <716719.339481232032330593.JavaMail.root@...616...> Message-ID: <200901151620.23902.gambas@...1...> On jeudi 15 janvier 2009, Gareth Bult wrote: > Hi, > > I'm doing; > gdb --args gbx3 -p > (gdb) run > > Load project > Run > --> Sig 11 immediately > > Nothing is printed by (gdb) ... > > Run (again) > ... runs. > > Anyone know (a) why gdb reports nothing and (b) how to see where the > problem might be .. ? > > sample dmesg reports: > [69285.794015] gbx3[21125]: segfault at b73d3e14 ip b73d3e14 sp b49da330 > error 4 in LC_NAME[b7a1b000+1000] [69249.208792] gbx3[21099]: segfault at > ddc7d880 ip 0804f2aa sp bfe93de4 error 5 in gbx3[8048000+2e000] > [68909.200041] gbx3[20970]: segfault at b7474e14 ip b7474e14 sp b4a7b330 > error 4 in LC_NAME[b7abc000+1000] > > ?? > > tia > Gareth Try to compile with no optimization (make "CFLAGS=-O0" "CXXFLAGS=-O0") and run the program with valgrind and its memcheck tool. -- Benoit Minisini From gambas at ...1... Sat Jan 17 00:14:37 2009 From: gambas at ...1... (Benoit Minisini) Date: Sat, 17 Jan 2009 00:14:37 +0100 Subject: [Gambas-devel] Webcam mods (Logitec Quickcam 4000 etc) :: testers wanted ... In-Reply-To: <17731615.312791231509848102.JavaMail.root@...616...> References: <17731615.312791231509848102.JavaMail.root@...616...> Message-ID: <200901170014.37741.gambas@...1...> On vendredi 9 janvier 2009, Gareth Bult wrote: > Hi, > > Attached is my version of CWebcam.c, if anyone can give this a try I would > very much appreciate it. (against trunk) > > Issues; > > The current V4L2 assumes that the camera will return an RGB signal that it > can stuff directly into a "Picture" or "Image" object. - not always the > case, for example with the Logitec QuickCam 4000 (and I'm sure quite a few > others) . > > As a result, a post-processor is required to convert from the Camera's > format (in this case yuv420p) to RGB. I've inserted a hook so this (and > possibly other) post-processing routines can be added. The actual > conversion routine I've hijacked directly from "Camorama", pretty much no > tweaking required. > > In addition and just to make life interesting, the VIDIOCGMBUF ioctl seems > to be partially broken, not sure if it's specific to the driver for this > camera or if it's a wider issue, however it seems to return a fixed buffer > size and frame count, regardless of the resolution specified. For 320x240 > this is fine, two frames will fit in the allocated space and it works fine. > However, for 640x480 it returns sufficient memory for 1 frame, but > specifies two frames in the header - not good! (this breaks gambas pretty > quickly) So I've included a fix to rewrite the "mbuf" field IF the contents > are invalid, i.e. if the widthxheightxdepthxframes is greater than the > allocated size. > > I'm hoping that none of this affects standard RGB cameras, again if someone > could test I would appreciate it. > > If you drop this into the v4l/src directory and do a make install, if your > Logitec wasn't working, running the webcam demo should now work. > > .. I'm new to hacking Gambas so if I've done something bad re; memory etc , > please let me know... > > > Regards, > Gareth. Hi, Gareth: I have completely redesigned the internal memory image management in Gambas since revision #1803. Now there is a gb.image component that will centralize the most possible function about images. And, especially, the conversion between different image formats. The image component can deal with 32 bits RGBA, RGB, BGR and BGRA formats only, but it can convert between more different formats. Can you take a quick look at that component to see if the YUV conversion you inserted in the gb.v4l component worth being put in that component? I have ported all components to this new design, and so CWebcam.c. Do you want a svn write access, so that you can commit your changes directly in it? I will have less work if I don't have to do it myself! Regards, -- Benoit Minisini From gareth at ...560... Sat Jan 17 00:54:13 2009 From: gareth at ...560... (Gareth Bult) Date: Fri, 16 Jan 2009 23:54:13 +0000 (GMT) Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <24579277.345711232150025229.JavaMail.root@...616...> Message-ID: <12152150.345731232150053230.JavaMail.root@...616...> Hi, After plugging in a new camera and finding it only supports V4L2 and hence doesn't work (at all) with the Gambas V4L interface, I sat down and re-coded a component from scratch for V4L2. This is now working and includes conversion routines for non-RGB devices. (the #2 API is actually quite different to #1) To get a clean start, I've called it "VideoDevice2" and apart from that (and a few properties I'm still in the process of implementing) it's a drop in replacement for the current "VideoDevice" object. Question:: should I submit this as a new module / new object type, or should I try to integrate it into VideoDevice such that people don't need to worry about whether they are using V4L or V4L2 ? (i.e. so a new object type is not needed?) Gareth. -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gareth at ...560... Sat Jan 17 00:58:19 2009 From: gareth at ...560... (Gareth Bult) Date: Fri, 16 Jan 2009 23:58:19 +0000 (GMT) Subject: [Gambas-devel] Webcam mods (Logitec Quickcam 4000 etc) :: testers wanted ... In-Reply-To: <200901170014.37741.gambas@...1...> Message-ID: <24955141.345771232150299398.JavaMail.root@...616...> >Now there is a gb.image component that will centralize the most possible >function about images. And, especially, the conversion between different >image formats. this sounds good! >Can you take a quick look at that component to see if the YUV conversion you >inserted in the gb.v4l component worth being put in that component? urm, I pulled the code from Camorama, but wasn't overly happy with it .. so for the V4L2 component I'm currently using some code I pulled off Logitec's Forums .. (attached) the camorama code seems to malfunction in the V4L2 component, not sure why, but the Logitec code worked a treat and it's much nicer. >I have ported all components to this new design, and so CWebcam.c. Do you want >a svn write access, so that you can commit your changes directly in it? I >will have less work if I don't have to do it myself! Urm, Ok .. but it might be worth a look at my last email before going any further .. (i.e. v4l / v4l2 integration) Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Friday, 16 January, 2009 11:14:37 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Webcam mods (Logitec Quickcam 4000 etc) :: testers wanted ... On vendredi 9 janvier 2009, Gareth Bult wrote: > Hi, > > Attached is my version of CWebcam.c, if anyone can give this a try I would > very much appreciate it. (against trunk) > > Issues; > > The current V4L2 assumes that the camera will return an RGB signal that it > can stuff directly into a "Picture" or "Image" object. - not always the > case, for example with the Logitec QuickCam 4000 (and I'm sure quite a few > others) . > > As a result, a post-processor is required to convert from the Camera's > format (in this case yuv420p) to RGB. I've inserted a hook so this (and > possibly other) post-processing routines can be added. The actual > conversion routine I've hijacked directly from "Camorama", pretty much no > tweaking required. > > In addition and just to make life interesting, the VIDIOCGMBUF ioctl seems > to be partially broken, not sure if it's specific to the driver for this > camera or if it's a wider issue, however it seems to return a fixed buffer > size and frame count, regardless of the resolution specified. For 320x240 > this is fine, two frames will fit in the allocated space and it works fine. > However, for 640x480 it returns sufficient memory for 1 frame, but > specifies two frames in the header - not good! (this breaks gambas pretty > quickly) So I've included a fix to rewrite the "mbuf" field IF the contents > are invalid, i.e. if the widthxheightxdepthxframes is greater than the > allocated size. > > I'm hoping that none of this affects standard RGB cameras, again if someone > could test I would appreciate it. > > If you drop this into the v4l/src directory and do a make install, if your > Logitec wasn't working, running the webcam demo should now work. > > .. I'm new to hacking Gambas so if I've done something bad re; memory etc , > please let me know... > > > Regards, > Gareth. Hi, Gareth: I have completely redesigned the internal memory image management in Gambas since revision #1803. Now there is a gb.image component that will centralize the most possible function about images. And, especially, the conversion between different image formats. The image component can deal with 32 bits RGBA, RGB, BGR and BGRA formats only, but it can convert between more different formats. Can you take a quick look at that component to see if the YUV conversion you inserted in the gb.v4l component worth being put in that component? I have ported all components to this new design, and so CWebcam.c. Do you want a svn write access, so that you can commit your changes directly in it? I will have less work if I don't have to do it myself! Regards, -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Sat Jan 17 01:09:29 2009 From: gambas at ...1... (Benoit Minisini) Date: Sat, 17 Jan 2009 01:09:29 +0100 Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <12152150.345731232150053230.JavaMail.root@...616...> References: <12152150.345731232150053230.JavaMail.root@...616...> Message-ID: <200901170109.29520.gambas@...1...> On samedi 17 janvier 2009, Gareth Bult wrote: > Hi, > > After plugging in a new camera and finding it only supports V4L2 and hence > doesn't work (at all) with the Gambas V4L interface, I sat down and > re-coded a component from scratch for V4L2. This is now working and > includes conversion routines for non-RGB devices. (the #2 API is actually > quite different to #1) > > To get a clean start, I've called it "VideoDevice2" and apart from that > (and a few properties I'm still in the process of implementing) it's a drop > in replacement for the current "VideoDevice" object. > > Question:: should I submit this as a new module / new object type, or > should I try to integrate it into VideoDevice such that people don't need > to worry about whether they are using V4L or V4L2 ? (i.e. so a new object > type is not needed?) > > Gareth. Is V4L2 compatible with V4L? I mean, do all V4L features exist in V4L2? Apparently no user library is needed to use V4L or V4L2, so you can use both API in the same module, with the same interface. If V4L can be entirely replaced by V4L2, then you can just use V4L2, and drop the old code. Otherwise, you must think how you can know when you must use V4L, and when you must use V4L2. If you can't decide, then add an optional argument to the VideoDevice constructor that will tell which API to use. Regards, -- Benoit Minisini From gambas at ...1... Sat Jan 17 01:16:45 2009 From: gambas at ...1... (Benoit Minisini) Date: Sat, 17 Jan 2009 01:16:45 +0100 Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <200901170109.29520.gambas@...1...> References: <12152150.345731232150053230.JavaMail.root@...616...> <200901170109.29520.gambas@...1...> Message-ID: <200901170116.45555.gambas@...1...> On samedi 17 janvier 2009, Benoit Minisini wrote: > On samedi 17 janvier 2009, Gareth Bult wrote: > > Hi, > > > > After plugging in a new camera and finding it only supports V4L2 and > > hence doesn't work (at all) with the Gambas V4L interface, I sat down and > > re-coded a component from scratch for V4L2. This is now working and > > includes conversion routines for non-RGB devices. (the #2 API is actually > > quite different to #1) > > > > To get a clean start, I've called it "VideoDevice2" and apart from that > > (and a few properties I'm still in the process of implementing) it's a > > drop in replacement for the current "VideoDevice" object. > > > > Question:: should I submit this as a new module / new object type, or > > should I try to integrate it into VideoDevice such that people don't need > > to worry about whether they are using V4L or V4L2 ? (i.e. so a new object > > type is not needed?) > > > > Gareth. > > Is V4L2 compatible with V4L? I mean, do all V4L features exist in V4L2? > > Apparently no user library is needed to use V4L or V4L2, so you can use > both API in the same module, with the same interface. > > If V4L can be entirely replaced by V4L2, then you can just use V4L2, and > drop the old code. > > Otherwise, you must think how you can know when you must use V4L, and when > you must use V4L2. If you can't decide, then add an optional argument to > the VideoDevice constructor that will tell which API to use. > > Regards, To answer more clearly to your question: do not create a new module, just work in the current gb.v4l. -- Benoit Minisini From gareth at ...560... Sat Jan 17 05:13:09 2009 From: gareth at ...560... (Gareth Bult) Date: Sat, 17 Jan 2009 04:13:09 +0000 (GMT) Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <200901170109.29520.gambas@...1...> Message-ID: <19122061.345831232165588928.JavaMail.root@...616...> No, the problem is the API is different, and some camera are V4L and some are V4L2. It would need an v4l2 "ioctl" call to fail to indicate that the device was v4l. This would then set a boolean flag that would be checked in each method / property and an alternative version of the code called depending on the version. It also requires a different structure for CWEBCAM, this is what I'm working with for example; typedef struct { GB_BASE ob; GB_STREAM stream; char *device; int io; struct v4l2_capability cap; struct v4l2_cropcap cropcap; struct v4l2_crop crop; struct v4l2_format fmt; struct gv4l2_buffer* buffers; int use_mmap; int buffer_count; void* frame; } CWEBCAM; Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Saturday, 17 January, 2009 12:09:29 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] V4L2 for Gambas ... On samedi 17 janvier 2009, Gareth Bult wrote: > Hi, > > After plugging in a new camera and finding it only supports V4L2 and hence > doesn't work (at all) with the Gambas V4L interface, I sat down and > re-coded a component from scratch for V4L2. This is now working and > includes conversion routines for non-RGB devices. (the #2 API is actually > quite different to #1) > > To get a clean start, I've called it "VideoDevice2" and apart from that > (and a few properties I'm still in the process of implementing) it's a drop > in replacement for the current "VideoDevice" object. > > Question:: should I submit this as a new module / new object type, or > should I try to integrate it into VideoDevice such that people don't need > to worry about whether they are using V4L or V4L2 ? (i.e. so a new object > type is not needed?) > > Gareth. Is V4L2 compatible with V4L? I mean, do all V4L features exist in V4L2? Apparently no user library is needed to use V4L or V4L2, so you can use both API in the same module, with the same interface. If V4L can be entirely replaced by V4L2, then you can just use V4L2, and drop the old code. Otherwise, you must think how you can know when you must use V4L, and when you must use V4L2. If you can't decide, then add an optional argument to the VideoDevice constructor that will tell which API to use. Regards, -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...560... Sat Jan 17 05:14:17 2009 From: gareth at ...560... (Gareth Bult) Date: Sat, 17 Jan 2009 04:14:17 +0000 (GMT) Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <200901170116.45555.gambas@...1...> Message-ID: <23916879.345861232165657459.JavaMail.root@...616...> Ok, I'll grab an SVN update and see if I can merge what I have for V4L2 with V4L. What do I need re; SVN access ? Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Saturday, 17 January, 2009 12:16:45 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] V4L2 for Gambas ... On samedi 17 janvier 2009, Benoit Minisini wrote: > On samedi 17 janvier 2009, Gareth Bult wrote: > > Hi, > > > > After plugging in a new camera and finding it only supports V4L2 and > > hence doesn't work (at all) with the Gambas V4L interface, I sat down and > > re-coded a component from scratch for V4L2. This is now working and > > includes conversion routines for non-RGB devices. (the #2 API is actually > > quite different to #1) > > > > To get a clean start, I've called it "VideoDevice2" and apart from that > > (and a few properties I'm still in the process of implementing) it's a > > drop in replacement for the current "VideoDevice" object. > > > > Question:: should I submit this as a new module / new object type, or > > should I try to integrate it into VideoDevice such that people don't need > > to worry about whether they are using V4L or V4L2 ? (i.e. so a new object > > type is not needed?) > > > > Gareth. > > Is V4L2 compatible with V4L? I mean, do all V4L features exist in V4L2? > > Apparently no user library is needed to use V4L or V4L2, so you can use > both API in the same module, with the same interface. > > If V4L can be entirely replaced by V4L2, then you can just use V4L2, and > drop the old code. > > Otherwise, you must think how you can know when you must use V4L, and when > you must use V4L2. If you can't decide, then add an optional argument to > the VideoDevice constructor that will tell which API to use. > > Regards, To answer more clearly to your question: do not create a new module, just work in the current gb.v4l. -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Sat Jan 17 15:45:15 2009 From: gambas at ...1... (Benoit Minisini) Date: Sat, 17 Jan 2009 15:45:15 +0100 Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <23916879.345861232165657459.JavaMail.root@...616...> References: <23916879.345861232165657459.JavaMail.root@...616...> Message-ID: <200901171545.16050.gambas@...1...> On samedi 17 janvier 2009, Gareth Bult wrote: > Ok, > > I'll grab an SVN update and see if I can merge what I have for V4L2 with > V4L. > > What do I need re; SVN access ? > > Gareth. > To have a SVN write access, you need to have a sourceforge account and give me its name. -- Benoit Minisini From gareth at ...560... Sun Jan 18 00:06:38 2009 From: gareth at ...560... (Gareth Bult) Date: Sat, 17 Jan 2009 23:06:38 +0000 (GMT) Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <6224158.347751232233443990.JavaMail.root@...616...> Message-ID: <32080268.347771232233598238.JavaMail.root@...616...> Hi, Wow, brings back memories .. "oddjobz", although I've not used it in a while .. indeed I still have an active project on there although I've not touched it in over 4 years ("flashlinux") ... :( .. one day .. Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Saturday, 17 January, 2009 2:45:15 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] V4L2 for Gambas ... On samedi 17 janvier 2009, Gareth Bult wrote: > Ok, > > I'll grab an SVN update and see if I can merge what I have for V4L2 with > V4L. > > What do I need re; SVN access ? > > Gareth. > To have a SVN write access, you need to have a sourceforge account and give me its name. -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...560... Mon Jan 19 16:19:19 2009 From: gareth at ...560... (Gareth Bult) Date: Mon, 19 Jan 2009 15:19:19 +0000 (GMT) Subject: [Gambas-devel] Webcam mods (Logitec Quickcam 4000 etc) :: testers wanted ... In-Reply-To: <200901170014.37741.gambas@...1...> Message-ID: <2141520.353041232378359871.JavaMail.root@...616...> Ok ... now you've remove the "Picture" property from gb.v4l, how to we convert from GB.IMAGE back to "Picture" for use with Gambas Picture objects ??? (these changes break the sample programs too ...) ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Friday, 16 January, 2009 11:14:37 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Webcam mods (Logitec Quickcam 4000 etc) :: testers wanted ... On vendredi 9 janvier 2009, Gareth Bult wrote: > Hi, > > Attached is my version of CWebcam.c, if anyone can give this a try I would > very much appreciate it. (against trunk) > > Issues; > > The current V4L2 assumes that the camera will return an RGB signal that it > can stuff directly into a "Picture" or "Image" object. - not always the > case, for example with the Logitec QuickCam 4000 (and I'm sure quite a few > others) . > > As a result, a post-processor is required to convert from the Camera's > format (in this case yuv420p) to RGB. I've inserted a hook so this (and > possibly other) post-processing routines can be added. The actual > conversion routine I've hijacked directly from "Camorama", pretty much no > tweaking required. > > In addition and just to make life interesting, the VIDIOCGMBUF ioctl seems > to be partially broken, not sure if it's specific to the driver for this > camera or if it's a wider issue, however it seems to return a fixed buffer > size and frame count, regardless of the resolution specified. For 320x240 > this is fine, two frames will fit in the allocated space and it works fine. > However, for 640x480 it returns sufficient memory for 1 frame, but > specifies two frames in the header - not good! (this breaks gambas pretty > quickly) So I've included a fix to rewrite the "mbuf" field IF the contents > are invalid, i.e. if the widthxheightxdepthxframes is greater than the > allocated size. > > I'm hoping that none of this affects standard RGB cameras, again if someone > could test I would appreciate it. > > If you drop this into the v4l/src directory and do a make install, if your > Logitec wasn't working, running the webcam demo should now work. > > .. I'm new to hacking Gambas so if I've done something bad re; memory etc , > please let me know... > > > Regards, > Gareth. Hi, Gareth: I have completely redesigned the internal memory image management in Gambas since revision #1803. Now there is a gb.image component that will centralize the most possible function about images. And, especially, the conversion between different image formats. The image component can deal with 32 bits RGBA, RGB, BGR and BGRA formats only, but it can convert between more different formats. Can you take a quick look at that component to see if the YUV conversion you inserted in the gb.v4l component worth being put in that component? I have ported all components to this new design, and so CWebcam.c. Do you want a svn write access, so that you can commit your changes directly in it? I will have less work if I don't have to do it myself! Regards, -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...560... Mon Jan 19 17:48:33 2009 From: gareth at ...560... (Gareth Bult) Date: Mon, 19 Jan 2009 16:48:33 +0000 (GMT) Subject: [Gambas-devel] Webcam mods (Logitec Quickcam 4000 etc) :: testers wanted ... In-Reply-To: <15589994.353641232383614902.JavaMail.root@...616...> Message-ID: <30340506.353691232383712908.JavaMail.root@...616...> Ok, Answering my own question ( :) ) modifying the demo to read; Picturebox.Picture = hWebCam.Image.Picture works (from Picturebox.Picture = hWebCam.Picture) .. is this the way it "should" be done? I now have the basic V4L2 code integrated and am running two webcams side by side, looks fine in my demo program .. however I notice there is some flicker on the "MyWebCam" demo, and I'm not sure where it's coming from. (again, not seeing it on my demo) I guess this is going to be attributes set on visual components (?) but I can't spot the difference. Anyway, subject to implementing some of the more trivial properties (width, height etc..) I'm pretty much done. Just need SVN details for "oddjobz" .. Gareth. ----- Original Message ----- From: "Gareth Bult" To: "mailing list for gambas developers" Sent: Monday, 19 January, 2009 3:19:19 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Webcam mods (Logitec Quickcam 4000 etc) :: testers wanted ... Ok ... now you've remove the "Picture" property from gb.v4l, how to we convert from GB.IMAGE back to "Picture" for use with Gambas Picture objects ??? (these changes break the sample programs too ...) ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Friday, 16 January, 2009 11:14:37 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Webcam mods (Logitec Quickcam 4000 etc) :: testers wanted ... On vendredi 9 janvier 2009, Gareth Bult wrote: > Hi, > > Attached is my version of CWebcam.c, if anyone can give this a try I would > very much appreciate it. (against trunk) > > Issues; > > The current V4L2 assumes that the camera will return an RGB signal that it > can stuff directly into a "Picture" or "Image" object. - not always the > case, for example with the Logitec QuickCam 4000 (and I'm sure quite a few > others) . > > As a result, a post-processor is required to convert from the Camera's > format (in this case yuv420p) to RGB. I've inserted a hook so this (and > possibly other) post-processing routines can be added. The actual > conversion routine I've hijacked directly from "Camorama", pretty much no > tweaking required. > > In addition and just to make life interesting, the VIDIOCGMBUF ioctl seems > to be partially broken, not sure if it's specific to the driver for this > camera or if it's a wider issue, however it seems to return a fixed buffer > size and frame count, regardless of the resolution specified. For 320x240 > this is fine, two frames will fit in the allocated space and it works fine. > However, for 640x480 it returns sufficient memory for 1 frame, but > specifies two frames in the header - not good! (this breaks gambas pretty > quickly) So I've included a fix to rewrite the "mbuf" field IF the contents > are invalid, i.e. if the widthxheightxdepthxframes is greater than the > allocated size. > > I'm hoping that none of this affects standard RGB cameras, again if someone > could test I would appreciate it. > > If you drop this into the v4l/src directory and do a make install, if your > Logitec wasn't working, running the webcam demo should now work. > > .. I'm new to hacking Gambas so if I've done something bad re; memory etc , > please let me know... > > > Regards, > Gareth. Hi, Gareth: I have completely redesigned the internal memory image management in Gambas since revision #1803. Now there is a gb.image component that will centralize the most possible function about images. And, especially, the conversion between different image formats. The image component can deal with 32 bits RGBA, RGB, BGR and BGRA formats only, but it can convert between more different formats. Can you take a quick look at that component to see if the YUV conversion you inserted in the gb.v4l component worth being put in that component? I have ported all components to this new design, and so CWebcam.c. Do you want a svn write access, so that you can commit your changes directly in it? I will have less work if I don't have to do it myself! Regards, -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Tue Jan 20 14:54:28 2009 From: gambas at ...1... (Benoit Minisini) Date: Tue, 20 Jan 2009 14:54:28 +0100 Subject: [Gambas-devel] Webcam mods (Logitec Quickcam 4000 etc) :: testers wanted ... In-Reply-To: <30340506.353691232383712908.JavaMail.root@...616...> References: <30340506.353691232383712908.JavaMail.root@...616...> Message-ID: <200901201454.28953.gambas@...1...> On lundi 19 janvier 2009, Gareth Bult wrote: > Ok, > > Answering my own question ( :) ) modifying the demo to read; > > Picturebox.Picture = hWebCam.Image.Picture works > (from Picturebox.Picture = hWebCam.Picture) > > .. is this the way it "should" be done? Yes. The old way actually did the same thing internally, so to simplify my job, I removed it. > > I now have the basic V4L2 code integrated and am running two webcams side > by side, looks fine in my demo program .. however I notice there is some > flicker on the "MyWebCam" demo, and I'm not sure where it's coming from. > (again, not seeing it on my demo) I guess this is going to be attributes > set on visual components (?) but I can't spot the difference. It should come from the gui component. You can compare between gb.qt and gb.gtk to see if there is a difference. Anyway, I will look at that flickering problem after your code has been committed. > > Anyway, subject to implementing some of the more trivial properties (width, > height etc..) I'm pretty much done. > > Just need SVN details for "oddjobz" .. I granted you a svn write access. Please read carefully the "how to deal with Subversion" page in the wiki: I defined a standard for writing svn commit logs, so that the ChangeLog is automatically generated. So you must follow it! Regards, -- Benoit Minisini From gareth at ...560... Tue Jan 20 16:54:15 2009 From: gareth at ...560... (Gareth Bult) Date: Tue, 20 Jan 2009 15:54:15 +0000 (GMT) Subject: [Gambas-devel] Webcam mods (Logitec Quickcam 4000 etc) :: testers wanted ... In-Reply-To: <200901201454.28953.gambas@...1...> Message-ID: <31962081.360021232466855773.JavaMail.root@...616...> Ok (Phew!), I seem to have it working (!) V4L2 patches committed. Note; because of various changes the demo program (MyWebCam) does not currently work. I have patched my version to work, but it's a bit messey, I will attempt to write a new demo presently - hopefully this one will come without the flicker .. :) V4L2 Features; Transparent handling of V4L/V4L2 devices via "VideoDevice" VideoDevice will use V4L2 if possible, V4L otherwise, unless "forced" with; Cam = New VideoDevice(TxtDevice.Text, VideoDevice.V4L) Formats supported; a. RAW (although untested!) b. YUYV (Logitec QuickCam 3500) - tested. c. YUV420[p] (Logitec QuickCam 4000) - tested. (so I now have 2 different converters in the CConverters.c) VideoDevice.Features now includes "Card" which should be the full product name. (eg; "Logitec QuickCam Pro 4000") Notes; * V4L2 no longer supports Max/Min Width/Height for device dimensions. * I have nothing with a Tuner, so it's not implemented on V4L2 - anyone ? * Contrast/Color/Whiteness/Hue/Brightness no longer scale from 0-65535, hence there are some new properties, eg; Bright_Min,Bright_Max etc .. not sure if these should go into "Features" .. I'm not sure I see the point of "Features" in the first place tho'.. All main v4l2 code is in v4l2.c .. I'd quite like to re-factor all v4l code out a similar fashion to just leave CWebcam.c with Gambas class definition code .. this would make it easier to read and more maintainable .. ... just need to see if people can compile it now ... The other major change is getting a picture out of it ( not my fault! ;-) ) , instead of using; Try PictureBox1.Picture = hWebCam.Picture Use; PictureBox1.Picture = hWebCam.Image.Picture Note; I'd avoid using "Try" as it tends to give you a blank picture and no explanation.. Also, there is now a "Debug" property which will control the output of background text with regards to general status / unexpected results .. Debug is turned on by default at the moment. Now working on the demo .. :) Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Tuesday, 20 January, 2009 1:54:28 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Webcam mods (Logitec Quickcam 4000 etc) :: testers wanted ... On lundi 19 janvier 2009, Gareth Bult wrote: > Ok, > > Answering my own question ( :) ) modifying the demo to read; > > Picturebox.Picture = hWebCam.Image.Picture works > (from Picturebox.Picture = hWebCam.Picture) > > .. is this the way it "should" be done? Yes. The old way actually did the same thing internally, so to simplify my job, I removed it. > > I now have the basic V4L2 code integrated and am running two webcams side > by side, looks fine in my demo program .. however I notice there is some > flicker on the "MyWebCam" demo, and I'm not sure where it's coming from. > (again, not seeing it on my demo) I guess this is going to be attributes > set on visual components (?) but I can't spot the difference. It should come from the gui component. You can compare between gb.qt and gb.gtk to see if there is a difference. Anyway, I will look at that flickering problem after your code has been committed. > > Anyway, subject to implementing some of the more trivial properties (width, > height etc..) I'm pretty much done. > > Just need SVN details for "oddjobz" .. I granted you a svn write access. Please read carefully the "how to deal with Subversion" page in the wiki: I defined a standard for writing svn commit logs, so that the ChangeLog is automatically generated. So you must follow it! Regards, -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From priastefano at ...506... Tue Jan 20 23:38:17 2009 From: priastefano at ...506... (stefano) Date: Tue, 20 Jan 2009 23:38:17 +0100 Subject: [Gambas-devel] Info request In-Reply-To: References: Message-ID: <1232491097.11358.14.camel@...618...> Hi to all, I have one question: sometimes my Gambas application stop to work... what can I check to understand why ? Whith ps -e command I see the gbx2 is running but my GUI is freeze, the serial line don't manage any character, also the touch screen don't work... but the system is live, apache works but the socket that spoke with my application don't work, I can work in that situation with ssh... but not with vnc server (freeze of course). I don't have in that system a window manager, only server X on Debian lenny distro. Gambas ver is 2.6.... you must to know that the system works 24 hour per day.... but sometimes in one day stop 2 times (for example) after can works for a week and so on. Gambas have some log file, trace file that I can check ? or have you any tips for me ? Thanks a lot in adsvance for your cooperation. Best regards Stefano Pria From gambas at ...1... Wed Jan 21 00:08:35 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 21 Jan 2009 00:08:35 +0100 Subject: [Gambas-devel] Info request In-Reply-To: <1232491097.11358.14.camel@...618...> References: <1232491097.11358.14.camel@...618...> Message-ID: <200901210008.35228.gambas@...1...> On mardi 20 janvier 2009, stefano wrote: > Hi to all, > > I have one question: sometimes my Gambas application stop to work... > what can I check to understand why ? > Whith ps -e command I see the gbx2 is running but my GUI is freeze, the > serial line don't manage any character, also the touch screen don't > work... but the system is live, apache works but the socket that spoke > with my application don't work, I can work in that situation with ssh... > but not with vnc server (freeze of course). > I don't have in that system a window manager, only server X on Debian > lenny distro. > Gambas ver is 2.6.... you must to know that the system works 24 hour per > day.... but sometimes in one day stop 2 times (for example) after can > works for a week and so on. > Gambas have some log file, trace file that I can check ? or have you any > tips for me ? > > Thanks a lot in adsvance for your cooperation. > > Best regards > Stefano Pria > > If you can run a shell on a machine, you can do that: 1) Get the pid of the frozen gbx2. 2) Run "gdb /usr/bin/gbx2 " to stop the process and debug it. 3) Use the gdb "bt" command to get a stack backtrace and send it to me. Anyway, you should try to get a more recent version of Gambas, as it may be a bug that has been fixed since. Regards, -- Benoit Minisini From gambas at ...1... Wed Jan 21 00:24:33 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 21 Jan 2009 00:24:33 +0100 Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <32080268.347771232233598238.JavaMail.root@...616...> References: <32080268.347771232233598238.JavaMail.root@...616...> Message-ID: <200901210024.33102.gambas@...1...> On dimanche 18 janvier 2009, Gareth Bult wrote: > Hi, > > Wow, brings back memories .. "oddjobz", although I've not used it in a > while .. indeed I still have an active project on there although I've not > touched it in over 4 years ("flashlinux") ... :( .. one day .. > > Gareth. > I answer this post, as I didn't receive from sourceforge the post I sent yesterday. Just to tell you that you must use the "Pascal" convention for class identifiers. In other words, use "MaxConstrast" instead of "Contrast_Max", and so on. Regards, -- Benoit Minisini From gareth at ...560... Wed Jan 21 00:30:10 2009 From: gareth at ...560... (Gareth Bult) Date: Tue, 20 Jan 2009 23:30:10 +0000 (GMT) Subject: [Gambas-devel] Gambas Memory leak ... (?!) In-Reply-To: <8654418.361791232494105946.JavaMail.root@...616...> Message-ID: <28561850.361811232494210718.JavaMail.root@...616...> Hi, My Webcam demo is looking good, it runs V4L[1|2] cameras in tandem .. indeed I left two cameras running earlier and have just returned to find gbx3 has run out of memory at 1.8Gb. Having traced through the code, nothing I'm doing inside that loop is allocating memory .. directly .. :( Indeed I can only see two possible leaks; a. In Gambas on the line; pic.Picture = $device.Image.Picture (which is the line the code errored on ..) b. In CWebcam.c on the line; GB.ReturnObject(IMAGE.Create(THIS->w,THIS->h,GB_IMAGE_BGR,THIS->frame)); Does anything spring to mind ??? ... just double-double checked .. I can't see any other possibilities .. ??? Gareth. -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gareth at ...560... Wed Jan 21 00:31:30 2009 From: gareth at ...560... (Gareth Bult) Date: Tue, 20 Jan 2009 23:31:30 +0000 (GMT) Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <200901210024.33102.gambas@...1...> Message-ID: <4844400.361841232494290959.JavaMail.root@...616...> Ok, I can do this .. can you tell me whether "Features" should exist ... and if it should; a. Why? b. Should the "Max" / "Min" 's be put there .. ? Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Tuesday, 20 January, 2009 11:24:33 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] V4L2 for Gambas ... On dimanche 18 janvier 2009, Gareth Bult wrote: > Hi, > > Wow, brings back memories .. "oddjobz", although I've not used it in a > while .. indeed I still have an active project on there although I've not > touched it in over 4 years ("flashlinux") ... :( .. one day .. > > Gareth. > I answer this post, as I didn't receive from sourceforge the post I sent yesterday. Just to tell you that you must use the "Pascal" convention for class identifiers. In other words, use "MaxConstrast" instead of "Contrast_Max", and so on. Regards, -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...560... Wed Jan 21 00:33:31 2009 From: gareth at ...560... (Gareth Bult) Date: Tue, 20 Jan 2009 23:33:31 +0000 (GMT) Subject: [Gambas-devel] Gambas Memory leak ... (?!) In-Reply-To: <28561850.361811232494210718.JavaMail.root@...616...> Message-ID: <11499706.361871232494411837.JavaMail.root@...616...> Ok, Running the code again with a memory trace .. it's eating 7Mb/sec .. something is very wrong ... Gareth. ----- Original Message ----- From: "Gareth Bult" To: "mailing list for gambas developers" Sent: Tuesday, 20 January, 2009 11:30:10 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: [Gambas-devel] Gambas Memory leak ... (?!) Hi, My Webcam demo is looking good, it runs V4L[1|2] cameras in tandem .. indeed I left two cameras running earlier and have just returned to find gbx3 has run out of memory at 1.8Gb. Having traced through the code, nothing I'm doing inside that loop is allocating memory .. directly .. :( Indeed I can only see two possible leaks; a. In Gambas on the line; pic.Picture = $device.Image.Picture (which is the line the code errored on ..) b. In CWebcam.c on the line; GB.ReturnObject(IMAGE.Create(THIS->w,THIS->h,GB_IMAGE_BGR,THIS->frame)); Does anything spring to mind ??? ... just double-double checked .. I can't see any other possibilities .. ??? Gareth. -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Wed Jan 21 00:34:56 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 21 Jan 2009 00:34:56 +0100 Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <4844400.361841232494290959.JavaMail.root@...616...> References: <4844400.361841232494290959.JavaMail.root@...616...> Message-ID: <200901210034.56156.gambas@...1...> On mercredi 21 janvier 2009, Gareth Bult wrote: > Ok, > > I can do this .. can you tell me whether "Features" should exist ... and if > it should; > > a. Why? > b. Should the "Max" / "Min" 's be put there .. ? > > Gareth. > > Sourceforge mailing-lists are a pleasure. I get your posts but not mine... For "Features", I don't know: is it possible to implement it in v4l2? It should, as it would be strange if v4l2 has less features than v4l. The other question is: does "Features" return important information for using the component? -- Benoit Minisini From gareth at ...560... Wed Jan 21 00:41:44 2009 From: gareth at ...560... (Gareth Bult) Date: Tue, 20 Jan 2009 23:41:44 +0000 (GMT) Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <200901210034.56156.gambas@...1...> Message-ID: <22530644.361901232494904805.JavaMail.root@...616...> Sorry, my question was, why were some (arbitrary) properties put into a subclass called "features" rather than just being properties of the class. For example; Why do we use; webcam.Features.Name Rather than; webcam.Name It just seems to add a layer of complication for no apparent reason ?? Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Tuesday, 20 January, 2009 11:34:56 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] V4L2 for Gambas ... On mercredi 21 janvier 2009, Gareth Bult wrote: > Ok, > > I can do this .. can you tell me whether "Features" should exist ... and if > it should; > > a. Why? > b. Should the "Max" / "Min" 's be put there .. ? > > Gareth. > > Sourceforge mailing-lists are a pleasure. I get your posts but not mine... For "Features", I don't know: is it possible to implement it in v4l2? It should, as it would be strange if v4l2 has less features than v4l. The other question is: does "Features" return important information for using the component? -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Wed Jan 21 00:39:13 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 21 Jan 2009 00:39:13 +0100 Subject: [Gambas-devel] Gambas Memory leak ... (?!) In-Reply-To: <11499706.361871232494411837.JavaMail.root@...616...> References: <11499706.361871232494411837.JavaMail.root@...616...> Message-ID: <200901210039.13508.gambas@...1...> On mercredi 21 janvier 2009, Gareth Bult wrote: > Ok, > > Running the code again with a memory trace .. it's eating 7Mb/sec .. > something is very wrong ... > > Gareth. > > > ----- Original Message ----- > From: "Gareth Bult" > To: "mailing list for gambas developers" > Sent: Tuesday, 20 January, 2009 > 11:30:10 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: > [Gambas-devel] Gambas Memory leak ... (?!) > > > Hi, > > My Webcam demo is looking good, it runs V4L[1|2] cameras in tandem .. > indeed I left two cameras running earlier and have just returned to find > gbx3 has run out of memory at 1.8Gb. Having traced through the code, > nothing I'm doing inside that loop is allocating memory .. directly .. :( > > Indeed I can only see two possible leaks; > > a. In Gambas on the line; > > pic.Picture = $device.Image.Picture > (which is the line the code errored on ..) > > b. In CWebcam.c on the line; > > GB.ReturnObject(IMAGE.Create(THIS->w,THIS->h,GB_IMAGE_BGR,THIS->frame)); > > Does anything spring to mind ??? > > ... just double-double checked .. I can't see any other possibilities .. > ??? > > Gareth. > Do you have the memory leak with a v4l camera? Can the memory leak come from gv4l2_read_frame()? -- Benoit Minisini From gambas at ...1... Wed Jan 21 00:40:51 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 21 Jan 2009 00:40:51 +0100 Subject: [Gambas-devel] Gambas Memory leak ... (?!) In-Reply-To: <11499706.361871232494411837.JavaMail.root@...616...> References: <11499706.361871232494411837.JavaMail.root@...616...> Message-ID: <200901210040.51781.gambas@...1...> On mercredi 21 janvier 2009, Gareth Bult wrote: > Ok, > > Running the code again with a memory trace .. it's eating 7Mb/sec .. > something is very wrong ... > > Gareth. > > > ----- Original Message ----- > From: "Gareth Bult" > To: "mailing list for gambas developers" > Sent: Tuesday, 20 January, 2009 > 11:30:10 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: > [Gambas-devel] Gambas Memory leak ... (?!) > > > Hi, > > My Webcam demo is looking good, it runs V4L[1|2] cameras in tandem .. > indeed I left two cameras running earlier and have just returned to find > gbx3 has run out of memory at 1.8Gb. Having traced through the code, > nothing I'm doing inside that loop is allocating memory .. directly .. :( > > Indeed I can only see two possible leaks; > > a. In Gambas on the line; > > pic.Picture = $device.Image.Picture > (which is the line the code errored on ..) > > b. In CWebcam.c on the line; > > GB.ReturnObject(IMAGE.Create(THIS->w,THIS->h,GB_IMAGE_BGR,THIS->frame)); > > Does anything spring to mind ??? > > ... just double-double checked .. I can't see any other possibilities .. > ??? > > Gareth. > Do you use gb.qt or gb.gtk for displaying things? -- Benoit Minisini From gareth at ...560... Wed Jan 21 00:51:21 2009 From: gareth at ...560... (Gareth Bult) Date: Tue, 20 Jan 2009 23:51:21 +0000 (GMT) Subject: [Gambas-devel] Gambas Memory leak ... (?!) In-Reply-To: <200901210039.13508.gambas@...1...> Message-ID: <7728377.361931232495480558.JavaMail.root@...616...> >Do you have the memory leak with a v4l camera? Can the memory leak come from >gv4l2_read_frame()? I will check what happens when I use V4L with my current code presently, however there is "no" memory allocation within "gv4l2_read_frame()". Memory mapped buffers are created in; "init_device" Along with "THIS->frame" which is a static buffer used as a target for the conversion routines. Rough mapping; .Image calls CWEBCAM_image => cwebcam_image => gv42l_read_frame( THIS ) => gv42l calls xioctl a few times and calls gv4l2_process_image) => process_image calls one of the conversion routines from CConverters.c (there are no malloc's or free's in this file) => result then goes to the IMAGE.Create call. .. which leads me to IMAGE.Create, or .Image->Picture ... Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Tuesday, 20 January, 2009 11:39:13 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Gambas Memory leak ... (?!) On mercredi 21 janvier 2009, Gareth Bult wrote: > Ok, > > Running the code again with a memory trace .. it's eating 7Mb/sec .. > something is very wrong ... > > Gareth. > > > ----- Original Message ----- > From: "Gareth Bult" > To: "mailing list for gambas developers" > Sent: Tuesday, 20 January, 2009 > 11:30:10 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: > [Gambas-devel] Gambas Memory leak ... (?!) > > > Hi, > > My Webcam demo is looking good, it runs V4L[1|2] cameras in tandem .. > indeed I left two cameras running earlier and have just returned to find > gbx3 has run out of memory at 1.8Gb. Having traced through the code, > nothing I'm doing inside that loop is allocating memory .. directly .. :( > > Indeed I can only see two possible leaks; > > a. In Gambas on the line; > > pic.Picture = $device.Image.Picture > (which is the line the code errored on ..) > > b. In CWebcam.c on the line; > > GB.ReturnObject(IMAGE.Create(THIS->w,THIS->h,GB_IMAGE_BGR,THIS->frame)); > > Does anything spring to mind ??? > > ... just double-double checked .. I can't see any other possibilities .. > ??? > > Gareth. > Do you have the memory leak with a v4l camera? Can the memory leak come from gv4l2_read_frame()? -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...560... Wed Jan 21 00:52:21 2009 From: gareth at ...560... (Gareth Bult) Date: Tue, 20 Jan 2009 23:52:21 +0000 (GMT) Subject: [Gambas-devel] Gambas Memory leak ... (?!) In-Reply-To: <200901210040.51781.gambas@...1...> Message-ID: <30828119.361961232495541085.JavaMail.root@...616...> I'm using the generic GUI, rather than Gtk or Qt specifically ... which by the look of things uses Qt when I'm designing and Gtk when it runs ... ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Tuesday, 20 January, 2009 11:40:51 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Gambas Memory leak ... (?!) On mercredi 21 janvier 2009, Gareth Bult wrote: > Ok, > > Running the code again with a memory trace .. it's eating 7Mb/sec .. > something is very wrong ... > > Gareth. > > > ----- Original Message ----- > From: "Gareth Bult" > To: "mailing list for gambas developers" > Sent: Tuesday, 20 January, 2009 > 11:30:10 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: > [Gambas-devel] Gambas Memory leak ... (?!) > > > Hi, > > My Webcam demo is looking good, it runs V4L[1|2] cameras in tandem .. > indeed I left two cameras running earlier and have just returned to find > gbx3 has run out of memory at 1.8Gb. Having traced through the code, > nothing I'm doing inside that loop is allocating memory .. directly .. :( > > Indeed I can only see two possible leaks; > > a. In Gambas on the line; > > pic.Picture = $device.Image.Picture > (which is the line the code errored on ..) > > b. In CWebcam.c on the line; > > GB.ReturnObject(IMAGE.Create(THIS->w,THIS->h,GB_IMAGE_BGR,THIS->frame)); > > Does anything spring to mind ??? > > ... just double-double checked .. I can't see any other possibilities .. > ??? > > Gareth. > Do you use gb.qt or gb.gtk for displaying things? -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...560... Wed Jan 21 00:55:48 2009 From: gareth at ...560... (Gareth Bult) Date: Tue, 20 Jan 2009 23:55:48 +0000 (GMT) Subject: [Gambas-devel] Gambas Memory leak ... (?!) In-Reply-To: <200901210040.51781.gambas@...1...> Message-ID: <26976949.361991232495748062.JavaMail.root@...616...> Ok, I have 1 camera that will run with V4L or V4L2, so I've unplugged the V4L2 only camera and am forcing the device create for "V4L", and verifying that it's actually using V4L. It's definitely on the V4L interface, and still leaking memory like there's no tomorrow. Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Tuesday, 20 January, 2009 11:40:51 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Gambas Memory leak ... (?!) On mercredi 21 janvier 2009, Gareth Bult wrote: > Ok, > > Running the code again with a memory trace .. it's eating 7Mb/sec .. > something is very wrong ... > > Gareth. > > > ----- Original Message ----- > From: "Gareth Bult" > To: "mailing list for gambas developers" > Sent: Tuesday, 20 January, 2009 > 11:30:10 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: > [Gambas-devel] Gambas Memory leak ... (?!) > > > Hi, > > My Webcam demo is looking good, it runs V4L[1|2] cameras in tandem .. > indeed I left two cameras running earlier and have just returned to find > gbx3 has run out of memory at 1.8Gb. Having traced through the code, > nothing I'm doing inside that loop is allocating memory .. directly .. :( > > Indeed I can only see two possible leaks; > > a. In Gambas on the line; > > pic.Picture = $device.Image.Picture > (which is the line the code errored on ..) > > b. In CWebcam.c on the line; > > GB.ReturnObject(IMAGE.Create(THIS->w,THIS->h,GB_IMAGE_BGR,THIS->frame)); > > Does anything spring to mind ??? > > ... just double-double checked .. I can't see any other possibilities .. > ??? > > Gareth. > Do you use gb.qt or gb.gtk for displaying things? -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Wed Jan 21 00:55:05 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 21 Jan 2009 00:55:05 +0100 Subject: [Gambas-devel] Gambas Memory leak ... (?!) In-Reply-To: <30828119.361961232495541085.JavaMail.root@...616...> References: <30828119.361961232495541085.JavaMail.root@...616...> Message-ID: <200901210055.05784.gambas@...1...> On mercredi 21 janvier 2009, Gareth Bult wrote: > I'm using the generic GUI, rather than Gtk or Qt specifically ... which by > the look of things uses Qt when I'm designing and Gtk when it runs ... > Can you force gb.qt to see if you have the memory leak? To do that, define the environment variable GB_GUI to "gb.qt" in the project property dialog. -- Benoit Minisini From gareth at ...560... Wed Jan 21 01:02:36 2009 From: gareth at ...560... (Gareth Bult) Date: Wed, 21 Jan 2009 00:02:36 +0000 (GMT) Subject: [Gambas-devel] Gambas Memory leak ... (?!) In-Reply-To: <200901210055.05784.gambas@...1...> Message-ID: <12937009.362021232496156915.JavaMail.root@...616...> Done - issue still present. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Tuesday, 20 January, 2009 11:55:05 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Gambas Memory leak ... (?!) On mercredi 21 janvier 2009, Gareth Bult wrote: > I'm using the generic GUI, rather than Gtk or Qt specifically ... which by > the look of things uses Qt when I'm designing and Gtk when it runs ... > Can you force gb.qt to see if you have the memory leak? To do that, define the environment variable GB_GUI to "gb.qt" in the project property dialog. -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...560... Wed Jan 21 01:05:29 2009 From: gareth at ...560... (Gareth Bult) Date: Wed, 21 Jan 2009 00:05:29 +0000 (GMT) Subject: [Gambas-devel] Gambas Memory leak ... (?!) In-Reply-To: <200901210055.05784.gambas@...1...> Message-ID: <29331289.362051232496329025.JavaMail.root@...616...> I notice that now I've switched to Qt the main window no longer honors the "No Border" attribute (!) ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Tuesday, 20 January, 2009 11:55:05 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Gambas Memory leak ... (?!) On mercredi 21 janvier 2009, Gareth Bult wrote: > I'm using the generic GUI, rather than Gtk or Qt specifically ... which by > the look of things uses Qt when I'm designing and Gtk when it runs ... > Can you force gb.qt to see if you have the memory leak? To do that, define the environment variable GB_GUI to "gb.qt" in the project property dialog. -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...560... Wed Jan 21 01:17:00 2009 From: gareth at ...560... (Gareth Bult) Date: Wed, 21 Jan 2009 00:17:00 +0000 (GMT) Subject: [Gambas-devel] Gambas Memory leak ... (?!) In-Reply-To: <1500776.362081232497000725.JavaMail.root@...616...> Message-ID: <5913031.362101232497020522.JavaMail.root@...616...> Mmm, Well I've found one problem .. that issue I reported re; flickering .. only happens on Qt, Gtk is fine. :) Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Tuesday, 20 January, 2009 11:55:05 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Gambas Memory leak ... (?!) On mercredi 21 janvier 2009, Gareth Bult wrote: > I'm using the generic GUI, rather than Gtk or Qt specifically ... which by > the look of things uses Qt when I'm designing and Gtk when it runs ... > Can you force gb.qt to see if you have the memory leak? To do that, define the environment variable GB_GUI to "gb.qt" in the project property dialog. -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From ronstk at ...124... Wed Jan 21 01:23:53 2009 From: ronstk at ...124... (Ron_1st) Date: Wed, 21 Jan 2009 01:23:53 +0100 Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <22530644.361901232494904805.JavaMail.root@...616...> References: <22530644.361901232494904805.JavaMail.root@...616...> Message-ID: <200901210123.53648.ronstk@...124...> On Wednesday 21 January 2009, Gareth Bult wrote: > Sorry, my question was, why were some (arbitrary) properties put into a subclass called "features" rather than just being properties of the class. For example; > > Why do we use; > > webcam.Features.Name > > Rather than; > > webcam.Name > > It just seems to add a layer of complication for no apparent reason ?? > > Gareth. > > > ----- Original Message ----- > From: "Benoit Minisini" > To: "mailing list for gambas developers" > Sent: Tuesday, 20 January, 2009 11:34:56 PM GMT +00:00 GMT Britain, Ireland, Portugal > Subject: Re: [Gambas-devel] V4L2 for Gambas ... > > On mercredi 21 janvier 2009, Gareth Bult wrote: > > Ok, > > > > I can do this .. can you tell me whether "Features" should exist ... and if > > it should; > > > > a. Why? > > b. Should the "Max" / "Min" 's be put there .. ? > > > > Gareth. > > > > > Could be because not every hardware video device _has_ these controls. the /dev/videoX is the link to the stream. Features are a dev_sub thing on the /dev/videoX My videocard has some Features that not all cards have too if webcam.Features then webcam.Features.Bright=1 else print "No Features!! (bright/contrast/saturation etc.)" endif I had pain in brain reading the v4l2 C-code stuff :) Best regards, Ron_1st -- From gareth at ...560... Wed Jan 21 01:25:57 2009 From: gareth at ...560... (Gareth Bult) Date: Wed, 21 Jan 2009 00:25:57 +0000 (GMT) Subject: [Gambas-devel] Gambas Memory leak ... (?!) In-Reply-To: <5913031.362101232497020522.JavaMail.root@...616...> Message-ID: <6658857.362131232497557607.JavaMail.root@...616...> Ok, I can tell you with 100% accuracy now where the problem is .. GB.ReturnObject(IMAGE.Create(THIS->w,THIS->h,GB_IMAGE_BGR,THIS->frame)); I replaced the Gambas with; 'pic.Picture = $device.Image.Picture img = $device.Image To remove the picture conversion - no change. Then I replaced; GB.ReturnNull(); //GB.ReturnObject(IMAGE.Create(THIS->w,THIS->h,GB_IMAGE_BGR,THIS->frame)); Memory usage is now 100% stable. :) Gareth. ----- Original Message ----- From: "Gareth Bult" To: "mailing list for gambas developers" Sent: Wednesday, 21 January, 2009 12:17:00 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Gambas Memory leak ... (?!) Mmm, Well I've found one problem .. that issue I reported re; flickering .. only happens on Qt, Gtk is fine. :) Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Tuesday, 20 January, 2009 11:55:05 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Gambas Memory leak ... (?!) On mercredi 21 janvier 2009, Gareth Bult wrote: > I'm using the generic GUI, rather than Gtk or Qt specifically ... which by > the look of things uses Qt when I'm designing and Gtk when it runs ... > Can you force gb.qt to see if you have the memory leak? To do that, define the environment variable GB_GUI to "gb.qt" in the project property dialog. -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Wed Jan 21 01:39:16 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 21 Jan 2009 01:39:16 +0100 Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <22530644.361901232494904805.JavaMail.root@...616...> References: <22530644.361901232494904805.JavaMail.root@...616...> Message-ID: <200901210139.16178.gambas@...1...> On mercredi 21 janvier 2009, Gareth Bult wrote: > Sorry, my question was, why were some (arbitrary) properties put into a > subclass called "features" rather than just being properties of the class. > For example; > > Why do we use; > > webcam.Features.Name > > Rather than; > > webcam.Name > > It just seems to add a layer of complication for no apparent reason ?? > > Gareth. > > Dunno. Maybe Daniel Campos didn't like having too many properties in the main class? Only him has the answer... -- Benoit Minisini From gambas at ...1... Wed Jan 21 01:43:24 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 21 Jan 2009 01:43:24 +0100 Subject: [Gambas-devel] Gambas Memory leak ... (?!) In-Reply-To: <5913031.362101232497020522.JavaMail.root@...616...> References: <5913031.362101232497020522.JavaMail.root@...616...> Message-ID: <200901210143.24091.gambas@...1...> On mercredi 21 janvier 2009, Gareth Bult wrote: > Mmm, > > Well I've found one problem .. that issue I reported re; flickering .. only > happens on Qt, Gtk is fine. > > :) > > Gareth. > The PictureBox does flicker in gb.qt at the moment. I didn't have the time to understand why at the moment... -- Benoit Minisini From gambas at ...1... Wed Jan 21 01:51:02 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 21 Jan 2009 01:51:02 +0100 Subject: [Gambas-devel] Gambas Memory leak ... (?!) In-Reply-To: <6658857.362131232497557607.JavaMail.root@...616...> References: <6658857.362131232497557607.JavaMail.root@...616...> Message-ID: <200901210151.02830.gambas@...1...> On mercredi 21 janvier 2009, Gareth Bult wrote: > Ok, > > I can tell you with 100% accuracy now where the problem is .. > GB.ReturnObject(IMAGE.Create(THIS->w,THIS->h,GB_IMAGE_BGR,THIS->frame)); > > I replaced the Gambas with; > > 'pic.Picture = $device.Image.Picture > img = $device.Image > > To remove the picture conversion - no change. > > Then I replaced; > > GB.ReturnNull(); > //GB.ReturnObject(IMAGE.Create(THIS->w,THIS->h,GB_IMAGE_BGR,THIS->frame)); > > Memory usage is now 100% stable. > > :) > > Gareth. > > I have identified where the memory is leaked in gb.image. Now I must fix it.... -- Benoit Minisini From gambas at ...1... Wed Jan 21 02:27:58 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 21 Jan 2009 02:27:58 +0100 Subject: [Gambas-devel] Gambas Memory leak ... (?!) In-Reply-To: <200901210151.02830.gambas@...1...> References: <6658857.362131232497557607.JavaMail.root@...616...> <200901210151.02830.gambas@...1...> Message-ID: <200901210227.58279.gambas@...1...> On mercredi 21 janvier 2009, Benoit Minisini wrote: > On mercredi 21 janvier 2009, Gareth Bult wrote: > > Ok, > > > > I can tell you with 100% accuracy now where the problem is .. > > GB.ReturnObject(IMAGE.Create(THIS->w,THIS->h,GB_IMAGE_BGR,THIS->frame)); > > > > I replaced the Gambas with; > > > > 'pic.Picture = $device.Image.Picture > > img = $device.Image > > > > To remove the picture conversion - no change. > > > > Then I replaced; > > > > GB.ReturnNull(); > > //GB.ReturnObject(IMAGE.Create(THIS->w,THIS->h,GB_IMAGE_BGR,THIS->frame) > >); > > > > Memory usage is now 100% stable. > > > > :) > > > > Gareth. > > I have identified where the memory is leaked in gb.image. Now I must fix > it.... OK, the memory leaks are fixed in revision #1806 (there were two memory leaks!) -- Benoit Minisini From gareth at ...560... Wed Jan 21 03:26:18 2009 From: gareth at ...560... (Gareth Bult) Date: Wed, 21 Jan 2009 02:26:18 +0000 (GMT) Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <200901210123.53648.ronstk@...124...> Message-ID: <363105.362161232504778454.JavaMail.root@...616...> >Could be because not every hardware video device _has_ these controls. Urm, no. Otherwise things like "Hue" and "Whiteness" would be there too (!) ----- Original Message ----- From: "Ron_1st" To: gambas-devel at lists.sourceforge.net Sent: Wednesday, 21 January, 2009 12:23:53 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] V4L2 for Gambas ... On Wednesday 21 January 2009, Gareth Bult wrote: > Sorry, my question was, why were some (arbitrary) properties put into a subclass called "features" rather than just being properties of the class. For example; > > Why do we use; > > webcam.Features.Name > > Rather than; > > webcam.Name > > It just seems to add a layer of complication for no apparent reason ?? > > Gareth. > > > ----- Original Message ----- > From: "Benoit Minisini" > To: "mailing list for gambas developers" > Sent: Tuesday, 20 January, 2009 11:34:56 PM GMT +00:00 GMT Britain, Ireland, Portugal > Subject: Re: [Gambas-devel] V4L2 for Gambas ... > > On mercredi 21 janvier 2009, Gareth Bult wrote: > > Ok, > > > > I can do this .. can you tell me whether "Features" should exist ... and if > > it should; > > > > a. Why? > > b. Should the "Max" / "Min" 's be put there .. ? > > > > Gareth. > > > > > Could be because not every hardware video device _has_ these controls. the /dev/videoX is the link to the stream. Features are a dev_sub thing on the /dev/videoX My videocard has some Features that not all cards have too if webcam.Features then webcam.Features.Bright=1 else print "No Features!! (bright/contrast/saturation etc.)" endif I had pain in brain reading the v4l2 C-code stuff :) Best regards, Ron_1st -- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...560... Wed Jan 21 03:27:46 2009 From: gareth at ...560... (Gareth Bult) Date: Wed, 21 Jan 2009 02:27:46 +0000 (GMT) Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <200901210139.16178.gambas@...1...> Message-ID: <30267268.362191232504866065.JavaMail.root@...616...> Any objections to me scrapping it as unwanted cruft .. I see no reason why it should exist, all these properties should be properties of the device and are not features. True some of the properties are device specific, but then some of the device properties not in features are also device specific .. Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Wednesday, 21 January, 2009 12:39:16 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] V4L2 for Gambas ... On mercredi 21 janvier 2009, Gareth Bult wrote: > Sorry, my question was, why were some (arbitrary) properties put into a > subclass called "features" rather than just being properties of the class. > For example; > > Why do we use; > > webcam.Features.Name > > Rather than; > > webcam.Name > > It just seems to add a layer of complication for no apparent reason ?? > > Gareth. > > Dunno. Maybe Daniel Campos didn't like having too many properties in the main class? Only him has the answer... -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...560... Wed Jan 21 03:28:20 2009 From: gareth at ...560... (Gareth Bult) Date: Wed, 21 Jan 2009 02:28:20 +0000 (GMT) Subject: [Gambas-devel] Gambas Memory leak ... (?!) In-Reply-To: <200901210143.24091.gambas@...1...> Message-ID: <11287852.362221232504900244.JavaMail.root@...616...> :) No problem, I'm not a Qt fan and never use it by choice .. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Wednesday, 21 January, 2009 12:43:24 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Gambas Memory leak ... (?!) On mercredi 21 janvier 2009, Gareth Bult wrote: > Mmm, > > Well I've found one problem .. that issue I reported re; flickering .. only > happens on Qt, Gtk is fine. > > :) > > Gareth. > The PictureBox does flicker in gb.qt at the moment. I didn't have the time to understand why at the moment... -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...560... Wed Jan 21 03:49:20 2009 From: gareth at ...560... (Gareth Bult) Date: Wed, 21 Jan 2009 02:49:20 +0000 (GMT) Subject: [Gambas-devel] Gambas Memory leak ... (?!) In-Reply-To: <25701019.362271232505505370.JavaMail.root@...616...> Message-ID: <23166366.362291232506160187.JavaMail.root@...616...> Oh dear (!) I'm afraid it looks like you've broken something .. when I try to load a project I get a Division by zero in Project.GetFileIcon.675 .. I'm also seeing lots of; QImage::convertDepth: Image is a null image QImage::convertDepth: Image is a null image ... No projects will open ... I'm sort of guessing you'll know roughly where the problem is ?? Gareth. ----- Original Message ----- From: "Benoit Minisini" To: gambas-devel at lists.sourceforge.net Sent: Wednesday, 21 January, 2009 1:27:58 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Gambas Memory leak ... (?!) On mercredi 21 janvier 2009, Benoit Minisini wrote: > On mercredi 21 janvier 2009, Gareth Bult wrote: > > Ok, > > > > I can tell you with 100% accuracy now where the problem is .. > > GB.ReturnObject(IMAGE.Create(THIS->w,THIS->h,GB_IMAGE_BGR,THIS->frame)); > > > > I replaced the Gambas with; > > > > 'pic.Picture = $device.Image.Picture > > img = $device.Image > > > > To remove the picture conversion - no change. > > > > Then I replaced; > > > > GB.ReturnNull(); > > //GB.ReturnObject(IMAGE.Create(THIS->w,THIS->h,GB_IMAGE_BGR,THIS->frame) > >); > > > > Memory usage is now 100% stable. > > > > :) > > > > Gareth. > > I have identified where the memory is leaked in gb.image. Now I must fix > it.... OK, the memory leaks are fixed in revision #1806 (there were two memory leaks!) -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...560... Wed Jan 21 03:51:43 2009 From: gareth at ...560... (Gareth Bult) Date: Wed, 21 Jan 2009 02:51:43 +0000 (GMT) Subject: [Gambas-devel] Gambas Memory leak ... (?!) In-Reply-To: <23166366.362291232506160187.JavaMail.root@...616...> Message-ID: <10508469.362321232506303547.JavaMail.root@...616...> Don't know if this helps, getting this when I exit the IDE; gareth at ...619...:~$ gambas3 QImage::convertDepth: Image is a null image WARNING: circular references detected CClassInfo (164) CPropertyInfo (1176) CSymbolInfo (2616) CComponent (47) ----- Original Message ----- From: "Gareth Bult" To: "mailing list for gambas developers" Sent: Wednesday, 21 January, 2009 2:49:20 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Gambas Memory leak ... (?!) Oh dear (!) I'm afraid it looks like you've broken something .. when I try to load a project I get a Division by zero in Project.GetFileIcon.675 .. I'm also seeing lots of; QImage::convertDepth: Image is a null image QImage::convertDepth: Image is a null image ... No projects will open ... I'm sort of guessing you'll know roughly where the problem is ?? Gareth. ----- Original Message ----- From: "Benoit Minisini" To: gambas-devel at lists.sourceforge.net Sent: Wednesday, 21 January, 2009 1:27:58 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Gambas Memory leak ... (?!) On mercredi 21 janvier 2009, Benoit Minisini wrote: > On mercredi 21 janvier 2009, Gareth Bult wrote: > > Ok, > > > > I can tell you with 100% accuracy now where the problem is .. > > GB.ReturnObject(IMAGE.Create(THIS->w,THIS->h,GB_IMAGE_BGR,THIS->frame)); > > > > I replaced the Gambas with; > > > > 'pic.Picture = $device.Image.Picture > > img = $device.Image > > > > To remove the picture conversion - no change. > > > > Then I replaced; > > > > GB.ReturnNull(); > > //GB.ReturnObject(IMAGE.Create(THIS->w,THIS->h,GB_IMAGE_BGR,THIS->frame) > >); > > > > Memory usage is now 100% stable. > > > > :) > > > > Gareth. > > I have identified where the memory is leaked in gb.image. Now I must fix > it.... OK, the memory leaks are fixed in revision #1806 (there were two memory leaks!) -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From ronstk at ...124... Wed Jan 21 10:03:46 2009 From: ronstk at ...124... (Ron_1st) Date: Wed, 21 Jan 2009 10:03:46 +0100 Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <363105.362161232504778454.JavaMail.root@...616...> References: <363105.362161232504778454.JavaMail.root@...616...> Message-ID: <200901211003.46884.ronstk@...124...> On Wednesday 21 January 2009, Gareth Bult wrote: > >Could be because not every hardware video device _has_ these controls. > > Urm, no. > > Otherwise things like "Hue" and "Whiteness" would be there too (!) Right > > Just fun!!!! :) WebCam WebCam.Audio WebCam.Audio.Volume WebCam.Audio.Bass WebCam.Audio.Treble WebCam.Audio.Stream Webcam.Video Webcam.Video.Bright Webcam.Video.Contrast Webcam.Video.Sturation Webcam.Video.Whiteness WebCam.Video.Hue Webcam.Video.Stream Webcam.Control Webcam.Control.SnapShotButton WebCam.Control.PowerOn WebCam.Motion WebCam.Motion.Detect WebCam.Motion.Region WebCam.Motion.Mask WebCam.Position.HorizontalAxis WebCam.Position.VerticalAxis WebCam.Features.ExplodeCamOnTouch ' Most important to have !!! And many more I forget :) Best regards, Ron_1st -- I say 'Just fun' From gareth at ...560... Wed Jan 21 10:08:46 2009 From: gareth at ...560... (Gareth Bult) Date: Wed, 21 Jan 2009 09:08:46 +0000 (GMT) Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <200901211003.46884.ronstk@...124...> Message-ID: <24650598.362371232528926906.JavaMail.root@...616...> ?? I don't understand your email ? ----- Original Message ----- From: "Ron_1st" To: gambas-devel at lists.sourceforge.net Sent: Wednesday, 21 January, 2009 9:03:46 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] V4L2 for Gambas ... On Wednesday 21 January 2009, Gareth Bult wrote: > >Could be because not every hardware video device _has_ these controls. > > Urm, no. > > Otherwise things like "Hue" and "Whiteness" would be there too (!) Right > > Just fun!!!! :) WebCam WebCam.Audio WebCam.Audio.Volume WebCam.Audio.Bass WebCam.Audio.Treble WebCam.Audio.Stream Webcam.Video Webcam.Video.Bright Webcam.Video.Contrast Webcam.Video.Sturation Webcam.Video.Whiteness WebCam.Video.Hue Webcam.Video.Stream Webcam.Control Webcam.Control.SnapShotButton WebCam.Control.PowerOn WebCam.Motion WebCam.Motion.Detect WebCam.Motion.Region WebCam.Motion.Mask WebCam.Position.HorizontalAxis WebCam.Position.VerticalAxis WebCam.Features.ExplodeCamOnTouch ' Most important to have !!! And many more I forget :) Best regards, Ron_1st -- I say 'Just fun' ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From ronstk at ...124... Wed Jan 21 10:08:20 2009 From: ronstk at ...124... (Ron_1st) Date: Wed, 21 Jan 2009 10:08:20 +0100 Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <30267268.362191232504866065.JavaMail.root@...616...> References: <30267268.362191232504866065.JavaMail.root@...616...> Message-ID: <200901211008.20533.ronstk@...124...> On Wednesday 21 January 2009, Gareth Bult wrote: > Any objections to me scrapping it as unwanted cruft .. I see no reason why it should exist, all these properties should be properties of the device and are not features. True some of the properties are device specific, but then some of the device properties not in features are also device specific .. > > Gareth. > Just not good analize of a (web)camera done by developer? You can only do this on a camera you have in first place. But its good he did make it and available to play with it so we can have fun with it :) Best regards, Ron_1st -- From gareth at ...560... Wed Jan 21 10:22:11 2009 From: gareth at ...560... (Gareth Bult) Date: Wed, 21 Jan 2009 09:22:11 +0000 (GMT) Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <200901211008.20533.ronstk@...124...> Message-ID: <16720503.362701232529731524.JavaMail.root@...616...> Ok, So we never improve on what's there? In which case we never improve Gambas? I think I know why it is like it is, it was mirroring the underlying V4L code which broke those properties off into a sub-structure. However, the V4L developers obviously realised this didn't make sense and now these properties are all returned by a "flat" ioctl get call. (as of V4L2) What's there is a great start, however as V4L code it's incomplete and it doesn't support V4L2, which is required for newer cameras. This is not a criticism, this is just what was produced with available resources - which is great. However if I don't (a) fully understand why it was done that way and (b) get consensus on modifications, I may end up making changes that are incorrect and unwanted. Given I'm essentially looking to change available properties on an existing component - would you not rather I be sure I'm doing the right thing before committing the code / work ? (Not least given this is my first attempt with Gambas components?) Gareth. ----- Original Message ----- From: "Ron_1st" To: "mailing list for gambas developers" Sent: Wednesday, 21 January, 2009 9:08:20 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] V4L2 for Gambas ... On Wednesday 21 January 2009, Gareth Bult wrote: > Any objections to me scrapping it as unwanted cruft .. I see no reason why it should exist, all these properties should be properties of the device and are not features. True some of the properties are device specific, but then some of the device properties not in features are also device specific .. > > Gareth. > Just not good analize of a (web)camera done by developer? You can only do this on a camera you have in first place. But its good he did make it and available to play with it so we can have fun with it :) Best regards, Ron_1st -- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Wed Jan 21 12:37:02 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 21 Jan 2009 12:37:02 +0100 Subject: [Gambas-devel] Gambas Memory leak ... (?!) In-Reply-To: <10508469.362321232506303547.JavaMail.root@...616...> References: <10508469.362321232506303547.JavaMail.root@...616...> Message-ID: <200901211237.02403.gambas@...1...> On mercredi 21 janvier 2009, Gareth Bult wrote: > Don't know if this helps, getting this when I exit the IDE; > > gareth at ...619...:~$ gambas3 > QImage::convertDepth: Image is a null image > WARNING: circular references detected > CClassInfo (164) > CPropertyInfo (1176) > CSymbolInfo (2616) > CComponent (47) > I don't have any of these problems. Did you recompile by doing "make" in the root directory? As the gb.image interface has changed, all components depending on it must be recompiled. -- Benoit Minisini From gambas at ...1... Wed Jan 21 12:35:10 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 21 Jan 2009 12:35:10 +0100 Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <16720503.362701232529731524.JavaMail.root@...616...> References: <16720503.362701232529731524.JavaMail.root@...616...> Message-ID: <200901211235.10260.gambas@...1...> On mercredi 21 janvier 2009, Gareth Bult wrote: > Ok, > > So we never improve on what's there? > In which case we never improve Gambas? > > I think I know why it is like it is, it was mirroring the underlying V4L > code which broke those properties off into a sub-structure. However, the > V4L developers obviously realised this didn't make sense and now these > properties are all returned by a "flat" ioctl get call. (as of V4L2) > > What's there is a great start, however as V4L code it's incomplete and it > doesn't support V4L2, which is required for newer cameras. This is not a > criticism, this is just what was produced with available resources - which > is great. However if I don't (a) fully understand why it was done that way > and (b) get consensus on modifications, I may end up making changes that > are incorrect and unwanted. > > Given I'm essentially looking to change available properties on an existing > component - would you not rather I be sure I'm doing the right thing before > committing the code / work ? (Not least given this is my first attempt with > Gambas components?) > > Gareth. > I don't understand why it was done this way too. If you want to put all the device properties in the main class, I see no problem with that. Go on... I think that Ron_1st wanted to say, in his mail, that you can use subclasses just for grouping device properties. Regards, -- Benoit Minisini From gareth at ...560... Wed Jan 21 14:54:44 2009 From: gareth at ...560... (Gareth Bult) Date: Wed, 21 Jan 2009 13:54:44 +0000 (GMT) Subject: [Gambas-devel] Gambas Memory leak ... (?!) In-Reply-To: <200901211237.02403.gambas@...1...> Message-ID: <3152539.365731232546084326.JavaMail.root@...616...> I did a reconf-all && configure && make install .... ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Wednesday, 21 January, 2009 11:37:02 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Gambas Memory leak ... (?!) On mercredi 21 janvier 2009, Gareth Bult wrote: > Don't know if this helps, getting this when I exit the IDE; > > gareth at ...619...:~$ gambas3 > QImage::convertDepth: Image is a null image > WARNING: circular references detected > CClassInfo (164) > CPropertyInfo (1176) > CSymbolInfo (2616) > CComponent (47) > I don't have any of these problems. Did you recompile by doing "make" in the root directory? As the gb.image interface has changed, all components depending on it must be recompiled. -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...560... Wed Jan 21 14:59:18 2009 From: gareth at ...560... (Gareth Bult) Date: Wed, 21 Jan 2009 13:59:18 +0000 (GMT) Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <200901211235.10260.gambas@...1...> Message-ID: <30383490.365881232546358222.JavaMail.root@...616...> >Go on... Ok, will do .. (when I can run Gambas up again .. I'll try a clean checkout ..) >I think that Ron_1st wanted to say, in his mail, that you can use subclasses >just for grouping device properties. Mmm, but that doesn't necessarily help you when you come to "use" the component ... To be realistic, if this was useful you would have; component.dimensions.width component.dimensions.height component.dimensions.top component.dimensions.left Would we not? ... yet we don't .. (!) ;-) Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Wednesday, 21 January, 2009 11:35:10 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] V4L2 for Gambas ... On mercredi 21 janvier 2009, Gareth Bult wrote: > Ok, > > So we never improve on what's there? > In which case we never improve Gambas? > > I think I know why it is like it is, it was mirroring the underlying V4L > code which broke those properties off into a sub-structure. However, the > V4L developers obviously realised this didn't make sense and now these > properties are all returned by a "flat" ioctl get call. (as of V4L2) > > What's there is a great start, however as V4L code it's incomplete and it > doesn't support V4L2, which is required for newer cameras. This is not a > criticism, this is just what was produced with available resources - which > is great. However if I don't (a) fully understand why it was done that way > and (b) get consensus on modifications, I may end up making changes that > are incorrect and unwanted. > > Given I'm essentially looking to change available properties on an existing > component - would you not rather I be sure I'm doing the right thing before > committing the code / work ? (Not least given this is my first attempt with > Gambas components?) > > Gareth. > I don't understand why it was done this way too. If you want to put all the device properties in the main class, I see no problem with that. Go on... I think that Ron_1st wanted to say, in his mail, that you can use subclasses just for grouping device properties. Regards, -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...560... Wed Jan 21 19:35:15 2009 From: gareth at ...560... (Gareth Bult) Date: Wed, 21 Jan 2009 18:35:15 +0000 (GMT) Subject: [Gambas-devel] SVN broken? Message-ID: <21589546.368181232562915694.JavaMail.root@...616...> Ok, I've done a clean svn checkout of trunk using a different user id, ./reconf-all && ./configure -C && sudo make install ... When it runs up, same problem as previously described .. can't load projects etc and; QImage::convertDepth: Image is a null image WARNING: circular references detected CClassInfo (164) CSymbolInfo (2616) CPropertyInfo (1176) CComponent (47) is visible on the console on exit ... Gareth. -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronstk at ...124... Wed Jan 21 19:40:47 2009 From: ronstk at ...124... (Ron_1st) Date: Wed, 21 Jan 2009 19:40:47 +0100 Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <16720503.362701232529731524.JavaMail.root@...616...> References: <16720503.362701232529731524.JavaMail.root@...616...> Message-ID: <200901211940.48117.ronstk@...124...> On Wednesday 21 January 2009, Gareth Bult wrote: > Ok, > > So we never improve on what's there? > In which case we never improve Gambas? > > I think I know why it is like it is, it was mirroring the underlying V4L code which broke those properties off into a sub-structure. However, the V4L developers obviously realised this didn't make sense and now these properties are all returned by a "flat" ioctl get call. (as of V4L2) > > What's there is a great start, however as V4L code it's incomplete and it doesn't support V4L2, which is required for newer cameras. This is not a criticism, this is just what was produced with available resources - which is great. However if I don't (a) fully understand why it was done that way and (b) get consensus on modifications, I may end up making changes that are incorrect and unwanted. > > Given I'm essentially looking to change available properties on an existing component - would you not rather I be sure I'm doing the right thing before committing the code / work ? (Not least given this is my first attempt with Gambas components?) > > Gareth. > > ----- Original Message ----- > From: "Ron_1st" > To: "mailing list for gambas developers" > Sent: Wednesday, 21 January, 2009 9:08:20 AM GMT +00:00 GMT Britain, Ireland, Portugal > Subject: Re: [Gambas-devel] V4L2 for Gambas ... > > On Wednesday 21 January 2009, Gareth Bult wrote: > > Any objections to me scrapping it as unwanted cruft .. I see no reason why it should exist, all these properties should be properties of the device and are not features. True some of the properties are device specific, but then some of the device properties not in features are also device specific .. > > > > Gareth. > > > > Just not good analize of a (web)camera done by developer? > You can only do this on a camera you have in first place. > > But its good he did make it and available to play with it > so we can have fun with it :) > > > Best regards, > > Ron_1st > > -- > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > Just not good analize of a (web)camera done by developer? You can only do this on a camera you have in first place. But its good he did make it and available to play with it so we can have fun with it :) > So we never improve on what's there? > In which case we never improve Gambas? Where did I say do not improve? I have say we can have fun with it. That is just what you are doing and try to improve it. That is not wrong, that is good and improve the support in Gambas. > I think I know why it is like it is, it was mirroring the underlying V4L code which broke those properties off into a sub-structure. However, the V4L developers obviously realised this didn't make sense and now these properties are all returned by a "flat" ioctl get call. (as of V4L2) > And that mess was more or less the source for Daniel available. It was for him only to get his camera working with Gambas. > Given I'm essentially looking to change available properties on an existing component - would you not rather I be sure I'm doing the right thing before committing the code / work ? > (Not least given this is my first attempt with Gambas components?) > Of course it is a good habbit to try the right thing. It's just that I see the (wed)camera/tvcard as collection of class parts for audio, video and control (and audio/video filters) together with a class/module/form(whatever) for the user interface. Just the same as gb.qt, gb.qt.dialog, gb.qt.something etc. Sorry if you did see it as a attack from me, it's not mean that way. In fact I'm curious what and how you cook for us. :) :) Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From ronstk at ...124... Wed Jan 21 19:46:25 2009 From: ronstk at ...124... (Ron_1st) Date: Wed, 21 Jan 2009 19:46:25 +0100 Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <24650598.362371232528926906.JavaMail.root@...616...> References: <24650598.362371232528926906.JavaMail.root@...616...> Message-ID: <200901211946.25478.ronstk@...124...> https://lists.sourceforge.net/lists/listinfo/gambas-devel Gambas-devel at lists.sourceforge.net Gambas-devel mailing list _______________________________________________ http://p.sf.net/sfu/sf-spreadtheword SourceForge wants to tell your story. SourcForge Community This SF.net email is sponsored by: ------------------------------------------------------------------------------ I say 'Just fun' -- Ron_1st Best regards, And many more I forget :) WebCam.Features.ExplodeCamOnTouch ' Most important to have !!! ... ... > I don't understand your email ? > ?? On Wednesday 21 January 2009, Gareth Bult wrote: Best regards and be happy, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From ronstk at ...124... Wed Jan 21 20:40:32 2009 From: ronstk at ...124... (Ron_1st) Date: Wed, 21 Jan 2009 20:40:32 +0100 Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <30383490.365881232546358222.JavaMail.root@...616...> References: <30383490.365881232546358222.JavaMail.root@...616...> Message-ID: <200901212040.32795.ronstk@...124...> On Wednesday 21 January 2009, Gareth Bult wrote: > >I think that Ron_1st wanted to say, in his mail, that you can use subclasses > >just for grouping device properties. Yes that is correct. > > Mmm, but that doesn't necessarily help you when you come to "use" the component ... > > To be realistic, if this was useful you would have; > > component.dimensions.width > component.dimensions.height > component.dimensions.top > component.dimensions.left > > Would we not? > > ... yet we don't .. (!) > > ;-) OK I get your point and that make sense too. But... If component is the GUI part of webcam then this is correct if that GUI shows the video frames that do have also width/height and that is what you set/get with v4l(2). webcam.width webcam.height sets the width/height of the GUI part, viewport webcam.video.width set/get the width of the video frame and if we have this way a subclass for video it make sense to have also webcam.audio for audio settings volume, mute webcam.control i.e.snapshot button/mechanical moter move etc. You are now working mainly on the .video part, other can take the audio or control parts. These assemble together the webcam as hardware device that can be used in a frame/panel/whatever to create a webcam object that can put in toolbox and dropped on a form as instand ready object. Second this works nice with autocomplete too and filters just the right properties/methods/events for the particulair part of webcam. I hope this clear out why I suggested the subclasses. Second this component is in my view usable for webcam/camera/tvcard My 1'st webcam is connected to a tvcard composite connector. My 2'nd webcam is PWC646 philips webcam with sound connected via USB My 3'rd webcam is LogitecExpres with snapshot button connected via USB All using v4l and or v4l2 Just example where panel1 is the GUI part for a webcam: Panel1.width Panel1.webcam.width Panel1.stream (what stream? audio or video) Panel1.webcam.stream (same?) OK can be also Panel1.webcam.frames Panel1.webcam.audio I do understand you want something to get working and thats my way to for private toys but on the longterm mostly I see also that KISS is not always right to be flexible and a well definied design pays back. In this case you are the (re)creator and should do the way you like most. If others (me?) do not like they can improve it there way, that the profit of OSS :) Go simply your way and be happy. Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From gambas at ...1... Wed Jan 21 20:57:06 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 21 Jan 2009 20:57:06 +0100 Subject: [Gambas-devel] SVN broken? In-Reply-To: <21589546.368181232562915694.JavaMail.root@...616...> References: <21589546.368181232562915694.JavaMail.root@...616...> Message-ID: <200901212057.06354.gambas@...1...> On mercredi 21 janvier 2009, Gareth Bult wrote: > Ok, > > I've done a clean svn checkout of trunk using a different user id, > ./reconf-all && ./configure -C && sudo make install ... > > When it runs up, same problem as previously described .. can't load > projects etc and; > > QImage::convertDepth: Image is a null image > WARNING: circular references detected > CClassInfo (164) > CSymbolInfo (2616) > CPropertyInfo (1176) > CComponent (47) > > is visible on the console on exit ... > > Gareth. Is it better with revision #1810? -- Benoit Minisini From david_villalobos_c at ...7... Wed Jan 21 21:04:33 2009 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Wed, 21 Jan 2009 12:04:33 -0800 (PST) Subject: [Gambas-devel] Compilation error Message-ID: <387912.14569.qm@...596...> Hi I got an error durin the compilation SVN 1808, Gambas 3, Mandriva 2008.1 64 bits. I need something extra? /usr/bin/ld: cannot find -lqt-mt collect2: ld returned 1 exit status make[5]: *** [gb.qt.kde.html.la] Error 1 make[5]: se sale del directorio `/home/david/Gambas/trunk/gb.qt.kde/src/html' make[4]: *** [all-recursive] Error 1 make[4]: se sale del directorio `/home/david/Gambas/trunk/gb.qt.kde/src' make[3]: *** [all-recursive] Error 1 make[3]: se sale del directorio `/home/david/Gambas/trunk/gb.qt.kde' make[2]: *** [all] Error 2 make[2]: se sale del directorio `/home/david/Gambas/trunk/gb.qt.kde' make[1]: *** [all-recursive] Error 1 make[1]: se sale del directorio `/home/david/Gambas/trunk' make: *** [all] Error 2 Regards -- David From gambas at ...1... Wed Jan 21 21:21:02 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 21 Jan 2009 21:21:02 +0100 Subject: [Gambas-devel] Compilation error In-Reply-To: <387912.14569.qm@...596...> References: <387912.14569.qm@...596...> Message-ID: <200901212121.02582.gambas@...1...> On mercredi 21 janvier 2009, David Villalobos Cambronero wrote: > Hi I got an error durin the compilation SVN 1808, Gambas 3, Mandriva 2008.1 > 64 bits. I need something extra? > > > /usr/bin/ld: cannot find -lqt-mt > collect2: ld returned 1 exit status > make[5]: *** [gb.qt.kde.html.la] Error 1 > make[5]: se sale del directorio > `/home/david/Gambas/trunk/gb.qt.kde/src/html' make[4]: *** [all-recursive] > Error 1 > make[4]: se sale del directorio `/home/david/Gambas/trunk/gb.qt.kde/src' > make[3]: *** [all-recursive] Error 1 > make[3]: se sale del directorio `/home/david/Gambas/trunk/gb.qt.kde' > make[2]: *** [all] Error 2 > make[2]: se sale del directorio `/home/david/Gambas/trunk/gb.qt.kde' > make[1]: *** [all-recursive] Error 1 > make[1]: se sale del directorio `/home/david/Gambas/trunk' > make: *** [all] Error 2 > > Regards > > > -- > David > > Apparently libqt-mt is not installed, or it was not found by the configure script. -- Benoit Minisini From david_villalobos_c at ...7... Wed Jan 21 21:57:50 2009 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Wed, 21 Jan 2009 12:57:50 -0800 (PST) Subject: [Gambas-devel] Compilation error References: <387912.14569.qm@...596...> <200901212121.02582.gambas@...1...> Message-ID: <937019.91560.qm@...555...> do you know the name of the package that contain these lib? Regards -- David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas developers Sent: Wednesday, January 21, 2009 2:21:02 PM Subject: Re: [Gambas-devel] Compilation error On mercredi 21 janvier 2009, David Villalobos Cambronero wrote: > Hi I got an error durin the compilation SVN 1808, Gambas 3, Mandriva 2008.1 > 64 bits. I need something extra? > > > /usr/bin/ld: cannot find -lqt-mt > collect2: ld returned 1 exit status > make[5]: *** [gb.qt.kde.html.la] Error 1 > make[5]: se sale del directorio > `/home/david/Gambas/trunk/gb.qt.kde/src/html' make[4]: *** [all-recursive] > Error 1 > make[4]: se sale del directorio `/home/david/Gambas/trunk/gb.qt.kde/src' > make[3]: *** [all-recursive] Error 1 > make[3]: se sale del directorio `/home/david/Gambas/trunk/gb.qt.kde' > make[2]: *** [all] Error 2 > make[2]: se sale del directorio `/home/david/Gambas/trunk/gb.qt.kde' > make[1]: *** [all-recursive] Error 1 > make[1]: se sale del directorio `/home/david/Gambas/trunk' > make: *** [all] Error 2 > > Regards > > > -- > David > > Apparently libqt-mt is not installed, or it was not found by the configure script. -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From gareth at ...560... Thu Jan 22 02:27:45 2009 From: gareth at ...560... (Gareth Bult) Date: Thu, 22 Jan 2009 01:27:45 +0000 (GMT) Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <14329031.369221232587175682.JavaMail.root@...616...> Message-ID: <21982620.369241232587665550.JavaMail.root@...616...> Mmm, >webcam.video.width > set/get the width of the video frame If the audio component had width then I might partially agree (!) before suggesting webcam.AudioWidth (!) >You are now working mainly on the .video part, other can >take the audio or control parts. Splitting things down like this really isn't going to affect who can work on what, realistically this is handled by splitting your source up into different files .. >Panel1.stream (what stream? audio or video) >Panel1.webcam.stream (same?) webcam.AudioStream webcam.VideoStream Is this not more obvious / in keeping with other Gambas classes? Also [and I could be wrong] but is an additional (needless?) level of indirection going to take Gambas longer to process? (someone recently brought up the question of Gambas' performance .. and I'm guessing we should be choosing faster methods where possible?) >KISS is not always right I would agree. Not always ... just 99.99% .. ;-) To be honest, I think the "VideoDevice" could be used to cope with many different device types. However, rather than trying to add lots of different optional sub-properties to handle everything, I would far rather split VideoDevice down and have "WebCam", "VideoCamera" etc etc ... this would be KISS in action and this really would help multiple developers take on the different device types. "Some" of the code is shared, and if the v4l code is refactored in the same way I've done the v4l2 code, then all the common code can be shared by the different device types .. but having things like a "tuner" available to a webcam .. it's just confusing and it means I have to wrap all the current calls so it says "feature not available" to stop it falling in a heap if someone tries to use it. Se have "String" and "Integer" because they are two distinct data types .. they both store data, but they are different. There is no reason why we should have one component to service webcam's and tv cards, they both handle pictures, but they are both distinctly different (!) Incidentally .. can someone give me a practical example of why one might want to use the "stream" feature of "VideoDevice" on a webcam? (before I add the code .. because I'm not sure I see the point ??) Gareth. ----- Original Message ----- From: "Ron_1st" To: gambas-devel at lists.sourceforge.net Sent: Wednesday, 21 January, 2009 7:40:32 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] V4L2 for Gambas ... On Wednesday 21 January 2009, Gareth Bult wrote: > >I think that Ron_1st wanted to say, in his mail, that you can use subclasses > >just for grouping device properties. Yes that is correct. > > Mmm, but that doesn't necessarily help you when you come to "use" the component ... > > To be realistic, if this was useful you would have; > > component.dimensions.width > component.dimensions.height > component.dimensions.top > component.dimensions.left > > Would we not? > > ... yet we don't .. (!) > > ;-) OK I get your point and that make sense too. But... If component is the GUI part of webcam then this is correct if that GUI shows the video frames that do have also width/height and that is what you set/get with v4l(2). webcam.width webcam.height sets the width/height of the GUI part, viewport webcam.video.width set/get the width of the video frame and if we have this way a subclass for video it make sense to have also webcam.audio for audio settings volume, mute webcam.control i.e.snapshot button/mechanical moter move etc. You are now working mainly on the .video part, other can take the audio or control parts. These assemble together the webcam as hardware device that can be used in a frame/panel/whatever to create a webcam object that can put in toolbox and dropped on a form as instand ready object. Second this works nice with autocomplete too and filters just the right properties/methods/events for the particulair part of webcam. I hope this clear out why I suggested the subclasses. Second this component is in my view usable for webcam/camera/tvcard My 1'st webcam is connected to a tvcard composite connector. My 2'nd webcam is PWC646 philips webcam with sound connected via USB My 3'rd webcam is LogitecExpres with snapshot button connected via USB All using v4l and or v4l2 Just example where panel1 is the GUI part for a webcam: Panel1.width Panel1.webcam.width Panel1.stream (what stream? audio or video) Panel1.webcam.stream (same?) OK can be also Panel1.webcam.frames Panel1.webcam.audio I do understand you want something to get working and thats my way to for private toys but on the longterm mostly I see also that KISS is not always right to be flexible and a well definied design pays back. In this case you are the (re)creator and should do the way you like most. If others (me?) do not like they can improve it there way, that the profit of OSS :) Go simply your way and be happy. Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...560... Thu Jan 22 02:36:38 2009 From: gareth at ...560... (Gareth Bult) Date: Thu, 22 Jan 2009 01:36:38 +0000 (GMT) Subject: [Gambas-devel] SVN broken? In-Reply-To: <200901212057.06354.gambas@...1...> Message-ID: <21614061.369271232588198092.JavaMail.root@...616...> Hi, Ok it's better .. my demo project now loads up and runs .. up to the point where it does; pic.Picture = $device.Image.Picture Which generates a segfault. Now .. I'll start to debug tomorrow, but I'm fairly confident (unless anyone else has edited my code and updated SVN) that all the code was running Ok before the issue that prevented me from loading projects .. i.e. I'm fairly sure this isn't in the v4l code. Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Wednesday, 21 January, 2009 7:57:06 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] SVN broken? On mercredi 21 janvier 2009, Gareth Bult wrote: > Ok, > > I've done a clean svn checkout of trunk using a different user id, > ./reconf-all && ./configure -C && sudo make install ... > > When it runs up, same problem as previously described .. can't load > projects etc and; > > QImage::convertDepth: Image is a null image > WARNING: circular references detected > CClassInfo (164) > CSymbolInfo (2616) > CPropertyInfo (1176) > CComponent (47) > > is visible on the console on exit ... > > Gareth. Is it better with revision #1810? -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Thu Jan 22 03:21:14 2009 From: gambas at ...1... (Benoit Minisini) Date: Thu, 22 Jan 2009 03:21:14 +0100 Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <21982620.369241232587665550.JavaMail.root@...616...> References: <21982620.369241232587665550.JavaMail.root@...616...> Message-ID: <200901220321.14465.gambas@...1...> On jeudi 22 janvier 2009, Gareth Bult wrote: > Incidentally .. can someone give me a practical example of why one might > want to use the "stream" feature of "VideoDevice" on a webcam? (before I > add the code .. because I'm not sure I see the point ??) > I don't know too if it is really useful to consider a webcam like a stream. -- Benoit Minisini From ronstk at ...124... Thu Jan 22 10:31:07 2009 From: ronstk at ...124... (Ron_1st) Date: Thu, 22 Jan 2009 10:31:07 +0100 Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <21982620.369241232587665550.JavaMail.root@...616...> References: <21982620.369241232587665550.JavaMail.root@...616...> Message-ID: <200901221031.07261.ronstk@...124...> On Thursday 22 January 2009, Gareth Bult wrote: > Splitting things down like this really isn't going to affect who can work on what, realistically > this is handled by splitting your source up into different files .. ---8< > However, rather than trying to add lots of different optional sub-properties to handle everything, > I would far rather split VideoDevice down and have "WebCam", "VideoCamera" etc etc ... this would > be KISS in action and this really would help multiple developers take on the different device types. True, good points/suggestion to split on device instead kind of information. Must say my bad here. ----8<---- > ... > ... Your points are good enough. The KISS can be used here in favorite. Changes be future things if really need. ----8<---- > Incidentally .. can someone give me a practical example of why one might want to use the "stream" feature of "VideoDevice" on a webcam? ?(before I add the code .. because I'm not sure I see the point ??) > My idea is to use two streems, and crop each frame in two halves ( as pictures) and merge from first the left and second the right half (to new picture ) and present a new /dev/videoX for other programs as source (using vloopback code for output). This way i.e. KDTV can show in one instance both camera's. In fact I would like to clip a region from each frame and create a new frame ( video stream) with it. For sequrity cams it is no problem if onece at a time a frame is missing. It could be expand to 4 cams evt. Sending out put to the video out if the graphica card has video out? Also the result could be written to disk as video or timed snapshot picture(s).** ---------------------------------------------------------- The reason I jumped in the tread? It would be nice to have a programm that can mix video-device/pictures/avi-file and present it as e new /dev/videoX for other programs. Maybe using Gambas for this is to heavy, I realise there will be limits compared to full C written code too. I will, and maybe you to, be happy to have 2/4 cams in one viewer application in first place. Thats for me the reason to be interested in your work on the v4l part to improve the basic done by Daniel Campos. I have to deal now with v4l and v4l2 interfaces. Second thing: I'm not good in startup C projects, missing the way how to do. I need a basic (working) start template that I can expand to do the job I want. Maybe your code could help me a lot. (note to myself:I really need to look in svn soon) ** I made this once in MS-Access VBA using the Hitachi MX850 as camera multiplexer. and 6 hitache VX220E camera's (640/480) Storing pictures when movements where detected on the camera pictures. I do have the multiplexer but lost the rs232 module to stering it :( and two of those cameras also. We got two burglars and they where catched by police too:) It was one of the projects I was really happy to make despite using the 'bad VBA' Hope this explains enough and Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From ronstk at ...124... Thu Jan 22 10:38:31 2009 From: ronstk at ...124... (Ron_1st) Date: Thu, 22 Jan 2009 10:38:31 +0100 Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <200901220321.14465.gambas@...1...> References: <21982620.369241232587665550.JavaMail.root@...616...> <200901220321.14465.gambas@...1...> Message-ID: <200901221038.32164.ronstk@...124...> On Thursday 22 January 2009, Benoit Minisini wrote: > On jeudi 22 janvier 2009, Gareth Bult wrote: > > Incidentally .. can someone give me a practical example of why one might > > want to use the "stream" feature of "VideoDevice" on a webcam? (before I > > add the code .. because I'm not sure I see the point ??) > > > > I don't know too if it is really useful to consider a webcam like a stream. > In fact with stream I did mean _any form_ of the frames. Other wise you may say it is comming from /dev/video and "in *nix all is a file" The name stream did sound good for me compare with i.e. th stream used in gambas. On the web it is also used as streaming audio/video media. It was just a general name to have. Best regards, Ron_1st -- From gareth at ...560... Thu Jan 22 10:54:36 2009 From: gareth at ...560... (Gareth Bult) Date: Thu, 22 Jan 2009 09:54:36 +0000 (GMT) Subject: [Gambas-devel] V4L2 for Gambas ... In-Reply-To: <200901221038.32164.ronstk@...124...> Message-ID: <23868461.370531232618076358.JavaMail.root@...616...> Ok, I'm still not sure what benefit you get from having a "stream" option built into the VideoDevice component. If you really want a real-time / live feed from the device, surely you could just open a connection to /dev/vdieoX ?? (looking at the streaming code, I don't quite see the benefit / use case ??) Gareth. ----- Original Message ----- From: "Ron_1st" To: "mailing list for gambas developers" Sent: Thursday, 22 January, 2009 9:38:31 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] V4L2 for Gambas ... On Thursday 22 January 2009, Benoit Minisini wrote: > On jeudi 22 janvier 2009, Gareth Bult wrote: > > Incidentally .. can someone give me a practical example of why one might > > want to use the "stream" feature of "VideoDevice" on a webcam? (before I > > add the code .. because I'm not sure I see the point ??) > > > > I don't know too if it is really useful to consider a webcam like a stream. > In fact with stream I did mean _any form_ of the frames. Other wise you may say it is comming from /dev/video and "in *nix all is a file" The name stream did sound good for me compare with i.e. th stream used in gambas. On the web it is also used as streaming audio/video media. It was just a general name to have. Best regards, Ron_1st -- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...560... Thu Jan 22 13:00:11 2009 From: gareth at ...560... (Gareth Bult) Date: Thu, 22 Jan 2009 12:00:11 +0000 (GMT) Subject: [Gambas-devel] SVN broken? In-Reply-To: <21614061.369271232588198092.JavaMail.root@...616...> Message-ID: <24342294.372311232625611435.JavaMail.root@...616...> Ok, Problem located (!) // GB.ReturnObject(IMAGE.Create(THIS->w,THIS->h,GB_IMAGE_BGR,THIS->frame)); GB.ReturnNull(); Fixes the problem .. so there is still an issue somewhere inside the IMAGE.Create code ... Gareth. ----- Original Message ----- From: "Gareth Bult" To: "mailing list for gambas developers" Sent: Thursday, 22 January, 2009 1:36:38 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] SVN broken? Hi, Ok it's better .. my demo project now loads up and runs .. up to the point where it does; pic.Picture = $device.Image.Picture Which generates a segfault. Now .. I'll start to debug tomorrow, but I'm fairly confident (unless anyone else has edited my code and updated SVN) that all the code was running Ok before the issue that prevented me from loading projects .. i.e. I'm fairly sure this isn't in the v4l code. Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Wednesday, 21 January, 2009 7:57:06 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] SVN broken? On mercredi 21 janvier 2009, Gareth Bult wrote: > Ok, > > I've done a clean svn checkout of trunk using a different user id, > ./reconf-all && ./configure -C && sudo make install ... > > When it runs up, same problem as previously described .. can't load > projects etc and; > > QImage::convertDepth: Image is a null image > WARNING: circular references detected > CClassInfo (164) > CSymbolInfo (2616) > CPropertyInfo (1176) > CComponent (47) > > is visible on the console on exit ... > > Gareth. Is it better with revision #1810? -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...560... Thu Jan 22 13:03:51 2009 From: gareth at ...560... (Gareth Bult) Date: Thu, 22 Jan 2009 12:03:51 +0000 (GMT) Subject: [Gambas-devel] SVN broken? In-Reply-To: <21614061.369271232588198092.JavaMail.root@...616...> Message-ID: <17546138.372421232625831048.JavaMail.root@...616...> Ok, Getting closer .. img = $device.Image => this works pic.Picture = img.Picture => this is generating the Segfault .. So the image create code itself isn't crashing, but it looks like it's generating something that's causing the image->picture format conversion to die horribly .. Gareth. ----- Original Message ----- From: "Gareth Bult" To: "mailing list for gambas developers" Sent: Thursday, 22 January, 2009 1:36:38 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] SVN broken? Hi, Ok it's better .. my demo project now loads up and runs .. up to the point where it does; pic.Picture = $device.Image.Picture Which generates a segfault. Now .. I'll start to debug tomorrow, but I'm fairly confident (unless anyone else has edited my code and updated SVN) that all the code was running Ok before the issue that prevented me from loading projects .. i.e. I'm fairly sure this isn't in the v4l code. Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Wednesday, 21 January, 2009 7:57:06 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] SVN broken? On mercredi 21 janvier 2009, Gareth Bult wrote: > Ok, > > I've done a clean svn checkout of trunk using a different user id, > ./reconf-all && ./configure -C && sudo make install ... > > When it runs up, same problem as previously described .. can't load > projects etc and; > > QImage::convertDepth: Image is a null image > WARNING: circular references detected > CClassInfo (164) > CSymbolInfo (2616) > CPropertyInfo (1176) > CComponent (47) > > is visible on the console on exit ... > > Gareth. Is it better with revision #1810? -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...560... Thu Jan 22 13:54:22 2009 From: gareth at ...560... (Gareth Bult) Date: Thu, 22 Jan 2009 12:54:22 +0000 (GMT) Subject: [Gambas-devel] Another Sig #11 in SVN .. Message-ID: <10108430.372941232628862833.JavaMail.root@...616...> Ok, Working on my video demo (with the video switched off for now as it Segv's on me) and I'm trying to single step through my code. The first time it steps into a method, I get a signal 11. If I "run" the code it works fine .. but then if I set a breakpoint, as soon as I hit the breakpoint I get a signal 11. :( Gareth. -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gareth at ...560... Thu Jan 22 16:29:00 2009 From: gareth at ...560... (Gareth Bult) Date: Thu, 22 Jan 2009 15:29:00 +0000 (GMT) Subject: [Gambas-devel] "Settings" Component MIA Message-ID: <10151971.374881232638140150.JavaMail.root@...616...> Hi, Although I've included gb.settings into my project the following gives an error; Settings["123"] = 10 "Not an array!" .. this uses to work .. has the syntax changed or is the module broken ? tia Gareth. -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gareth at ...560... Thu Jan 22 18:25:33 2009 From: gareth at ...560... (Gareth Bult) Date: Thu, 22 Jan 2009 17:25:33 +0000 (GMT) Subject: [Gambas-devel] Re; V4L In-Reply-To: <23649730.375731232645066747.JavaMail.root@...616...> Message-ID: <20759132.375781232645133949.JavaMail.root@...616...> Ok, I'm pretty much ready to add the new demo .. just need some of the current issues to be fixed ... Runs from the tool-tray with a dynamic drop-down of available cameras. All cameras are detected automatically and a box is popped up for each one. Each picture shows full camera make/model (on v4l2) with current date/timestamp. Each picture has a drop down box with colour, contrast, brightness, hue and whiteness sliders. Box also has a frame rate slider and display. Buttons include pause,play,snap etc. Tooltray will allow for rescanning devices and saving picture positions for subsequent runs. Will currenly handle up to 20 concurrent devices, but this can be increased if you have > 20 and your system can take it (!) Add a "record" button and you have a USB Webcam security system .. ;-) Gareth. -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Thu Jan 22 22:49:15 2009 From: gambas at ...1... (Benoit Minisini) Date: Thu, 22 Jan 2009 22:49:15 +0100 Subject: [Gambas-devel] SVN broken? In-Reply-To: <17546138.372421232625831048.JavaMail.root@...616...> References: <17546138.372421232625831048.JavaMail.root@...616...> Message-ID: <200901222249.16034.gambas@...1...> On jeudi 22 janvier 2009, Gareth Bult wrote: > Ok, > > Getting closer .. > > img = $device.Image => this works > pic.Picture = img.Picture => this is generating the Segfault .. > > So the image create code itself isn't crashing, but it looks like it's > generating something that's causing the image->picture format conversion to > die horribly .. > > Gareth. > When you get a segfault, you should provide me the backtrace of the segfault by using gdb and the core dump. As I don't have any webcam, I can't test directly. Unless Video4Linux has a dummy video device that would return the same image for each frame? -- Benoit Minisini From gambas at ...1... Thu Jan 22 22:49:36 2009 From: gambas at ...1... (Benoit Minisini) Date: Thu, 22 Jan 2009 22:49:36 +0100 Subject: [Gambas-devel] Another Sig #11 in SVN .. In-Reply-To: <10108430.372941232628862833.JavaMail.root@...616...> References: <10108430.372941232628862833.JavaMail.root@...616...> Message-ID: <200901222249.36638.gambas@...1...> On jeudi 22 janvier 2009, Gareth Bult wrote: > Ok, > > Working on my video demo (with the video switched off for now as it Segv's > on me) and I'm trying to single step through my code. The first time it > steps into a method, I get a signal 11. If I "run" the code it works fine > .. but then if I set a breakpoint, as soon as I hit the breakpoint I get a > signal 11. > > :( > > Gareth. Same remark: I need a backtrace. -- Benoit Minisini From gareth at ...560... Fri Jan 23 02:08:09 2009 From: gareth at ...560... (Gareth Bult) Date: Fri, 23 Jan 2009 01:08:09 +0000 (GMT) Subject: [Gambas-devel] SVN broken? In-Reply-To: <200901222249.16034.gambas@...1...> Message-ID: <4452408.376271232672889059.JavaMail.root@...616...> Ok, here's the crash on; pic.Picture = img.Picture Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb7f6c8c0 (LWP 7922)] free_image (img=0x99127b0, image=0x0) at gshare.h:46 46 void unref() { nref--; if (nref <= 0) delete this; else if (tag) tag->unref(); } Current language: auto; currently c++ (gdb) bt #0 free_image (img=0x99127b0, image=0x0) at gshare.h:46 #1 0xb7ed8e11 in IMAGE_convert (img=0x99127b0, format=10) at image.c:338 #2 0xb7ed9108 in IMAGE_check (img=0x99127b0, temp_owner=0xb7f4258c, format=10) at image.c:353 #3 0xb7f21621 in CIMAGE_get (_object=0x99127b0) at CImage.cpp:68 #4 0xb7f21c42 in CIMAGE_picture (_object=0x99127b0, _param=0x0) at CImage.cpp:147 #5 0x0804f2f8 in EXEC_call_native (exec=0xb7f21c26 , object=0x99127b0, type=156747576, param=0x0) at gbx_exec.c:967 #6 0x08051d94 in EXEC_push_unknown (code=1024) at gbx_exec_push.c:287 #7 0x080538d3 in EXEC_loop () at gbx_exec_loop.c:522 #8 0x080507ff in EXEC_function_loop () at gbx_exec.c:789 #9 0x08050b95 in EXEC_function_real () at gbx_exec.c:776 #10 0x08062060 in raise_event (observer=, object=0x965ced8, func_id=, nparam=0) at gbx_api.c:496 #11 0x08062604 in GB_Raise (object=0x965ced8, event_id=0, nparam=0) at gbx_api.c:602 #12 0x0807055e in CTIMER_raise (_object=0x965ced8) at gbx_c_timer.c:41 #13 0xb7f32570 in my_timer_function (timer=0x965ced8) at main.cpp:324 #14 0xb7cc0e26 in ?? () from /usr/lib/libglib-2.0.so.0 #15 0xb7cc06f8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #16 0xb7cc3da3 in ?? () from /usr/lib/libglib-2.0.so.0 #17 0xb7cc3f61 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #18 0x4d82f193 in gtk_main_iteration_do () from /usr/lib/libgtk-x11-2.0.so.0 #19 0xb7f32500 in do_iteration (do_not_block=false, do_not_sleep=false) at main.cpp:452 #20 0xb7f328ad in my_loop () at main.cpp:380 #21 0x08066920 in main (argc=Cannot access memory at address 0x0 ) at gbx.c:363 ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Thursday, 22 January, 2009 9:49:15 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] SVN broken? On jeudi 22 janvier 2009, Gareth Bult wrote: > Ok, > > Getting closer .. > > img = $device.Image => this works > pic.Picture = img.Picture => this is generating the Segfault .. > > So the image create code itself isn't crashing, but it looks like it's > generating something that's causing the image->picture format conversion to > die horribly .. > > Gareth. > When you get a segfault, you should provide me the backtrace of the segfault by using gdb and the core dump. As I don't have any webcam, I can't test directly. Unless Video4Linux has a dummy video device that would return the same image for each frame? -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...560... Fri Jan 23 02:14:19 2009 From: gareth at ...560... (Gareth Bult) Date: Fri, 23 Jan 2009 01:14:19 +0000 (GMT) Subject: [Gambas-devel] Another Sig #11 in SVN .. In-Reply-To: <9756373.376301232673223719.JavaMail.root@...616...> Message-ID: <12015917.376321232673259691.JavaMail.root@...616...> Ok, more difficult because the Sig#11 stops the program the IDE is running, but doesn't crash the IDE, hence produces no back-trace .. however I think it's caused by this, which I was able to back-trace .. strangely both problems appear to be linked to image handling ... (!) 0xb7ea1b70 in CIMAGE_load (_object=0x0, _param=0x99fe7c0) at CImage.cpp:179 179 PICTURE->getPixbuf(); Current language: auto; currently c++ (gdb) bt #0 0xb7ea1b70 in CIMAGE_load (_object=0x0, _param=0x99fe7c0) at CImage.cpp:179 #1 0x0804f2f8 in EXEC_call_native (exec=0xb7ea1b01 , object=0x0, type=161549448, param=0x99fe7c0) at gbx_exec.c:967 #2 0x0804ffab in EXEC_native_quick () at gbx_exec.c:998 #3 0x08053ef4 in EXEC_loop () at gbx_exec_loop.c:968 #4 0x080507ff in EXEC_function_loop () at gbx_exec.c:789 #5 0x08050b95 in EXEC_function_real () at gbx_exec.c:776 #6 0x08050c74 in EXEC_spec (special=0, class=0x9a29048, object=0x9e4f0a8, nparam=0, drop=1 '\001') at gbx_exec.c:1433 #7 0x08050faf in EXEC_special_inheritance (special=0, class=0x9a29048, object=0x9e44980, nparam=0, drop=1 '\001') at gbx_exec.c:1526 #8 0x080513e5 in EXEC_new () at gbx_exec.c:1640 #9 0x08053d9d in EXEC_loop () at gbx_exec_loop.c:813 #10 0x080507ff in EXEC_function_loop () at gbx_exec.c:789 #11 0x08050b95 in EXEC_function_real () at gbx_exec.c:776 #12 0x08050f76 in EXEC_special_inheritance (special=0, class=0x9a31788, object=0x9dffa68, nparam=1, drop=1 '\001') at gbx_exec.c:1512 #13 0x080513e5 in EXEC_new () at gbx_exec.c:1640 #14 0x08053d9d in EXEC_loop () at gbx_exec_loop.c:813 #15 0x080507ff in EXEC_function_loop () at gbx_exec.c:789 #16 0x08050b95 in EXEC_function_real () at gbx_exec.c:776 #17 0x08050c74 in EXEC_spec (special=0, class=0x9a28fb0, object=0x9e4f0a8, nparam=0, drop=1 '\001') at gbx_exec.c:1433 #18 0x08050faf in EXEC_special_inheritance (special=0, class=0x9a28fb0, object=0x9df7e38, nparam=0, drop=1 '\001') at gbx_exec.c:1526 #19 0x080513e5 in EXEC_new () at gbx_exec.c:1640 #20 0x08053d9d in EXEC_loop () at gbx_exec_loop.c:813 #21 0x080507ff in EXEC_function_loop () at gbx_exec.c:789 #22 0x08050b95 in EXEC_function_real () at gbx_exec.c:776 #23 0x08050f76 in EXEC_special_inheritance (special=0, class=0x9c21f48, object=0x9d79bd8, nparam=0, drop=1 '\001') at gbx_exec.c:1512 #24 0x0806768d in OBJECT_create (object=0x9c21fb4, class=0x9c21f48, name=0x0, parent=0x0, nparam=0) at gbx_object.c:330 #25 0x080552b5 in CLASS_auto_create (class=0x9c21f48, nparam=0) at gbx_class.c:1065 #26 0x0804f419 in EXEC_auto_create (class=0x9c21f48, ref=1 '\001') at gbx_exec.c:1731 #27 0x08051c0a in EXEC_push_unknown (code=1024) at gbx_exec_push.c:186 #28 0x080538d3 in EXEC_loop () at gbx_exec_loop.c:522 ---Type to continue, or q to quit--- #29 0x080507ff in EXEC_function_loop () at gbx_exec.c:789 #30 0x08050b95 in EXEC_function_real () at gbx_exec.c:776 #31 0x08062060 in raise_event (observer=, object=0x9d4af58, func_id=, nparam=0) at gbx_api.c:496 #32 0x08062604 in GB_Raise (object=0x9d4af58, event_id=16, nparam=0) at gbx_api.c:602 #33 0xb7ea6b85 in gb_raise_button_Click (sender=0x9d4afb0) at CButton.cpp:44 #34 0xb7e8460e in gControl::emit (this=0x0, signal=0xb7ebecd8) at gcontrol.cpp:1406 #35 0xb7e89744 in bt_click (object=0x9d31260, data=0x9d4afb0) at gbutton.cpp:58 #36 0xb7cd63d4 in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0 #37 0xb7cc8c4b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #38 0xb7cdf095 in ?? () from /usr/lib/libgobject-2.0.so.0 #39 0xb7ce07ac in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #40 0xb7ce0c26 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #41 0x4d780eaa in gtk_button_clicked () from /usr/lib/libgtk-x11-2.0.so.0 #42 0x4d781f58 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #43 0xb7cd63d4 in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0 #44 0xb7cc73c9 in ?? () from /usr/lib/libgobject-2.0.so.0 #45 0xb7cc8c4b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #46 0xb7cde8ee in ?? () from /usr/lib/libgobject-2.0.so.0 #47 0xb7ce07ac in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #48 0xb7ce0c26 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #49 0x4d780f4a in gtk_button_released () from /usr/lib/libgtk-x11-2.0.so.0 #50 0x4d780f83 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #51 0x4d835036 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #52 0xb7cc73c9 in ?? () from /usr/lib/libgobject-2.0.so.0 #53 0xb7cc8c4b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #54 0xb7cded3d in ?? () from /usr/lib/libgobject-2.0.so.0 #55 0xb7ce062b in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #56 0xb7ce0c26 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #57 0x4d94a33e in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #58 0x4d82db4c in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0 #59 0x4d82eef7 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0 #60 0x4d65450a in ?? () from /usr/lib/libgdk-x11-2.0.so.0 #61 0xb7c406f8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #62 0xb7c43da3 in ?? () from /usr/lib/libglib-2.0.so.0 #63 0xb7c43f61 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #64 0x4d82f193 in gtk_main_iteration_do () from /usr/lib/libgtk-x11-2.0.so.0 ---Type to continue, or q to quit--- #65 0xb7eb2500 in do_iteration (do_not_block=false, do_not_sleep=false) at main.cpp:452 #66 0xb7eb28ad in my_loop () at main.cpp:380 #67 0x08066920 in main (argc=-1209404314, argv=0xbff08cc4) at gbx.c:363 ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Thursday, 22 January, 2009 9:49:36 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Another Sig #11 in SVN .. On jeudi 22 janvier 2009, Gareth Bult wrote: > Ok, > > Working on my video demo (with the video switched off for now as it Segv's > on me) and I'm trying to single step through my code. The first time it > steps into a method, I get a signal 11. If I "run" the code it works fine > .. but then if I set a breakpoint, as soon as I hit the breakpoint I get a > signal 11. > > :( > > Gareth. Same remark: I need a backtrace. -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Fri Jan 23 09:20:40 2009 From: gambas at ...1... (Benoit Minisini) Date: Fri, 23 Jan 2009 09:20:40 +0100 Subject: [Gambas-devel] SVN broken? In-Reply-To: <4452408.376271232672889059.JavaMail.root@...616...> References: <4452408.376271232672889059.JavaMail.root@...616...> Message-ID: <200901230920.40553.gambas@...1...> On vendredi 23 janvier 2009, Gareth Bult wrote: > Ok, here's the crash on; > > pic.Picture = img.Picture > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 0xb7f6c8c0 (LWP 7922)] > free_image (img=0x99127b0, image=0x0) at gshare.h:46 > 46 void unref() { nref--; if (nref <= 0) delete this; else if (tag) > tag->unref(); } Current language: auto; currently c++ > > (gdb) bt > #0 free_image (img=0x99127b0, image=0x0) at gshare.h:46 > #1 0xb7ed8e11 in IMAGE_convert (img=0x99127b0, format=10) at image.c:338 > #2 0xb7ed9108 in IMAGE_check (img=0x99127b0, temp_owner=0xb7f4258c, > format=10) at image.c:353 #3 0xb7f21621 in CIMAGE_get (_object=0x99127b0) > at CImage.cpp:68 > #4 0xb7f21c42 in CIMAGE_picture (_object=0x99127b0, _param=0x0) at > CImage.cpp:147 #5 0x0804f2f8 in EXEC_call_native (exec=0xb7f21c26 > , object=0x99127b0, type=156747576, > param=0x0) at gbx_exec.c:967 > #6 0x08051d94 in EXEC_push_unknown (code=1024) at gbx_exec_push.c:287 > #7 0x080538d3 in EXEC_loop () at gbx_exec_loop.c:522 > #8 0x080507ff in EXEC_function_loop () at gbx_exec.c:789 > #9 0x08050b95 in EXEC_function_real () at gbx_exec.c:776 > #10 0x08062060 in raise_event (observer=, > object=0x965ced8, func_id=, nparam=0) at gbx_api.c:496 > #11 0x08062604 in GB_Raise (object=0x965ced8, event_id=0, nparam=0) at > gbx_api.c:602 #12 0x0807055e in CTIMER_raise (_object=0x965ced8) at > gbx_c_timer.c:41 #13 0xb7f32570 in my_timer_function (timer=0x965ced8) at > main.cpp:324 #14 0xb7cc0e26 in ?? () from /usr/lib/libglib-2.0.so.0 > #15 0xb7cc06f8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 > #16 0xb7cc3da3 in ?? () from /usr/lib/libglib-2.0.so.0 > #17 0xb7cc3f61 in g_main_context_iteration () from > /usr/lib/libglib-2.0.so.0 #18 0x4d82f193 in gtk_main_iteration_do () from > /usr/lib/libgtk-x11-2.0.so.0 #19 0xb7f32500 in do_iteration > (do_not_block=false, do_not_sleep=false) at main.cpp:452 #20 0xb7f328ad in > my_loop () at main.cpp:380 > #21 0x08066920 in main (argc=Cannot access memory at address 0x0 > ) at gbx.c:363 > Thanks. Can you try revision #1812? -- Benoit Minisini From gareth at ...560... Fri Jan 23 10:13:13 2009 From: gareth at ...560... (Gareth Bult) Date: Fri, 23 Jan 2009 09:13:13 +0000 (GMT) Subject: [Gambas-devel] SVN broken? In-Reply-To: <200901230920.40553.gambas@...1...> Message-ID: <26626695.376601232701993228.JavaMail.root@...616...> Making install in draw make[3]: Entering directory `/home/gareth/Programming/Gambas/trunk/main/lib/draw' /bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../share -I../../libltdl -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT matrix.lo -MD -MP -MF .deps/matrix.Tpo -c -o matrix.lo matrix.c gcc -DHAVE_CONFIG_H -I. -I../.. -I../../share -I../../libltdl -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT matrix.lo -MD -MP -MF .deps/matrix.Tpo -c matrix.c -fPIC -DPIC -o .libs/matrix.o mv -f .deps/matrix.Tpo .deps/matrix.Plo /bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../share -I../../libltdl -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT CDraw.lo -MD -MP -MF .deps/CDraw.Tpo -c -o CDraw.lo CDraw.c gcc -DHAVE_CONFIG_H -I. -I../.. -I../../share -I../../libltdl -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT CDraw.lo -MD -MP -MF .deps/CDraw.Tpo -c CDraw.c -fPIC -DPIC -o .libs/CDraw.o CDraw.c: In function 'CDRAW_zoom': CDraw.c:812: error: 'IMAGE_INTERFACE' has no member named 'Convert' make[3]: *** [CDraw.lo] Error 1 make[3]: Leaving directory `/home/gareth/Programming/Gambas/trunk/main/lib/draw' make[2]: *** [install-recursive] Error 1 make[2]: Leaving directory `/home/gareth/Programming/Gambas/trunk/main/lib' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/gareth/Programming/Gambas/trunk/main' make: *** [install-recursive] Error 1 ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Friday, 23 January, 2009 8:20:40 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] SVN broken? On vendredi 23 janvier 2009, Gareth Bult wrote: > Ok, here's the crash on; > > pic.Picture = img.Picture > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 0xb7f6c8c0 (LWP 7922)] > free_image (img=0x99127b0, image=0x0) at gshare.h:46 > 46 void unref() { nref--; if (nref <= 0) delete this; else if (tag) > tag->unref(); } Current language: auto; currently c++ > > (gdb) bt > #0 free_image (img=0x99127b0, image=0x0) at gshare.h:46 > #1 0xb7ed8e11 in IMAGE_convert (img=0x99127b0, format=10) at image.c:338 > #2 0xb7ed9108 in IMAGE_check (img=0x99127b0, temp_owner=0xb7f4258c, > format=10) at image.c:353 #3 0xb7f21621 in CIMAGE_get (_object=0x99127b0) > at CImage.cpp:68 > #4 0xb7f21c42 in CIMAGE_picture (_object=0x99127b0, _param=0x0) at > CImage.cpp:147 #5 0x0804f2f8 in EXEC_call_native (exec=0xb7f21c26 > , object=0x99127b0, type=156747576, > param=0x0) at gbx_exec.c:967 > #6 0x08051d94 in EXEC_push_unknown (code=1024) at gbx_exec_push.c:287 > #7 0x080538d3 in EXEC_loop () at gbx_exec_loop.c:522 > #8 0x080507ff in EXEC_function_loop () at gbx_exec.c:789 > #9 0x08050b95 in EXEC_function_real () at gbx_exec.c:776 > #10 0x08062060 in raise_event (observer=, > object=0x965ced8, func_id=, nparam=0) at gbx_api.c:496 > #11 0x08062604 in GB_Raise (object=0x965ced8, event_id=0, nparam=0) at > gbx_api.c:602 #12 0x0807055e in CTIMER_raise (_object=0x965ced8) at > gbx_c_timer.c:41 #13 0xb7f32570 in my_timer_function (timer=0x965ced8) at > main.cpp:324 #14 0xb7cc0e26 in ?? () from /usr/lib/libglib-2.0.so.0 > #15 0xb7cc06f8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 > #16 0xb7cc3da3 in ?? () from /usr/lib/libglib-2.0.so.0 > #17 0xb7cc3f61 in g_main_context_iteration () from > /usr/lib/libglib-2.0.so.0 #18 0x4d82f193 in gtk_main_iteration_do () from > /usr/lib/libgtk-x11-2.0.so.0 #19 0xb7f32500 in do_iteration > (do_not_block=false, do_not_sleep=false) at main.cpp:452 #20 0xb7f328ad in > my_loop () at main.cpp:380 > #21 0x08066920 in main (argc=Cannot access memory at address 0x0 > ) at gbx.c:363 > Thanks. Can you try revision #1812? -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...560... Fri Jan 23 12:00:26 2009 From: gareth at ...560... (Gareth Bult) Date: Fri, 23 Jan 2009 11:00:26 +0000 (GMT) Subject: [Gambas-devel] SVN broken? In-Reply-To: <9981758.377731232707860848.JavaMail.root@...616...> Message-ID: <23065351.377801232708426291.JavaMail.root@...616...> Ok, I commented out the appropriate "Convert" line to make it compile, now I get; 0xb7f6379c in IMAGE_check (img=0x8632a08, temp_owner=0xb7fcc58c, format=10) at image.c:259 259 d[0] = s[2]; (gdb) bt #0 0xb7f6379c in IMAGE_check (img=0x8632a08, temp_owner=0xb7fcc58c, format=10) at image.c:259 #1 0xb7fab62d in CIMAGE_get (_object=0x8632a08) at CImage.cpp:68 #2 0xb7fabc4e in CIMAGE_picture (_object=0x8632a08, _param=0x0) at CImage.cpp:147 #3 0x0804f2f8 in EXEC_call_native (exec=0xb7fabc32 , object=0x8632a08, type=136959800, param=0x0) at gbx_exec.c:967 #4 0x08051d94 in EXEC_push_unknown (code=1024) at gbx_exec_push.c:287 #5 0x080538d3 in EXEC_loop () at gbx_exec_loop.c:522 #6 0x080507ff in EXEC_function_loop () at gbx_exec.c:789 #7 0x08050b95 in EXEC_function_real () at gbx_exec.c:776 #8 0x08062060 in raise_event (observer=, object=0x84c4eb8, func_id=, nparam=0) at gbx_api.c:496 #9 0x08062604 in GB_Raise (object=0x84c4eb8, event_id=0, nparam=0) at gbx_api.c:602 #10 0x0807055e in CTIMER_raise (_object=0x84c4eb8) at gbx_c_timer.c:41 #11 0xb7fbc57c in my_timer_function (timer=0x84c4eb8) at main.cpp:324 #12 0xb7d4ae26 in ?? () from /usr/lib/libglib-2.0.so.0 #13 0xb7d4a6f8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #14 0xb7d4dda3 in ?? () from /usr/lib/libglib-2.0.so.0 #15 0xb7d4df61 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #16 0x4d82f193 in gtk_main_iteration_do () from /usr/lib/libgtk-x11-2.0.so.0 #17 0xb7fbc50c in do_iteration (do_not_block=false, do_not_sleep=false) at main.cpp:452 #18 0xb7fbc8b9 in my_loop () at main.cpp:380 #19 0x08066920 in main (argc=Cannot access memory at address 0x4 ) at gbx.c:363 ----- Original Message ----- From: "Gareth Bult" To: "mailing list for gambas developers" Sent: Friday, 23 January, 2009 9:13:13 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] SVN broken? Making install in draw make[3]: Entering directory `/home/gareth/Programming/Gambas/trunk/main/lib/draw' /bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../share -I../../libltdl -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT matrix.lo -MD -MP -MF .deps/matrix.Tpo -c -o matrix.lo matrix.c gcc -DHAVE_CONFIG_H -I. -I../.. -I../../share -I../../libltdl -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT matrix.lo -MD -MP -MF .deps/matrix.Tpo -c matrix.c -fPIC -DPIC -o .libs/matrix.o mv -f .deps/matrix.Tpo .deps/matrix.Plo /bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../share -I../../libltdl -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT CDraw.lo -MD -MP -MF .deps/CDraw.Tpo -c -o CDraw.lo CDraw.c gcc -DHAVE_CONFIG_H -I. -I../.. -I../../share -I../../libltdl -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT CDraw.lo -MD -MP -MF .deps/CDraw.Tpo -c CDraw.c -fPIC -DPIC -o .libs/CDraw.o CDraw.c: In function 'CDRAW_zoom': CDraw.c:812: error: 'IMAGE_INTERFACE' has no member named 'Convert' make[3]: *** [CDraw.lo] Error 1 make[3]: Leaving directory `/home/gareth/Programming/Gambas/trunk/main/lib/draw' make[2]: *** [install-recursive] Error 1 make[2]: Leaving directory `/home/gareth/Programming/Gambas/trunk/main/lib' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/gareth/Programming/Gambas/trunk/main' make: *** [install-recursive] Error 1 ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Friday, 23 January, 2009 8:20:40 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] SVN broken? On vendredi 23 janvier 2009, Gareth Bult wrote: > Ok, here's the crash on; > > pic.Picture = img.Picture > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 0xb7f6c8c0 (LWP 7922)] > free_image (img=0x99127b0, image=0x0) at gshare.h:46 > 46 void unref() { nref--; if (nref <= 0) delete this; else if (tag) > tag->unref(); } Current language: auto; currently c++ > > (gdb) bt > #0 free_image (img=0x99127b0, image=0x0) at gshare.h:46 > #1 0xb7ed8e11 in IMAGE_convert (img=0x99127b0, format=10) at image.c:338 > #2 0xb7ed9108 in IMAGE_check (img=0x99127b0, temp_owner=0xb7f4258c, > format=10) at image.c:353 #3 0xb7f21621 in CIMAGE_get (_object=0x99127b0) > at CImage.cpp:68 > #4 0xb7f21c42 in CIMAGE_picture (_object=0x99127b0, _param=0x0) at > CImage.cpp:147 #5 0x0804f2f8 in EXEC_call_native (exec=0xb7f21c26 > , object=0x99127b0, type=156747576, > param=0x0) at gbx_exec.c:967 > #6 0x08051d94 in EXEC_push_unknown (code=1024) at gbx_exec_push.c:287 > #7 0x080538d3 in EXEC_loop () at gbx_exec_loop.c:522 > #8 0x080507ff in EXEC_function_loop () at gbx_exec.c:789 > #9 0x08050b95 in EXEC_function_real () at gbx_exec.c:776 > #10 0x08062060 in raise_event (observer=, > object=0x965ced8, func_id=, nparam=0) at gbx_api.c:496 > #11 0x08062604 in GB_Raise (object=0x965ced8, event_id=0, nparam=0) at > gbx_api.c:602 #12 0x0807055e in CTIMER_raise (_object=0x965ced8) at > gbx_c_timer.c:41 #13 0xb7f32570 in my_timer_function (timer=0x965ced8) at > main.cpp:324 #14 0xb7cc0e26 in ?? () from /usr/lib/libglib-2.0.so.0 > #15 0xb7cc06f8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 > #16 0xb7cc3da3 in ?? () from /usr/lib/libglib-2.0.so.0 > #17 0xb7cc3f61 in g_main_context_iteration () from > /usr/lib/libglib-2.0.so.0 #18 0x4d82f193 in gtk_main_iteration_do () from > /usr/lib/libgtk-x11-2.0.so.0 #19 0xb7f32500 in do_iteration > (do_not_block=false, do_not_sleep=false) at main.cpp:452 #20 0xb7f328ad in > my_loop () at main.cpp:380 > #21 0x08066920 in main (argc=Cannot access memory at address 0x0 > ) at gbx.c:363 > Thanks. Can you try revision #1812? -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...560... Fri Jan 23 13:03:03 2009 From: gareth at ...560... (Gareth Bult) Date: Fri, 23 Jan 2009 12:03:03 +0000 (GMT) Subject: [Gambas-devel] SVN, Image / memory fixes ... Message-ID: <22351637.378061232712183481.JavaMail.root@...616...> Ok, I've committed two fixes .. so SVN now compiles, and my camera demo now runs without crashing OR leaking memory .. :) You may want to restore your format calculation in IMAGE_size if you fix all other instances where you calculate the size of the image, however for now a small memory inefficiency gets around the problem. However, if you rely on the image format flag to calculate the prospective memory requirement then there's always a chance the format code will get screwed which will crash an app .. might be safer just to allocate the max memory required, given the hit is just 25% additional storage on images ... ? Incidentally, running 2 cameras for 10 mins and and it's not leaked a byte ... :) Gareth. -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gareth at ...560... Fri Jan 23 12:34:47 2009 From: gareth at ...560... (Gareth Bult) Date: Fri, 23 Jan 2009 11:34:47 +0000 (GMT) Subject: [Gambas-devel] SVN broken? In-Reply-To: <23065351.377801232708426291.JavaMail.root@...616...> Message-ID: <392180.377991232710487315.JavaMail.root@...616...> Ok, Issue in image.c .. fixed .. doing a clean SVN tree, will clean fix commit shortly. ----- Original Message ----- From: "Gareth Bult" To: "mailing list for gambas developers" Sent: Friday, 23 January, 2009 11:00:26 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] SVN broken? Ok, I commented out the appropriate "Convert" line to make it compile, now I get; 0xb7f6379c in IMAGE_check (img=0x8632a08, temp_owner=0xb7fcc58c, format=10) at image.c:259 259 d[0] = s[2]; (gdb) bt #0 0xb7f6379c in IMAGE_check (img=0x8632a08, temp_owner=0xb7fcc58c, format=10) at image.c:259 #1 0xb7fab62d in CIMAGE_get (_object=0x8632a08) at CImage.cpp:68 #2 0xb7fabc4e in CIMAGE_picture (_object=0x8632a08, _param=0x0) at CImage.cpp:147 #3 0x0804f2f8 in EXEC_call_native (exec=0xb7fabc32 , object=0x8632a08, type=136959800, param=0x0) at gbx_exec.c:967 #4 0x08051d94 in EXEC_push_unknown (code=1024) at gbx_exec_push.c:287 #5 0x080538d3 in EXEC_loop () at gbx_exec_loop.c:522 #6 0x080507ff in EXEC_function_loop () at gbx_exec.c:789 #7 0x08050b95 in EXEC_function_real () at gbx_exec.c:776 #8 0x08062060 in raise_event (observer=, object=0x84c4eb8, func_id=, nparam=0) at gbx_api.c:496 #9 0x08062604 in GB_Raise (object=0x84c4eb8, event_id=0, nparam=0) at gbx_api.c:602 #10 0x0807055e in CTIMER_raise (_object=0x84c4eb8) at gbx_c_timer.c:41 #11 0xb7fbc57c in my_timer_function (timer=0x84c4eb8) at main.cpp:324 #12 0xb7d4ae26 in ?? () from /usr/lib/libglib-2.0.so.0 #13 0xb7d4a6f8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #14 0xb7d4dda3 in ?? () from /usr/lib/libglib-2.0.so.0 #15 0xb7d4df61 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #16 0x4d82f193 in gtk_main_iteration_do () from /usr/lib/libgtk-x11-2.0.so.0 #17 0xb7fbc50c in do_iteration (do_not_block=false, do_not_sleep=false) at main.cpp:452 #18 0xb7fbc8b9 in my_loop () at main.cpp:380 #19 0x08066920 in main (argc=Cannot access memory at address 0x4 ) at gbx.c:363 ----- Original Message ----- From: "Gareth Bult" To: "mailing list for gambas developers" Sent: Friday, 23 January, 2009 9:13:13 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] SVN broken? Making install in draw make[3]: Entering directory `/home/gareth/Programming/Gambas/trunk/main/lib/draw' /bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../share -I../../libltdl -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT matrix.lo -MD -MP -MF .deps/matrix.Tpo -c -o matrix.lo matrix.c gcc -DHAVE_CONFIG_H -I. -I../.. -I../../share -I../../libltdl -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT matrix.lo -MD -MP -MF .deps/matrix.Tpo -c matrix.c -fPIC -DPIC -o .libs/matrix.o mv -f .deps/matrix.Tpo .deps/matrix.Plo /bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../share -I../../libltdl -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT CDraw.lo -MD -MP -MF .deps/CDraw.Tpo -c -o CDraw.lo CDraw.c gcc -DHAVE_CONFIG_H -I. -I../.. -I../../share -I../../libltdl -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT CDraw.lo -MD -MP -MF .deps/CDraw.Tpo -c CDraw.c -fPIC -DPIC -o .libs/CDraw.o CDraw.c: In function 'CDRAW_zoom': CDraw.c:812: error: 'IMAGE_INTERFACE' has no member named 'Convert' make[3]: *** [CDraw.lo] Error 1 make[3]: Leaving directory `/home/gareth/Programming/Gambas/trunk/main/lib/draw' make[2]: *** [install-recursive] Error 1 make[2]: Leaving directory `/home/gareth/Programming/Gambas/trunk/main/lib' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/gareth/Programming/Gambas/trunk/main' make: *** [install-recursive] Error 1 ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas developers" Sent: Friday, 23 January, 2009 8:20:40 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] SVN broken? On vendredi 23 janvier 2009, Gareth Bult wrote: > Ok, here's the crash on; > > pic.Picture = img.Picture > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 0xb7f6c8c0 (LWP 7922)] > free_image (img=0x99127b0, image=0x0) at gshare.h:46 > 46 void unref() { nref--; if (nref <= 0) delete this; else if (tag) > tag->unref(); } Current language: auto; currently c++ > > (gdb) bt > #0 free_image (img=0x99127b0, image=0x0) at gshare.h:46 > #1 0xb7ed8e11 in IMAGE_convert (img=0x99127b0, format=10) at image.c:338 > #2 0xb7ed9108 in IMAGE_check (img=0x99127b0, temp_owner=0xb7f4258c, > format=10) at image.c:353 #3 0xb7f21621 in CIMAGE_get (_object=0x99127b0) > at CImage.cpp:68 > #4 0xb7f21c42 in CIMAGE_picture (_object=0x99127b0, _param=0x0) at > CImage.cpp:147 #5 0x0804f2f8 in EXEC_call_native (exec=0xb7f21c26 > , object=0x99127b0, type=156747576, > param=0x0) at gbx_exec.c:967 > #6 0x08051d94 in EXEC_push_unknown (code=1024) at gbx_exec_push.c:287 > #7 0x080538d3 in EXEC_loop () at gbx_exec_loop.c:522 > #8 0x080507ff in EXEC_function_loop () at gbx_exec.c:789 > #9 0x08050b95 in EXEC_function_real () at gbx_exec.c:776 > #10 0x08062060 in raise_event (observer=, > object=0x965ced8, func_id=, nparam=0) at gbx_api.c:496 > #11 0x08062604 in GB_Raise (object=0x965ced8, event_id=0, nparam=0) at > gbx_api.c:602 #12 0x0807055e in CTIMER_raise (_object=0x965ced8) at > gbx_c_timer.c:41 #13 0xb7f32570 in my_timer_function (timer=0x965ced8) at > main.cpp:324 #14 0xb7cc0e26 in ?? () from /usr/lib/libglib-2.0.so.0 > #15 0xb7cc06f8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 > #16 0xb7cc3da3 in ?? () from /usr/lib/libglib-2.0.so.0 > #17 0xb7cc3f61 in g_main_context_iteration () from > /usr/lib/libglib-2.0.so.0 #18 0x4d82f193 in gtk_main_iteration_do () from > /usr/lib/libgtk-x11-2.0.so.0 #19 0xb7f32500 in do_iteration > (do_not_block=false, do_not_sleep=false) at main.cpp:452 #20 0xb7f328ad in > my_loop () at main.cpp:380 > #21 0x08066920 in main (argc=Cannot access memory at address 0x0 > ) at gbx.c:363 > Thanks. Can you try revision #1812? -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...560... Fri Jan 23 15:19:27 2009 From: gareth at ...560... (Gareth Bult) Date: Fri, 23 Jan 2009 14:19:27 +0000 (GMT) Subject: [Gambas-devel] Out of the frying pan ... In-Reply-To: <17111274.378731232720312109.JavaMail.root@...616...> Message-ID: <22305031.378751232720367395.JavaMail.root@...616...> Ok, So generally Gambas seems to be running ok for me now .. BUT, the project I'm working on (V4L demo) will no longer run from inside the IDE. When I run or step into the code, the IDE freezes .. here's the backtrace, any ideas why? (other projects / samples seem Ok .. ) If I compile the program, quit the IDE and run from the command line, it works fine .. ?????????? (gdb) bt #0 0xb7fc6430 in __kernel_vsyscall () #1 0x4d058963 in __open_nocancel () from /lib/tls/i686/cmov/libpthread.so.0 #2 0xb7cf0205 in CDEBUG_start (_object=0x0, _param=0x8a9fb20) at /usr/include/bits/fcntl2.h:54 #3 0x0804f2f8 in EXEC_call_native (exec=0xb7cf01bf , object=0x0, type=0, param=0x8a9fb20) at gbx_exec.c:967 #4 0x0804ffab in EXEC_native_quick () at gbx_exec.c:998 #5 0x08053ef4 in EXEC_loop () at gbx_exec_loop.c:968 #6 0x080507ff in EXEC_function_loop () at gbx_exec.c:789 #7 0x08050b95 in EXEC_function_real () at gbx_exec.c:776 #8 0x08061fb5 in GB_Call (_func=0xb7f8595c, nparam=1, release=1) at gbx_api.c:781 #9 0xb7f263bc in CACTION_raise (control=0x8bdc138) at ../share/gb.form.action.h:83 #10 0xb7f2db88 in CButton::clickedTool (this=0xb7f85a1c) at CButton.cpp:667 #11 0xb7f2d2e7 in CButton::qt_invoke (this=0xb7f85a1c, _id=4, _o=0xbf8c54a4) at CButton_moc.cpp:234 #12 0x4e7e298a in QObject::activate_signal () from /usr/lib/libqt-mt.so.3 #13 0x4e7e4eab in QObject::activate_signal () from /usr/lib/libqt-mt.so.3 #14 0x4eb49ccc in QButton::clicked () from /usr/lib/libqt-mt.so.3 #15 0x4e87d1a0 in QButton::mouseReleaseEvent () from /usr/lib/libqt-mt.so.3 #16 0x4e81ce27 in QWidget::event () from /usr/lib/libqt-mt.so.3 #17 0x4e77daf5 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3 #18 0x4e77ed12 in QApplication::notify () from /usr/lib/libqt-mt.so.3 #19 0xb7f2260b in MyApplication::notify (this=0x8b0a050, o=0x8bdc1b8, e=0xbf8c5800) at main.cpp:355 #20 0x4e717cbe in QApplication::sendSpontaneousEvent () from /usr/lib/libqt-mt.so.3 #21 0x4e714bb0 in QETWidget::translateMouseEvent () from /usr/lib/libqt-mt.so.3 #22 0x4e713e62 in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3 #23 0x4e727e94 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3 #24 0xb7f22763 in MyEventLoop::processEvents (this=0x8aaf408, flags=4) at main.cpp:254 #25 0x4e796500 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3 #26 0x4e7963c6 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3 #27 0x4e77e18f in QApplication::exec () from /usr/lib/libqt-mt.so.3 #28 0xb7f21d99 in hook_loop () at main.cpp:564 #29 0x08066920 in main (argc=Cannot access memory at address 0xfffffff0 ) at gbx.c:363 -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gareth at ...560... Fri Jan 23 20:39:40 2009 From: gareth at ...560... (Gareth Bult) Date: Fri, 23 Jan 2009 19:39:40 +0000 (GMT) Subject: [Gambas-devel] Out of the frying pan ... In-Reply-To: <26071987.380891232739514147.JavaMail.root@...616...> Message-ID: <9739507.380911232739580787.JavaMail.root@...616...> Mmm, I've traced this to; _fdw = open(output_fifo(path) , O_WRONLY); In CDebug.c ... effectively the process is blocking when trying to open the fifo for write ... but I don't know what could cause this ?! I've tried switching the order of the read/write open's, but it still hangs on opening the write ... ???? Gareth. ----- Original Message ----- From: "Gareth Bult" To: "mailing list for gambas developers" Sent: Friday, 23 January, 2009 2:19:27 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: [Gambas-devel] Out of the frying pan ... Ok, So generally Gambas seems to be running ok for me now .. BUT, the project I'm working on (V4L demo) will no longer run from inside the IDE. When I run or step into the code, the IDE freezes .. here's the backtrace, any ideas why? (other projects / samples seem Ok .. ) If I compile the program, quit the IDE and run from the command line, it works fine .. ?????????? (gdb) bt #0 0xb7fc6430 in __kernel_vsyscall () #1 0x4d058963 in __open_nocancel () from /lib/tls/i686/cmov/libpthread.so.0 #2 0xb7cf0205 in CDEBUG_start (_object=0x0, _param=0x8a9fb20) at /usr/include/bits/fcntl2.h:54 #3 0x0804f2f8 in EXEC_call_native (exec=0xb7cf01bf , object=0x0, type=0, param=0x8a9fb20) at gbx_exec.c:967 #4 0x0804ffab in EXEC_native_quick () at gbx_exec.c:998 #5 0x08053ef4 in EXEC_loop () at gbx_exec_loop.c:968 #6 0x080507ff in EXEC_function_loop () at gbx_exec.c:789 #7 0x08050b95 in EXEC_function_real () at gbx_exec.c:776 #8 0x08061fb5 in GB_Call (_func=0xb7f8595c, nparam=1, release=1) at gbx_api.c:781 #9 0xb7f263bc in CACTION_raise (control=0x8bdc138) at ../share/gb.form.action.h:83 #10 0xb7f2db88 in CButton::clickedTool (this=0xb7f85a1c) at CButton.cpp:667 #11 0xb7f2d2e7 in CButton::qt_invoke (this=0xb7f85a1c, _id=4, _o=0xbf8c54a4) at CButton_moc.cpp:234 #12 0x4e7e298a in QObject::activate_signal () from /usr/lib/libqt-mt.so.3 #13 0x4e7e4eab in QObject::activate_signal () from /usr/lib/libqt-mt.so.3 #14 0x4eb49ccc in QButton::clicked () from /usr/lib/libqt-mt.so.3 #15 0x4e87d1a0 in QButton::mouseReleaseEvent () from /usr/lib/libqt-mt.so.3 #16 0x4e81ce27 in QWidget::event () from /usr/lib/libqt-mt.so.3 #17 0x4e77daf5 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3 #18 0x4e77ed12 in QApplication::notify () from /usr/lib/libqt-mt.so.3 #19 0xb7f2260b in MyApplication::notify (this=0x8b0a050, o=0x8bdc1b8, e=0xbf8c5800) at main.cpp:355 #20 0x4e717cbe in QApplication::sendSpontaneousEvent () from /usr/lib/libqt-mt.so.3 #21 0x4e714bb0 in QETWidget::translateMouseEvent () from /usr/lib/libqt-mt.so.3 #22 0x4e713e62 in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3 #23 0x4e727e94 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3 #24 0xb7f22763 in MyEventLoop::processEvents (this=0x8aaf408, flags=4) at main.cpp:254 #25 0x4e796500 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3 #26 0x4e7963c6 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3 #27 0x4e77e18f in QApplication::exec () from /usr/lib/libqt-mt.so.3 #28 0xb7f21d99 in hook_loop () at main.cpp:564 #29 0x08066920 in main (argc=Cannot access memory at address 0xfffffff0 ) at gbx.c:363 -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronstk at ...124... Sat Jan 24 18:40:16 2009 From: ronstk at ...124... (Ron_1st) Date: Sat, 24 Jan 2009 18:40:16 +0100 Subject: [Gambas-devel] unknown V4L2_PIX_FMT_???? formats Message-ID: <200901241840.16570.ronstk@...124...> Distro Kubuntu 8.04 ron at ...170...:/usr/include/linux$ uname -a Linux terminator 2.6.24-23-generic #1 SMP Thu Nov 27 18:44:42 UTC 2008 i686 GNU/Linux make: ---8<--- gv4l2.c: In function 'gv4l2_process_image': gv4l2.c:588: error: 'V4L2_PIX_FMT_Y16' undeclared (first use in this function) gv4l2.c:588: error: (Each undeclared identifier is reported only once gv4l2.c:588: error: for each function it appears in.) gv4l2.c:616: error: 'V4L2_PIX_FMT_SGBRG8' undeclared (first use in this function) 'I have #define V4L2_PIX_FMT_SBGGR8 gv4l2.c:617: error: 'V4L2_PIX_FMT_SBGGR16' undeclared (first use in this function) ' n/a gv4l2.c:627: error: 'V4L2_PIX_FMT_SPCA501' undeclared (first use in this function) ' n/a gv4l2.c:628: error: 'V4L2_PIX_FMT_SPCA505' undeclared (first use in this function) ' n/a gv4l2.c:629: error: 'V4L2_PIX_FMT_SPCA508' undeclared (first use in this function) ' n/a gv4l2.c:630: error: 'V4L2_PIX_FMT_SPCA561' undeclared (first use in this function) ' n/a gv4l2.c:631: error: 'V4L2_PIX_FMT_PAC207' undeclared (first use in this function) ' n/a gv4l2.c:632: error: 'V4L2_PIX_FMT_PJPG' undeclared (first use in this function) ' n/a gv4l2.c:633: error: 'V4L2_PIX_FMT_YVYU' undeclared (first use in this function) #define V4L2_PIX_FMT_YUYV v4l2_fourcc('Y','U','Y','V') /* 16 YUV 4:2:2 */ make[4]: *** [gv4l2.lo] Error 1 ---8<--- in /usr/lib/ video_decoder.h video_encoder.h videodev.h videodev2.h videotext.h available in videodev2.h # cat videodev2.h | grep _PIX_ |sort #define V4L2_PIX_FMT_BGR24 v4l2_fourcc('B','G','R','3') /* 24 BGR-8-8-8 */ #define V4L2_PIX_FMT_BGR32 v4l2_fourcc('B','G','R','4') /* 32 BGR-8-8-8-8 */ #define V4L2_PIX_FMT_DV v4l2_fourcc('d','v','s','d') /* 1394 */ #define V4L2_PIX_FMT_ET61X251 v4l2_fourcc('E','6','2','5') /* ET61X251 compression */ #define V4L2_PIX_FMT_GREY v4l2_fourcc('G','R','E','Y') /* 8 Greyscale */ #define V4L2_PIX_FMT_HI240 v4l2_fourcc('H','I','2','4') /* 8 8-bit color */ #define V4L2_PIX_FMT_HM12 v4l2_fourcc('H','M','1','2') /* 8 YUV 4:2:0 16x16 macroblocks */ #define V4L2_PIX_FMT_JPEG v4l2_fourcc('J','P','E','G') /* JFIF JPEG */ #define V4L2_PIX_FMT_MJPEG v4l2_fourcc('M','J','P','G') /* Motion-JPEG */ #define V4L2_PIX_FMT_MPEG v4l2_fourcc('M','P','E','G') /* MPEG-1/2/4 */ #define V4L2_PIX_FMT_NV12 v4l2_fourcc('N','V','1','2') /* 12 Y/CbCr 4:2:0 */ #define V4L2_PIX_FMT_NV21 v4l2_fourcc('N','V','2','1') /* 12 Y/CrCb 4:2:0 */ #define V4L2_PIX_FMT_PAL8 v4l2_fourcc('P','A','L','8') /* 8 8-bit palette */ #define V4L2_PIX_FMT_PWC1 v4l2_fourcc('P','W','C','1') /* pwc older webcam */ #define V4L2_PIX_FMT_PWC2 v4l2_fourcc('P','W','C','2') /* pwc newer webcam */ #define V4L2_PIX_FMT_RGB24 v4l2_fourcc('R','G','B','3') /* 24 RGB-8-8-8 */ #define V4L2_PIX_FMT_RGB32 v4l2_fourcc('R','G','B','4') /* 32 RGB-8-8-8-8 */ #define V4L2_PIX_FMT_RGB332 v4l2_fourcc('R','G','B','1') /* 8 RGB-3-3-2 */ #define V4L2_PIX_FMT_RGB444 v4l2_fourcc('R','4','4','4') /* 16 xxxxrrrr ggggbbbb */ #define V4L2_PIX_FMT_RGB555 v4l2_fourcc('R','G','B','O') /* 16 RGB-5-5-5 */ #define V4L2_PIX_FMT_RGB555X v4l2_fourcc('R','G','B','Q') /* 16 RGB-5-5-5 BE */ #define V4L2_PIX_FMT_RGB565 v4l2_fourcc('R','G','B','P') /* 16 RGB-5-6-5 */ #define V4L2_PIX_FMT_RGB565X v4l2_fourcc('R','G','B','R') /* 16 RGB-5-6-5 BE */ #define V4L2_PIX_FMT_SBGGR8 v4l2_fourcc('B','A','8','1') /* 8 BGBG.. GRGR.. */ #define V4L2_PIX_FMT_SN9C10X v4l2_fourcc('S','9','1','0') /* SN9C10x compression */ #define V4L2_PIX_FMT_UYVY v4l2_fourcc('U','Y','V','Y') /* 16 YUV 4:2:2 */ #define V4L2_PIX_FMT_WNVA v4l2_fourcc('W','N','V','A') /* Winnov hw compress */ #define V4L2_PIX_FMT_Y41P v4l2_fourcc('Y','4','1','P') /* 12 YUV 4:1:1 */ #define V4L2_PIX_FMT_YUV32 v4l2_fourcc('Y','U','V','4') /* 32 YUV-8-8-8-8 */ #define V4L2_PIX_FMT_YUV410 v4l2_fourcc('Y','U','V','9') /* 9 YUV 4:1:0 */ #define V4L2_PIX_FMT_YUV411P v4l2_fourcc('4','1','1','P') /* 16 YVU411 planar */ #define V4L2_PIX_FMT_YUV420 v4l2_fourcc('Y','U','1','2') /* 12 YUV 4:2:0 */ #define V4L2_PIX_FMT_YUV422P v4l2_fourcc('4','2','2','P') /* 16 YVU422 planar */ #define V4L2_PIX_FMT_YUV444 v4l2_fourcc('Y','4','4','4') /* 16 xxxxyyyy uuuuvvvv */ #define V4L2_PIX_FMT_YUV555 v4l2_fourcc('Y','U','V','O') /* 16 YUV-5-5-5 */ #define V4L2_PIX_FMT_YUV565 v4l2_fourcc('Y','U','V','P') /* 16 YUV-5-6-5 */ #define V4L2_PIX_FMT_YUYV v4l2_fourcc('Y','U','Y','V') /* 16 YUV 4:2:2 */ #define V4L2_PIX_FMT_YVU410 v4l2_fourcc('Y','V','U','9') /* 9 YVU 4:1:0 */ #define V4L2_PIX_FMT_YVU420 v4l2_fourcc('Y','V','1','2') /* 12 YVU 4:2:0 */ #define V4L2_PIX_FMT_YYUV v4l2_fourcc('Y','Y','U','V') /* 16 YUV 4:2:2 */ Gareth, can you tell me what version of de video-dev files you are using and/or sent yours for testing. Attached my videodev files. Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? -------------- next part -------------- A non-text attachment was scrubbed... Name: videodev2.h.zip Type: application/x-zip Size: 13199 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: videodev.h.zip Type: application/x-zip Size: 3581 bytes Desc: not available URL: From gareth at ...560... Sat Jan 24 20:51:09 2009 From: gareth at ...560... (Gareth Bult) Date: Sat, 24 Jan 2009 19:51:09 +0000 (GMT) Subject: [Gambas-devel] unknown V4L2_PIX_FMT_???? formats In-Reply-To: <2287054.383401232826648339.JavaMail.root@...616...> Message-ID: <31866166.383421232826669821.JavaMail.root@...616...> Hi, I'm using the standard header files from Ubuntu 8.10. None of these lines are "required", they're essentially there so people can report devices / required conversion routines that 'exist' but are not supported .. so a quick fix is to comment out all of these lines. I was unaware these things may not exist in different versions of V4L2, I will see if I can insert some ifdef's to trap these errors out .. in the meantime, my videodev2.h is attached .. Gareth. ----- Original Message ----- From: "Ron_1st" To: "gambas developers" Sent: Saturday, 24 January, 2009 5:40:16 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: [Gambas-devel] unknown V4L2_PIX_FMT_???? formats Distro Kubuntu 8.04 ron at ...170...:/usr/include/linux$ uname -a Linux terminator 2.6.24-23-generic #1 SMP Thu Nov 27 18:44:42 UTC 2008 i686 GNU/Linux make: ---8<--- gv4l2.c: In function 'gv4l2_process_image': gv4l2.c:588: error: 'V4L2_PIX_FMT_Y16' undeclared (first use in this function) gv4l2.c:588: error: (Each undeclared identifier is reported only once gv4l2.c:588: error: for each function it appears in.) gv4l2.c:616: error: 'V4L2_PIX_FMT_SGBRG8' undeclared (first use in this function) 'I have #define V4L2_PIX_FMT_SBGGR8 gv4l2.c:617: error: 'V4L2_PIX_FMT_SBGGR16' undeclared (first use in this function) ' n/a gv4l2.c:627: error: 'V4L2_PIX_FMT_SPCA501' undeclared (first use in this function) ' n/a gv4l2.c:628: error: 'V4L2_PIX_FMT_SPCA505' undeclared (first use in this function) ' n/a gv4l2.c:629: error: 'V4L2_PIX_FMT_SPCA508' undeclared (first use in this function) ' n/a gv4l2.c:630: error: 'V4L2_PIX_FMT_SPCA561' undeclared (first use in this function) ' n/a gv4l2.c:631: error: 'V4L2_PIX_FMT_PAC207' undeclared (first use in this function) ' n/a gv4l2.c:632: error: 'V4L2_PIX_FMT_PJPG' undeclared (first use in this function) ' n/a gv4l2.c:633: error: 'V4L2_PIX_FMT_YVYU' undeclared (first use in this function) #define V4L2_PIX_FMT_YUYV v4l2_fourcc('Y','U','Y','V') /* 16 YUV 4:2:2 */ make[4]: *** [gv4l2.lo] Error 1 ---8<--- in /usr/lib/ video_decoder.h video_encoder.h videodev.h videodev2.h videotext.h available in videodev2.h # cat videodev2.h | grep _PIX_ |sort #define V4L2_PIX_FMT_BGR24 v4l2_fourcc('B','G','R','3') /* 24 BGR-8-8-8 */ #define V4L2_PIX_FMT_BGR32 v4l2_fourcc('B','G','R','4') /* 32 BGR-8-8-8-8 */ #define V4L2_PIX_FMT_DV v4l2_fourcc('d','v','s','d') /* 1394 */ #define V4L2_PIX_FMT_ET61X251 v4l2_fourcc('E','6','2','5') /* ET61X251 compression */ #define V4L2_PIX_FMT_GREY v4l2_fourcc('G','R','E','Y') /* 8 Greyscale */ #define V4L2_PIX_FMT_HI240 v4l2_fourcc('H','I','2','4') /* 8 8-bit color */ #define V4L2_PIX_FMT_HM12 v4l2_fourcc('H','M','1','2') /* 8 YUV 4:2:0 16x16 macroblocks */ #define V4L2_PIX_FMT_JPEG v4l2_fourcc('J','P','E','G') /* JFIF JPEG */ #define V4L2_PIX_FMT_MJPEG v4l2_fourcc('M','J','P','G') /* Motion-JPEG */ #define V4L2_PIX_FMT_MPEG v4l2_fourcc('M','P','E','G') /* MPEG-1/2/4 */ #define V4L2_PIX_FMT_NV12 v4l2_fourcc('N','V','1','2') /* 12 Y/CbCr 4:2:0 */ #define V4L2_PIX_FMT_NV21 v4l2_fourcc('N','V','2','1') /* 12 Y/CrCb 4:2:0 */ #define V4L2_PIX_FMT_PAL8 v4l2_fourcc('P','A','L','8') /* 8 8-bit palette */ #define V4L2_PIX_FMT_PWC1 v4l2_fourcc('P','W','C','1') /* pwc older webcam */ #define V4L2_PIX_FMT_PWC2 v4l2_fourcc('P','W','C','2') /* pwc newer webcam */ #define V4L2_PIX_FMT_RGB24 v4l2_fourcc('R','G','B','3') /* 24 RGB-8-8-8 */ #define V4L2_PIX_FMT_RGB32 v4l2_fourcc('R','G','B','4') /* 32 RGB-8-8-8-8 */ #define V4L2_PIX_FMT_RGB332 v4l2_fourcc('R','G','B','1') /* 8 RGB-3-3-2 */ #define V4L2_PIX_FMT_RGB444 v4l2_fourcc('R','4','4','4') /* 16 xxxxrrrr ggggbbbb */ #define V4L2_PIX_FMT_RGB555 v4l2_fourcc('R','G','B','O') /* 16 RGB-5-5-5 */ #define V4L2_PIX_FMT_RGB555X v4l2_fourcc('R','G','B','Q') /* 16 RGB-5-5-5 BE */ #define V4L2_PIX_FMT_RGB565 v4l2_fourcc('R','G','B','P') /* 16 RGB-5-6-5 */ #define V4L2_PIX_FMT_RGB565X v4l2_fourcc('R','G','B','R') /* 16 RGB-5-6-5 BE */ #define V4L2_PIX_FMT_SBGGR8 v4l2_fourcc('B','A','8','1') /* 8 BGBG.. GRGR.. */ #define V4L2_PIX_FMT_SN9C10X v4l2_fourcc('S','9','1','0') /* SN9C10x compression */ #define V4L2_PIX_FMT_UYVY v4l2_fourcc('U','Y','V','Y') /* 16 YUV 4:2:2 */ #define V4L2_PIX_FMT_WNVA v4l2_fourcc('W','N','V','A') /* Winnov hw compress */ #define V4L2_PIX_FMT_Y41P v4l2_fourcc('Y','4','1','P') /* 12 YUV 4:1:1 */ #define V4L2_PIX_FMT_YUV32 v4l2_fourcc('Y','U','V','4') /* 32 YUV-8-8-8-8 */ #define V4L2_PIX_FMT_YUV410 v4l2_fourcc('Y','U','V','9') /* 9 YUV 4:1:0 */ #define V4L2_PIX_FMT_YUV411P v4l2_fourcc('4','1','1','P') /* 16 YVU411 planar */ #define V4L2_PIX_FMT_YUV420 v4l2_fourcc('Y','U','1','2') /* 12 YUV 4:2:0 */ #define V4L2_PIX_FMT_YUV422P v4l2_fourcc('4','2','2','P') /* 16 YVU422 planar */ #define V4L2_PIX_FMT_YUV444 v4l2_fourcc('Y','4','4','4') /* 16 xxxxyyyy uuuuvvvv */ #define V4L2_PIX_FMT_YUV555 v4l2_fourcc('Y','U','V','O') /* 16 YUV-5-5-5 */ #define V4L2_PIX_FMT_YUV565 v4l2_fourcc('Y','U','V','P') /* 16 YUV-5-6-5 */ #define V4L2_PIX_FMT_YUYV v4l2_fourcc('Y','U','Y','V') /* 16 YUV 4:2:2 */ #define V4L2_PIX_FMT_YVU410 v4l2_fourcc('Y','V','U','9') /* 9 YVU 4:1:0 */ #define V4L2_PIX_FMT_YVU420 v4l2_fourcc('Y','V','1','2') /* 12 YVU 4:2:0 */ #define V4L2_PIX_FMT_YYUV v4l2_fourcc('Y','Y','U','V') /* 16 YUV 4:2:2 */ Gareth, can you tell me what version of de video-dev files you are using and/or sent yours for testing. Attached my videodev files. Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. -------------- next part -------------- A non-text attachment was scrubbed... Name: videodev2.h Type: text/x-chdr Size: 51943 bytes Desc: not available URL: From ronstk at ...124... Sat Jan 24 23:13:43 2009 From: ronstk at ...124... (Ron_1st) Date: Sat, 24 Jan 2009 23:13:43 +0100 Subject: [Gambas-devel] unknown V4L2_PIX_FMT_???? formats In-Reply-To: <31866166.383421232826669821.JavaMail.root@...616...> References: <31866166.383421232826669821.JavaMail.root@...616...> Message-ID: <200901242313.43237.ronstk@...124...> On Saturday 24 January 2009, Gareth Bult wrote: > Hi, > > I'm using the standard header files from Ubuntu 8.10. > > None of these lines are "required", they're essentially there so people can report devices / required conversion routines that 'exist' but are not supported .. so a quick fix is to comment out all of these lines. > > I was unaware these things may not exist in different versions of V4L2, I will see if I can insert some ifdef's to trap these errors out .. in the meantime, my videodev2.h is attached .. No need for ifdef's Define only the case you handle and for the not supported exclude with the // the case default: gv4l2_debug("Frame in unknown format"); should be enough. In other (older) distribution there can occurs again differences in this file. > > Gareth. > Thanks, I did indeed remark those lines and the make was OK. ron at ...170...:~/src/gambas/trunk$ gambas3.gambas ERROR: #2: Cannot load class 'Project': Unable to load class file Investigating but no idea what to look for yet. :( All is in /usr/local as prefix now. With kdiff3 it looks almost a clean-up/nice-making up of code but around line 521 in struct v4l2_framebuffer: 8.04 void* base; 8.10 void *base; Looks for me different meaning. The rest found are additions in 8.10 so it looks safe to me to us your version in /usr/include/linux. Go find the 'Project' problem now. Best regards, Ron_1st -- From gareth at ...560... Sun Jan 25 02:03:49 2009 From: gareth at ...560... (Gareth Bult) Date: Sun, 25 Jan 2009 01:03:49 +0000 (GMT) Subject: [Gambas-devel] unknown V4L2_PIX_FMT_???? formats In-Reply-To: <200901242313.43237.ronstk@...124...> Message-ID: <11883921.383541232845429891.JavaMail.root@...616...> >>case default: gv4l2_debug("Frame in unknown format"); should be enough. Yes, that would enough to report a problem (!) For my part, I would actually like enough in the report in order to address / fix the problem .. Hence the current code (!) :) Gareth. ----- Original Message ----- From: "Ron_1st" To: gambas-devel at lists.sourceforge.net Sent: Saturday, 24 January, 2009 10:13:43 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] unknown V4L2_PIX_FMT_???? formats On Saturday 24 January 2009, Gareth Bult wrote: > Hi, > > I'm using the standard header files from Ubuntu 8.10. > > None of these lines are "required", they're essentially there so people can report devices / required conversion routines that 'exist' but are not supported .. so a quick fix is to comment out all of these lines. > > I was unaware these things may not exist in different versions of V4L2, I will see if I can insert some ifdef's to trap these errors out .. in the meantime, my videodev2.h is attached .. No need for ifdef's Define only the case you handle and for the not supported exclude with the // the case default: gv4l2_debug("Frame in unknown format"); should be enough. In other (older) distribution there can occurs again differences in this file. > > Gareth. > Thanks, I did indeed remark those lines and the make was OK. ron at ...170...:~/src/gambas/trunk$ gambas3.gambas ERROR: #2: Cannot load class 'Project': Unable to load class file Investigating but no idea what to look for yet. :( All is in /usr/local as prefix now. With kdiff3 it looks almost a clean-up/nice-making up of code but around line 521 in struct v4l2_framebuffer: 8.04 void* base; 8.10 void *base; Looks for me different meaning. The rest found are additions in 8.10 so it looks safe to me to us your version in /usr/include/linux. Go find the 'Project' problem now. Best regards, Ron_1st -- ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Sun Jan 25 14:16:37 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 25 Jan 2009 14:16:37 +0100 Subject: [Gambas-devel] SVN, Image / memory fixes ... In-Reply-To: <22351637.378061232712183481.JavaMail.root@...616...> References: <22351637.378061232712183481.JavaMail.root@...616...> Message-ID: <200901251416.38044.gambas@...1...> On vendredi 23 janvier 2009, Gareth Bult wrote: > Ok, > > I've committed two fixes .. so SVN now compiles, and my camera demo now > runs without crashing OR leaking memory .. :) > > You may want to restore your format calculation in IMAGE_size if you fix > all other instances where you calculate the size of the image, however for > now a small memory inefficiency gets around the problem. However, if you > rely on the image format flag to calculate the prospective memory > requirement then there's always a chance the format code will get screwed > which will crash an app .. might be safer just to allocate the max memory > required, given the hit is just 25% additional storage on images ... ? > > Incidentally, running 2 cameras for 10 mins and and it's not leaked a byte > ... :) > > Gareth. The bug was that the data allocated for the conversion used the old format, not the new one, so the allocation was too small. I fixed that in revision #1814. Regards, -- Benoit Minisini From gambas at ...1... Sun Jan 25 14:17:19 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 25 Jan 2009 14:17:19 +0100 Subject: [Gambas-devel] "Settings" Component MIA In-Reply-To: <10151971.374881232638140150.JavaMail.root@...616...> References: <10151971.374881232638140150.JavaMail.root@...616...> Message-ID: <200901251417.19146.gambas@...1...> On jeudi 22 janvier 2009, Gareth Bult wrote: > Hi, > > Although I've included gb.settings into my project the following gives an > error; > > Settings["123"] = 10 > > "Not an array!" > > .. this uses to work .. has the syntax changed or is the module broken ? > > tia > Gareth. Strange... Settings is heavily used in the IDE and has no problem. More information is welcome! -- Benoit Minisini From gambas at ...1... Sun Jan 25 23:29:30 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 25 Jan 2009 23:29:30 +0100 Subject: [Gambas-devel] Re; V4L In-Reply-To: <20759132.375781232645133949.JavaMail.root@...616...> References: <20759132.375781232645133949.JavaMail.root@...616...> Message-ID: <200901252329.30876.gambas@...1...> On jeudi 22 janvier 2009, Gareth Bult wrote: > Ok, > > I'm pretty much ready to add the new demo .. just need some of the current > issues to be fixed ... > > Runs from the tool-tray with a dynamic drop-down of available cameras. > All cameras are detected automatically and a box is popped up for each one. > Each picture shows full camera make/model (on v4l2) with current > date/timestamp. Each picture has a drop down box with colour, contrast, > brightness, hue and whiteness sliders. Box also has a frame rate slider and > display. > Buttons include pause,play,snap etc. > Tooltray will allow for rescanning devices and saving picture positions for > subsequent runs. > > Will currenly handle up to 20 concurrent devices, but this can be increased > if you have > 20 and your system can take it (!) > > Add a "record" button and you have a USB Webcam security system .. ;-) > > Gareth. I have modified the current MyWebCam example to use a DrawingArea instead of PictureBox to display video frames. As I can't test, can you check that it does not flicker anymore? -- Benoit Minisini From gareth at ...560... Tue Jan 27 12:08:26 2009 From: gareth at ...560... (Gareth Bult) Date: Tue, 27 Jan 2009 11:08:26 +0000 (GMT) Subject: [Gambas-devel] Out of the frying pan ... In-Reply-To: <9739507.380911232739580787.JavaMail.root@...616...> Message-ID: <14864173.390821233054506456.JavaMail.root@...616...> Doh! Ok, found the problem .. my fault .. however .. feature request; Can we add a test to the start debug routines to check that the debug session actually starts ? Scenario; a. Inadvertently add GB.UI=qt to your preferences -> environment for a project b. Start debug c. Execution of gbx3 immediately quits because "GB.UI=qt" is attempted and found to be invalid d. IDE continues then blocks becuase the debug process / session is now defunct e. Only solution is to kill the IDE I think pretty much anything "invalid" entered into the environment section of a project can cause this issue ... :( Gareth. ----- Original Message ----- From: "Gareth Bult" To: "mailing list for gambas developers" Sent: Friday, 23 January, 2009 7:39:40 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-devel] Out of the frying pan ... Mmm, I've traced this to; _fdw = open(output_fifo(path) , O_WRONLY); In CDebug.c ... effectively the process is blocking when trying to open the fifo for write ... but I don't know what could cause this ?! I've tried switching the order of the read/write open's, but it still hangs on opening the write ... ???? Gareth. ----- Original Message ----- From: "Gareth Bult" To: "mailing list for gambas developers" Sent: Friday, 23 January, 2009 2:19:27 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: [Gambas-devel] Out of the frying pan ... Ok, So generally Gambas seems to be running ok for me now .. BUT, the project I'm working on (V4L demo) will no longer run from inside the IDE. When I run or step into the code, the IDE freezes .. here's the backtrace, any ideas why? (other projects / samples seem Ok .. ) If I compile the program, quit the IDE and run from the command line, it works fine .. ?????????? (gdb) bt #0 0xb7fc6430 in __kernel_vsyscall () #1 0x4d058963 in __open_nocancel () from /lib/tls/i686/cmov/libpthread.so.0 #2 0xb7cf0205 in CDEBUG_start (_object=0x0, _param=0x8a9fb20) at /usr/include/bits/fcntl2.h:54 #3 0x0804f2f8 in EXEC_call_native (exec=0xb7cf01bf , object=0x0, type=0, param=0x8a9fb20) at gbx_exec.c:967 #4 0x0804ffab in EXEC_native_quick () at gbx_exec.c:998 #5 0x08053ef4 in EXEC_loop () at gbx_exec_loop.c:968 #6 0x080507ff in EXEC_function_loop () at gbx_exec.c:789 #7 0x08050b95 in EXEC_function_real () at gbx_exec.c:776 #8 0x08061fb5 in GB_Call (_func=0xb7f8595c, nparam=1, release=1) at gbx_api.c:781 #9 0xb7f263bc in CACTION_raise (control=0x8bdc138) at ../share/gb.form.action.h:83 #10 0xb7f2db88 in CButton::clickedTool (this=0xb7f85a1c) at CButton.cpp:667 #11 0xb7f2d2e7 in CButton::qt_invoke (this=0xb7f85a1c, _id=4, _o=0xbf8c54a4) at CButton_moc.cpp:234 #12 0x4e7e298a in QObject::activate_signal () from /usr/lib/libqt-mt.so.3 #13 0x4e7e4eab in QObject::activate_signal () from /usr/lib/libqt-mt.so.3 #14 0x4eb49ccc in QButton::clicked () from /usr/lib/libqt-mt.so.3 #15 0x4e87d1a0 in QButton::mouseReleaseEvent () from /usr/lib/libqt-mt.so.3 #16 0x4e81ce27 in QWidget::event () from /usr/lib/libqt-mt.so.3 #17 0x4e77daf5 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3 #18 0x4e77ed12 in QApplication::notify () from /usr/lib/libqt-mt.so.3 #19 0xb7f2260b in MyApplication::notify (this=0x8b0a050, o=0x8bdc1b8, e=0xbf8c5800) at main.cpp:355 #20 0x4e717cbe in QApplication::sendSpontaneousEvent () from /usr/lib/libqt-mt.so.3 #21 0x4e714bb0 in QETWidget::translateMouseEvent () from /usr/lib/libqt-mt.so.3 #22 0x4e713e62 in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3 #23 0x4e727e94 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3 #24 0xb7f22763 in MyEventLoop::processEvents (this=0x8aaf408, flags=4) at main.cpp:254 #25 0x4e796500 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3 #26 0x4e7963c6 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3 #27 0x4e77e18f in QApplication::exec () from /usr/lib/libqt-mt.so.3 #28 0xb7f21d99 in hook_loop () at main.cpp:564 #29 0x08066920 in main (argc=Cannot access memory at address 0xfffffff0 ) at gbx.c:363 -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gareth at ...560... Tue Jan 27 13:13:19 2009 From: gareth at ...560... (Gareth Bult) Date: Tue, 27 Jan 2009 12:13:19 +0000 (GMT) Subject: [Gambas-devel] More fun ... Message-ID: <20268111.391571233058399839.JavaMail.root@...616...> Ok, Just rebuilt from SVN, now when I try to add gb.v4l to my project I get; "The gb.v4l component needs one of the following components: ." Help! -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gareth at ...560... Tue Jan 27 14:35:33 2009 From: gareth at ...560... (Gareth Bult) Date: Tue, 27 Jan 2009 13:35:33 +0000 (GMT) Subject: [Gambas-devel] More fun ... In-Reply-To: <20268111.391571233058399839.JavaMail.root@...616...> Message-ID: <1392804.392441233063333742.JavaMail.root@...616...> Ok, I removed all the dependencies from gb.v4l.component and did a make install .. works now .. but I'm guessing this isn't the preferred solution (?) ----- Original Message ----- From: "Gareth Bult" To: "mailing list for gambas developers" Sent: Tuesday, 27 January, 2009 12:13:19 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: [Gambas-devel] More fun ... Ok, Just rebuilt from SVN, now when I try to add gb.v4l to my project I get; "The gb.v4l component needs one of the following components: ." Help! -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...560... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Tue Jan 27 14:39:31 2009 From: gambas at ...1... (Benoit Minisini) Date: Tue, 27 Jan 2009 14:39:31 +0100 Subject: [Gambas-devel] More fun ... In-Reply-To: <1392804.392441233063333742.JavaMail.root@...616...> References: <1392804.392441233063333742.JavaMail.root@...616...> Message-ID: <200901271439.31271.gambas@...1...> On mardi 27 janvier 2009, Gareth Bult wrote: > Ok, I removed all the dependencies from gb.v4l.component and did a make > install .. works now .. but I'm guessing this isn't the preferred solution > (?) > It was a mistake in the gb.v4l.component file. It is fixed in revision #1822. Regards, -- Benoit Minisini From priastefano at ...506... Tue Jan 27 22:28:14 2009 From: priastefano at ...506... (stefano) Date: Tue, 27 Jan 2009 22:28:14 +0100 Subject: [Gambas-devel] Debug info for freeze problem In-Reply-To: <1232491097.11358.14.camel@...618...> References: <1232491097.11358.14.camel@...618...> Message-ID: <1233091694.4583.6.camel@...618...> Il giorno mar, 20/01/2009 alle 23.38 +0100, stefano ha scritto: > Hi to all, > > I have one question: sometimes my Gambas application stop to work... > what can I check to understand why ? > Whith ps -e command I see the gbx2 is running but my GUI is freeze, the > serial line don't manage any character, also the touch screen don't > work... but the system is live, apache works but the socket that spoke > with my application don't work, I can work in that situation with ssh... > but not with vnc server (freeze of course). > I don't have in that system a window manager, only server X on Debian > lenny distro. > Gambas ver is 2.6.... you must to know that the system works 24 hour per > day.... but sometimes in one day stop 2 times (for example) after can > works for a week and so on. > Gambas have some log file, trace file that I can check ? or have you any > tips for me ? > > Thanks a lot in advance for your cooperation. > > Best regards > Stefano Pria Hi Mr.Benoit I followed your instruction and this is the result that you ask me... I hope that this number is more clear for you than for me.... thank's a lot for all your work !! If you need other info don't worry to ask me... I still work with 2.6 ver, tonight I improve the new version 2.10.2... (gdb) bt #0 0xb6edbd51 in write () from /lib/libc.so.6 #1 0xb678f6a2 in ?? () from /usr/lib/gambas2/gb.net.so #2 0x0000000f in ?? () #3 0x0a20e208 in ?? () #4 0x00000008 in ?? () #5 0x00000008 in ?? () #6 0x09f9bd44 in ?? () #7 0x00000005 in ?? () #8 0xbfc5c108 in ?? () #9 0x0804bc2b in ?? () #10 0x0aff6fd0 in ?? () #11 0x09f9bd80 in ?? () #12 0x00000000 in ?? () (gdb) From gambas at ...1... Wed Jan 28 00:18:22 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 28 Jan 2009 00:18:22 +0100 Subject: [Gambas-devel] Debug info for freeze problem In-Reply-To: <1233091694.4583.6.camel@...618...> References: <1232491097.11358.14.camel@...618...> <1233091694.4583.6.camel@...618...> Message-ID: <200901280018.23194.gambas@...1...> On mardi 27 janvier 2009, stefano wrote: > Il giorno mar, 20/01/2009 alle 23.38 +0100, stefano ha scritto: > > Hi to all, > > > > I have one question: sometimes my Gambas application stop to work... > > what can I check to understand why ? > > Whith ps -e command I see the gbx2 is running but my GUI is freeze, the > > serial line don't manage any character, also the touch screen don't > > work... but the system is live, apache works but the socket that spoke > > with my application don't work, I can work in that situation with ssh... > > but not with vnc server (freeze of course). > > I don't have in that system a window manager, only server X on Debian > > lenny distro. > > Gambas ver is 2.6.... you must to know that the system works 24 hour per > > day.... but sometimes in one day stop 2 times (for example) after can > > works for a week and so on. > > Gambas have some log file, trace file that I can check ? or have you any > > tips for me ? > > > > Thanks a lot in advance for your cooperation. > > > > Best regards > > Stefano Pria > > Hi Mr.Benoit > I followed your instruction and this is the result that you ask me... I > hope that this number is more clear for you than for me.... thank's a > lot for all your work !! > > If you need other info don't worry to ask me... I still work with 2.6 > ver, tonight I improve the new version 2.10.2... > > (gdb) bt > #0 0xb6edbd51 in write () from /lib/libc.so.6 > #1 0xb678f6a2 in ?? () from /usr/lib/gambas2/gb.net.so > #2 0x0000000f in ?? () > #3 0x0a20e208 in ?? () > #4 0x00000008 in ?? () > #5 0x00000008 in ?? () > #6 0x09f9bd44 in ?? () > #7 0x00000005 in ?? () > #8 0xbfc5c108 in ?? () > #9 0x0804bc2b in ?? () > #10 0x0aff6fd0 in ?? () > #11 0x09f9bd80 in ?? () > #12 0x00000000 in ?? () > (gdb) > > Not really useful: but if you compile Gambas from sources, you will get the debugging information. Anyway, the interpreter seems to be locked in a write() system call from the gb.net component. Maybe the 2.10.2 version will improve the situation, as there are many changes related to gb.net in it. Regards, -- Benoit Minisini From gambas at ...1... Wed Jan 28 01:22:38 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 28 Jan 2009 01:22:38 +0100 Subject: [Gambas-devel] Out of the frying pan ... In-Reply-To: <14864173.390821233054506456.JavaMail.root@...616...> References: <14864173.390821233054506456.JavaMail.root@...616...> Message-ID: <200901280122.38682.gambas@...1...> On mardi 27 janvier 2009, Gareth Bult wrote: > Doh! > > Ok, found the problem .. my fault .. however .. feature request; > > Can we add a test to the start debug routines to check that the debug > session actually starts ? > > Scenario; > > a. Inadvertently add GB.UI=qt to your preferences -> environment for a > project b. Start debug > c. Execution of gbx3 immediately quits because "GB.UI=qt" is attempted and > found to be invalid d. IDE continues then blocks becuase the debug process > / session is now defunct e. Only solution is to kill the IDE > > I think pretty much anything "invalid" entered into the environment section > of a project can cause this issue ... > > :( > > Gareth. > Thanks for having identified the problem. I fixed it in the last revisions (#1825 & #1826). Now, instead of a freeze, the IDE will just warn that the shell runnning the debugged process has returned a value, and you will see its error message in the console. In the future, I will directly check that environmental variable names are syntactically correct. Regards, -- Benoit Minisini From david_villalobos_c at ...7... Wed Jan 28 16:20:50 2009 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Wed, 28 Jan 2009 07:20:50 -0800 (PST) Subject: [Gambas-devel] gb.image Message-ID: <521647.3107.qm@...587...> Hi all, does gb.image needs a new lib? I try to compile it but it fails. Regards -- David From ronstk at ...124... Wed Jan 28 16:33:25 2009 From: ronstk at ...124... (Ron_1st) Date: Wed, 28 Jan 2009 16:33:25 +0100 Subject: [Gambas-devel] gb.image In-Reply-To: <521647.3107.qm@...587...> References: <521647.3107.qm@...587...> Message-ID: <200901281633.25956.ronstk@...124...> On Wednesday 28 January 2009, David Villalobos Cambronero wrote: > Hi all, does gb.image needs a new lib? I try to compile it but it fails. > > Regards > > > -- > David > > No not a new lib There is a little change done with great impact. The rule to include the change is not finnished/commit. Stay tuned, Benoit must work and eat too before he continues. Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From david_villalobos_c at ...7... Wed Jan 28 16:46:06 2009 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Wed, 28 Jan 2009 07:46:06 -0800 (PST) Subject: [Gambas-devel] gb.image References: <521647.3107.qm@...587...> <200901281633.25956.ronstk@...124...> Message-ID: <680307.17247.qm@...555...> Ohhhh thanks, now I got it, that means that I can't compile Gambas until Benoit finish? Regards -- David ----- Original Message ---- From: Ron_1st To: mailing list for gambas developers Sent: Wednesday, January 28, 2009 9:33:25 AM Subject: Re: [Gambas-devel] gb.image On Wednesday 28 January 2009, David Villalobos Cambronero wrote: > Hi all, does gb.image needs a new lib? I try to compile it but it fails. > > Regards > > > -- > David > > No not a new lib There is a little change done with great impact. The rule to include the change is not finnished/commit. Stay tuned, Benoit must work and eat too before he continues. Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From ronstk at ...124... Wed Jan 28 16:56:58 2009 From: ronstk at ...124... (Ron_1st) Date: Wed, 28 Jan 2009 16:56:58 +0100 Subject: [Gambas-devel] gb.image In-Reply-To: <680307.17247.qm@...555...> References: <521647.3107.qm@...587...> <200901281633.25956.ronstk@...124...> <680307.17247.qm@...555...> Message-ID: <200901281656.58411.ronstk@...124...> On Wednesday 28 January 2009, David Villalobos Cambronero wrote: > Ohhhh thanks, now I got it, that means that I can't compile Gambas until Benoit finish? > > Regards > > > -- > David > > > > ----- Original Message ---- > From: Ron_1st > To: mailing list for gambas developers > Sent: Wednesday, January 28, 2009 9:33:25 AM > Subject: Re: [Gambas-devel] gb.image > > On Wednesday 28 January 2009, David Villalobos Cambronero wrote: > > Hi all, does gb.image needs a new lib? I try to compile it but it fails. > > > > Regards > > > > > > -- > > David > > > > > > No not a new lib > There is a little change done with great impact. > The rule to include the change is not finnished/commit. > Stay tuned, Benoit must work and eat too before he continues. > > > > > Best regards, > > Ron_1st > Yea exactly. So in the time passing by I try to use for that part code from a few versions back to kill myself instead th achmed(Silence, I kill you) is doing that. :) Having fun on a currupt trunk tree does not hurt so much. Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From david_villalobos_c at ...7... Wed Jan 28 17:32:03 2009 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Wed, 28 Jan 2009 08:32:03 -0800 (PST) Subject: [Gambas-devel] gb.image References: <521647.3107.qm@...587...> <200901281633.25956.ronstk@...124...> <680307.17247.qm@...555...> <200901281656.58411.ronstk@...124...> Message-ID: <339514.18843.qm@...582...> Many thanks Saludos -- David ----- Original Message ---- From: Ron_1st To: gambas-devel at lists.sourceforge.net Sent: Wednesday, January 28, 2009 9:56:58 AM Subject: Re: [Gambas-devel] gb.image On Wednesday 28 January 2009, David Villalobos Cambronero wrote: > Ohhhh thanks, now I got it, that means that I can't compile Gambas until Benoit finish? > > Regards > > > -- > David > > > > ----- Original Message ---- > From: Ron_1st > To: mailing list for gambas developers > Sent: Wednesday, January 28, 2009 9:33:25 AM > Subject: Re: [Gambas-devel] gb.image > > On Wednesday 28 January 2009, David Villalobos Cambronero wrote: > > Hi all, does gb.image needs a new lib? I try to compile it but it fails. > > > > Regards > > > > > > -- > > David > > > > > > No not a new lib > There is a little change done with great impact. > The rule to include the change is not finnished/commit. > Stay tuned, Benoit must work and eat too before he continues. > > > > > Best regards, > > Ron_1st > Yea exactly. So in the time passing by I try to use for that part code from a few versions back to kill myself instead th achmed(Silence, I kill you) is doing that. :) Having fun on a currupt trunk tree does not hurt so much. Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From gambas at ...1... Wed Jan 28 18:10:08 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 28 Jan 2009 18:10:08 +0100 Subject: [Gambas-devel] gb.image In-Reply-To: <521647.3107.qm@...587...> References: <521647.3107.qm@...587...> Message-ID: <200901281810.08622.gambas@...1...> On mercredi 28 janvier 2009, David Villalobos Cambronero wrote: > Hi all, does gb.image needs a new lib? I try to compile it but it fails. > > Regards > > > -- > David > It is (almost) finished and everything should compile. If something fails, please tell what exactly! Regards, -- Benoit Minisini From gambas at ...1... Wed Jan 28 18:12:09 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 28 Jan 2009 18:12:09 +0100 Subject: [Gambas-devel] gb.image In-Reply-To: <200901281810.08622.gambas@...1...> References: <521647.3107.qm@...587...> <200901281810.08622.gambas@...1...> Message-ID: <200901281812.09199.gambas@...1...> On mercredi 28 janvier 2009, Benoit Minisini wrote: > On mercredi 28 janvier 2009, David Villalobos Cambronero wrote: > > Hi all, does gb.image needs a new lib? I try to compile it but it fails. > > > > Regards > > > > > > -- > > David > > It is (almost) finished and everything should compile. If something fails, > please tell what exactly! > > Regards, Well, it compiles -now- (revision #1827). As usual, I forgot to add two new source files. Regards, -- Benoit Minisini From ronstk at ...124... Wed Jan 28 20:04:16 2009 From: ronstk at ...124... (Ron_1st) Date: Wed, 28 Jan 2009 20:04:16 +0100 Subject: [Gambas-devel] gbv4l2.c missing some V4L2_PIX_FMT_ format declaration kubunt 8.04 Message-ID: <200901282004.16524.ronstk@...124...> Outstanding correction in gbv4l2.c case V4L2_PIX_FMT_BGR32: gv4l2_debug("BGR32"); break; case V4L2_PIX_FMT_RGB32: /* DEFAULT - NO CONV */ break; /* case V4L2_PIX_FMT_GREY: gv4l2_debug("GREY"); break; case V4L2_PIX_FMT_Y16: gv4l2_debug("Y16"); break; case V4L2_PIX_FMT_PAL8: gv4l2_debug("PAL8"); break; case V4L2_PIX_FMT_YVU410: gv4l2_debug("YVU410"); break; case V4L2_PIX_FMT_YVU420: gv4l2_debug("YVU420"); break; */ case V4L2_PIX_FMT_YUV420: //gv4l2_debug("YUV420"); yuv420p_to_rgb (start,THIS->frame,w,h,3); return; case V4L2_PIX_FMT_YUYV: //gv4l2_debug("YUYV"); convert_yuv_to_rgb_buffer(start,THIS->frame,w,h); return; /* case V4L2_PIX_FMT_UYVY: gv4l2_debug("UYVY"); break; case V4L2_PIX_FMT_YUV422P: gv4l2_debug("YUV422P"); break; case V4L2_PIX_FMT_YUV411P: gv4l2_debug("YUV411P"); break; ---8<--- case V4L2_PIX_FMT_PJPG: gv4l2_debug("PJPG"); break; case V4L2_PIX_FMT_YVYU: gv4l2_debug("YVYU"); break; */ default: Garret knows about the problem. The videodev.h of kubuntu 8.04 != Kubunte 8.10 without the excluded sections there occurs a compile error about missing some of the V4L2_PIX_FMT_xxxxx's He only support 2 of them and only the supported should be in the case part. Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From david_villalobos_c at ...7... Wed Jan 28 20:48:34 2009 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Wed, 28 Jan 2009 11:48:34 -0800 (PST) Subject: [Gambas-devel] gb.image References: <521647.3107.qm@...587...> <200901281810.08622.gambas@...1...> <200901281812.09199.gambas@...1...> Message-ID: <213226.18622.qm@...582...> Hi there, just on tell 'IT WORKS' (I like Apache) Mandriva 2009.0 64Bits KDE. Saludos -- David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas developers Sent: Wednesday, January 28, 2009 11:12:09 AM Subject: Re: [Gambas-devel] gb.image On mercredi 28 janvier 2009, Benoit Minisini wrote: > On mercredi 28 janvier 2009, David Villalobos Cambronero wrote: > > Hi all, does gb.image needs a new lib? I try to compile it but it fails. > > > > Regards > > > > > > -- > > David > > It is (almost) finished and everything should compile. If something fails, > please tell what exactly! > > Regards, Well, it compiles -now- (revision #1827). As usual, I forgot to add two new source files. Regards, -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From david_villalobos_c at ...7... Thu Jan 29 15:19:10 2009 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Thu, 29 Jan 2009 06:19:10 -0800 (PST) Subject: [Gambas-devel] Error in dialog class Message-ID: <837662.14043.qm@...582...> Hi all, I got an error when running my application in the new relase of Gambas3. You can see the error in the atteched image. You can download my project in svn://mail.utn.ac.cr/var/svn/SMaRT Any help, please! Regards -- David -------------- next part -------------- A non-text attachment was scrubbed... Name: Error.png Type: image/png Size: 7622 bytes Desc: not available URL: From shannon at ...622... Thu Jan 29 20:03:45 2009 From: shannon at ...622... (831photo) Date: Thu, 29 Jan 2009 11:03:45 -0800 (PST) Subject: [Gambas-devel] V4L2: MJPEG format w/ QuickCam 9000 Pro Message-ID: <21730646.post@...565...> Hey guys! First, thanks for all the hard work with the new v4l2 support. I've been following your threads closely. I have a logitech QC 9000 pro, and when I open it, the debug output shows it uses MJPEG images. When I display the images in a picturebox, I'm getting nothing but what appears to be white noise. Looking through the source code, I see where it identifies the format as MJPEG, but unlike the YUYV format, there is no code yet for the conversion to RGB. I've done some google searches to see if I could find a conversion routine, to no avail. I even pulled the "Cheese" source to see how they correctly display the images, but from a cursory glance at the source, it appears to be reading it as a stream, rather than individual images (which would make sense, the way I understand MJPEG it's not sending individual frames, but rather the changes between frames. I may be completely wrong in this though!) Is there something already in another component of gambas that can handle this, or do you think this would need to be written from scratch? Thanks again, hopefully I can actually be of some use. It's been quite a while since I dove into C source, but it looks (mostly) familiar...;-) Shan -- View this message in context: http://www.nabble.com/V4L2%3A-MJPEG-format-w--QuickCam-9000-Pro-tp21730646p21730646.html Sent from the gambas-devel mailing list archive at Nabble.com. From shannon at ...622... Thu Jan 29 22:00:02 2009 From: shannon at ...622... (831photo) Date: Thu, 29 Jan 2009 13:00:02 -0800 (PST) Subject: [Gambas-devel] V4L2: MJPEG format w/ QuickCam 9000 Pro In-Reply-To: <21730646.post@...565...> References: <21730646.post@...565...> Message-ID: <21735724.post@...565...> Ok, an update: With the latest trunk version (1834), the QC9000 IS capturing. It appears that the colors may be incorrect, maybe it is an RGB signal? Blues look yellow, it has a heavy purple tone (reds and blacks). Here's the only debug info presented: gambas v4l2: Device is V4L2! [0] gambas v4l2: cropping not supported [22] gambas v4l2: Capture ON [22] Also, did many gb.image functions get pulled? Specifically, the effects - charcoal, oilpaint, etc? I didn't see anything in the changelog, but they aren't available. I even tried putting the gb.image folder from 2.11 into the 3.0 version then compiling, with no luck. Thanks again! Shan -- View this message in context: http://www.nabble.com/V4L2%3A-MJPEG-format-w--QuickCam-9000-Pro-tp21730646p21735724.html Sent from the gambas-devel mailing list archive at Nabble.com. From david_villalobos_c at ...7... Thu Jan 29 23:06:51 2009 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Thu, 29 Jan 2009 14:06:51 -0800 (PST) Subject: [Gambas-devel] Gambas 3 bg.qt4 Message-ID: <889424.40205.qm@...596...> Hi, I want to know what Libs do I need to can compile gb.qt4? Regards -- David From gambas at ...1... Fri Jan 30 00:35:34 2009 From: gambas at ...1... (Benoit Minisini) Date: Fri, 30 Jan 2009 00:35:34 +0100 Subject: [Gambas-devel] V4L2: MJPEG format w/ QuickCam 9000 Pro In-Reply-To: <21735724.post@...565...> References: <21730646.post@...565...> <21735724.post@...565...> Message-ID: <200901300035.34685.gambas@...1...> On jeudi 29 janvier 2009, 831photo wrote: > Ok, an update: > > With the latest trunk version (1834), the QC9000 IS capturing. It appears > that the colors may be incorrect, maybe it is an RGB signal? Blues look > yellow, it has a heavy purple tone (reds and blacks). > > Here's the only debug info presented: > gambas v4l2: Device is V4L2! [0] > gambas v4l2: cropping not supported [22] > gambas v4l2: Capture ON [22] > > Also, did many gb.image functions get pulled? Specifically, the effects - > charcoal, oilpaint, etc? I didn't see anything in the changelog, but they > aren't available. I even tried putting the gb.image folder from 2.11 into > the 3.0 version then compiling, with no luck. > > Thanks again! > > Shan The old image effect functions have been removed, because they must be rewritten a bit and go to a new component (gb.image.effect ?). Regards, -- Benoit Minisini From gambas at ...1... Fri Jan 30 00:38:26 2009 From: gambas at ...1... (Benoit Minisini) Date: Fri, 30 Jan 2009 00:38:26 +0100 Subject: [Gambas-devel] Gambas 3 bg.qt4 In-Reply-To: <889424.40205.qm@...596...> References: <889424.40205.qm@...596...> Message-ID: <200901300038.26180.gambas@...1...> On jeudi 29 janvier 2009, David Villalobos Cambronero wrote: > Hi, I want to know what Libs do I need to can compile gb.qt4? > > Regards > > > -- > David > You must install the qt4 development packages of your distribution. The gb.qt4 configure script uses the pkg-config tool to detect the following pkg-config packages: 'QtCore', 'QtGui' and 'Qt3Support'. 'QtOpenGL' is needed for gb.qt4.opengl. Regards, -- Benoit Minisini From david_villalobos_c at ...7... Fri Jan 30 15:16:34 2009 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Fri, 30 Jan 2009 06:16:34 -0800 (PST) Subject: [Gambas-devel] Gambas 3 bg.qt4 References: <889424.40205.qm@...596...> <200901300038.26180.gambas@...1...> Message-ID: <243953.86952.qm@...582...> I see, it is solved installing lib64qt4-devel :-) Regards -- David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas developers Sent: Thursday, January 29, 2009 5:38:26 PM Subject: Re: [Gambas-devel] Gambas 3 bg.qt4 On jeudi 29 janvier 2009, David Villalobos Cambronero wrote: > Hi, I want to know what Libs do I need to can compile gb.qt4? > > Regards > > > -- > David > You must install the qt4 development packages of your distribution. The gb.qt4 configure script uses the pkg-config tool to detect the following pkg-config packages: 'QtCore', 'QtGui' and 'Qt3Support'. 'QtOpenGL' is needed for gb.qt4.opengl. Regards, -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From david_villalobos_c at ...7... Fri Jan 30 18:29:09 2009 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Fri, 30 Jan 2009 09:29:09 -0800 (PST) Subject: [Gambas-devel] Error in dialog class Message-ID: <174670.41058.qm@...556...> This is 64Bits related. I just compile Gambas 3 in Mandriva 2009.0 32Bits and my application works fine. Benoit can you validate? Regards -- David ----- Original Message ---- From: David Villalobos Cambronero To: Gambas-devel Sent: Thursday, January 29, 2009 8:19:10 AM Subject: Error in dialog class Hi all, I got an error when running my application in the new relase of Gambas3. You can see the error in the atteched image. You can download my project in svn://mail.utn.ac.cr/var/svn/SMaRT Any help, please! Regards -- David From gambas at ...1... Sat Jan 31 16:53:27 2009 From: gambas at ...1... (Benoit Minisini) Date: Sat, 31 Jan 2009 16:53:27 +0100 Subject: [Gambas-devel] Error in dialog class In-Reply-To: <174670.41058.qm@...556...> References: <174670.41058.qm@...556...> Message-ID: <200901311653.27726.gambas@...1...> On vendredi 30 janvier 2009, David Villalobos Cambronero wrote: > This is 64Bits related. I just compile Gambas 3 in Mandriva 2009.0 32Bits > and my application works fine. > > Benoit can you validate? > > Regards > > > -- > David > I added a warning message in revision #1839. Can you rerun your app on 64 bits, and tell me what is printed when the error is raised? -- Benoit Minisini From david_villalobos_c at ...7... Sat Jan 31 18:56:35 2009 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Sat, 31 Jan 2009 09:56:35 -0800 (PST) Subject: [Gambas-devel] Error in dialog class References: <174670.41058.qm@...556...> <200901311653.27726.gambas@...1...> Message-ID: <393452.4438.qm@...582...> Hi, sure, here it is: type = 'R' parent_type = 'P' Regards -- David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas developers Sent: Saturday, January 31, 2009 9:53:27 AM Subject: Re: [Gambas-devel] Error in dialog class On vendredi 30 janvier 2009, David Villalobos Cambronero wrote: > This is 64Bits related. I just compile Gambas 3 in Mandriva 2009.0 32Bits > and my application works fine. > > Benoit can you validate? > > Regards > > > -- > David > I added a warning message in revision #1839. Can you rerun your app on 64 bits, and tell me what is printed when the error is raised? -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel