Обсуждение: Error: CGContextRestoreGState: invalid context 0x0

Поиск
Список
Период
Сортировка

Error: CGContextRestoreGState: invalid context 0x0

От
Jon Roberts
Дата:
- pgAdmin version: 1.14.3
- pgAdmin downloaded from pgadmin.org
- OS: OS X 10.7.4
- Databases: Greenplum 4.2.2 (fork of PostgreSQL 8.2) and PostgreSQL 9.1.3
- Problem: Repeated errors like this:
9/13/12 6:56:02.896 AM [0x0-0x4a44a4].org.postgresql.pgadmin: Sep 13
06:56:02 jonnymac pgAdmin3[12981] <Error>: CGContextRestoreGState:
invalid context 0x0
9/13/12 6:56:02.944 AM pgAdmin3: CGContextRestoreGState: invalid context 0x0
- Steps to Reproduce: Open a Query window and type anything.  The
Event Viewer gets populated as you type with these error messages.
pgAdmin and my Mac both have crashed when I use pgAdmin for any length
of time.  I have also tried this on another Mac running OS X 10.7.4
and got the same results.



Jon



Re: Error: CGContextRestoreGState: invalid context 0x0

От
Guillaume Lelarge
Дата:
On Thu, 2012-09-13 at 07:05 -0500, Jon Roberts wrote:
> - pgAdmin version: 1.14.3
> - pgAdmin downloaded from pgadmin.org
> - OS: OS X 10.7.4
> - Databases: Greenplum 4.2.2 (fork of PostgreSQL 8.2) and PostgreSQL 9.1.3
> - Problem: Repeated errors like this:
> 9/13/12 6:56:02.896 AM [0x0-0x4a44a4].org.postgresql.pgadmin: Sep 13
> 06:56:02 jonnymac pgAdmin3[12981] <Error>: CGContextRestoreGState:
> invalid context 0x0
> 9/13/12 6:56:02.944 AM pgAdmin3: CGContextRestoreGState: invalid context 0x0
> - Steps to Reproduce: Open a Query window and type anything.  The
> Event Viewer gets populated as you type with these error messages.
> pgAdmin and my Mac both have crashed when I use pgAdmin for any length
> of time.  I have also tried this on another Mac running OS X 10.7.4
> and got the same results.
> 

Try with 1.16, it may be fixed there.


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




Re: Error: CGContextRestoreGState: invalid context 0x0

От
Jon Roberts
Дата:
I tried 1.16.0, 1.14.3, 1.12.3, and 1.10.5.  All of these versions
gave me the same error message on two different Macs running Lion.


Jon

On Thu, Sep 13, 2012 at 3:11 PM, Guillaume Lelarge
<guillaume@lelarge.info> wrote:
> On Thu, 2012-09-13 at 07:05 -0500, Jon Roberts wrote:
>> - pgAdmin version: 1.14.3
>> - pgAdmin downloaded from pgadmin.org
>> - OS: OS X 10.7.4
>> - Databases: Greenplum 4.2.2 (fork of PostgreSQL 8.2) and PostgreSQL 9.1.3
>> - Problem: Repeated errors like this:
>> 9/13/12 6:56:02.896 AM [0x0-0x4a44a4].org.postgresql.pgadmin: Sep 13
>> 06:56:02 jonnymac pgAdmin3[12981] <Error>: CGContextRestoreGState:
>> invalid context 0x0
>> 9/13/12 6:56:02.944 AM pgAdmin3: CGContextRestoreGState: invalid context 0x0
>> - Steps to Reproduce: Open a Query window and type anything.  The
>> Event Viewer gets populated as you type with these error messages.
>> pgAdmin and my Mac both have crashed when I use pgAdmin for any length
>> of time.  I have also tried this on another Mac running OS X 10.7.4
>> and got the same results.
>>
>
> Try with 1.16, it may be fixed there.
>
>
> --
> Guillaume
> http://blog.guillaume.lelarge.info
> http://www.dalibo.com
>



Re: Error: CGContextRestoreGState: invalid context 0x0

От
Jon Roberts
Дата:
Is this the bug?

http://sourceforge.net/tracker/index.php?func=detail&aid=1761910&group_id=9863&atid=109863

I haven't dug through the code much but did find that ctlSQLBox does
use EVT_STC_PAINTED and I don't see wx.CallAfter used at all.

It makes pgAdmin feel kind of laggy when I type quickly because the
console is busy writing this error with every keystroke.


Jon

On Thu, Sep 13, 2012 at 5:32 PM, Jon Roberts <greenplumguru@gmail.com> wrote:
> I tried 1.16.0, 1.14.3, 1.12.3, and 1.10.5.  All of these versions
> gave me the same error message on two different Macs running Lion.
>
>
> Jon
>
> On Thu, Sep 13, 2012 at 3:11 PM, Guillaume Lelarge
> <guillaume@lelarge.info> wrote:
>> On Thu, 2012-09-13 at 07:05 -0500, Jon Roberts wrote:
>>> - pgAdmin version: 1.14.3
>>> - pgAdmin downloaded from pgadmin.org
>>> - OS: OS X 10.7.4
>>> - Databases: Greenplum 4.2.2 (fork of PostgreSQL 8.2) and PostgreSQL 9.1.3
>>> - Problem: Repeated errors like this:
>>> 9/13/12 6:56:02.896 AM [0x0-0x4a44a4].org.postgresql.pgadmin: Sep 13
>>> 06:56:02 jonnymac pgAdmin3[12981] <Error>: CGContextRestoreGState:
>>> invalid context 0x0
>>> 9/13/12 6:56:02.944 AM pgAdmin3: CGContextRestoreGState: invalid context 0x0
>>> - Steps to Reproduce: Open a Query window and type anything.  The
>>> Event Viewer gets populated as you type with these error messages.
>>> pgAdmin and my Mac both have crashed when I use pgAdmin for any length
>>> of time.  I have also tried this on another Mac running OS X 10.7.4
>>> and got the same results.
>>>
>>
>> Try with 1.16, it may be fixed there.
>>
>>
>> --
>> Guillaume
>> http://blog.guillaume.lelarge.info
>> http://www.dalibo.com
>>



Re: Error: CGContextRestoreGState: invalid context 0x0

От
Guillaume Lelarge
Дата:
On Thu, 2012-09-13 at 20:42 -0500, Jon Roberts wrote:
> Is this the bug?
> 
> http://sourceforge.net/tracker/index.php?func=detail&aid=1761910&group_id=9863&atid=109863
> 
> I haven't dug through the code much but did find that ctlSQLBox does
> use EVT_STC_PAINTED and I don't see wx.CallAfter used at all.
> 
> It makes pgAdmin feel kind of laggy when I type quickly because the
> console is busy writing this error with every keystroke.
> 

I don't have a recent enough Mac to check this (compile on my Mac takes
way too much time).

Dave, can you check?


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




Re: Error: CGContextRestoreGState: invalid context 0x0

От
Dave Page
Дата:
On Fri, Sep 14, 2012 at 4:56 PM, Guillaume Lelarge
<guillaume@lelarge.info> wrote:
> On Thu, 2012-09-13 at 20:42 -0500, Jon Roberts wrote:
>> Is this the bug?
>>
>> http://sourceforge.net/tracker/index.php?func=detail&aid=1761910&group_id=9863&atid=109863
>>
>> I haven't dug through the code much but did find that ctlSQLBox does
>> use EVT_STC_PAINTED and I don't see wx.CallAfter used at all.
>>
>> It makes pgAdmin feel kind of laggy when I type quickly because the
>> console is busy writing this error with every keystroke.
>>
>
> I don't have a recent enough Mac to check this (compile on my Mac takes
> way too much time).
>
> Dave, can you check?

I can see the error, but don't see any ill effects from it. Here's the
wxWidgets bug: http://trac.wxwidgets.org/ticket/4272


-- 
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



Re: Error: CGContextRestoreGState: invalid context 0x0

От
Jon Roberts
Дата:
On Sat, Sep 15, 2012 at 7:54 AM, Dave Page <dpage@pgadmin.org> wrote:
> On Fri, Sep 14, 2012 at 4:56 PM, Guillaume Lelarge
> <guillaume@lelarge.info> wrote:
>> On Thu, 2012-09-13 at 20:42 -0500, Jon Roberts wrote:
>>> Is this the bug?
>>>
>>> http://sourceforge.net/tracker/index.php?func=detail&aid=1761910&group_id=9863&atid=109863
>>>
>>> I haven't dug through the code much but did find that ctlSQLBox does
>>> use EVT_STC_PAINTED and I don't see wx.CallAfter used at all.
>>>
>>> It makes pgAdmin feel kind of laggy when I type quickly because the
>>> console is busy writing this error with every keystroke.
>>>
>>
>> I don't have a recent enough Mac to check this (compile on my Mac takes
>> way too much time).
>>
>> Dave, can you check?
>
> I can see the error, but don't see any ill effects from it. Here's the
> wxWidgets bug: http://trac.wxwidgets.org/ticket/4272
>

On one Mac I have, pgAdmin will crash if I type a lot of SQL but I
think there is something wrong with that computer because on another
Mac with virtually the same setup, it doesn't crash.  But, it still
seems to lag a bit while typing and it does fill up the Console log.

Since there is a fix for this, shouldn't that be implemented?


Jon



Re: Error: CGContextRestoreGState: invalid context 0x0

От
Dave Page
Дата:
On Wed, Sep 19, 2012 at 10:50 AM, Jon Roberts <greenplumguru@gmail.com> wrote:
> On Sat, Sep 15, 2012 at 7:54 AM, Dave Page <dpage@pgadmin.org> wrote:
>> On Fri, Sep 14, 2012 at 4:56 PM, Guillaume Lelarge
>> <guillaume@lelarge.info> wrote:
>>> On Thu, 2012-09-13 at 20:42 -0500, Jon Roberts wrote:
>>>> Is this the bug?
>>>>
>>>> http://sourceforge.net/tracker/index.php?func=detail&aid=1761910&group_id=9863&atid=109863
>>>>
>>>> I haven't dug through the code much but did find that ctlSQLBox does
>>>> use EVT_STC_PAINTED and I don't see wx.CallAfter used at all.
>>>>
>>>> It makes pgAdmin feel kind of laggy when I type quickly because the
>>>> console is busy writing this error with every keystroke.
>>>>
>>>
>>> I don't have a recent enough Mac to check this (compile on my Mac takes
>>> way too much time).
>>>
>>> Dave, can you check?
>>
>> I can see the error, but don't see any ill effects from it. Here's the
>> wxWidgets bug: http://trac.wxwidgets.org/ticket/4272
>>
>
> On one Mac I have, pgAdmin will crash if I type a lot of SQL but I
> think there is something wrong with that computer because on another
> Mac with virtually the same setup, it doesn't crash.  But, it still
> seems to lag a bit while typing and it does fill up the Console log.
>
> Since there is a fix for this, shouldn't that be implemented?

That fix is only applicable to wxPython, not wxWidgets/C++.

-- 
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company