[Kicad-developers] m_graph is null when exporting netlist

2019-04-08 Thread Jeff Young
Hi Jon,

When we try to build a netlist for Update PCB from Schematic we get an assert 
in NETLIST_EXPORTER_GENERIC::makeListOfNets() because m_graph is null.  Is this 
because real-time updating is turned off?  Is there a call to build it that we 
should be making in the meantime?

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


Re: [Kicad-developers] m_graph is null when exporting netlist

2019-04-08 Thread Jon Evans
The graph should be updated before netlisting even if real-time is turned
off.  What is the call stack where you get the assert?  I'm not a build
machine now so I will be of limited use, but it sounds like somehow the
exporter is being constructed without setting the pointer to the global
connection graph object.

-Jon

On Mon, Apr 8, 2019 at 3:07 PM Jeff Young  wrote:

> Hi Jon,
>
> When we try to build a netlist for Update PCB from Schematic we get an
> assert in NETLIST_EXPORTER_GENERIC::makeListOfNets() because m_graph is
> null.  Is this because real-time updating is turned off?  Is there a call
> to build it that we should be making in the meantime?
>
> 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] m_graph is null when exporting netlist

2019-04-08 Thread Jeff Young
It’s in the cross-probing code.  The init looks like this:

NETLIST_OBJECT_LIST* net_atoms = BuildNetListBase();
NETLIST_EXPORTER_KICAD exporter( this, net_atoms );
STRING_FORMATTER formatter;

exporter.Format( &formatter, GNL_ALL );

payload = formatter.GetString();


> On 8 Apr 2019, at 20:12, Jon Evans  wrote:
> 
> The graph should be updated before netlisting even if real-time is turned 
> off.  What is the call stack where you get the assert?  I'm not a build 
> machine now so I will be of limited use, but it sounds like somehow the 
> exporter is being constructed without setting the pointer to the global 
> connection graph object.
> 
> -Jon
> 
> On Mon, Apr 8, 2019 at 3:07 PM Jeff Young  > wrote:
> Hi Jon,
> 
> When we try to build a netlist for Update PCB from Schematic we get an assert 
> in NETLIST_EXPORTER_GENERIC::makeListOfNets() because m_graph is null.  Is 
> this because real-time updating is turned off?  Is there a call to build it 
> that we should be making in the meantime?
> 
> 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] m_graph is null when exporting netlist

2019-04-08 Thread Jeff Young
I see there are other places where it’s constructed with the global 
g_ConnectionGraph.  Do I just need to add that?

> On 8 Apr 2019, at 20:18, Jeff Young  wrote:
> 
> It’s in the cross-probing code.  The init looks like this:
> 
> NETLIST_OBJECT_LIST* net_atoms = BuildNetListBase();
> NETLIST_EXPORTER_KICAD exporter( this, net_atoms );
> STRING_FORMATTER formatter;
> 
> exporter.Format( &formatter, GNL_ALL );
> 
> payload = formatter.GetString();
> 
> 
>> On 8 Apr 2019, at 20:12, Jon Evans > > wrote:
>> 
>> The graph should be updated before netlisting even if real-time is turned 
>> off.  What is the call stack where you get the assert?  I'm not a build 
>> machine now so I will be of limited use, but it sounds like somehow the 
>> exporter is being constructed without setting the pointer to the global 
>> connection graph object.
>> 
>> -Jon
>> 
>> On Mon, Apr 8, 2019 at 3:07 PM Jeff Young > > wrote:
>> Hi Jon,
>> 
>> When we try to build a netlist for Update PCB from Schematic we get an 
>> assert in NETLIST_EXPORTER_GENERIC::makeListOfNets() because m_graph is 
>> null.  Is this because real-time updating is turned off?  Is there a call to 
>> build it that we should be making in the meantime?
>> 
>> 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

___
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] m_graph is null when exporting netlist

2019-04-08 Thread Jon Evans
Yes, try that.  We can probably pull it out of the ctor and just use the
global until/unless it is refactored away.

On Mon, Apr 8, 2019 at 3:19 PM Jeff Young  wrote:

> I see there are other places where it’s constructed with the
> global g_ConnectionGraph.  Do I just need to add that?
>
> On 8 Apr 2019, at 20:18, Jeff Young  wrote:
>
> It’s in the cross-probing code.  The init looks like this:
>
> NETLIST_OBJECT_LIST* net_atoms = BuildNetListBase();
> NETLIST_EXPORTER_KICAD exporter( this, net_atoms );
> STRING_FORMATTER formatter;
>
> exporter.Format( &formatter, GNL_ALL );
>
> payload = formatter.GetString();
>
>
>
> On 8 Apr 2019, at 20:12, Jon Evans  wrote:
>
> The graph should be updated before netlisting even if real-time is turned
> off.  What is the call stack where you get the assert?  I'm not a build
> machine now so I will be of limited use, but it sounds like somehow the
> exporter is being constructed without setting the pointer to the global
> connection graph object.
>
> -Jon
>
> On Mon, Apr 8, 2019 at 3:07 PM Jeff Young  wrote:
>
>> Hi Jon,
>>
>> When we try to build a netlist for Update PCB from Schematic we get an
>> assert in NETLIST_EXPORTER_GENERIC::makeListOfNets() because m_graph is
>> null.  Is this because real-time updating is turned off?  Is there a call
>> to build it that we should be making in the meantime?
>>
>> 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
>
>
>
___
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] m_graph is null when exporting netlist

2019-04-08 Thread Jeff Young
Yep, seems to have worked.  Thanks!

> On 8 Apr 2019, at 20:20, Jon Evans  wrote:
> 
> Yes, try that.  We can probably pull it out of the ctor and just use the 
> global until/unless it is refactored away.
> 
> On Mon, Apr 8, 2019 at 3:19 PM Jeff Young  > wrote:
> I see there are other places where it’s constructed with the global 
> g_ConnectionGraph.  Do I just need to add that?
> 
>> On 8 Apr 2019, at 20:18, Jeff Young mailto:j...@rokeby.ie>> 
>> wrote:
>> 
>> It’s in the cross-probing code.  The init looks like this:
>> 
>> NETLIST_OBJECT_LIST* net_atoms = BuildNetListBase();
>> NETLIST_EXPORTER_KICAD exporter( this, net_atoms );
>> STRING_FORMATTER formatter;
>> 
>> exporter.Format( &formatter, GNL_ALL );
>> 
>> payload = formatter.GetString();
>> 
>> 
>>> On 8 Apr 2019, at 20:12, Jon Evans >> > wrote:
>>> 
>>> The graph should be updated before netlisting even if real-time is turned 
>>> off.  What is the call stack where you get the assert?  I'm not a build 
>>> machine now so I will be of limited use, but it sounds like somehow the 
>>> exporter is being constructed without setting the pointer to the global 
>>> connection graph object.
>>> 
>>> -Jon
>>> 
>>> On Mon, Apr 8, 2019 at 3:07 PM Jeff Young >> > wrote:
>>> Hi Jon,
>>> 
>>> When we try to build a netlist for Update PCB from Schematic we get an 
>>> assert in NETLIST_EXPORTER_GENERIC::makeListOfNets() because m_graph is 
>>> null.  Is this because real-time updating is turned off?  Is there a call 
>>> to build it that we should be making in the meantime?
>>> 
>>> 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 
>> 
> 

___
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