Opened 10 years ago

Closed 9 years ago

#44825 closed defect (fixed)

ngspice @26_0 "Can't open viewport for graphics" error on plot

Reported by: ph.mignon@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc: jmaibaum@…, anddam (Andrea D'Amore)
Port: ngspice

Description (last modified by anddam (Andrea D'Amore))

While trying to perform any plot command (batch or interactive) in ngspice 26 - see § 17.5.43 in ngspice's manual -- the following error is shown:

Can't open viewport for graphics.

To reproduce download the attached simple.cir file and run ngspice simple.cir (leave the interpreter using quit, exit or ^D).

The output shown is similar to:

Circuit: * simplest circuit

Doing analysis at TEMP = 27.000000 and TNOM = 27.000000

No. of Data Rows : 1
Can't open viewport for graphics.
ngspice 2 ->

Attachments (1)

simple.cir (76 bytes) - added by anddam (Andrea D'Amore) 9 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 10 years ago by ph.mignon@…

ngspice 2 -> plot vcc

Can't open viewport for graphics.

comment:2 Changed 10 years ago by mf2k (Frank Schima)

Description: modified (diff)
Port: ngspice added
Resolution: invalid
Status: newclosed

In the future, please use WikiFormatting and fill in the Port field.

You are going to have to give us more information to debug this. What is line 1 so I can try to reproduce this? How do you know this is not an upstream issue? Please re-open the ticket with more information because there is nothing obvious to act on here given that the port builds fine for me.

comment:3 Changed 9 years ago by jmaibaum@…

Resolution: invalid
Status: closedreopened

With ngspice @26_0 on Yosemite, I get the exact same error when trying to plot anything:

Circuit: *rc filter ac example

ngspice 2 -> run
Doing analysis at TEMP = 27.000000 and TNOM = 27.000000

Warning: v1: has no value, DC 0 assumed


No. of Data Rows : 701
ngspice 2 -> plot db(v(out))
Can't open viewport for graphics.

I have not many ports installed now as I have just upgraded to Yosemite from Mountain Lion and chose to start with a clean MacPorts installation. However, the very same error occured before, on Mountain Lion, too. XCode and XQuartz 2.7.7 are both installed and up to date. The circuit loaded to test this was the first example netlist from http://www.ngspice.com (The simple RC filter that's in the text area).

There were no build errors when I installed ngspice.

If you need more information to debug just ask, I will try to gather them for you.

comment:4 Changed 9 years ago by jmaibaum@…

Cc: jmaibaum@… added

Cc Me!

comment:5 Changed 9 years ago by anddam (Andrea D'Amore)

Cc: and.damore@… added

Cc Me!

comment:6 Changed 9 years ago by anddam (Andrea D'Amore)

Description: modified (diff)
Summary: ngspice : Can't open viewport for graphicsngspice @26_0 "Can't open viewport for graphics" error on plot

Changed 9 years ago by anddam (Andrea D'Amore)

Attachment: simple.cir added

comment:7 Changed 9 years ago by anddam (Andrea D'Amore)

Resolution: fixed
Status: reopenedclosed

Fixed in r137080, configure script just lacked X enabling option, I'm closing the ticket.

I'm also waiitng on #37536 to see if ngspice port can have a maintainer.

Note: See TracTickets for help on using tickets.