Re: [Kicad-developers] New OpenGL debug stuff crashes pcbnew on startup

2018-02-14 Thread Maciej Sumiński
Good point, in the end I have added an explicit check using GLEW
extensions query.

Regards,
Orson

On 02/14/2018 06:44 AM, Mark Roszko wrote:
>  FYI, GL_DEBUG_OUTPUT is only available starting OpenGL4 so users with
> older video cards/drivers are probably the ones having issues.
> 




signature.asc
Description: OpenPGP digital signature
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] New OpenGL debug stuff crashes pcbnew on startup

2018-02-13 Thread Mark Roszko
 FYI, GL_DEBUG_OUTPUT is only available starting OpenGL4 so users with
older video cards/drivers are probably the ones having issues.
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] New OpenGL debug stuff crashes pcbnew on startup

2018-02-11 Thread Maciej Sumiński
On 02/10/2018 12:05 PM, jp charras wrote:
> Le 10/02/2018 à 10:54, jp charras a écrit :
>> Le 09/02/2018 à 20:08, Wayne Stambaugh a écrit :
>>> Linux and windows are find for me.
>>>
>>> On 02/09/2018 01:14 PM, Jeff Young wrote:
 Mac-only?
>>
>> Mac-only?: No. For me, it crashes on Windows (W7 32 bits) and works only on 
>> Linux.
>>
>> The crash happens both in debug and release mode, and in debug mode I have 
>> the same trace as on OSX.
> 
> Hi Orson,
> 
> Could you have a look into my commit 5ecfd326545c0bc34c853174e4de371a8bc0ac82
> 
> It allows call to enableGlDebug only in Debug Build ( __WXDEBUG__ is defined 
> even in Kicad release
> mode) and only on Linux.
> 
> For some reasons, on my W7 32 bits install, glEnable( GL_DEBUG_OUTPUT ) crash 
> without message,
> and glDisable( GL_DEBUG_OUTPUT ) crash but after displaying a error message.
> 
> Thanks,
> 

Hi Jean-Pierre,

Given the other platforms do not cope well with GL debugging, your
changes are sensible. It was a bit unexpected, I thought GL debug
extensions are basic and well supported. Thank you for quick reaction.

Regards,
Orson



signature.asc
Description: OpenPGP digital signature
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] New OpenGL debug stuff crashes pcbnew on startup

2018-02-10 Thread jp charras
Le 10/02/2018 à 10:54, jp charras a écrit :
> Le 09/02/2018 à 20:08, Wayne Stambaugh a écrit :
>> Linux and windows are find for me.
>>
>> On 02/09/2018 01:14 PM, Jeff Young wrote:
>>> Mac-only?
> 
> Mac-only?: No. For me, it crashes on Windows (W7 32 bits) and works only on 
> Linux.
> 
> The crash happens both in debug and release mode, and in debug mode I have 
> the same trace as on OSX.

Hi Orson,

Could you have a look into my commit 5ecfd326545c0bc34c853174e4de371a8bc0ac82

It allows call to enableGlDebug only in Debug Build ( __WXDEBUG__ is defined 
even in Kicad release
mode) and only on Linux.

For some reasons, on my W7 32 bits install, glEnable( GL_DEBUG_OUTPUT ) crash 
without message,
and glDisable( GL_DEBUG_OUTPUT ) crash but after displaying a error message.

Thanks,

-- 
Jean-Pierre CHARRAS

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] New OpenGL debug stuff crashes pcbnew on startup

2018-02-10 Thread jp charras
Le 09/02/2018 à 20:08, Wayne Stambaugh a écrit :
> Linux and windows are find for me.
> 
> On 02/09/2018 01:14 PM, Jeff Young wrote:
>> Mac-only?

Mac-only?: No. For me, it crashes on Windows (W7 32 bits) and works only on 
Linux.

The crash happens both in debug and release mode, and in debug mode I have the 
same trace as on OSX.


-- 
Jean-Pierre CHARRAS

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] New OpenGL debug stuff crashes pcbnew on startup

2018-02-09 Thread Wayne Stambaugh
Linux and windows are find for me.

On 02/09/2018 01:14 PM, Jeff Young wrote:
> Mac-only?
> 
> Cheers,
> Jeff.
> 
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] New OpenGL debug stuff crashes pcbnew on startup

2018-02-09 Thread Jon Evans
Just from doing a bit of reading, maybe this extension is not supported on
MacOS
https://github.com/go-gl/gl/issues/40


On Fri, Feb 9, 2018 at 1:29 PM, Jon Evans  wrote:

> Yup, all GAL apps now crashing on MacOS for me
>
> thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS
> (code=1, address=0x0)
>   * frame #0: 0x
> frame #1: 0x00010b5ae868 _gerbview.kiface`enableGlDebug(aEnable=true)
> at utils.cpp:108
> frame #2: 0x00010b55a0ca _gerbview.kiface`KIGFX::
> OPENGL_GAL::init(this=0x00010e7f7000) at opengl_gal.cpp:1778
> frame #3: 0x00010b55aec4 _gerbview.kiface`KIGFX::
> OPENGL_GAL::BeginUpdate(this=0x00010e7f7000) at opengl_gal.cpp:386
>
> -Jon
>
> On Fri, Feb 9, 2018 at 1:14 PM, Jeff Young  wrote:
>
>> Mac-only?
>>
>> Cheers,
>> Jeff.
>>
>> ___
>> Mailing list: https://launchpad.net/~kicad-developers
>> Post to : kicad-developers@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help   : https://help.launchpad.net/ListHelp
>>
>
>
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] New OpenGL debug stuff crashes pcbnew on startup

2018-02-09 Thread Jon Evans
Yup, all GAL apps now crashing on MacOS for me

thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS
(code=1, address=0x0)
  * frame #0: 0x
frame #1: 0x00010b5ae868
_gerbview.kiface`enableGlDebug(aEnable=true) at utils.cpp:108
frame #2: 0x00010b55a0ca
_gerbview.kiface`KIGFX::OPENGL_GAL::init(this=0x00010e7f7000) at
opengl_gal.cpp:1778
frame #3: 0x00010b55aec4
_gerbview.kiface`KIGFX::OPENGL_GAL::BeginUpdate(this=0x00010e7f7000) at
opengl_gal.cpp:386

-Jon

On Fri, Feb 9, 2018 at 1:14 PM, Jeff Young  wrote:

> Mac-only?
>
> Cheers,
> Jeff.
>
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp