Thread: Rename database destroys server connections

Rename database destroys server connections

From
Colin Beckingham
Date:
Using wxw 2.9.3, latest dev 1.17, Opensuse 12.1

With two servers connected, select database in object browser for 
localhost. Click properties, select database name, edit to something 
different, click OK.

Error backtrace:

ASSERT INFO:
/usr/local/include/wx-2.9/wx/strvararg.h(453): assert "(argtype & 
(wxFormatStringSpecifier<T>::value)) == argtype" failed in 
wxArgNormalizer(): format specifier doesn't match argument type

BACKTRACE:
[1] wxOnAssert(char const*, int, char const*, char const*, char const*)
[2] wxString wxString::Format<long, wxCStrData>(wxFormatString const&, 
long, wxCStrData)
[3] dlgDatabase::OnOK(wxCommandEvent&)
[4] wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, 
wxEvent&) cons)
[5] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, 
wxEvtHandler*, wxEvent&)
[6] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[7] wxEvtHandler::ProcessEventLocally(wxEvent&)
[8] wxEvtHandler::ProcessEvent(wxEvent&)
[9] wxWindowBase::TryAfter(wxEvent&)
[10] wxEvtHandler::SafelyProcessEvent(wxEvent&)
[11] g_closure_invoke()
[12] g_signal_emit_valist()
[13] g_signal_emit()
[14] g_closure_invoke()
[15] g_signal_emit_valist()
[16] g_signal_emit()
[17] g_closure_invoke()
[18] g_signal_emit_valist()
[19] g_signal_emit()
[20] gtk_propagate_event()
[21] gtk_main_do_event()
[22] g_main_context_dispatch()
[23] g_main_loop_run()
[24] gtk_main()

If click continue, pgadmin seems unstable.
Re-establish connections, click and highlight database, attempt to 
rename database, dialog box appears, but is showing detail for the 
schema, not the database.
-- 
---
Colin Beckingham
613-454-5369
http://www.it4gh.com



Re: Rename database destroys server connections

From
Guillaume Lelarge
Date:
On Mon, 2012-07-16 at 11:05 -0400, Colin Beckingham wrote:
> Using wxw 2.9.3, latest dev 1.17, Opensuse 12.1
> 
> With two servers connected, select database in object browser for 
> localhost. Click properties, select database name, edit to something 
> different, click OK.
> 
> Error backtrace:
> 
> ASSERT INFO:
> /usr/local/include/wx-2.9/wx/strvararg.h(453): assert "(argtype & 
> (wxFormatStringSpecifier<T>::value)) == argtype" failed in 
> wxArgNormalizer(): format specifier doesn't match argument type
> 

I fixed it. Make sure it works for you.

It seems to still have a severe bug afterwards. It completely empties
the whole browser. Make sure you have a copy of your configuration file
before you test (the .pgadmin3 file in your hom directory).


-- 
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com



Re: Rename database destroys server connections

From
Colin Beckingham
Date:

On 07/18/2012 05:23 PM, Guillaume Lelarge wrote:
> On Mon, 2012-07-16 at 11:05 -0400, Colin Beckingham wrote:
>> Using wxw 2.9.3, latest dev 1.17, Opensuse 12.1
>>
>> With two servers connected, select database in object browser for
>> localhost. Click properties, select database name, edit to something
>> different, click OK.
>>
>> Error backtrace:
>>
>> ASSERT INFO:
>> /usr/local/include/wx-2.9/wx/strvararg.h(453): assert "(argtype &
>> (wxFormatStringSpecifier<T>::value)) == argtype" failed in
>> wxArgNormalizer(): format specifier doesn't match argument type
>>
>
> I fixed it. Make sure it works for you.
>
> It seems to still have a severe bug afterwards. It completely empties
> the whole browser. Make sure you have a copy of your configuration file
> before you test (the .pgadmin3 file in your hom directory).
>
>

OK the error is gone, database is renamed, but the object browser is 
cleared as you say, forcing a manual reconnect to all servers. It's a 
rare occasion to need to rename a database, so can live with it for the 
time being.

-- 
---
Colin Beckingham
613-454-5369
http://www.it4gh.com


Re: Rename database destroys server connections

From
Guillaume Lelarge
Date:
On Wed, 2012-07-18 at 19:39 -0400, Colin Beckingham wrote:
> 
> On 07/18/2012 05:23 PM, Guillaume Lelarge wrote:
> > On Mon, 2012-07-16 at 11:05 -0400, Colin Beckingham wrote:
> >> Using wxw 2.9.3, latest dev 1.17, Opensuse 12.1
> >>
> >> With two servers connected, select database in object browser for
> >> localhost. Click properties, select database name, edit to something
> >> different, click OK.
> >>
> >> Error backtrace:
> >>
> >> ASSERT INFO:
> >> /usr/local/include/wx-2.9/wx/strvararg.h(453): assert "(argtype &
> >> (wxFormatStringSpecifier<T>::value)) == argtype" failed in
> >> wxArgNormalizer(): format specifier doesn't match argument type
> >>
> >
> > I fixed it. Make sure it works for you.
> >
> > It seems to still have a severe bug afterwards. It completely empties
> > the whole browser. Make sure you have a copy of your configuration file
> > before you test (the .pgadmin3 file in your hom directory).
> >
> >
> 
> OK the error is gone, database is renamed, but the object browser is 
> cleared as you say, forcing a manual reconnect to all servers. It's a 
> rare occasion to need to rename a database, so can live with it for the 
> time being.
> 

Sure, but this is an issue we need to work on.


-- 
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com