question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spyder crashes when trying to save IPython console with graphics

See original GitHub issue

Long time I was not reporting this, suspecting local compatibility troubles to cause it. But now all related libraryes (including PyQt4) updated and no warning messages in console shown. But trouble still here. Spyder crashes when trying to save IPython console when some graphics (from pyplot in my case) displayed in it. Similar print function works fine, saving single picture from console works too. But when selecting “Save as HTML/XML” it displays save-as dialog and after click “save” just crash all spyder without any log or traceback. So all I can provide as error information is screenshoots and windows error details from crash message.

What steps will reproduce the problem?

  1. execute something like
import numpy as np
import matplotlib.pyplot as plt
plt.plot(np.sin(np.arange(314)/50.),'g--')
plt.show()

to display graphics in console

  1. right click on IPython console and select “Save as HTML/XML” (or just ctrl+s when IPython console in focus)
  2. select valid file name and click “save”

What is the expected output? What do you see instead? expected some resulted HTML but receive crash all spyder without log or trace. Windows error message is

Problem signature:
  Problem Event Name:	APPCRASH
  Application Name:	pythonw.exe
  Application Version:	0.0.0.0
  Application Timestamp:	5488ac31
  Fault Module Name:	QtGui4.dll
  Fault Module Version:	4.8.7.0
  Fault Module Timestamp:	55655256
  Exception Code:	c0000005
  Exception Offset:	00055ac7
  OS Version:	6.1.7601.2.1.0.256.4
  Locale ID:	1049
  Additional Information 1:	0a9e
  Additional Information 2:	0a9e372d3b4ad19135b953a78882e789
  Additional Information 3:	0a9e
  Additional Information 4:	0a9e372d3b4ad19135b953a78882e789  

Please provide any additional information below here is some screenshots of how it looks

Versions and main components

  • Spyder Version: 3.2.6
  • Python Version: 2.7.9
  • Qt Versions: 4.8.6, PyQt4 (API v2) 4.11.3 on Windows
  • PyQt Version: PyQt4
  • Operating system: windows 7 x86

Dependencies

IPython >=4.0;<6.0: 5.5.0 (OK) cython >=0.21 : 0.25.2 (OK) jedi >=0.9.0 : 0.11.1 (OK) nbconvert >=4.0 : 5.3.1 (OK) numpy >=1.7 : 1.14.0 (OK) pandas >=0.13.1 : 0.22.0 (OK) pycodestyle >=2.3 : 2.3.1 (OK) pyflakes >=0.5.0 : 1.6.0 (OK) pygments >=2.0 : 2.2.0 (OK) pylint >=0.25 : 1.8.1 (OK) qtconsole >=4.2.0 : 4.3.1 (OK) rope >=0.9.4 : 0.10.7 (OK) sphinx >=0.6.6 : 1.6.6 (OK) sympy >=0.7.3 : 1.0 (OK)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
master-nemocommented, Jan 16, 2018

spyder --debug

thanks! that is what I am looking for. but. it not working too. here is a screencast //1st command was a mistake- just forget to exit python console (called to show version)

I am so sorry 😦( - so strange things is going on here.

0reactions
CAM-Gerlachcommented, Jan 17, 2018

Right, just like I expected as well. Anyway, good luck!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spyder iPython console crashing in a long program
I have ensured that the code works correctly when I read in a full year of data and save only a few areas...
Read more >
Google Code Archive - Google Code
spyderlib ; 422, WontFix, IPython support: save file dialog crashes (matplotlib figure) Type-Defect Priority-Medium Cat-Console Component-IPython Restrict- ...
Read more >
First Steps — Spyder 5 documentation
If Spyder crashes or you receive an error message, please read the following troubleshooting steps before opening a new issue. There's a good...
Read more >
A Qt Console for IPython
Text at 0x7fc6ac023450> In [5]: display(f) # Updated plot with title is shown here. --matplotlib inline ¶. If you want to have all...
Read more >
Using the Interpreter | RC Learning Portal
Navigator may crash when you attempt to open it, especially on Macs. ... You can also type commands directly into the iPython console....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found