Thread: Crash after changing pgAgent Jobs
<font face="sans-serif" size="2">One more behavior to the refresh-option below:</font><br /><br /><font face="sans-serif"size="2">If I just try to deactivate a Job on confirming I get the error-message: </font><br /><font face="sans-serif"size="2">Cannot refresh browser</font><br /><font face="sans-serif" size="2">There are properties dialoguesopen for one or more objects that would</font><br /><font face="sans-serif" size="2">be refreshed. Please closethe properties dialogues and try again.</font><br /><br /><font face="sans-serif" size="2">But I don't have any otherdialogues open.</font><br /><br /><font face="sans-serif" size="2">Regards</font><br /><font face="sans-serif" size="2">Günther</font><br/><br /><br /><br /><br /><font size="3">Hi all,</font><br /><br /><font size="3">Since I am usingPgAdmin v.1.16.0 on Windows 7 64 bit when I change anything on a pgAgent job </font><br /><font size="3">pgAgent chrashes.</font><br/><font size="3">This happens only if I the new tree refresh option is turned on in Options->UI Miscellaneous->Refreshon click->Refresh object on click</font><br /><font size="3">When I turn this option off it worksfine.</font><br /><br /><font size="3">Thank you!</font><br /><br /><font size="3">Günther</font><br /><br /> --------------------------------------------------------------------------<br/> This email and any files transmitted withit are confidential and intended<br /> solely for the use of the individual or entity to whom they are addressed.<br/> If you have received this email in error please notify the system manager.<br /><br /> Think GREEN beforeyou print!<br /> Before you print, please consider if it is necessary.<br /> Printing uses electricity, ink and paper.<br/> --------------------------------------------------------------------------<br />
Dhiraj, can you look into this please? Thanks. On Mon, Nov 5, 2012 at 9:24 AM, <UNTERRAINER.Guenther@leitwind.com> wrote: > One more behavior to the refresh-option below: > > If I just try to deactivate a Job on confirming I get the error-message: > Cannot refresh browser > There are properties dialogues open for one or more objects that would > be refreshed. Please close the properties dialogues and try again. > > But I don't have any other dialogues open. > > Regards > Günther > > > > > > Hi all, > > Since I am using PgAdmin v.1.16.0 on Windows 7 64 bit when I change anything > on a pgAgent job > pgAgent chrashes. > This happens only if I the new tree refresh option is turned on in > Options->UI Miscellaneous->Refresh on click->Refresh object on click > When I turn this option off it works fine. > > Thank you! > > Günther > > -------------------------------------------------------------------------- > This email and any files transmitted with it are confidential and intended > solely for the use of the individual or entity to whom they are addressed. > If you have received this email in error please notify the system manager. > > Think GREEN before you print! > Before you print, please consider if it is necessary. > Printing uses electricity, ink and paper. > -------------------------------------------------------------------------- -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Hi Guenther,
--
On Tue, Nov 6, 2012 at 5:12 PM, Dave Page <dpage@pgadmin.org> wrote:
Dhiraj, can you look into this please?
Thanks.
On Mon, Nov 5, 2012 at 9:24 AM, <UNTERRAINER.Guenther@leitwind.com> wrote:
> One more behavior to the refresh-option below:
>
> If I just try to deactivate a Job on confirming I get the error-message:
> Cannot refresh browser
> There are properties dialogues open for one or more objects that would
> be refreshed. Please close the properties dialogues and try again.
>
> But I don't have any other dialogues open.
>
I am not able to reproduce this case at my end with the steps as given by you. Can you please provide me more information and specific steps that you did to reproduce this error?
> Regards
> Günther
>
>
>
>
>
> Hi all,
>
> Since I am using PgAdmin v.1.16.0 on Windows 7 64 bit when I change anything
> on a pgAgent job
> pgAgent chrashes.
> This happens only if I the new tree refresh option is turned on in
> Options->UI Miscellaneous->Refresh on click->Refresh object on click
> When I turn this option off it works fine.
>
This crash was reproducible to me and am looking into it.
> Thank you!
>
> Günther
>
> --------------------------------------------------------------------------
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify the system manager.
>
> Think GREEN before you print!
> Before you print, please consider if it is necessary.
> Printing uses electricity, ink and paper.
> ----------------------------------------------------------------------------
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
regards,
Dhiraj Chawla
Software Engineer
EnterpriseDB Corporation
The Enterprise PostgreSQL Company
Phone: +91-20-30589522
Software Engineer
EnterpriseDB Corporation
The Enterprise PostgreSQL Company
Phone: +91-20-30589522
Hi Günther,
--
I had a look at the issue and the case is reproducible to me also, but this happens only if do the following steps:
1. Open options dialog and in the UI Miscellaneous tab select 'Refresh object and children on click' for Refresh on click option.
2. Open the properties dialog of a job.
3. Select some other node on the object browser.
4. Then select again the job node.
5. The Message box with message "There are properties dialogues open for one or more objects that would be refreshed. Please close the properties dialogues and try again.".
From the understanding that I got after reading your mail what happens in your case is as follows:
1. Open options dialog and in the UI Miscellaneous tab select 'Refresh object and children on click' for Refresh on click option.
2. Open the properties dialog of a job.
3. Uncheck the 'Enabled' the checkbox in the dialog.
4. Click OK button and the message box pop-up.
Well the same message box was not reproducible to me based on these steps.
If the first set of steps are true then according to the code the behavior is expected, because when we refresh a node or it's children, we re-construct their objects and the previous objects are deleted. If we do not keep this check then this might lead to crashes and segmentation faults as the dialogs tend to use the pre-constructed objects.
I am not sure if the text of the message box shown in this case is appropriate or not in context to the situation in which it gets pop-ed up.
Dave, Thoughts/Comments?
Thanks,
On Fri, Nov 9, 2012 at 1:35 PM, <UNTERRAINER.Guenther@leitwind.com> wrote:
Hi Dhiraj, to this issue:This happens if the refresh option in Options->UI Misellaneous->Refresh on click is set to
> One more behavior to the refresh-option below:
>
> If I just try to deactivate a Job on confirming I get the error-message:
> Cannot refresh browser
> There are properties dialogues open for one or more objects that would
> be refreshed. Please close the properties dialogues and try again.
>
> But I don't have any other dialogues open.
>
Refresh object and children on click
Sorry for my inaccurateness!
Günther
___________________________________
Günther Unterrainer
Wind Generators Projects & Service IT
LEITWIND AG - SpA
Brennerstraße 34 - Via Brennero, 34
I-39049 Sterzing - Vipiteno
Tel. +39 0472 722 443
http://www.leitwind.com
Please consider the environment before printing this email
Dhiraj Chawla <dhiraj.chawla@enterprisedb.com> wrote on 08.11.2012 14:21:16:
> Dhiraj Chawla <dhiraj.chawla@enterprisedb.com>
> 08.11.2012 14:21
>
> To
>
> UNTERRAINER.Guenther@leitwind.com, Dave Page <dpage@pgadmin.org>
>
> cc
>
> pgAdmin Support <pgadmin-support@postgresql.org>
>
> Subject
>
> Re: [pgadmin-support] Crash after changing pgAgent Jobs
>
> Hi Guenther,
> On Tue, Nov 6, 2012 at 5:12 PM, Dave Page <dpage@pgadmin.org> wrote:
> Dhiraj, can you look into this please?
>
> Thanks.
>
> On Mon, Nov 5, 2012 at 9:24 AM, <UNTERRAINER.Guenther@leitwind.com> wrote:
> > One more behavior to the refresh-option below:
> >
> > If I just try to deactivate a Job on confirming I get the error-message:
> > Cannot refresh browser
> > There are properties dialogues open for one or more objects that would
> > be refreshed. Please close the properties dialogues and try again.
> >
> > But I don't have any other dialogues open.
> >
>
> I am not able to reproduce this case at my end with the steps as
> given by you. Can you please provide me more information and
> specific steps that you did to reproduce this error?
>
>
> > Regards
> > Günther
> >
> >
> >
> >
> >
> > Hi all,
> >
> > Since I am using PgAdmin v.1.16.0 on Windows 7 64 bit when I change anything
> > on a pgAgent job
> > pgAgent chrashes.
> > This happens only if I the new tree refresh option is turned on in
> > Options->UI Miscellaneous->Refresh on click->Refresh object on click
> > When I turn this option off it works fine.
> >
>
> This crash was reproducible to me and am looking into it.
>
> > Thank you!
> >
> > Günther
> >
> > --------------------------------------------------------------------------
> > This email and any files transmitted with it are confidential and intended
> > solely for the use of the individual or entity to whom they are addressed.
> > If you have received this email in error please notify the system manager.
> >
> > Think GREEN before you print!
> > Before you print, please consider if it is necessary.
> > Printing uses electricity, ink and paper.
> > --------------------------------------------------------------------------
>
>
> --
> Dave Page
> Blog: http://pgsnake.blogspot.com
> Twitter: @pgsnake
>
> EnterpriseDB UK: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>
>
> --
> regards,
>
> Dhiraj Chawla
> Software Engineer
> EnterpriseDB Corporation
> The Enterprise PostgreSQL Company
>
> Phone: +91-20-30589522
--------------------------------------------------------------------------
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
Think GREEN before you print!
Before you print, please consider if it is necessary.
Printing uses electricity, ink and paper.
--------------------------------------------------------------------------
regards,
Dhiraj Chawla
Software Engineer
EnterpriseDB Corporation
The Enterprise PostgreSQL Company
Phone: +91-20-30589522
Software Engineer
EnterpriseDB Corporation
The Enterprise PostgreSQL Company
Phone: +91-20-30589522
That sounds like it's working as I'd expect. It would be tricky to change the error message based on the operation being attempted as it's raised at a fairly low level. I think it's generic enough that it doesn't matter though. On Fri, Nov 9, 2012 at 11:26 AM, Dhiraj Chawla <dhiraj.chawla@enterprisedb.com> wrote: > Hi Günther, > > I had a look at the issue and the case is reproducible to me also, but this > happens only if do the following steps: > > 1. Open options dialog and in the UI Miscellaneous tab select 'Refresh > object and children on click' for Refresh on click option. > 2. Open the properties dialog of a job. > 3. Select some other node on the object browser. > 4. Then select again the job node. > 5. The Message box with message "There are properties dialogues open for > one or more objects that would be refreshed. Please close the properties > dialogues and try again.". > > From the understanding that I got after reading your mail what happens in > your case is as follows: > > 1. Open options dialog and in the UI Miscellaneous tab select 'Refresh > object and children on click' for Refresh on click option. > 2. Open the properties dialog of a job. > 3. Uncheck the 'Enabled' the checkbox in the dialog. > 4. Click OK button and the message box pop-up. > > Well the same message box was not reproducible to me based on these steps. > > If the first set of steps are true then according to the code the behavior > is expected, because when we refresh a node or it's children, we > re-construct their objects and the previous objects are deleted. If we do > not keep this check then this might lead to crashes and segmentation faults > as the dialogs tend to use the pre-constructed objects. > > I am not sure if the text of the message box shown in this case is > appropriate or not in context to the situation in which it gets pop-ed up. > > Dave, Thoughts/Comments? > > Thanks, > > > On Fri, Nov 9, 2012 at 1:35 PM, <UNTERRAINER.Guenther@leitwind.com> wrote: >> >> Hi Dhiraj, to this issue: >> >> >> > One more behavior to the refresh-option below: >> > >> > If I just try to deactivate a Job on confirming I get the error-message: >> > Cannot refresh browser >> > There are properties dialogues open for one or more objects that would >> > be refreshed. Please close the properties dialogues and try again. >> > >> > But I don't have any other dialogues open. >> > >> >> This happens if the refresh option in Options->UI Misellaneous->Refresh on >> click is set to >> Refresh object and children on click >> >> Sorry for my inaccurateness! >> Günther >> >> >> >> ___________________________________ >> Günther Unterrainer >> Wind Generators Projects & Service IT >> >> LEITWIND AG - SpA >> Brennerstraße 34 - Via Brennero, 34 >> I-39049 Sterzing - Vipiteno >> Tel. +39 0472 722 443 >> >> http://www.leitwind.com >> >> Please consider the environment before printing this email >> >> Dhiraj Chawla <dhiraj.chawla@enterprisedb.com> wrote on 08.11.2012 >> 14:21:16: >> >> > Dhiraj Chawla <dhiraj.chawla@enterprisedb.com> >> > 08.11.2012 14:21 >> > >> > To >> > >> > UNTERRAINER.Guenther@leitwind.com, Dave Page <dpage@pgadmin.org> >> >> > >> > cc >> > >> > pgAdmin Support <pgadmin-support@postgresql.org> >> > >> > Subject >> > >> > Re: [pgadmin-support] Crash after changing pgAgent Jobs >> >> > >> > Hi Guenther, >> >> > On Tue, Nov 6, 2012 at 5:12 PM, Dave Page <dpage@pgadmin.org> wrote: >> > Dhiraj, can you look into this please? >> > >> > Thanks. >> > >> > On Mon, Nov 5, 2012 at 9:24 AM, <UNTERRAINER.Guenther@leitwind.com> >> > wrote: >> > > One more behavior to the refresh-option below: >> > > >> > > If I just try to deactivate a Job on confirming I get the >> > > error-message: >> > > Cannot refresh browser >> > > There are properties dialogues open for one or more objects that would >> > > be refreshed. Please close the properties dialogues and try again. >> > > >> > > But I don't have any other dialogues open. >> > > >> > >> > I am not able to reproduce this case at my end with the steps as >> > given by you. Can you please provide me more information and >> > specific steps that you did to reproduce this error? >> > >> > >> > > Regards >> > > Günther >> > > >> > > >> > > >> > > >> > > >> > > Hi all, >> > > >> > > Since I am using PgAdmin v.1.16.0 on Windows 7 64 bit when I change >> > > anything >> > > on a pgAgent job >> > > pgAgent chrashes. >> > > This happens only if I the new tree refresh option is turned on in >> > > Options->UI Miscellaneous->Refresh on click->Refresh object on click >> > > When I turn this option off it works fine. >> > > >> > >> > This crash was reproducible to me and am looking into it. >> > >> > > Thank you! >> > > >> > > Günther >> > > >> > > >> > > -------------------------------------------------------------------------- >> > > This email and any files transmitted with it are confidential and >> > > intended >> > > solely for the use of the individual or entity to whom they are >> > > addressed. >> > > If you have received this email in error please notify the system >> > > manager. >> > > >> > > Think GREEN before you print! >> > > Before you print, please consider if it is necessary. >> > > Printing uses electricity, ink and paper. >> > > >> > > -------------------------------------------------------------------------- >> > >> > >> >> > -- >> > Dave Page >> > Blog: http://pgsnake.blogspot.com >> > Twitter: @pgsnake >> > >> > EnterpriseDB UK: http://www.enterprisedb.com >> > The Enterprise PostgreSQL Company >> > >> >> > >> > -- >> > regards, >> > >> > Dhiraj Chawla >> > Software Engineer >> > EnterpriseDB Corporation >> > The Enterprise PostgreSQL Company >> > >> > Phone: +91-20-30589522 >> -------------------------------------------------------------------------- >> This email and any files transmitted with it are confidential and intended >> solely for the use of the individual or entity to whom they are addressed. >> If you have received this email in error please notify the system manager. >> >> Think GREEN before you print! >> Before you print, please consider if it is necessary. >> Printing uses electricity, ink and paper. >> -------------------------------------------------------------------------- > > > > > -- > regards, > > Dhiraj Chawla > Software Engineer > EnterpriseDB Corporation > The Enterprise PostgreSQL Company > > Phone: +91-20-30589522 > -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Hi Günther,
I tried all the steps that you mentioned in the mail below, but was unable to reproduce it at my end. I get the error message only when I click on job step node when properties dialog of job is opened or vice-versa, which in our case is a valid.
I would appreciate if anyone on the pgadmin-support list could also have a look at this and see if the mentioned scenarios are reproducible at your end.
Thanks,
--
On Fri, Nov 9, 2012 at 6:34 PM, <UNTERRAINER.Guenther@leitwind.com> wrote:
Hi Dhiraj,
I tried it out again ('Refresh object and children on click' for Refresh on click is already set)
I have also selected the option to open properties of an object by double click.
So when I do:
1. open the properties dialog by double click
2. check (or uncheck, it happens always the same) the 'enabled' checkbox and do ok
3. Click OK button and the message box pops up.
4. If I confirm the error message and refresh the Jobs list the change is done
an other observation is that when I to the same but open the properties dialog by right mouse click -> properties,
then after confirming the same change as above I get two times the message box with the mentioned error,
but the change is done, as above
ThanksGüntherpgadmin-support-owner@postgresql.org wrote on 09.11.2012 12:26:02:
___________________________________
Günther Unterrainer
Wind Generators Projects & Service IT
LEITWIND AG - SpA
Brennerstraße 34 - Via Brennero, 34
I-39049 Sterzing - Vipiteno
Tel. +39 0472 722 443
http://www.leitwind.com
Please consider the environment before printing this email
> Dhiraj Chawla <dhiraj.chawla@enterprisedb.com>
> Sent by: pgadmin-support-owner@postgresql.org
>
> 09.11.2012 12:26>
> pgadmin-support@postgresql.org>
>
> Subject
>
> Re: [pgadmin-support] Crash after changing pgAgent Jobs
> Hi Günther,
>
> I had a look at the issue and the case is reproducible to me also,
> but this happens only if do the following steps:
>
> 1. Open options dialog and in the UI Miscellaneous tab select
> 'Refresh object and children on click' for Refresh on click option.
> 2. Open the properties dialog of a job.
> 3. Select some other node on the object browser.
> 4. Then select again the job node.
> 5. The Message box with message "There are properties dialogues
> open for one or more objects that would be refreshed. Please close
> the properties dialogues and try again.".
>
> From the understanding that I got after reading your mail what
> happens in your case is as follows:
>
> 1. Open options dialog and in the UI Miscellaneous tab select
> 'Refresh object and children on click' for Refresh on click option.
> 2. Open the properties dialog of a job.
> 3. Uncheck the 'Enabled' the checkbox in the dialog.
> 4. Click OK button and the message box pop-up.
>
> Well the same message box was not reproducible to me based on these steps.
>
> If the first set of steps are true then according to the code
> the behavior is expected, because when we refresh a node or it's
> children, we re-construct their objects and the previous objects are
> deleted. If we do not keep this check then this might lead to
> crashes and segmentation faults as the dialogs tend to use the pre-
> constructed objects.
>
> I am not sure if the text of the message box shown in this case is
> appropriate or not in context to the situation in which it gets pop-ed up.
>
> Dave, Thoughts/Comments?
>
> Thanks,
>
> On Fri, Nov 9, 2012 at 1:35 PM, <UNTERRAINER.Guenther@leitwind.com> wrote:
> Hi Dhiraj, to this issue:
>
>
> > One more behavior to the refresh-option below:
> >
> > If I just try to deactivate a Job on confirming I get the error-message:
> > Cannot refresh browser
> > There are properties dialogues open for one or more objects that would
> > be refreshed. Please close the properties dialogues and try again.
> >
> > But I don't have any other dialogues open.
> >
> This happens if the refresh option in Options->UI
> Misellaneous->Refresh on click is set to
> Refresh object and children on click
>
> Sorry for my inaccurateness!
> Günther
>
>
> ___________________________________
> Günther Unterrainer
> Wind Generators Projects & Service IT
>
> LEITWIND AG - SpA
> Brennerstraße 34 - Via Brennero, 34
> I-39049 Sterzing - Vipiteno
> Tel. +39 0472 722 443
>
> http://www.leitwind.com
>
> Please consider the environment before printing this email
>
> Dhiraj Chawla <dhiraj.chawla@enterprisedb.com> wrote on 08.11.2012 14:21:16:
>
> > Dhiraj Chawla <dhiraj.chawla@enterprisedb.com>
> > 08.11.2012 14:21
> >
> > To
> >
> > UNTERRAINER.Guenther@leitwind.com, Dave Page <dpage@pgadmin.org>
> >
> > cc
> >
> > pgAdmin Support <pgadmin-support@postgresql.org>
> >
> > Subject
> >
> > Re: [pgadmin-support] Crash after changing pgAgent Jobs
>
> >
> > Hi Guenther,
>
> > On Tue, Nov 6, 2012 at 5:12 PM, Dave Page <dpage@pgadmin.org> wrote:
> > Dhiraj, can you look into this please?
> >
> > Thanks.
> >
> > On Mon, Nov 5, 2012 at 9:24 AM, <UNTERRAINER.Guenther@leitwind.com> wrote:
> > > One more behavior to the refresh-option below:
> > >
> > > If I just try to deactivate a Job on confirming I get the error-message:
> > > Cannot refresh browser
> > > There are properties dialogues open for one or more objects that would
> > > be refreshed. Please close the properties dialogues and try again.
> > >
> > > But I don't have any other dialogues open.
> > >
> >
> > I am not able to reproduce this case at my end with the steps as
> > given by you. Can you please provide me more information and
> > specific steps that you did to reproduce this error?
> >
> >
> > > Regards
> > > Günther
> > >
> > >
> > >
> > >
> > >
> > > Hi all,
> > >
> > > Since I am using PgAdmin v.1.16.0 on Windows 7 64 bit when I
> change anything
> > > on a pgAgent job
> > > pgAgent chrashes.
> > > This happens only if I the new tree refresh option is turned on in
> > > Options->UI Miscellaneous->Refresh on click->Refresh object on click
> > > When I turn this option off it works fine.
> > >
> >
> > This crash was reproducible to me and am looking into it.
> >
> > > Thank you!
> > >
> > > Günther
> > >
> > > --------------------------------------------------------------------------
> > > This email and any files transmitted with it are confidential and intended
> > > solely for the use of the individual or entity to whom they are addressed.
> > > If you have received this email in error please notify the system manager.
> > >
> > > Think GREEN before you print!
> > > Before you print, please consider if it is necessary.
> > > Printing uses electricity, ink and paper.
> > > --------------------------------------------------------------------------
> >
> >
>
> > --
> > Dave Page
> > Blog: http://pgsnake.blogspot.com
> > Twitter: @pgsnake
> >
> > EnterpriseDB UK: http://www.enterprisedb.com
> > The Enterprise PostgreSQL Company
> >
>
> >
> > --
> > regards,
> >
> > Dhiraj Chawla
> > Software Engineer
> > EnterpriseDB Corporation
> > The Enterprise PostgreSQL Company
> >
> > Phone: +91-20-30589522
> --------------------------------------------------------------------------
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify the system manager.
>
> Think GREEN before you print!
> Before you print, please consider if it is necessary.
> Printing uses electricity, ink and paper.
> --------------------------------------------------------------------------
>
>
> --
> regards,
>
> Dhiraj Chawla
> Software Engineer
> EnterpriseDB Corporation
> The Enterprise PostgreSQL Company
>
> Phone: +91-20-30589522
--------------------------------------------------------------------------
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
Think GREEN before you print!
Before you print, please consider if it is necessary.
Printing uses electricity, ink and paper.
--------------------------------------------------------------------------
regards,
Dhiraj Chawla
Software Engineer
EnterpriseDB Corporation
The Enterprise PostgreSQL Company
Phone: +91-20-30589522
Software Engineer
EnterpriseDB Corporation
The Enterprise PostgreSQL Company
Phone: +91-20-30589522